/* ══════════════════════════════════════════════
   GANCEDO LEGALES — style.css
   Colores exactos de marca: verde #02414A · dorado #D8A538 · crema #F5F0E1 / #EADEC4
══════════════════════════════════════════════ */

:root {
  --verde:     #02414A;
  --verde-d:   #01323A;
  --verde-dd:  #01252B;
  --verde-m:   #0B5560;
  --dorado:    #D8A538;
  --dorado-l:  #E6BB5C;
  --dorado-ink:#7E5A0E;   /* dorado legible sobre fondos claros */
  --crema:     #F5F0E1;
  --crema-2:   #EADEC4;
  --papel:     #FBF8F0;
  --blanco:    #FFFFFF;
  --tinta:     #0E2A2F;
  --tinta-2:   #45585B;
  --linea:     rgba(2, 65, 74, .16);
  --linea-osc: rgba(234, 222, 196, .16);
  --crema-txt: rgba(245, 240, 225, .82);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 6px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 18px 40px -18px rgba(1, 37, 43, .35), 0 4px 10px -4px rgba(1, 37, 43, .12);
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--papel);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--dorado); color: var(--verde-dd); padding: 10px 16px; font-weight: 600;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Tipografía de sección ── */
.h-section {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--verde);
  text-wrap: balance;
}
.lead { font-size: 1.125rem; color: var(--tinta-2); max-width: 46ch; text-wrap: pretty; }

.split-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.split-head .lead { justify-self: end; }

/* ── Revelado (solo si hay JS + Motion) ── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); }
.no-motion [data-reveal], .no-motion [data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ══════════ BOTONES ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: .005em;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-gold { background: var(--dorado); color: var(--verde-dd); }
.btn-gold:hover { background: var(--dorado-l); box-shadow: 0 10px 24px -10px rgba(216,165,56,.7); transform: translateY(-1px); }

.btn-verde { background: var(--verde); color: var(--crema); }
.btn-verde:hover { background: var(--verde-m); box-shadow: 0 10px 24px -12px rgba(2,65,74,.7); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--crema); border-color: rgba(245,240,225,.45); }
.btn-ghost:hover { border-color: var(--dorado); color: var(--dorado); }

/* ══════════ NAVBAR ══════════ */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  transition: background-color .35s ease, box-shadow .35s ease;
}
#navbar.scrolled {
  background: rgba(1, 37, 43, .96);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; transform-origin: left center; transition: transform .35s var(--ease-out); }
#navbar.scrolled .nav-logo-img { transform: scale(.88); }

.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  position: relative;
  color: rgba(245,240,225,.8); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 14px; transition: color .2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px;
  background: var(--dorado); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--crema); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.btn-nav { padding: 10px 20px; font-size: 14px; }

.burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 44px; height: 44px; padding: 13px 9px; margin-right: -9px;
  background: none; border: none; cursor: pointer; margin-left: auto;
}
.burger span { display: block; height: 2px; background: var(--crema); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--verde-dd); padding: 8px var(--gutter) 28px;
}
.mobile-menu.open { display: flex; }
.mob-link {
  color: var(--crema); font-family: var(--serif); font-size: 22px;
  padding: 14px 0; border-bottom: 1px solid var(--linea-osc);
}
.mob-cta { margin-top: 20px; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  background: var(--verde-dd);
  color: var(--crema);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  width: 100%; height: 115%;
  object-fit: cover; object-position: 62% 40%;
  transform-origin: 60% 45%;
}
.js .hero-img { opacity: 0; transform: scale(1.12); filter: blur(14px) saturate(.7); }
.no-motion .hero-img { opacity: 1 !important; transform: none !important; filter: none !important; }

.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(1,37,43,.94) 0%, rgba(1,37,43,.78) 38%, rgba(1,37,43,.25) 72%, rgba(1,37,43,.1) 100%),
    linear-gradient(0deg, rgba(1,37,43,.9) 0%, rgba(1,37,43,0) 34%);
}

.hero-inner {
  flex: 1;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 9vh, 120px) var(--gutter) 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-place {
  font-size: 14px; font-weight: 500; color: var(--dorado);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-place::before { content: ''; width: 40px; height: 1px; background: var(--dorado); }

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--crema);
  margin-bottom: 30px;
  max-width: 12ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; font-weight: 500; color: var(--dorado); }
.js .hero-title .line > span { transform: translateY(110%); }
.js .hero-desc, .js .hero-btns, .js .hero-place, .js .hero-foot { opacity: 0; }
.no-motion .hero-title .line > span { transform: none !important; }
.no-motion .hero-desc, .no-motion .hero-btns, .no-motion .hero-place, .no-motion .hero-foot { opacity: 1 !important; }

.hero-desc { color: var(--crema-txt); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 44ch; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-foot {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--linea-osc);
  font-size: 13px; color: rgba(245,240,225,.7);
}
.hero-areas { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.hero-areas li { position: relative; }
.hero-areas li + li::before { content: ''; position: absolute; left: -16px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--dorado); transform: translateY(-50%); }
.hero-since { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--crema); }

/* ══════════ SERVICIOS ══════════ */
.servicios { padding: clamp(88px, 12vw, 150px) 0 clamp(72px, 10vw, 120px); background: var(--crema); }

.serv-index { border-bottom: 1px solid var(--linea); counter-reset: none; }
.serv-row { border-top: 1px solid var(--linea); position: relative; }
.serv-row > a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 56px;
  gap: 32px; align-items: center;
  padding: clamp(26px, 3.2vw, 40px) 0;
}
.sr-name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 2.9vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em;
  color: var(--verde);
  transition: transform .5s var(--ease-out), color .3s ease;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.sr-desc { color: var(--tinta-2); font-size: 15.5px; max-width: 52ch; transition: opacity .3s ease; position: relative; z-index: 1; }
.sr-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--linea); color: var(--verde);
  display: grid; place-items: center;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .5s var(--ease-out);
}
.sr-arrow svg { width: 22px; height: 22px; }
.sr-thumb {
  position: absolute; z-index: 2; top: 50%; left: 0;
  width: 220px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  pointer-events: none;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .55s var(--ease-out);
  box-shadow: var(--shadow);
  translate: -50% -50%;
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (min-width: 900px) {
  .serv-row > a:hover .sr-name { transform: translateX(12px); }
  .serv-row > a:hover .sr-desc { opacity: .35; }
  .serv-row > a:hover .sr-arrow { background: var(--verde); color: var(--dorado); border-color: var(--verde); transform: rotate(-45deg); }
  .serv-row > a:hover .sr-thumb { clip-path: inset(0 0 0 0); }
}
@media (hover: none), (max-width: 899px) { .sr-thumb { display: none; } }

/* ══════════ NOSOTROS ══════════ */
.nosotros { padding: clamp(88px, 12vw, 150px) 0; background: var(--papel); }
.nosotros-inner {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 110px); align-items: center;
}
.nos-visual { position: relative; margin: 0 0 40px; }
.nos-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: saturate(.85) contrast(1.02); }
.nos-since {
  position: absolute; right: -28px; bottom: -40px;
  width: min(260px, 70%);
  background: var(--verde); color: var(--crema);
  padding: 22px 24px 24px; border-radius: 4px;
  box-shadow: var(--shadow);
}
.ns-year { display: block; font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--dorado); letter-spacing: -.02em; margin-bottom: 8px; }
.ns-text { display: block; font-size: 14px; line-height: 1.45; color: var(--crema-txt); }

.nos-content .h-section { margin-bottom: 28px; max-width: 16ch; }
.nos-content > p { color: var(--tinta-2); font-size: 16.5px; margin-bottom: 16px; max-width: 58ch; }
.nos-content strong { color: var(--tinta); font-weight: 600; }

.nos-quote { position: relative; margin: 36px 0 36px; padding-left: 44px; }
.nos-quote::before {
  content: '“'; position: absolute; left: 0; top: -14px;
  font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--dorado);
}
.nos-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.4; color: var(--verde); max-width: 32ch; }

.nos-features { display: grid; gap: 18px; margin: 0 0 38px; padding-top: 30px; border-top: 1px solid var(--linea); }
.nos-features li { display: flex; gap: 16px; align-items: flex-start; }
.ico { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--dorado-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nos-features strong { display: block; font-size: 15.5px; color: var(--tinta); }
.nos-features span { font-size: 14.5px; color: var(--tinta-2); }

/* ══════════ POR QUÉ ══════════ */
.porq {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(96px, 13vw, 160px) 0;
  background: var(--verde);
  color: var(--crema);
}
.porq-media { position: absolute; inset: 0; z-index: -1; }
.porq-media img { width: 100%; height: 100%; object-fit: cover; opacity: .16; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.1); }
.porq-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--verde) 25%, rgba(2,65,74,.55) 100%); }

.porq-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.porq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.porq-head .h-section { color: var(--crema); margin-bottom: 22px; }
.porq-head .lead { color: var(--crema-txt); }

.porq-list { border-top: 1px solid var(--linea-osc); }
.porq-item {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px 40px;
  padding: 34px 0; border-bottom: 1px solid var(--linea-osc);
}
.porq-item dt { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; color: var(--crema); }
.porq-item dd { color: var(--crema-txt); font-size: 15.5px; }

/* ══════════ ÁREAS ══════════ */
.areas { padding: clamp(88px, 12vw, 150px) 0; background: var(--crema); }

.areas-tabs {
  position: relative;
  display: flex; gap: clamp(8px, 3vw, 40px);
  border-bottom: 1px solid var(--linea);
  margin-bottom: 40px;
  overflow-x: auto; scrollbar-width: none;
}
.areas-tabs::-webkit-scrollbar { display: none; }
.area-tab {
  background: none; border: none; cursor: pointer;
  padding: 14px 4px 18px;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 500;
  color: var(--tinta-2);
  transition: color .25s ease;
  white-space: nowrap;
}
.area-tab:hover { color: var(--verde); }
.area-tab.active { color: var(--verde); font-weight: 600; }
.tab-ink {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0;
  background: var(--dorado);
}
.no-tabink .tab-ink { display: none; }
.no-tabink .area-tab.active { box-shadow: inset 0 -2px var(--dorado); }

.area-panel[hidden] { display: none; }
.ap-inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: stretch;
  background: var(--blanco);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 56px);
  box-shadow: 0 30px 60px -40px rgba(1,37,43,.35);
}
.ap-info h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.015em; color: var(--verde); margin-bottom: 16px; }
.ap-info > p { font-size: 16px; color: var(--tinta-2); margin-bottom: 28px; max-width: 58ch; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 34px; }
.area-list li {
  font-size: 15px; color: var(--tinta);
  padding: 11px 0 11px 22px; position: relative;
  border-bottom: 1px solid var(--linea);
}
.area-list li::before { content: ''; position: absolute; left: 0; top: 22px; width: 10px; height: 1px; background: var(--dorado-ink); }

.ap-visual { position: relative; margin: 0; border-radius: 4px; overflow: hidden; min-height: 380px; background: var(--verde); }
.ap-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-tip {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--verde); color: var(--crema);
  padding: 20px 22px; border-radius: 4px;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.4;
}

/* ══════════ FAQ ══════════ */
.faq { padding: clamp(88px, 12vw, 150px) 0; background: var(--verde-d); color: var(--crema); }
.faq-inner { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head .h-section { color: var(--crema); margin-bottom: 20px; }
.faq-head .lead { color: var(--crema-txt); margin-bottom: 30px; }

.faq-list { border-top: 1px solid var(--linea-osc); }
.faq-item { border-bottom: 1px solid var(--linea-osc); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--crema);
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.35;
  padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  transition: color .2s ease;
}
.faq-q:hover, .faq-item.open .faq-q { color: var(--dorado); }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--dorado);
  transition: transform .4s var(--ease-out);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item.open .faq-plus::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--crema-txt); font-size: 16px; padding: 0 48px 28px 0; max-width: 64ch; }

/* ══════════ CONTACTO ══════════ */
.contacto { padding: clamp(88px, 12vw, 150px) 0; background: var(--crema); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.contacto-info .h-section { margin-bottom: 20px; }
.contacto-info .lead { margin-bottom: 40px; }

.contact-items { border-top: 1px solid var(--linea); }
.ci-item {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--linea);
  transition: background-color .25s ease;
}
.ci-item > * { transition: transform .35s var(--ease-out); }
a.ci-item:hover { background: rgba(255,255,255,.5); }
a.ci-item:hover > * { transform: translateX(10px); }
.ci-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--linea); color: var(--verde);
  display: grid; place-items: center; flex-shrink: 0;
}
.ci-whatsapp .ci-icon { background: #25D366; border-color: #25D366; color: var(--blanco); }
.ci-item strong { display: block; font-size: 14.5px; color: var(--tinta); }
.ci-item span span { font-size: 14px; color: var(--tinta-2); }

.contacto-form-wrap {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
  position: relative;
}
.contacto-form { position: relative; }
.contacto-form h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--verde); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--tinta); }
.form-group input, .form-group select, .form-group textarea, .cod-area-select {
  padding: 13px 14px;
  border: 1px solid rgba(2,65,74,.28);
  border-radius: var(--radius);
  font-size: 15px; font-family: var(--sans);
  color: var(--tinta); background: var(--papel);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6B7A7C; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .cod-area-select:focus {
  border-color: var(--verde); background: var(--blanco);
  box-shadow: 0 0 0 3px rgba(216,165,56,.35);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error { border-color: #B42318; background: #FFF6F5; }
.field-err { display: none; font-size: 13px; color: #B42318; }
.form-group.has-error .field-err { display: block; }

.phone-input { display: flex; gap: 8px; }
.cod-area-select { width: 104px; flex-shrink: 0; cursor: pointer; padding: 13px 8px; }
.phone-input input { flex: 1; min-width: 0; }

.form-note { font-size: 13.5px; color: var(--tinta-2); text-align: center; margin-top: 14px; }
.form-note a { color: var(--verde); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 32px;
  position: absolute; inset: -4px; background: var(--blanco);
}
.form-success.show { display: flex; }
.fs-icon { width: 64px; height: 64px; margin-bottom: 8px; fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fs-icon circle { stroke: var(--dorado); }
.form-success strong { font-family: var(--serif); font-size: 1.6rem; color: var(--verde); }
.form-success p { font-size: 15px; color: var(--tinta-2); max-width: 32ch; margin-bottom: 12px; }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--verde-dd); padding: 80px 0 0; color: var(--crema-txt); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 64px; }
.footer-logo-img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; margin-bottom: 6px; }
.footer-copy { font-size: 13px; color: rgba(245,240,225,.6); }
.footer-links h4, .footer-contact h4 { color: var(--dorado); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.footer-links a, .footer-contact a:not(.btn) {
  display: flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--crema-txt);
  transition: color .2s ease;
}
.footer-links a:hover, .footer-contact a:not(.btn):hover { color: var(--dorado); }
.footer-cta { margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--linea-osc);
  padding: 22px var(--gutter); text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: rgba(245,240,225,.6);
}
.footer-traso a { color: rgba(245,240,225,.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-traso a:hover { color: var(--dorado); }

/* ══════════ WhatsApp FAB ══════════ */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--blanco);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(10, 80, 40, .6);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-tooltip {
  position: absolute; right: 70px;
  background: var(--verde-dd); color: var(--crema);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: var(--radius);
  white-space: nowrap; opacity: 0; translate: 6px 0; pointer-events: none;
  transition: opacity .2s ease, translate .3s var(--ease-out);
}
.wa-fab:hover .wa-tooltip, .wa-fab:focus-visible .wa-tooltip { opacity: 1; translate: 0 0; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .nosotros-inner, .contacto-inner { grid-template-columns: 1fr; }
  .nos-visual { max-width: 520px; }
  .nos-since { right: -12px; }
  .porq-inner, .faq-inner { grid-template-columns: 1fr; }
  .porq-head, .faq-head { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .ap-inner { grid-template-columns: 1fr; }
  .ap-visual { min-height: 300px; order: -1; }
}

@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
  .split-head { grid-template-columns: 1fr; }
  .split-head .lead { justify-self: start; }
  .serv-row > a { grid-template-columns: 1fr 44px; gap: 12px 20px; }
  .sr-name { grid-column: 1; }
  .sr-desc { grid-column: 1 / -1; grid-row: 2; }
  .sr-arrow { grid-column: 2; grid-row: 1; width: 44px; height: 44px; }
  .porq-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
}

@media (max-width: 640px) {
  .hero-shade {
    background: linear-gradient(0deg, rgba(1,37,43,.96) 0%, rgba(1,37,43,.82) 45%, rgba(1,37,43,.45) 100%);
  }
  .hero-img { object-position: 70% 40%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-btns .btn { width: 100%; }
  .area-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .nos-since { position: relative; right: auto; bottom: auto; width: auto; margin: -48px 16px 0; }
  .nos-visual { margin-bottom: 0; }
  .faq-a p { padding-right: 0; }
  .ap-visual { min-height: 280px; }
  .ap-tip { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-stagger] > *, .js .hero-img,
  .js .hero-title .line > span, .js .hero-desc, .js .hero-btns, .js .hero-place, .js .hero-foot {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
  }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
