/* H&H Consultores — estilos del sitio
   Colores del manual de marca: navy #1B2E49 (Pantone 7463C), verde #4EBF8C (Pantone 3395C), gris #4D4D4A */

:root {
  --navy: #1B2E49;
  --navy-900: #0F1C2E;
  --navy-700: #24406A;
  --green: #4EBF8C;
  --green-600: #2F9E6C;
  --green-50: #EAF7F0;
  --gray: #4D4D4A;
  --ink: #16202E;
  --muted: #5E6877;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .06), 0 8px 24px rgba(16, 30, 54, .07);
  --shadow-lg: 0 24px 60px rgba(16, 30, 54, .18);
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; overflow-x: clip; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.kicker { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--green); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--light h2 { color: #fff; }
.section-intro { color: var(--muted); font-size: 1.075rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--green); color: var(--navy-900); box-shadow: 0 8px 22px rgba(78, 191, 140, .35); }
.btn--primary:hover { background: #5fd09d; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); margin-top: .5rem; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--wa { background: #25D366; color: #06371b; margin-top: 8px; }
.btn--wa:hover { background: #2fe174; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-mark { width: 30px; height: auto; aspect-ratio: 176 / 218; flex: none; color: var(--green); }
.logo-text { font-family: "Raleway", var(--font-head); color: var(--navy); font-size: 1.22rem; line-height: 1; letter-spacing: .07em; white-space: nowrap; }
.logo-text strong { font-weight: 500; }
.logo-text span { font-weight: 300; }
.logo--light .logo-text { color: #fff; }
@media (max-width: 420px) { .logo-mark { width: 26px; } .logo-text { font-size: 1.02rem; letter-spacing: .05em; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(16, 30, 54, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover, .nav a.is-active { background: var(--green-50); color: var(--green-600); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); transition: border-color .2s, background .2s; }
.lang-switch:hover { border-color: var(--navy); background: var(--bg-soft); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); border-radius: 10px; }
.menu-toggle .ico-close { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .hide-sm { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(16, 30, 54, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease; }
  .nav ul { flex-direction: column; padding: 12px 20px 22px; }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .menu-toggle .ico-open { display: none; }
  body.nav-open .menu-toggle .ico-close { display: block; }
}
@media (max-width: 420px) { .lang-switch span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2b4c7c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -120px; bottom: -200px; background: radial-gradient(circle, rgba(78, 191, 140, .35), transparent 65%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 0%, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green), #9be6c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .8); max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges .ico { color: var(--green); }

.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.hero-card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 4px 6px 14px; }
.quick { display: grid; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.quick a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(78, 191, 140, .5); transform: translateX(4px); }
.quick strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.quick small { display: block; color: rgba(255, 255, 255, .68); font-size: .88rem; line-height: 1.4; }
.qi-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(78, 191, 140, .16); color: var(--green); }
.qi-arrow { margin-left: auto; flex: none; color: rgba(255, 255, 255, .5); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { padding: 28px 22px 34px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 8px; }
.stat span { color: rgba(255, 255, 255, .72); font-size: .93rem; line-height: 1.4; display: block; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 520px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .stat { padding: 22px 14px 26px; }
}

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-cards { display: grid; gap: 18px; }
.mv { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); position: relative; }
.mv h3 { margin-bottom: .35em; }
.mv p { margin: 0; color: var(--muted); }
.mv-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green-50); color: var(--green-600); margin-bottom: 14px; }
.mv--values { background: var(--navy); border-color: var(--navy); }
.mv--values h3 { color: #fff; }
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values li { padding: .5rem 1.1rem; border-radius: 999px; background: rgba(78, 191, 140, .16); color: #b8f0d5; font-family: var(--font-head); font-weight: 600; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { background: var(--bg-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .55rem 1.05rem; border-radius: 999px; font-weight: 500; font-size: .93rem; transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.svc[hidden] { display: none; }
.svc-btn { width: 100%; height: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 6px; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
.svc-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--navy-700)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.svc-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-btn:hover::after { transform: scaleX(1); }
.svc-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--green-50); color: var(--green-600); margin-bottom: 10px; flex: none; }
.svc-cat { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-title { font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; line-height: 1.3; color: var(--navy); }
.svc-sum { color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 10px; font-weight: 600; font-size: .92rem; color: var(--green-600); }
.svc-btn:hover .svc-more .ico { transform: translateX(3px); }
.svc-more .ico { transition: transform .2s; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 48px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(15, 28, 46, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner { padding: 32px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg-soft); border: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); }
.modal-close:hover { background: var(--line); }
.modal-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; padding-right: 40px; }
.modal-head .svc-ico { margin: 0; }
.modal-head h3 { font-size: 1.4rem; margin: 2px 0 0; }
.modal-head .svc-cat { margin: 0; }
#modal-desc { color: var(--muted); }
.modal-points { display: grid; gap: 10px; margin: 18px 0; }
.modal-points li { display: flex; gap: 10px; align-items: flex-start; }
.modal-points .ico { color: var(--green-600); flex: none; margin-top: 2px; }
.modal-note { font-size: .88rem; color: var(--muted); background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 520px) { .modal-inner { padding: 26px 20px; } }

/* ---------- Proceso ---------- */
.process { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; background: radial-gradient(circle, rgba(78, 191, 140, .18), transparent 65%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step-n { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--green); line-height: 1; margin-bottom: 18px; }
.step h3 { color: #fff; }
.step p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--navy); transition: transform .25s, background .25s, color .25s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--green); color: var(--navy-900); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- Equipo ---------- */
.team { background: var(--bg-soft); padding-bottom: clamp(56px, 8vw, 90px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.member { display: flex; align-items: center; gap: 20px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy)); box-shadow: inset 0 0 0 3px rgba(78, 191, 140, .7); }
.member h3 { margin: 0; }
.member p { margin: 2px 0 6px; color: var(--muted); font-size: .95rem; }
.member a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--green-600); text-decoration: none; font-weight: 500; word-break: break-all; }
.member a:hover { text-decoration: underline; }

/* ---------- Contacto ---------- */
.contact-grid > *, .row > *, .about-grid > *, .faq-grid > *, .hero-inner > * { min-width: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 28px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list > li > .ico { width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green-600); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a, .contact-list span { color: var(--navy); font-weight: 600; text-decoration: none; display: block; }
.contact-list a:hover { color: var(--green-600); }
.contact-list .link-ext { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; color: var(--green-600); margin-top: 4px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink); border: 0; padding: 0; margin: 0; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(78, 191, 140, .18); }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid { border-color: #d64545; background: #fff6f6; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.radios legend { margin-bottom: 6px; width: 100%; }
.radio { display: inline-flex; position: relative; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; transition: all .2s; }
.radio input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.form-msg { margin: 0; font-size: .93rem; min-height: 1.4em; color: var(--green-600); font-weight: 500; }
.form-msg.is-error { color: #c23a3a; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 56px 0 40px; font-size: .94rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; align-items: start; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; }
.footer-cities { color: var(--green); font-weight: 600; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal p { margin: 0 0 8px; }
.footer-legal .muted { color: rgba(255, 255, 255, .5); font-size: .85rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Fotos ---------- */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .2; filter: saturate(.6) contrast(1.05); mix-blend-mode: luminosity; mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.about-photo { position: relative; margin: 32px 0 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(27, 46, 73, .18); aspect-ratio: 3 / 2; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); display: inline-flex; align-items: center; gap: .5rem; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--navy); font-weight: 600; font-size: .95rem; }
.about-photo figcaption .ico { color: var(--green); flex: none; }
.gallery { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.g-item { position: relative; border-radius: 20px; overflow: hidden; background: var(--navy); }
.g-item:first-child { grid-row: span 2; }
.g-item:nth-child(4) { grid-column: span 2; }
.g-item picture, .g-item img { display: block; width: 100%; height: 100%; }
.g-item img { object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 30, 48, .82) 0%, transparent 55%); }
.g-item span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.process-bg { position: absolute; inset: 0; }
.process-photo { width: 100%; height: 100%; object-fit: cover; opacity: .12; mix-blend-mode: luminosity; }
.process > .container { position: relative; }
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .g-item:first-child { grid-row: auto; grid-column: span 2; }
  .g-item:nth-child(4) { grid-column: auto; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .g-item:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* Campo trampa para bots (invisible para personas) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-ok { color: #1f8a5b; font-weight: 600; }
.contact-form { position: relative; }

/* ---------- Portada con las abogadas ---------- */
@media (min-width: 961px) { .hero-inner { grid-template-columns: 1fr 1.05fr; align-items: end; } }
.hero-duo { position: relative; margin: 0 -20px 0 0; align-self: end; }
.hero-duo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.hero-duo::before { content: ""; position: absolute; z-index: 0; left: 8%; right: 4%; top: 6%; bottom: 0; border-radius: 50% 50% 0 0; background: radial-gradient(closest-side, rgba(78, 191, 140, .35), rgba(78, 191, 140, .08) 70%, transparent); }
.duo-mark { position: absolute; z-index: 0; width: 46%; left: 27%; top: -4%; fill: none; stroke: rgba(78, 191, 140, .35); stroke-width: 2; }
.hero-quick { position: relative; z-index: 2; }
.quick-title { color: #fff; font-family: var(--font-head); font-weight: 600; margin: 36px 0 12px; }
.quick--row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick--row li a { height: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 960px) { .hero-duo { margin: 8px auto 0; width: 100%; max-width: 560px; } .quick--row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .quick--row { grid-template-columns: 1fr; } }

/* Ajustes feedback del cliente */
.stats { grid-template-columns: repeat(3, 1fr); }
.quick--row { grid-template-columns: repeat(5, 1fr); }
.quick--row li a { padding: 12px; gap: 10px; }
.quick--row .qi-arrow { display: none; }
.contact-list > li > svg:first-child { width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green-600); }
.stat:last-child { border-right: 0; }
@media (max-width: 1100px) { .quick--row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .stats { grid-template-columns: 1fr 1fr 1fr; } .stat:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, .12); } .stat:nth-child(-n+2) { border-bottom: 0; } .quick--row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat, .stat:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); } .stat:last-child { border-bottom: 0; } .quick--row { grid-template-columns: 1fr; } }
