/* ============================================================
   Fiestas en Video — hoja de estilos
   ============================================================ */

:root {
  --color-primary: #8E3B9E;
  --color-primary-deep: #6B2A79;
  --color-secondary: #C87CD6;
  --color-accent: #F0A9DE;
  --color-gold: #F5B301;
  --color-dark: #221029;
  --color-darker: #170A1D;
  --color-bg: #ffffff;
  --color-bg-soft: #FAF6FB;
  --color-text: #241A29;
  --color-text-light: #6B6270;
  --color-border: #EFE4F2;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(34, 16, 41, .05), 0 4px 16px rgba(34, 16, 41, .05);
  --shadow-md: 0 10px 30px rgba(34, 16, 41, .08);
  --shadow-lg: 0 22px 55px rgba(142, 59, 158, .18);

  --section-y: clamp(72px, 8vw, 116px);
  --gap: clamp(20px, 2.2vw, 30px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
p { text-wrap: pretty; }

section[id] { scroll-margin-top: 88px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--section-y) 0; }

.section-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(142, 59, 158, .08);
  border: 1px solid rgba(142, 59, 158, .14);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.divider { height: 1px; background: linear-gradient(to right, transparent, rgba(142, 59, 158, .18), transparent); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(142, 59, 158, .25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(142, 59, 158, .35); }

.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-3px); }

.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; transform: translateY(-3px); }

/* ---------- Navegación ---------- */

header.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
header.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 30px rgba(34, 16, 41, .07);
  padding: 11px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: #fff;
  transition: color .3s ease;
}
.logo img { height: 46px; width: auto; flex-shrink: 0; transition: height .3s ease; }
header.nav.scrolled .logo { color: var(--color-primary); }
header.nav.scrolled .logo img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--color-accent); }
header.nav.scrolled .nav-links a { color: var(--color-text); }
header.nav.scrolled .nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600 !important;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--color-primary-deep); transform: translateY(-2px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}
header.nav.scrolled .hamburger { color: var(--color-primary); }
.hamburger .material-icons-outlined { font-size: 32px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 120px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: -12% 0;
  background: url('assets/images/hero-fiesta.jpg') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(142, 59, 158, .48), transparent 60%),
    linear-gradient(to bottom, rgba(23, 10, 29, .72), rgba(23, 10, 29, .58) 40%, rgba(23, 10, 29, .92));
}
.hero-content { position: relative; z-index: 3; max-width: 780px; }
.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}
.hero .eyebrow::before { background: var(--color-accent); }
.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  font-weight: 700;
  margin-bottom: 22px;
  animation: fadeInUp .8s ease both;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 620px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .88);
  animation: fadeInUp .8s ease .2s both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp .8s ease .4s both; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: nudge 2.4s ease-in-out infinite;
}
.hero-scroll:hover { background: rgba(255, 255, 255, .12); }

.hero-signature {
  position: absolute;
  right: 6%;
  bottom: 12%;
  z-index: 2;
  width: min(360px, 40vw);
  opacity: .9;
}
.blur-circle { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 2; pointer-events: none; }
.blur-circle--1 {
  width: 320px; height: 320px; top: -70px; left: -70px;
  background: var(--color-secondary); opacity: .22;
  animation: float 7s ease-in-out infinite;
}
.blur-circle--2 {
  width: 220px; height: 220px; bottom: 12%; left: 22%;
  background: var(--color-accent); opacity: .16;
  animation: float 9s ease-in-out infinite;
}

.eq { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.eq span {
  width: 14px;
  border-radius: 8px;
  background: linear-gradient(var(--color-accent), var(--color-secondary));
  animation: bounce 1.2s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 75%; animation-delay: .15s; }
.eq span:nth-child(3) { height: 55%; animation-delay: .3s; }
.eq span:nth-child(4) { height: 95%; animation-delay: .45s; }
.eq span:nth-child(5) { height: 65%; animation-delay: .6s; }
.eq span:nth-child(6) { height: 85%; animation-delay: .75s; }
.eq span:nth-child(7) { height: 45%; animation-delay: .9s; }

/* ---------- Por qué elegirnos ---------- */

.value {
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(200, 124, 214, .1), transparent 65%),
    var(--color-bg-soft);
}
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.vcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vcard::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity .3s ease;
}
.vcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(142, 59, 158, .28); }
.vcard:hover::after { opacity: 1; }
.vcard h3 { font-size: 1.18rem; margin-bottom: 10px; }
.vcard p { color: var(--color-text-light); font-size: .97rem; line-height: 1.65; }

.vicon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(142, 59, 158, .14), rgba(240, 169, 222, .22));
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.vicon .material-icons-outlined { font-size: 28px; }

/* ---------- Estadísticas ---------- */

.stats {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--color-dark), var(--color-darker));
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(240, 169, 222, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .45;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--color-accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { font-size: .95rem; color: rgba(255, 255, 255, .78); margin-top: 10px; }

/* ---------- Servicios ---------- */

.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.scard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.scard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(142, 59, 158, .28); }

.scard-img { position: relative; height: 230px; overflow: hidden; background: var(--color-dark); }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.scard-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 10, 29, .45), transparent 55%);
}
.scard:hover .scard-img img { transform: scale(1.07); }

.scard-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.scard-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.scard-body p { color: var(--color-text-light); font-size: .98rem; margin-bottom: 26px; flex: 1; }

/* ---------- Galería ---------- */

.gallery {
  background:
    radial-gradient(70% 60% at 25% 75%, rgba(142, 59, 158, .07), transparent 62%),
    var(--color-bg-soft);
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}
.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gal-item--wide { grid-column: span 2; grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 10, 29, .35), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.gal-item:hover img { transform: scale(1.07); }
.gal-item:hover::after { opacity: 1; }

/* ---------- Videos ---------- */

.videos {
  background: linear-gradient(135deg, var(--color-dark), var(--color-darker));
  color: #fff;
}
.videos .eyebrow { color: var(--color-accent); background: rgba(240, 169, 222, .1); border-color: rgba(240, 169, 222, .22); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 980px;
}
.vcard-video {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s ease, border-color .3s ease;
}
.vcard-video:hover { transform: translateY(-6px); border-color: rgba(240, 169, 222, .4); }
.vcard-video video {
  width: 100%;
  height: auto;          /* el atributo height del <video> gana a aspect-ratio si no se anula */
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  display: block;
}
.vcard-video figcaption {
  padding: 14px 18px 16px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
}

/* ---------- Testimonios ---------- */

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.tcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(142, 59, 158, .28); }
.quote {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  color: var(--color-accent);
  line-height: .6;
  height: 28px;
}
.stars { color: var(--color-gold); display: flex; gap: 2px; margin: 10px 0 16px; }
.stars .material-icons-outlined { font-size: 20px; }
.tcard .txt { color: var(--color-text-light); font-size: .98rem; margin-bottom: 24px; }

.tperson { display: flex; align-items: center; gap: 14px; }
.tperson img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(142, 59, 158, .18);
}
.tperson strong { font-family: var(--font-heading); font-size: .98rem; display: block; }
.tperson span { font-size: .85rem; color: var(--color-text-light); }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px); align-items: start; }

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}
.field label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .98rem;
  background: var(--color-bg-soft);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(142, 59, 158, .1);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: .85rem; color: var(--color-text-light); text-align: center; margin-top: -6px; }
.form-success {
  display: none;
  background: rgba(37, 211, 102, .12);
  color: #0F7A3D;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
}
.form-success.show { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.cinfo {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .25s ease, transform .25s ease;
}
.cinfo:hover { border-color: rgba(142, 59, 158, .28); transform: translateY(-2px); }
.cinfo .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(142, 59, 158, .14), rgba(240, 169, 222, .22));
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cinfo strong { font-family: var(--font-heading); display: block; margin-bottom: 2px; }
.cinfo span, .cinfo a { color: var(--color-text-light); font-size: .95rem; }
.cinfo a:hover { color: var(--color-primary); }

.map-wrap { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); line-height: 0; }

/* ---------- FAQ ---------- */

.faq { background: var(--color-bg-soft); }
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: rgba(142, 59, 158, .25); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.03rem;
  text-align: left;
  color: var(--color-text);
}
.faq-q .material-icons-outlined { color: var(--color-primary); transition: transform .3s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] { color: var(--color-primary); }
.faq-q[aria-expanded="true"] .material-icons-outlined { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--color-text-light); font-size: .98rem; }

/* ---------- Footer ---------- */

footer {
  background: linear-gradient(135deg, var(--color-dark), var(--color-darker));
  color: rgba(255, 255, 255, .72);
  padding: clamp(56px, 7vw, 80px) 0 26px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--font-heading); color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.foot-grid p { font-size: .96rem; max-width: 42ch; }
.foot-grid ul li { margin-bottom: 11px; font-size: .96rem; }
.foot-grid ul li a { transition: color .2s ease; }
.foot-grid ul li a:hover { color: var(--color-accent); }

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.22rem;
  margin-bottom: 16px;
}
.foot-brand img { height: 52px; width: auto; }

.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background .3s ease, transform .3s ease;
}
.social a:hover { background: var(--color-primary); transform: translateY(-3px); }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: .87rem;
}
.foot-bottom a { color: var(--color-accent); }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
  animation: pulse-wa 2.2s infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Animaciones ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(3deg); } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-auto-rows: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-signature { opacity: .6; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    width: 80%;
    max-width: 330px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 22px;
    padding: 100px 32px;
    box-shadow: -10px 0 44px rgba(23, 10, 29, .18);
    overscroll-behavior: contain;
    transition: right .35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a, header.nav.scrolled .nav-links a { color: var(--color-text); font-size: 1.05rem; }
  .nav-links .nav-cta { width: 100%; text-align: center; }
  .hamburger { display: block; z-index: 1001; }
  header.nav .hamburger { color: #fff; }
  header.nav.scrolled .hamburger, header.nav.menu-open .hamburger { color: var(--color-primary); }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .hero { padding: 110px 0 84px; }
  .hero-signature { display: none; }
  .serv-grid, .test-grid, .value-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gal-item--wide { grid-column: span 2; grid-row: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .whatsapp-float { width: 56px; height: 56px; font-size: 27px; bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
  .logo span { display: none; }
  .logo img { height: 44px; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gal-item--wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
