/* =====================================================
   Marleny Escobar Hair Studio — styles.css
   Archetype: Editorial Dark Luxury (adapted)
   ===================================================== */

/* ---- Custom properties ---- */
:root {
  --bg:          #060606;
  --bg-2:        #0f0f0f;
  --bg-3:        #1a1a1a;
  --cream:       #F2EBD8;
  --cream-2:     #D4C5A0;
  --cream-3:     #8A7E68;
  --gold:        #C9A050;
  --gold-2:      #A87F30;
  --gold-bright: #E8C46A;
  --gold-dim:    rgba(201,160,80,0.15);
  --line:        rgba(201,160,80,0.14);
  --radius:      4px;
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
  --nav-h:       80px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ---- Utility ---- */
.container {
  width: min(90%, 1140px);
  margin-inline: auto;
}

/* ---- Typography ---- */
.cormorant, h1, h2, .hero-title, .section-title, .contact-title, .about-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
  white-space: nowrap;
}
.btn-lg  { padding: 1rem 2rem; font-size: 0.9rem; }
.btn-xl  { padding: 1.25rem 2.75rem; font-size: 1rem; gap: 0.75rem; }
.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,160,80,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--cream-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.75rem 1.75rem;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }

/* =====================================================
   SPLASH LOADER
   ===================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
  animation: splashSafety .01s 5s forwards;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo {
  width: min(240px, 60vw);
  animation: splashLogo 1s var(--ease-out) both;
}
@keyframes splashLogo { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.splash-line {
  width: 1px;
  height: 0;
  background: var(--gold);
  animation: splashLine 1s 0.4s var(--ease-out) forwards;
}
@keyframes splashLine { to { height: 60px; } }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--line);
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 68px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-inline: auto;
}
.nav-link {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-2);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { right: 0; }
.nav-cta { margin-left: 1.5rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  transform: translateY(calc(-100% - var(--nav-h)));
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.nav-drawer.is-open { transform: translateY(0); pointer-events: auto; }
.nav-drawer-link {
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-2);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Cara arriba-izquierda: el sujeto está centrado en la foto portrait,
     desplazamos al 35% horizontal y 8% vertical para dejarla arriba-izq */
  object-position: 35% 8%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Overlay suave en zona del rostro (arriba), más oscuro abajo para texto */
  background:
    linear-gradient(180deg,
      rgba(6,6,6,0.18) 0%,
      rgba(6,6,6,0.15) 30%,
      rgba(6,6,6,0.60) 58%,
      rgba(6,6,6,0.88) 100%
    ),
    linear-gradient(90deg,
      rgba(6,6,6,0.55) 0%,
      rgba(6,6,6,0.25) 40%,
      transparent 65%
    );
}
/* Mesh dorado estático (sin animación) */
.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(201,160,80,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201,160,80,0.08) 0%, transparent 60%);
  filter: blur(60px) saturate(150%);
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.hero-inner {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vh, 5rem);
  padding-left: clamp(2rem, 7vw, 8rem);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.hero-logo {
  width: min(340px, 60vw);   /* más pequeño que antes (era 420px) */
  height: auto;
  filter: drop-shadow(0 4px 32px rgba(201,160,80,0.55));
}
/* =====================================================
   HERO MÓVIL PREMIUM — Versión Final
   Inspiración: Kérastase / L'Oréal Professionnel / Dyson Beauty
   ===================================================== */
@media (max-width: 768px) {

  /* 1 ── Layout: contenido anclado en la zona inferior */
  .hero {
    align-items: flex-end;
    justify-content: center;
    background: var(--bg);
  }

  /* 2 ── Imagen: zoom-out ~12%, rostro arriba */
  .hero-img {
    object-position: center 0%;
    transform: scale(0.88);
    transform-origin: center 5%;
  }

  /* 3 ── Overlay: transparente arriba, oscuro desde zona del logo para realzar dorado */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      transparent           0%,
      transparent          22%,
      rgba(0,0,0,0.30)     36%,
      rgba(0,0,0,0.65)     52%,
      rgba(0,0,0,0.90)     70%,
      rgba(0,0,0,0.96)    100%
    );
  }

  /* 4 ── Hero inner: centrado, sin gap (control por margin-top por elemento) */
  .hero-inner {
    text-align: center;
    align-items: center;
    padding: 0 5% 40px;
    max-width: 100%;
    gap: 0;
  }

  /* 5 ── Logo oficial: visible en móvil */
  .hero-logo {
    display: block;
    width: min(300px, 82vw);
    margin-top: 24px;
  }

  /* 6 ── Logo desglosado móvil: oculto (se usa el logo oficial) */
  .hero-logo-mobile { display: none; }
  .hlm-mono {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  }
  .hlm-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 12px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.75);
  }
  .hlm-sub {
    font-family: "Inter", sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--cream-2);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 12px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  }

  /* 7 ── Eyebrow: blanco, mayúsculas, tracking amplio — gap 28px */
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--cream);
    margin-top: 28px;
  }

  /* 8 ── Título héroe — gap 36px desde eyebrow */
  .hero-title {
    font-size: 2.75rem;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-top: 36px;
    text-wrap: balance;
    color: var(--cream);
  }
  .hero-title em {
    display: block;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 10px;
    line-height: 1;
  }

  /* 9 ── Lista de servicios: ocultar en móvil */
  .hero-services { display: none; }

  /* 10 ── Botones — gap 40px desde el título */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    gap: 0;
  }
  /* Botón principal — dorado, 90%, 49px, muy redondeado */
  .hero-actions .btn-gold {
    width: 90%;
    height: 49px;
    padding: 0 1.5rem;
    border-radius: 50px;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    background: var(--gold);
    color: var(--bg);
  }
  /* Botón secundario — borde dorado, texto dorado, 90%, 18px debajo */
  .hero-actions .btn-ghost {
    width: 90%;
    height: 52px;
    padding: 0 1.5rem;
    border-radius: 50px;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    margin-top: 18px;
  }

  /* 11 ── Nav hamburguesa: dorado, solo ícono, sin logo visible */
  .nav-logo { display: none; }
  .nav-toggle span { background: var(--gold); }

  /* 12 ── Scroll hint: ocultar en móvil para diseño limpio */
  .hero-scroll-hint { display: none; }

  /* 13 ── WA flotante: 20px del borde */
  .wa-float { bottom: 20px; right: 20px; }
}

/* Logo móvil: visible solo en ≤768px */
@media (min-width: 769px) {
  .hero-logo-mobile { display: none; }
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--cream);
  margin-top: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero-services {
  font-size: clamp(0.7rem, 1.4vw, 0.875rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-weight: 400;
  margin-top: 0.75rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold-2));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.6)}50%{opacity:1;transform:scaleY(1)} }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* CRITICAL: prevent invisible split-text + reveal conflict */
.reveal[data-split] { opacity: 1; transform: none; }

/* =====================================================
   STATS
   ===================================================== */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-3);
}

/* =====================================================
   SERVICES
   ===================================================== */
.services {
  padding: 6rem 0;
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--gold-bright); }
.section-sub {
  font-size: 0.9375rem;
  color: var(--cream-3);
  max-width: 54ch;
  text-align: center;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-2);
  transition: background 0.3s;
  transform-style: preserve-3d;
  cursor: default;
}
.service-card:hover { background: var(--bg-3); }
.service-card-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  position: relative;
}
.service-card-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover .service-card-inner::before { opacity: 1; }
.service-icon {
  font-size: 1rem;
  color: var(--gold);
  display: block;
}
.service-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--cream-3);
  line-height: 1.7;
  flex: 1;
}
.service-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  transition: letter-spacing 0.2s;
  margin-top: auto;
}
.service-link:hover { letter-spacing: 0.18em; }
.service-card--accent { background: var(--gold-dim); }
.service-card--accent:hover { background: rgba(201,160,80,0.2); }
.service-card--accent .service-name { color: var(--gold-bright); }

/* Tilt 3D effect via JS — radial gold halo */
.service-card .halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--hx,50%) var(--hy,50%), rgba(201,160,80,0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover .halo { opacity: 1; }

/* =====================================================
   COLOR VISUAL — banner imagen morada entre servicios y about
   ===================================================== */
.color-visual { position: relative; overflow: hidden; }
.color-visual-img-wrap {
  position: relative;
  height: clamp(340px, 50vw, 520px);
  overflow: hidden;
}
.color-visual-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(1.1);
}
.color-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,6,0.78) 0%, rgba(6,6,6,0.45) 45%, rgba(6,6,6,0.15) 100%),
    linear-gradient(180deg, transparent 40%, rgba(6,6,6,0.6) 100%);
}
.color-visual-caption {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3.5rem);
  left: clamp(2rem, 7vw, 8rem);
  z-index: 2;
  color: var(--cream);
}
.color-visual-caption .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .color-visual-img-wrap { height: 56vw; min-height: 260px; }
  .color-visual-caption { left: 1.5rem; bottom: 1.5rem; }
  .color-visual-caption .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* =====================================================
   ABOUT / MARCA PERSONAL
   ===================================================== */
.about {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about-bg-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text .section-title { text-align: left; }
.about-text .section-eyebrow { align-self: flex-start; }
.about-body {
  font-size: 0.9375rem;
  color: var(--cream-2);
  line-height: 1.8;
}
.about-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.about-quote p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
}
.about-quote cite {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  margin-top: 0.5rem;
  display: block;
}
.about-visual { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Cabello rojo: centrar en el rostro y cabello superior */
  object-position: center 12%;
  filter: saturate(1.12) contrast(1.06);
}
.about-img-wrap:hover img { transform: scale(1.04); }
/* Overlay sutil sobre la imagen del About */
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.15) 0%, transparent 40%, rgba(6,6,6,0.35) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.about-img-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(6,6,6,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: 2px;
}
.about-img-badge img { height: 24px; width: auto; }

/* =====================================================
   PRODUCTS
   ===================================================== */
.products {
  padding: 6rem 0;
  background: var(--bg);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}
.product-card:hover {
  border-color: rgba(201,160,80,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,160,80,0.08);
}
.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-3);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-brand {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.product-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.25;
}
.product-sub {
  font-size: 0.75rem;
  color: var(--cream-3);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.product-desc {
  font-size: 0.8125rem;
  color: var(--cream-3);
  line-height: 1.65;
}
.product-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.5rem;
  transition: letter-spacing 0.2s;
}
.product-link:hover { letter-spacing: 0.2em; }
/* "Ver más" — hide cards 7+ when collapsed (shows 6 = 2 rows of 3) */
.products-grid[data-collapsed] .product-card:nth-child(n+7) {
  display: none;
}
.products-more {
  text-align: center;
  margin-bottom: 2.5rem;
}

.products-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  color: var(--cream-3);
  font-size: 0.9rem;
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery {
  padding: 5rem 0 6rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
  margin-top: 3rem;
  overflow: hidden;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: default;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.2) brightness(1.05);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201,160,80,0.12) 0%, transparent 70%),
    var(--bg-3);
  filter: blur(40px) saturate(120%);
  z-index: -1;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  z-index: 0;
}
.contact > * { position: relative; z-index: 1; }
.contact-bg { z-index: 1; }
.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.contact-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  text-wrap: balance;
}
.contact-title em { font-style: italic; color: var(--gold); }
.contact-sub {
  font-size: 1rem;
  color: var(--cream-2);
  max-width: 44ch;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--cream-3);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-logo img { height: 96px; width: auto; }
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--cream-3);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; color: var(--cream-3); opacity: 0.6; }

/* =====================================================
   FLOATING WHATSAPP
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 8px rgba(37,211,102,0.15);
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual   { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Hover: only on devices that support it */
@media (hover: none) {
  .service-card { transform: none !important; }
  .product-card { transform: none !important; }
}
