/* ============================================================
   LAYOUT.CSS — Navbar, Secciones, Footer, WhatsApp Float
   Lumis Clínica Estética · Portfolio Project
   ============================================================ */

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              height 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 68px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: var(--transition);
}

.navbar__logo span {
  color: var(--sage-light);
}

.navbar.scrolled .navbar__logo {
  color: var(--dark);
}

.navbar.scrolled .navbar__logo span {
  color: var(--sage-dark);
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
  transition: var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-light);
  transition: width 0.3s var(--ease);
}

.navbar__links a:hover {
  color: var(--white);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar.scrolled .navbar__links a {
  color: var(--gray-600);
}

.navbar.scrolled .navbar__links a::after {
  background: var(--sage-dark);
}

.navbar.scrolled .navbar__links a:hover {
  color: var(--dark);
}

/* Nav actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.navbar.scrolled .navbar__actions {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
  position: absolute;
}

.hamburger__line:nth-child(1) { transform: translateY(-7px); }
.hamburger__line:nth-child(3) { transform: translateY(7px); }

.navbar.scrolled .hamburger__line {
  background: var(--dark);
}

/* Estado activo del hamburger */
.navbar__hamburger.is-active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translateY(0);
  background: var(--dark);
}

.navbar__hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.is-active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
  background: var(--dark);
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-md) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__link:hover {
  color: var(--sage-deep);
  padding-left: 8px;
}

.mobile-menu__link i {
  font-size: 1.2rem;
  color: var(--sage);
  opacity: 0;
  transition: var(--transition-fast);
}

.mobile-menu__link:hover i {
  opacity: 1;
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-xl);
}

.mobile-menu__actions .btn {
  justify-content: center;
  padding: 16px;
  font-size: 14px;
}

.mobile-menu__footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 20px;
}

.mobile-menu__social {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
}

.mobile-menu__social:hover { color: var(--sage-deep); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* svh = small viewport height, descuenta barra del navegador en mobile */
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /*
    IMAGEN HERO: mujer elegante en consultorio estético premium,
    luz natural lateral, fondo blanco/crema, look sereno y confiado.
    Unsplash: https://images.unsplash.com/photo-1570172619644-dfd03ed5d881
    object-position center 25% mantiene el foco en el rostro en todos los tamaños.
  */
  background-image: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
  will-change: transform;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(8,16,8,0.75) 0%,
    rgba(15,28,15,0.45) 55%,
    rgba(15,28,15,0.15) 100%
  );
}

/* Detalle decorativo: línea vertical */
.hero__deco-line {
  position: absolute;
  left: 50%;
  top: var(--navbar-h);
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: fadeInUp 1.1s var(--ease) 0.2s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage-light);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: italic;
  color: var(--sage-light);
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Trust bar al pie del hero */
.hero__trust {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 1.1s var(--ease) 0.6s both;
}

/* ── SECCIÓN: PROPUESTA DE VALOR ──────────────────────────── */
.s-value {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.s-value__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.s-value__img-wrap {
  position: relative;
}

.s-value__img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
  /*
    REEMPLAZAR: consultorio médico estético moderno, luz cálida,
    equipos de última generación visibles, ambiente clean y premium.
    Unsplash: https://images.unsplash.com/photo-1576091160399-112ba8d25d1d
  */
}

.s-value__accent {
  position: absolute;
  bottom: -28px;
  right: -28px;
}

.s-value__features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.value-feature:hover {
  background: var(--sage-pale);
  border-left-color: var(--sage);
  transform: translateX(4px);
}

.value-feature__icon {
  width: 38px;
  height: 38px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  color: var(--sage-dark);
  font-size: 1rem;
}

.value-feature__title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}

.value-feature__desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── SECCIÓN: TRATAMIENTOS ────────────────────────────────── */
.s-treatments {
  padding: var(--space-2xl) 0;
  background: var(--gray-50);
}

.s-treatments__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
}

.s-treatments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ── SECCIÓN: BENEFICIOS ──────────────────────────────────── */
.s-benefits {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.s-benefits__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.s-benefits__list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

.benefit-item:first-child { padding-top: 0; }
.benefit-item:last-child { border-bottom: none; padding-bottom: 0; }

.benefit-item:hover .benefit-item__num { color: var(--sage-deep); }

.benefit-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  transition: var(--transition-fast);
}

.benefit-item__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

.benefit-item__desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.65;
}

.s-benefits__visual {
  position: relative;
}

.s-benefits__img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  /*
    REEMPLAZAR: médica estética con paciente en consultorio, ambiente
    de confianza, luz natural, expresión de bienestar y profesionalismo.
    Unsplash: https://images.unsplash.com/photo-1612349317150-e413f6a5b16d
  */
}

.s-benefits__stat {
  position: absolute;
  top: 36px;
  left: -32px;
}

/* ── SECCIÓN: EQUIPO ──────────────────────────────────────── */
.s-team {
  padding: var(--space-2xl) 0;
  background: var(--sage-pale);
}

.s-team__header {
  text-align: center;
  margin-bottom: 56px;
}

.s-team__header .section-subtitle {
  margin: 14px auto 0;
}

.s-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── SECCIÓN: INSTALACIONES ───────────────────────────────── */
.s-facilities {
  padding: var(--space-2xl) 0;
  background: var(--white);
  overflow: hidden;
}

.s-facilities__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.s-facilities__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  /*
    IMÁGENES INSTALACIONES:
    1. Sala de espera premium: https://images.unsplash.com/photo-1629909613654-28e377c37b09
    2. Consultorio moderno: https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d
    3. Detalle equipo tecnológico: https://images.unsplash.com/photo-1576091160550-2173dba999ef
    4. Recepción elegante: https://images.unsplash.com/photo-1497366216548-37526070297c
  */
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.s-facilities__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* ── SECCIÓN: TESTIMONIOS ─────────────────────────────────── */
.s-testimonials {
  padding: var(--space-2xl) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Comilla decorativa de fondo */
.s-testimonials::before {
  content: '\201C';
  position: absolute;
  top: -80px;
  right: -20px;
  font-family: var(--font-display);
  font-size: 28rem;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
}

.s-testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}

.s-testimonials__header .section-subtitle {
  margin: 14px auto 0;
}

.s-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── SECCIÓN: CTA FUERTE ──────────────────────────────────── */
.s-cta {
  padding: var(--space-2xl) 0;
  background: var(--sage-deep);
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos */
.s-cta::before,
.s-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.s-cta::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.s-cta::after {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -100px;
}

.s-cta__inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.s-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.s-cta__title em {
  font-style: italic;
  color: var(--sage-light);
}

.s-cta__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 40px;
}

.s-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECCIÓN: FAQ ─────────────────────────────────────────── */
.s-faq {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.s-faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.s-faq__side { }

/* ── SECCIÓN: CONTACTO ────────────────────────────────────── */
.s-contact {
  padding: var(--space-2xl) 0;
  background: var(--gray-50);
}

.s-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.s-contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.s-contact__map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.s-contact__map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
  filter: grayscale(20%) saturate(0.9);
}

.s-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.s-contact__actions .btn {
  justify-content: center;
  padding: 15px;
}

.s-contact__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 16px;
  transition: var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: var(--sage-pale);
}

/* Info de horarios */
.schedule-block {
  background: var(--sage-pale);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 8px;
}

.schedule-block__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
}

.schedule-block__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dark);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.schedule-block__row:last-child { border-bottom: none; }

.schedule-block__row span:last-child {
  color: var(--sage-deep);
  font-weight: 500;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--dark-soft);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand .navbar__logo {
  font-size: 2rem;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 250px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer__social .social-btn {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}

.footer__social .social-btn:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--white);
}

.footer__col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.55);
}

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-float__tooltip {
  background: var(--white);
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}

.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-float__btn {
  position: relative;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.5rem;
}

.wa-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37,211,102,0.55);
}

/* Pulso animado */
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.8s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0; }
}

.wa-float__btn i {
  position: relative;
  z-index: 1;
}
