/* ==========================================================
   CM Agencia — Agencia de marketing para laboratorios
   Tipografías: Montserrat (titulares) · Playfair Display italic bold (destacados) · Open Sans (texto)
   ========================================================== */

:root {
  --crimson: #db0e4f;
  --crimson-dark: #b30a40;
  --pink: #eba7b6;
  --pink-soft: #f4d3da;
  --beige: #e7e4db;
  --beige-light: #f3f1ec;
  --cream: #fbf8f2;
  --ink: #1b1b1b;
  --ink-soft: #2a2828;
  --muted: #5c5853;
  --line: rgba(27, 27, 27, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(60, 20, 30, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
em.hl, .hl {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0;
}
strong { font-weight: 600; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--light { background: var(--beige-light); }
.section--pink { background: var(--pink); }
.section--dark { background: var(--ink); color: #eae6df; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-title { font-size: clamp(32px, 4.6vw, 54px); max-width: 18ch; }
.section-title--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 24ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 22px; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section-head--split .lead { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--crimson); --fg: #fff; --bd: var(--crimson);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(219, 14, 79, .55); }
.btn--primary:hover { --bg: var(--crimson-dark); --bd: var(--crimson-dark); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; box-shadow: none; }
.btn--light { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--light:hover { --bg: #fff; --bd: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.75); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; box-shadow: none; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); text-decoration: none; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, color .35s;
  color: #fff;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(231, 228, 219, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { height: 42px; width: auto; }
.brand .logo-dark { display: none; }
.is-scrolled .brand .logo-light, .menu-open .brand .logo-light { display: none; }
.is-scrolled .brand .logo-dark, .menu-open .brand .logo-dark { display: block; }
.brand-text { font-family: var(--font-head); font-size: 15px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { display: flex; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-family: var(--font-head); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 13px; }
.site-header:not(.is-scrolled):not(.menu-open) .nav .btn { --bg: #fff; --fg: var(--crimson); --bd: #fff; }

.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-right: -10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (degradado de marca) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(55% 75% at 6% 10%, rgba(222, 170, 98, .95) 0%, rgba(222, 170, 98, 0) 60%),
    radial-gradient(60% 90% at 12% 90%, #c01d4d 0%, rgba(192, 29, 77, 0) 70%),
    radial-gradient(55% 85% at 98% 25%, #e0561b 0%, rgba(224, 86, 27, 0) 65%),
    radial-gradient(50% 70% at 70% 100%, #c43656 0%, rgba(196, 54, 86, 0) 70%),
    linear-gradient(115deg, #c62e52 0%, #cf5862 45%, #d9572c 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 8, 20, .22), rgba(40, 8, 20, .08) 40%, rgba(40, 8, 20, .28)); z-index: -1; }
.hero-lines { position: absolute; inset: -10% -5%; width: 110%; height: 120%; z-index: -1; pointer-events: none; filter: blur(2.5px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-2%, 2%, 0) rotate(1.5deg); } }

.hero--home { min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + 56px) 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 .hl { color: #fff3e6; display: inline-block; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 26px; color: rgba(255, 255, 255, .92); }
.hero-lead strong { color: #fff; }
.hero-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-brand img { width: clamp(180px, 26vw, 330px); filter: drop-shadow(0 10px 30px rgba(80, 10, 30, .25)); }
.hero-brand .tagline { font-family: var(--font-accent); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); margin-top: 18px; color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero--page { padding: calc(var(--header-h) + clamp(64px, 9vw, 110px)) 0 clamp(64px, 8vw, 100px); text-align: center; }
.hero--page h1 { font-size: clamp(40px, 6vw, 72px); }
.hero--page .tagline { font-family: var(--font-accent); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); margin-top: 12px; }
.hero--page p.hero-lead { margin-left: auto; margin-right: auto; }

/* ---------- Stats ---------- */
.stats { background: var(--pink); padding: clamp(40px, 5vw, 56px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat { padding: 8px 20px; }
.stat + .stat { border-left: 1px solid rgba(27, 27, 27, .16); }
.stat-num { font-family: var(--font-accent); font-style: italic; font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--crimson-dark); }
.stat-label { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; color: var(--ink); }

/* ---------- Diferenciación ---------- */
.media-wide { border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(48px, 6vw, 72px); box-shadow: var(--shadow); }
.media-wide img { width: 100%; height: clamp(180px, 22vw, 280px); object-fit: cover; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--beige-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-num { font-family: var(--font-accent); font-style: italic; font-weight: 700; font-size: 30px; color: var(--crimson); line-height: 1; }
.feature h3 { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 12px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Servicios (teaser) ---------- */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; text-decoration: none; background: var(--cream); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--pink-soft); color: var(--crimson); display: grid; place-items: center; margin-bottom: 22px; }
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; flex: 1; }

/* ---------- Servicios (detalle) ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px 1.2fr 1fr; gap: 32px; padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-row .num { font-family: var(--font-accent); font-style: italic; font-weight: 700; font-size: 34px; color: var(--crimson); line-height: 1; }
.service-row h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.service-row p { color: var(--muted); margin: 0; max-width: 46ch; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db0e4f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { background: rgba(255, 255, 255, .5); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-week { display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--crimson); padding: 6px 12px; border-radius: 999px; }
.step h3 { font-size: 21px; font-weight: 500; margin: 20px 0 12px; }
.step p { font-size: 15.5px; margin: 0; color: var(--ink-soft); }
.section--pink .eyebrow { color: var(--crimson-dark); }
.section--pink .lead { color: var(--ink-soft); }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client { background: #fff; border-radius: var(--radius); padding: 26px 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; border: 1px solid rgba(27,27,27,.06); transition: transform .35s var(--ease), box-shadow .35s; }
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-logo { height: 120px; width: 100%; display: grid; place-items: center; }
.client-logo img { max-height: 110px; max-width: 82%; width: auto; object-fit: contain; }
.client-name { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
a.client { text-decoration: none; }

/* ---------- Paquetes ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pack { background: var(--cream); border-radius: calc(var(--radius) + 4px); padding: 36px 32px; display: flex; flex-direction: column; border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.pack:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pack--featured { background: var(--ink); color: #eee8e0; border-color: var(--ink); }
.pack-tag { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); }
.pack--featured .pack-tag { color: var(--pink); }
.pack h3 { font-size: clamp(24px, 2.3vw, 28px); margin: 14px 0 18px; }
.pack-amount { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pack--featured .pack-amount { border-color: var(--line-light); }
.pack-amount b { font-family: var(--font-accent); font-style: italic; font-weight: 700; font-size: 46px; line-height: 1; color: var(--crimson); }
.pack--featured .pack-amount b { color: var(--pink); }
.pack-amount span { font-family: var(--font-head); font-size: 14px; font-weight: 500; line-height: 1.3; }
.pack-desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.pack--featured .pack-desc { color: #b9b2a9; }
.pack .check-list { margin-bottom: 30px; flex: 1; }
.pack .check-list li { font-size: 15.5px; }
.pack--featured .check-list li::before { background-color: rgba(235, 167, 182, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eba7b6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pack .btn { width: 100%; }
.pack--featured .btn { --bg: var(--pink); --fg: var(--ink); --bd: var(--pink); }
.pack--featured .btn:hover { --bg: #fff; --bd: #fff; }

.custom-offer { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--beige-light); border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); }
.custom-offer img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.custom-offer-body { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.custom-offer h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.custom-offer p { color: var(--muted); margin: 0; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; }
.about-text p { font-size: 17.5px; color: var(--ink-soft); }
.about-banner { margin-top: clamp(56px, 7vw, 88px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.value { padding: 26px 0 0; border-top: 2px solid var(--crimson); }
.value h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15.5px; margin: 0; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px) 24px; max-width: 980px; margin: 0 auto; }
.member { text-align: center; }
.member-photo { width: 190px; height: 190px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: var(--beige); box-shadow: 0 0 0 6px var(--beige-light), 0 0 0 7px var(--line); transition: transform .4s var(--ease); }
.member:hover .member-photo { transform: translateY(-4px); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member h3 { font-size: 22px; font-weight: 500; }
.member p { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); margin: 8px 0 0; }

/* ---------- Contacto / Footer ---------- */
.contact { background: var(--ink); color: #e6e1d9; padding: clamp(72px, 10vw, 120px) 0 0; }
.contact .eyebrow { color: var(--pink); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(34px, 4.6vw, 56px); color: #fff; }
.contact h2 .hl { color: var(--pink); }
.contact .lead { color: #b5aea5; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line-light); }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); align-items: center; }
.contact-list .k { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9b948b; }
.contact-list .v { font-size: 17px; color: #fff; }
.contact-list a { text-decoration: none; background-image: linear-gradient(var(--pink), var(--pink)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.contact-list a:hover { color: var(--pink); background-size: 100% 1.5px; }
.contact-card { background: #262424; border: 1px solid var(--line-light); border-radius: calc(var(--radius) + 4px); padding: clamp(30px, 4vw, 44px); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 14, 79, .55), rgba(219, 14, 79, 0) 70%); }
.contact-card h3 { font-size: 28px; color: #fff; position: relative; }
.contact-card p { color: #b5aea5; margin: 14px 0 28px; position: relative; }
.contact-card .btn + .btn { margin-top: 12px; }
.contact-card .btn--ghost-light { --fg: #fff; }

.footer-bottom { margin-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line-light); padding: 28px 0 36px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; font-size: 13.5px; color: #8f887f; }
.footer-bottom img { height: 40px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; color: #cfc8bf; font-family: var(--font-head); font-weight: 500; }
.footer-nav a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; text-align: center; }
.notfound h1 { font-size: clamp(80px, 16vw, 180px); line-height: 1; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--beige); color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 0 !important; font-size: 20px !important; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 22px; min-height: 52px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-brand { order: -1; align-items: flex-start; text-align: left; }
  .hero-brand img { display: none; }
  .hero-brand .tagline { font-size: 24px; margin: 0 0 4px; }
  .hero--home { min-height: auto; padding-bottom: 96px; }
  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .section-head--split .lead { margin-top: 22px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .packs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .custom-offer { grid-template-columns: 1fr; }
  .custom-offer img { min-height: 220px; max-height: 300px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(27,27,27,.16); }
  .stat { padding: 20px 0; }
  .features, .service-cards, .process { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .client { padding: 18px 12px 16px; }
  .client-logo { height: 90px; }
  .client-logo img { max-height: 84px; }
  .client-name { font-size: 11px; }
  .btn-row .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .member-photo { width: 150px; height: 150px; }
  .member h3 { font-size: 19px; }
  .member p { font-size: 11.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-banner img { aspect-ratio: 16 / 9; object-position: 70% center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (max-width: 400px) {
  .team { grid-template-columns: 1fr; }
}
