/* ===== NAVBAR FLOTANTE ===== */
.nav-float-wrap {
  position: absolute;
  top: 40px; /* antes: 24px — súbelo o bájalo a gusto (36px, 48px, etc.) */
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 40px;
}

.nav-pill {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: rgba(255, 255, 255, 0.55); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7); 
  border-radius: 999px;
  padding: 12px 20px 12px 24px;
  box-shadow: 0 4px 20px rgba(20, 20, 20, 0.08); 
}

.nav-toggle {
  display: none; /* oculto por defecto en pantallas grandes */
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background-color: #141414;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-pill-logo {
  flex-shrink: 0;
  margin-left: 12px; /* ajusta el valor a gusto: 8px, 16px, 20px... */
}

.logo-img-pill {
  height: 28px;
  width: auto;
}

.nav-pill-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-pill-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #141414;
  text-decoration: none;
}

.nav-pill-menu a:hover {
  color: #B7A49C;
}

.nav-pill-menu a:visited {
  color: #141414;
}

.nav-pill-cta {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background-color: #B7A49C;
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.nav-pill-cta:hover {
  background-color: #7F7164;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hero-v2 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #FFFFFF;
}

.hero-v2-inner {
  max-width: 1400px; /* ajusta a lo que uses en el resto del sitio */
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center; /* antes: stretch — esto centra verticalmente el texto respecto a la imagen */
  gap: 40px;
}

.hero-v2-text {
  max-width: 560px; /* antes: 480px — un poco más ancho para que quepa el texto más grande */
}

.hero-v2-text .hero-eyebrow {
  font-size: 0.9rem; /* antes: 0.75rem */
  letter-spacing: 0.12em;
}

.hero-v2-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: #141414;
  font-size: 4.2rem;
  line-height: 1.1;
  margin: 20px 0 24px;
}

.hero-v2-text h1 em {
  font-style: italic;
  color: #B7A49C;
}

.hero-sub {
  font-size: 1.15rem; /* antes: 1rem */
  line-height: 1.75;
  max-width: 460px; /* antes: 380px */
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background-color: #B7A49C;
  color: #FFFFFF;
  padding: 16px 34px;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.btn-primary:hover {
  background-color: #7F7164;
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background-color: transparent;
  color: #141414;
  border: 1px solid #141414;
  padding: 16px 34px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: #141414;
  color: #FFFFFF;
}

/* Imagen full-bleed, pegada al borde derecho, debajo del navbar */
.hero-v2-image {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  height: 70%;
  width: 38%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.18);
}


.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Wrapper del texto: mismo ancho/centrado que el resto del sitio */
.hero-v2-text-wrap {
  position: relative;
  z-index: 2;
  max-width: 1400px; /* AJUSTA a lo que uses en tus otras secciones */
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.1);
  font-family: 'Montserrat', sans-serif;
}

.hero-badge strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #B7A49C;
}

.hero-badge {
  font-size: 0.8rem;
  color: #7F7164;
}

main#main-content {
  padding-top: 0; /* ya no aquí */
}

.home main#main-content,
.front-page main#main-content {
  padding-top: 0;
}

/* Nuevo: el padding va en la primera sección de cada página, para que SU fondo de color llene el espacio detrás del navbar */
main#main-content > *:first-child {
  padding-top: 140px; /* ajusta este valor a gusto */
}

/* En la portada no aplica, porque el hero ya maneja su propio espacio con position absolute */
.home main#main-content > *:first-child,
.front-page main#main-content > *:first-child {
  padding-top: 0;
}

.home main#main-content > *:first-child,
.front-page main#main-content > *:first-child {
  padding-top: 0;
}

/* Excepción: el trust-bar necesita conservar su propio padding-top */
.home main#main-content > .trust-bar:first-child,
.front-page main#main-content > .trust-bar:first-child {
  padding-top: 16px;
}

@media (max-width: 900px) {
  /* ===== HERO APILADO ===== */
  .hero-v2 {
    position: relative;
    min-height: auto;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-v2-image {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    inset: auto;
    width: calc(100% - 64px);
    margin: 0 auto;
    height: auto; /* altura según la foto: no se recorta */
    border-radius: 20px;
  }

  .hero-photo {
    height: auto;
    object-fit: initial;
  }

  .hero-v2-image::after {
    display: none;
  }

  .hero-v2-text-wrap {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    height: auto;
    padding: 0 32px 40px;
  }

  .hero-v2-text {
    max-width: 100%;
    text-align: left;
  }

  .hero-v2-text .hero-eyebrow {
    color: #7F7164;
    display: block;
    margin-top: 4px;
  }

  .hero-v2-text h1 {
    color: #141414;
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }

  .hero-v2-text h1 em {
    color: #B7A49C;
  }

  .hero-sub {
    color: #7F7164;
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    min-width: 140px;
  }

  .btn-secondary {
    border-color: #141414;
    color: #141414;
  }

  .btn-secondary:hover {
    background-color: #141414;
    color: #FFFFFF;
  }

  .trust-bar {
    gap: 16px;
    padding: 20px 24px;
  }

  .trust-item {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  /* ===== NAVBAR MÓVIL ===== */
  .nav-toggle {
    display: flex;
    margin-left: 4px;
  }

  .nav-pill-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(20, 20, 20, 0.12);
  }

  .nav-pill-menu.is-open {
    display: flex;
  }

  .nav-pill-menu a {
    padding: 10px 0;
  }

  .nav-pill-cta {
    display: none;
  }

  .nav-pill {
    justify-content: center;
    gap: 24px; /* antes: 20px */
    padding: 16px 28px; /* antes: 10px 20px */
  }

  .nav-pill-logo {
    margin-left: 0;
  }

  .nav-float-wrap {
    top: 20px;
    padding: 0 16px;
  }

  .nav-toggle span {
    width: 22px; /* antes: 18px (heredado de desktop) */
    height: 2px; /* antes: 1.5px */
  }

  .logo-img-pill {
    height: 30px; 
  }
}

