:root {
  --ink: #0d1316;
  --ink-2: #151e22;
  --ink-3: #1f2a2f;
  --paper: #f1f4f4;
  --white: #ffffff;
  --line: rgba(13, 19, 22, .12);
  --line-light: rgba(255, 255, 255, .16);
  --teal: #14a6ad;
  --teal-d: #0a767c;
  --teal-l: #8fdcdc;
  --mute: #56656a;
  --mute-light: #a6b5b9;
  --font: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --header-h: 68px;
  --gutter: 20px;
  --max: 1320px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
}
body.menu-open { overflow: hidden; }
a, button, label { -webkit-tap-highlight-color: transparent; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--font);
  font-stretch: 66%;
  font-weight: 780;
  line-height: .95;
  letter-spacing: -.005em;
}
.h2 { font-size: clamp(2.35rem, 7vw, 4.75rem); }
.h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--teal); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 12, 14, .55), rgba(8, 12, 14, 0));
  transition: opacity .35s;
}
.site-header.is-scrolled { background: rgba(13, 19, 22, .97); box-shadow: 0 1px 0 var(--line-light); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 30px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-stretch: 78%; font-weight: 760; font-size: 1.3rem; letter-spacing: .005em; }
.brand-sub { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--teal-l); margin-top: 4px; font-weight: 600; }

.main-nav { display: none; }
.main-nav ul, .drawer ul { list-style: none; padding: 0; margin: 0; }
.main-nav > ul { display: flex; gap: 6px; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-weight: 560; font-size: .98rem; position: relative; }
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }

.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--white); color: var(--ink); padding: 8px; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.main-nav .dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-nav .has-dropdown:hover .dropdown-menu, .main-nav .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-dropdown:hover .chev, .main-nav .has-dropdown:focus-within .chev { transform: rotate(180deg); }
.main-nav .dropdown-menu a { display: block; padding: 11px 14px; border-radius: 4px; font-weight: 520; transition: background .2s, color .2s; }
.main-nav .dropdown-menu a:hover, .main-nav .dropdown-menu a[aria-current] { background: var(--paper); color: var(--teal-d); }

.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.header-phone .ico { width: 18px; height: 18px; }
.site-header .header-cta { display: none; }

.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; margin-right: -8px; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 850; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease); }
.drawer-nav > li > a { display: block; font-stretch: 72%; font-weight: 740; font-size: 2.6rem; line-height: 1.12; padding: 4px 0; }
.drawer-nav > li > a[aria-current] { color: var(--teal-l); }
.drawer .dropdown-menu { margin: 4px 0 14px; padding-left: 16px; border-left: 2px solid var(--teal); }
.drawer .dropdown-menu a { display: block; padding: 7px 0; font-size: 1.12rem; color: var(--mute-light); }
.drawer .dropdown-menu a[aria-current] { color: var(--white); }
.drawer-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 30px; color: var(--mute-light); }
.drawer-foot a { font-size: 1.5rem; font-weight: 700; color: var(--white); }

/* ---------- Portada ---------- */
.hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-home { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-page { min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 14, .35) 0%, rgba(8, 12, 14, 0) 26%, rgba(8, 12, 14, .15) 48%, rgba(8, 12, 14, .86) 100%),
    linear-gradient(90deg, rgba(8, 12, 14, .55) 0%, rgba(8, 12, 14, 0) 70%);
}
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 110px; }
.hero-title { font-size: clamp(2.7rem, 11.2vw, 6.6rem); line-height: .93; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; }
.hero-sub { margin-top: 22px; max-width: 36rem; font-size: clamp(1.05rem, 2.3vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-rating strong { color: var(--white); }
.hero-page .hero-title { font-size: clamp(2.5rem, 9.5vw, 6rem); }
.hero-page .hero-content { padding-bottom: 96px; }
.hero-page .hero-shade { background: linear-gradient(180deg, rgba(8, 12, 14, .45) 0%, rgba(8, 12, 14, .3) 30%, rgba(8, 12, 14, .62) 58%, rgba(8, 12, 14, .9) 100%), linear-gradient(90deg, rgba(8, 12, 14, .5) 0%, rgba(8, 12, 14, 0) 75%); }
.hero-sub, .hero-title { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }

/* ---------- Secciones ---------- */
section { position: relative; }
.intro { padding: 96px 0 80px; background: var(--white); }
.services { padding: 96px 0 0; background: var(--paper); }
.services-head { display: grid; gap: 22px; margin-bottom: 44px; }
.services-head p { max-width: 34rem; color: var(--mute); font-size: 1.1rem; }
.audience { padding: 96px 0; background: var(--white); }
.review { padding: 100px 0; background: var(--ink); color: var(--white); }
.where { padding: 96px 0; background: var(--paper); }
.where-grid { display: grid; gap: 40px; }
.where-addr { margin: 20px 0 22px; font-size: 1.25rem; line-height: 1.45; }
.where-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.where-map { border-radius: 6px; overflow: hidden; min-height: 320px; background: #dfe5e6; }
.where-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.25) contrast(1.02); }

.svc-intro { padding: 90px 0 70px; }
.svc-intro-grid { display: grid; gap: 30px; }
.svc-lead { font-size: clamp(1.9rem, 5.2vw, 3.3rem); line-height: 1.02; }
.svc-copy { display: grid; gap: 18px; color: var(--mute); font-size: 1.1rem; max-width: 40rem; }
.svc-split { padding: 30px 0 100px; }
.svc-split-grid { display: grid; gap: 40px; align-items: start; }
.faq { padding: 96px 0; background: var(--paper); }
.faq-grid { display: grid; gap: 34px; }
.others { padding: 96px 0; }
.others .h2 { margin-bottom: 36px; }
.others-grid { display: grid; gap: 22px; }

.hub { padding: 90px 0; }
.hub-grid { display: grid; gap: 22px; }

.about { padding: 96px 0 60px; }
.about-grid { display: grid; gap: 30px; }
.about-lead { font-size: clamp(2.2rem, 6.4vw, 4.4rem); color: var(--teal-d); }
.about-copy { display: grid; gap: 18px; font-size: 1.12rem; color: var(--mute); max-width: 42rem; }
.values { padding: 60px 0 96px; }
.duo { padding: 0 0 100px; }
.duo-grid { display: grid; gap: 18px; }
.duo-grid figure { border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; }
.duo-grid img { width: 100%; height: 100%; object-fit: cover; }

.contact-hero { padding: calc(var(--header-h) + 50px) 0 90px; background: var(--ink); color: var(--white); }
.contact-grid { display: grid; gap: 40px; align-items: start; grid-template-areas: 'info' 'form' 'data'; }
.contact-info { grid-area: info; }
.contact-data { grid-area: data; }
.contact-grid .quote { grid-area: form; }
.contact-sub { margin-bottom: 0 !important; }
.contact-hero .hero-title { font-size: clamp(2.6rem, 10vw, 4.8rem); }
.contact-sub { margin: 20px 0 30px; color: rgba(255, 255, 255, .8); font-size: 1.12rem; max-width: 30rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 80px 0 120px; }
.foot-top { display: grid; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.foot-claim { font-size: clamp(2.2rem, 7vw, 4.6rem); max-width: 16ch; }
.foot-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-self: end; }
.foot-grid { display: grid; gap: 36px; padding: 50px 0; }
.foot-grid h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-l); margin-bottom: 14px; font-weight: 640; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 9px; color: rgba(255, 255, 255, .78); }
.foot-grid a:hover { color: var(--white); }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; color: rgba(255, 255, 255, .78); max-width: 22rem; }
.foot-brand img { width: 40px; flex: none; }
.foot-brand strong { color: var(--white); }
.foot-hours li { display: flex; justify-content: space-between; gap: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .9rem; color: rgba(255, 255, 255, .6); }
.foot-bottom a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra móvil y WhatsApp ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid var(--line-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 9px; height: 60px; color: var(--white); font-weight: 650; }
.mobile-bar a + a { border-left: 1px solid var(--line-light); }
.mobile-bar .ico, .mobile-bar svg { width: 21px; height: 21px; }
.mobile-bar .mb-wa { background: var(--teal); color: var(--ink); border-left: 0 !important; }
.wa-float { display: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
  :root { --gutter: 36px; }
  .hero-content { padding-bottom: 120px; }
  .where-grid { grid-template-columns: 1fr 1.25fr; align-items: center; }
  .where-map, .where-map iframe { min-height: 440px; }
  .svc-intro-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
  .svc-split-grid { grid-template-columns: 1fr .9fr 1fr; gap: 50px; }
  .svc-figure { margin-top: 40px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 70px; }
  .others-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .duo-grid { grid-template-columns: 1fr 1fr; }
  .duo-grid figure:nth-child(2) { margin-top: 90px; }
  .foot-top { grid-template-columns: 1.4fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; column-gap: 70px; row-gap: 40px; grid-template-areas: 'info form' 'data form'; }
  .mobile-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 26px; bottom: 26px; z-index: 800;
    width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
  }
  .wa-float:hover { transform: translateY(-3px) scale(1.04); }
  .wa-float svg { width: 32px; height: 32px; }
  .site-footer { padding-bottom: 60px; }
}
@media (min-width: 1100px) {
  :root { --header-h: 84px; --gutter: 48px; }
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .site-header .header-cta { display: inline-flex; min-height: 46px; }
  .burger, .drawer { display: none; }
  .brand img { width: 36px; }
  .brand-name { font-size: 1.45rem; }
  .intro { padding: 140px 0 120px; }
  .services { padding-top: 130px; }
  .services-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 56px; }
  .audience, .where, .faq, .others, .review { padding: 130px 0; }
}
@media (hover: none) {
  .where-map iframe { pointer-events: none; }
}
