/* =========================================================
   Tu Defensoría Laboral en Buin — hoja de estilos (v2)
   Azul marino institucional + dorado + verde WhatsApp para la conversión
   Tipografías autoalojadas: Source Serif 4 (títulos) · Public Sans (texto)
   ========================================================= */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-wght.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-wght.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-wght.woff2") format("woff2-variations"),
       url("../fonts/public-sans-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #13233F;
  --navy-2: #1D3358;
  --navy-3: #0C1729;
  --ink: #1B2434;
  --muted: #536072;
  --line: #DDE2EA;
  --mist: #F3F5F9;
  --white: #FFFFFF;
  --gold: #C9A24B;          /* dorado vivo: fondos y adornos */
  --gold-2: #B28A36;
  --gold-soft: #E3C27A;     /* texto dorado sobre azul */
  --gold-ink: #82632A;      /* texto dorado sobre blanco (AA) */
  --gold-tint: #FBF5E8;
  --wa: #25D366;            /* verde oficial de WhatsApp */
  --wa-light: #2BE070;
  --wa-deep: #1EBE5D;
  --wa-ink: #0B2E1A;        /* texto sobre verde: contraste 7,4:1 */
  --wa-teal: #075E54;       /* verde oscuro de WhatsApp: íconos y cabecera */
  --wa-mint: #DCF8E6;
  --wa-grad: linear-gradient(135deg, var(--wa-light) 0%, var(--wa) 55%, var(--wa-deep) 100%);
  --wa-glow: 0 14px 30px -12px rgba(37, 211, 102, .75);
  --danger: #A8261B;
  --ok: #17663A;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(19, 35, 63, .06), 0 12px 32px -14px rgba(19, 35, 63, .25);
  --shadow-l: 0 30px 70px -30px rgba(12, 23, 41, .6);
  --header-h: 76px;
  --gutter: 20px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.65rem); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.24rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn .ico { width: 1.2rem; height: 1.2rem; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 10px 24px -12px rgba(19, 35, 63, .7); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-3); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-3); }
.btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--navy); }
.btn-wa { background: var(--wa-grad); color: var(--wa-ink); box-shadow: var(--wa-glow); }
.btn-wa .ico { color: var(--wa-teal); stroke-width: 2; }
.btn-wa:hover { color: var(--wa-ink); box-shadow: 0 18px 34px -12px rgba(37, 211, 102, .9); filter: brightness(1.05) saturate(1.1); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Botón grande de WhatsApp: el llamado a la acción principal */
.btn-wa-xl {
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: .6rem 1.2rem .6rem .6rem; min-height: 64px; border-radius: 999px;
  background: var(--wa-grad);
  color: var(--wa-ink); text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: var(--wa-glow), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(7, 94, 84, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-wa-xl::after { /* brillo que cruza el botón al pasar el cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-wa-xl:hover { color: var(--wa-ink); transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(37, 211, 102, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-wa-xl:hover::after { transform: translateX(120%); }
.wa-badge {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--wa-teal); color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .45);
}
.wa-badge .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.wa-lines { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.wa-lines strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.005em; }
.wa-lines small { font-size: .84rem; opacity: .85; margin-top: .2rem; font-weight: 500; white-space: nowrap; }
.wa-arrow { width: 1.2rem; height: 1.2rem; margin-left: .2rem; transition: transform .18s ease; }
.btn-wa-xl:hover .wa-arrow { transform: translateX(3px); }
.btn-wa-block { display: flex; width: 100%; margin: 1.5rem 0 .5rem; }
.btn-wa-block .wa-arrow { margin-left: auto; }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: var(--navy-3); color: rgba(255, 255, 255, .82); font-size: .86rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { display: flex; align-items: center; gap: .45rem; margin: 0; }
.topbar .ico { width: 1rem; height: 1rem; color: var(--gold-soft); }
.topbar-right { gap: 1.5rem !important; }
.topbar-right span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-soft); }
@media (max-width: 1100px) { .topbar-right > span { display: none; } }
@media (max-width: 900px) { .topbar-in > p:first-child { font-size: 0; gap: 0; } .topbar-in > p:first-child > .ico { display: none; } .topbar-ig { font-size: .86rem; margin-left: 0; padding-left: 0; border-left: 0; gap: .4rem; } }
@media (max-width: 760px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 260px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; }
.main-nav a { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--ink); font-size: .97rem; font-weight: 600; border-radius: var(--radius-s); }
.main-nav a:hover { color: var(--navy); background: var(--mist); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.btn-wa-head { min-height: 46px; padding: .55rem 1.1rem; font-size: .95rem; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--navy); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .ico { width: 24px; height: 24px; }
.menu-toggle .ico-close, .menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }
@media (max-width: 1080px) { .main-nav a { padding: .5rem .5rem; font-size: .93rem; } .brand img { width: 215px; } }
@media (max-width: 940px) {
  :root { --header-h: 66px; }
  .brand img { width: 196px; }
  .menu-toggle { display: inline-flex; }
  .btn-wa-head { margin-left: auto; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; }
  .btn-wa-head span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .btn-wa-head .ico { width: 24px; height: 24px; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .main-nav a { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; }
  .header-in { gap: .6rem; }
}
@media (max-width: 380px) { :root { --gutter: 16px; } .brand img { width: 170px; } }

/* ---------- Hero dividido: texto a la izquierda, fotografía a sangre a la derecha ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%);
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(6.5rem, 9vw, 8rem);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 8% 15%, rgba(201, 162, 75, .18), transparent 35%);
}
.hero-grid { width: 100%; }
.hero-copy { max-width: min(620px, 52%); position: relative; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: -1; background: var(--navy-2); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.hero-media::before { /* fundido del azul hacia la foto */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 35, 63, .7) 14%, rgba(19, 35, 63, .25) 32%, rgba(19, 35, 63, 0) 52%),
              linear-gradient(0deg, rgba(12, 23, 41, .55) 0%, rgba(12, 23, 41, 0) 35%);
}

.hero-badge {
  position: absolute; z-index: 3; left: clamp(2rem, 4vw, 3.5rem); bottom: clamp(6.5rem, 9vw, 8rem);
  width: 280px; padding: 1.1rem 1.25rem; background: #fff; color: var(--ink);
  border-radius: 16px; border-top: 4px solid var(--gold); box-shadow: 0 24px 50px -20px rgba(12, 23, 41, .8);
}
.hero-badge-top { display: block; font-size: .82rem; font-weight: 700; color: var(--gold-ink); }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); line-height: 1.15; margin: .1rem 0 .55rem; }
.hero-badge ul { display: grid; gap: .3rem; }
.hero-badge li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.hero-badge .ico { width: 1.05rem; height: 1.05rem; color: var(--gold-ink); }

.kicker { color: var(--gold-ink); font-weight: 700; font-size: .98rem; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .75rem; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.hero .kicker { color: var(--gold-soft); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 2.7vw, 3.5rem); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.9rem 0 1.6rem; }
.hero-quick p { margin: 0 0 .6rem; font-weight: 700; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-quick ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .45rem .95rem;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .93rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hero-quick a .ico { width: 1.1rem; height: 1.1rem; color: var(--wa); stroke-width: 2; }
.hero-quick a:hover { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.hero-quick a:hover .ico { color: var(--wa-teal); }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-badge { animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.page-hero-bg, .process-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-copy { max-width: 57%; }
  .hero-media { width: 41%; }
  .hero-badge { width: 230px; padding: .9rem 1rem; }
  .hero-badge strong { font-size: 1.25rem; }
  .btn-wa-xl { padding-right: 1rem; }
  .wa-lines strong { font-size: 1rem; }
}

/* Tablet y celular: la foto pasa arriba como banner y el texto debajo */
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; padding: 0 0 clamp(5.5rem, 12vw, 7rem); }
  .hero-media { position: relative; width: 100%; height: auto; z-index: 0; background: none; }
  .hero-media > img { display: block; height: clamp(240px, 50vw, 420px); }
  .hero-media::before { height: clamp(240px, 50vw, 420px); bottom: auto; }
  .hero-media::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(19, 35, 63, .35) 35%, rgba(19, 35, 63, 0) 65%); }
  .hero-media::after { display: none; }
  .hero-media > img { object-position: center 20%; }
  .hero-badge {
    position: relative; right: auto; bottom: auto; left: auto; width: auto; z-index: 3;
    margin: -2.25rem var(--gutter) 0; max-width: 640px; padding: .85rem 1.1rem;
  }
  .hero-badge ul { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
  .hero-badge strong { font-size: 1.25rem; margin-bottom: .35rem; }
  .hero-media { margin-bottom: 0; }
  .hero-grid { padding-top: 2.25rem; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 520px) {
  .hero-media > img, .hero-media::before { height: 240px; }
  .hero-badge li { font-size: .84rem; }
  .hero-ctas > * { width: 100%; }
  .btn-wa-xl .wa-arrow { margin-left: auto; }
  .btn-wa-xl { gap: .7rem; padding-right: .9rem; }
  .wa-lines strong { font-size: 1rem; }
  .wa-lines small { font-size: .8rem; }
  .hero-quick ul { gap: .4rem; }
  .hero-quick a { font-size: .88rem; padding: .4rem .8rem; }
}

/* ---------- Franja de confianza flotante ---------- */
.trust { position: relative; z-index: 2; margin-top: -4.5rem; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.trust-list li { display: flex; gap: .9rem; padding: 1.6rem 1.4rem; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-ink); flex: none; }
.trust-ico .ico { width: 24px; height: 24px; }
.trust-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; }
.trust-list p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust { margin-top: -3.5rem; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding: 1.1rem 1.1rem; }
  .trust-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3.75rem, 7.5vw, 6.5rem) 0; position: relative; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2.25rem; }
.sec-head h2 { margin: 0; position: relative; padding-bottom: .9rem; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.section-navy .sec-head p { color: rgba(255, 255, 255, .75); }
.sec-more { margin: 2.5rem 0 0; text-align: center; }
.sec-more .ico { width: 1rem; height: 1rem; }

/* Caminos trabajador / empresa con fotografía */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.path {
  position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--radius-l);
  overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; background: var(--navy);
  box-shadow: var(--shadow);
}
.path-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 23, 41, .1) 0%, rgba(12, 23, 41, .55) 45%, rgba(12, 23, 41, .95) 100%); }
.path-alt::before { background: linear-gradient(180deg, rgba(12, 23, 41, .1) 0%, rgba(29, 51, 88, .6) 45%, rgba(19, 35, 63, .97) 100%); }
.path:hover .path-bg { transform: scale(1.05); }
.path:hover { color: #fff; }
.path-in { display: flex; flex-direction: column; gap: .55rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.path-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; background: var(--gold); color: var(--navy-3); padding: .3rem .75rem; border-radius: 999px; }
.path-tag .ico { width: 1rem; height: 1rem; }
.path-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.15; }
.path-text { color: rgba(255, 255, 255, .85); max-width: 46ch; }
.path-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--gold-soft); margin-top: .25rem; }
.path-link .ico { width: 1.05rem; height: 1.05rem; transition: transform .18s ease; }
.path:hover .path-link .ico { transform: translateX(4px); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path { min-height: 320px; } }

/* Tarjetas de servicio con fotografía */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.svc {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(19, 35, 63, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-media { position: relative; aspect-ratio: 5 / 3; background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc-media img { transform: scale(1.05); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 23, 41, .35)); pointer-events: none; }
.svc-ico {
  position: absolute; left: 1.25rem; bottom: -26px; z-index: 1; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold-soft);
  border: 3px solid #fff; box-shadow: 0 6px 16px -6px rgba(12, 23, 41, .5);
}
.svc-ico .ico { width: 26px; height: 26px; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 2.1rem 1.4rem 1.4rem; }
.svc h3 { margin-bottom: .45rem; }
.svc p { color: var(--muted); font-size: .97rem; flex: 1; margin-bottom: 1.25rem; }
.svc-cta {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .6rem 1rem;
  border-radius: 999px; background: var(--wa-mint); color: var(--wa-ink); border: 1.5px solid #A8EBC2;
  font-weight: 700; font-size: .96rem; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.svc-cta .ico { width: 1.25rem; height: 1.25rem; color: var(--wa-teal); stroke-width: 2; }
.svc-cta:hover { background: var(--wa-grad); border-color: var(--wa); color: var(--wa-ink); box-shadow: var(--wa-glow); }
.svc-other { grid-column: span 2; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: var(--navy); position: relative; }
.svc-other::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, .35), transparent 70%); }
.svc-other .svc-body { justify-content: center; padding: 2.25rem; position: relative; }
.svc-other h3 { color: #fff; font-size: 1.7rem; }
.svc-other p { color: rgba(255, 255, 255, .82); flex: 0 0 auto; max-width: 52ch; }
.svc-other .btn-wa-xl { align-self: flex-start; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-other { grid-column: 1 / -1; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* Proceso con fotografía de fondo */
.process { overflow: hidden; isolation: isolate; }
.process-bg { opacity: .12; filter: grayscale(1); }
.process::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 10% 0%, rgba(201, 162, 75, .22), transparent 45%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 1.6rem 1.4rem; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy-3); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: rgba(255, 255, 255, .78); font-size: .96rem; margin: 0; }
.steps-note { display: flex; gap: .6rem; align-items: center; margin: 2.25rem 0 0; font-size: .93rem; color: rgba(255, 255, 255, .72); }
.steps-note .ico { color: var(--gold-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Nosotros: foto + texto */
.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { position: relative; isolation: isolate; }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius-l); z-index: -1; }
.about-photo > img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow); background: var(--navy); }
.about-photo figcaption {
  position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem; display: flex; align-items: center; gap: .8rem;
  background: rgba(19, 35, 63, .92); color: #fff; padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 600; backdrop-filter: blur(6px);
}
.about-photo figcaption img { width: 30px; height: auto; }
.about-copy > p { color: var(--muted); max-width: 60ch; }
.about-points { display: grid; gap: .65rem; margin: 1.25rem 0 1.75rem; }
.about-points li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.about-points .ico { color: #fff; background: var(--gold); border-radius: 50%; padding: 3px; width: 1.35rem; height: 1.35rem; margin-top: .15rem; stroke-width: 2.4; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 520px; margin-right: 18px; } }

/* CTA destacado */
.cta-final { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; z-index: -1; background: radial-gradient(circle, rgba(201, 162, 75, .32), transparent 60%); }
.cta-final::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold)); }
.cta-final-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.cta-final h2 { color: #fff; margin-bottom: .35rem; }
.cta-final p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
@media (max-width: 520px) { .cta-final-actions > * { width: 100%; } }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.25rem; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 1.6rem; height: 1.6rem; padding: .25rem; border-radius: 50%; background: var(--gold-tint); color: var(--gold-ink); transition: transform .2s ease, background-color .2s ease; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq details[open] summary .ico { transform: rotate(180deg); background: var(--gold); color: var(--navy-3); }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { display: grid; gap: .25rem; margin: 1rem 0 1.5rem; }
.contact-list a, .contact-list .ci { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--navy); }
.ci-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold-soft); flex: none; }
.ci-ico .ico { width: 1.25rem; height: 1.25rem; }
.contact-list small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.contact-list span { font-weight: 700; }
.contact-tip { display: flex; gap: .6rem; font-size: .93rem; color: var(--muted); background: var(--gold-tint); padding: .9rem 1rem; border-radius: var(--radius); }
.contact-tip .ico { color: var(--gold-ink); margin-top: .15rem; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* Formulario */
.form { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form-title { font-size: 1.45rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #C6CEDA; border-radius: var(--radius-s);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313233F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(201, 162, 75, .3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: .86rem; color: var(--muted); margin: .35rem 0 0; }
.err { font-size: .88rem; color: var(--danger); margin: .3rem 0 0; font-weight: 500; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--navy); }
.check label { font-weight: 400; font-size: .95rem; margin: 0; }
.check .err { grid-column: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; margin: .25rem 0 .5rem; }
.captcha-msg { font-size: .92rem; color: var(--muted); background: var(--mist); border-radius: var(--radius-s); padding: .75rem .9rem; margin: 0; }
.btn-submit { width: 100%; margin-top: .5rem; min-height: 54px; }
.btn-submit.is-loading .btn-label::after { content: "…"; }
.btn-submit.is-loading .ico { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-s); font-size: .95rem; }
.form-status.is-ok { background: #E8F4EC; color: var(--ok); border: 1px solid #BFDCC9; }
.form-status.is-error { background: #FBECEA; color: var(--danger); border: 1px solid #EFC5BF; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 90% 10%, rgba(201, 162, 75, .25), transparent 40%), linear-gradient(90deg, rgba(12, 23, 41, .95), rgba(19, 35, 63, .75) 60%, rgba(19, 35, 63, .55)); }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero .lead { color: rgba(255, 255, 255, .86); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft) 50%, transparent); }
.page-hero-plain { background: linear-gradient(120deg, var(--navy-3), var(--navy) 60%, var(--navy-2)); }
.page-404 .hero-ctas { margin-bottom: 0; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.jump a { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem 1.1rem; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 700; backdrop-filter: blur(4px); }
.jump a:hover { background: #fff; color: var(--navy); }
.jump .ico { color: var(--gold-soft); }
.jump a:hover .ico { color: var(--gold-ink); }
.svc-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; margin-bottom: 2.25rem; }
.svc-band > div:first-child { max-width: 56ch; }
.svc-band > div:first-child h2 { position: relative; padding-bottom: .9rem; }
.svc-band > div:first-child h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
.svc-band > div:first-child p { color: var(--muted); margin: 0; }
.band-offer { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius-l); padding: 1.2rem 1.5rem; border-left: 5px solid var(--gold); }
.band-offer p { margin: 0 0 .5rem; }
.band-offer strong { font-family: var(--serif); font-size: 1.45rem; color: #fff; font-weight: 600; }
.band-offer ul { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .94rem; }
.band-offer li { display: flex; align-items: center; gap: .35rem; }
.band-offer .ico { color: var(--gold-soft); width: 1.05rem; height: 1.05rem; }
.band-offer-light { background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--gold); max-width: 440px; }
.band-offer-light strong { color: var(--navy); }
.band-offer-light p { color: var(--muted); font-size: .95rem; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.4rem); border-top: 5px solid var(--gold); box-shadow: 0 1px 2px rgba(19, 35, 63, .05); }
.mv-card p { color: var(--muted); }
.mv-card-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: var(--navy); border-top-color: var(--gold); }
.mv-card-navy h2 { color: #fff; }
.mv-card-navy p { color: rgba(255, 255, 255, .82); }
.val-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-ink); margin-bottom: 1rem; }
.val-ico .ico { width: 28px; height: 28px; }
.mv-card-navy .val-ico { background: rgba(201, 162, 75, .18); color: var(--gold-soft); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease; }
.values li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.values p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split p { color: var(--muted); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.quote-card { display: flex; gap: 1rem; border-left: 4px solid var(--gold); background: var(--gold-tint); padding: 1.4rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.5rem; }
.quote-card .ico { color: var(--gold-ink); width: 1.8rem; height: 1.8rem; }
.quote-card p { margin: 0; color: var(--ink); }
.comunas { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.comunas li { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 700; color: var(--navy); }
.comunas .ico { color: var(--gold-ink); }
@media (max-width: 420px) { .comunas { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #343e4f; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .5rem; }
mark.pending { background: #FFF3C4; color: #6B4E00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .78); padding: 4rem 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 2rem 3rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 250px; margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; }
.footer-h { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .9rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gold-soft); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.footer-contact .ico { color: var(--gold-soft); width: 1.1rem; height: 1.1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; padding-bottom: 6rem; font-size: .86rem; color: rgba(255, 255, 255, .65); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-legal p { margin: 0; max-width: 80ch; }
.footer-legal strong { color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barra inferior móvil (llamar + WhatsApp) ---------- */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    display: grid; grid-template-columns: auto 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(12, 23, 41, .5); backdrop-filter: blur(8px);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .mbar .ico { width: 1.35rem; height: 1.35rem; }
  .mbar-call { padding: 0 1.2rem; background: var(--navy); color: #fff; }
  .mbar-wa { background: var(--wa-grad); color: var(--wa-ink); box-shadow: var(--wa-glow); }
  .mbar-wa .ico { color: var(--wa-teal); stroke-width: 2; }
  .mbar-call:hover { color: #fff; }
  .mbar-wa:hover { color: var(--wa-ink); }
  body { padding-bottom: 76px; }
  .site-footer .footer-legal { padding-bottom: 2rem; }
}

/* ---------- Asistente de WhatsApp ---------- */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-launcher {
  position: relative; display: flex; align-items: center; gap: .7rem; padding: .45rem 1.3rem .45rem .45rem; min-height: 62px;
  border: 0; border-radius: 999px; cursor: pointer; color: var(--wa-ink); font-size: 1rem;
  background: var(--wa-grad);
  box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .8), 0 0 0 3px #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-launcher:hover { transform: translateY(-2px); }
.wa-launcher-ico { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wa-teal); color: #fff; flex: none; }
.wa-launcher-ico .ico { width: 28px; height: 28px; stroke-width: 1.8; }
.wa-launcher-ico::before { /* pulso suave para llamar la atención */
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-launcher-txt { white-space: nowrap; font-weight: 500; }
.wa-launcher-txt strong { font-weight: 800; }
.wa-widget[data-state="open"] .wa-launcher { display: none; }
.wa-widget[data-state="min"] .wa-launcher::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; top: 0; right: 8px; }
@media (max-width: 1280px) {
  .wa-launcher { padding: .4rem; min-height: 0; }
  .wa-launcher-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 720px) {
  .wa-launcher { display: none; }  /* en móvil la barra inferior cumple esa función */
  .wa-widget { right: 8px; left: 8px; bottom: 8px; }
}
.wa-panel {
  width: min(390px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 40px)); background: #fff;
  border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(12, 23, 41, .55), 0 0 0 1px rgba(19, 35, 63, .08);
  transform-origin: bottom right; animation: wa-in .22s ease-out;
}
.wa-panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.wa-head { display: flex; align-items: center; gap: .75rem; background: var(--wa-teal); color: #fff; padding: .9rem .7rem .9rem 1rem; }
.wa-head-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wa); color: var(--wa-teal); flex: none; }
.wa-head-ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.wa-head-text { flex: 1; min-width: 0; }
.wa-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.25; outline: none; }
.wa-head p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .85); line-height: 1.3; }
.wa-icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--radius-s); background: transparent; color: #fff; cursor: pointer; }
.wa-icon-btn:hover { background: rgba(255, 255, 255, .15); }
.wa-icon-btn .ico { width: 20px; height: 20px; }
.wa-body { flex: 1; overflow-y: auto; padding: 1rem; background: #EFEAE2; background-image: radial-gradient(rgba(19, 35, 63, .05) 1px, transparent 1px); background-size: 14px 14px; overscroll-behavior: contain; }
.wa-log { display: flex; flex-direction: column; gap: .6rem; }
.wa-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.45; animation: wa-msg .18s ease-out; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); margin: 0; }
@keyframes wa-msg { from { opacity: 0; transform: translateY(4px); } }
.wa-msg-bot { background: #fff; border-top-left-radius: 4px; align-self: flex-start; }
.wa-msg-user { background: #D9FDD3; color: var(--ink); border-top-right-radius: 4px; align-self: flex-end; }
.wa-actions { margin-top: .85rem; display: grid; gap: .45rem; }
.wa-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; min-height: 46px; padding: .6rem .9rem;
  border: 1.5px solid #D5DCE5; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 600; font-size: .93rem;
  cursor: pointer; transition: border-color .12s ease, background-color .12s ease;
}
.wa-opt:hover { border-color: var(--wa); background: #F0FCF4; }
.wa-opt .ico { width: 1.1rem; height: 1.1rem; color: var(--wa-teal); }
.wa-opt-alt { border-style: dashed; color: var(--ink); font-weight: 500; }
.wa-back { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; border: 0; background: none; color: var(--muted); font-size: .88rem; padding: .4rem .2rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.wa-back .ico { width: 1rem; height: 1rem; }
.wa-text label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.wa-text textarea { width: 100%; min-height: 96px; padding: .65rem .75rem; border: 1.5px solid #C6CEDA; border-radius: 12px; resize: vertical; font-size: .95rem; background: #fff; }
.wa-text textarea:focus { outline: none; border-color: var(--wa-teal); box-shadow: 0 0 0 3px rgba(37, 211, 102, .3); }
.wa-text .wa-count { font-size: .8rem; color: var(--muted); text-align: right; margin: .2rem 0 0; }
.wa-text .wa-warn { font-size: .82rem; color: var(--muted); margin: .25rem 0 0; }
.wa-preview { background: #D9FDD3; border-radius: 12px; border-top-right-radius: 4px; padding: .75rem .85rem; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-preview-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0; }
.wa-go {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; border-radius: 999px;
  background: var(--wa-grad); color: var(--wa-ink); font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--wa-glow);
}
.wa-go .ico { color: var(--wa-teal); stroke-width: 2; }
.wa-go:hover { color: var(--wa-ink); filter: brightness(1.05) saturate(1.1); }
.wa-go .ico { width: 1.3rem; height: 1.3rem; }
.wa-row { display: flex; gap: .5rem; }
.wa-row > * { flex: 1; }
.wa-secondary { min-height: 46px; border: 1.5px solid #D5DCE5; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; cursor: pointer; }
.wa-secondary:hover { border-color: var(--navy); }
.wa-foot { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .6rem 1rem; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.wa-foot .ico { width: .95rem; height: .95rem; }
@media (max-width: 720px) { .wa-panel { width: 100%; max-height: calc(100dvh - 16px); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wa-launcher-ico::before { display: none; }
}

/* ---------- Impresión ---------- */
@media print { .topbar, .site-header, .wa-widget, .mbar, .form, .site-footer, .cta-final { display: none !important; } }

/* ---------- Instagram ---------- */
:root { --ig-grad: linear-gradient(135deg, #D62976 0%, #C13584 45%, #833AB4 100%); --ig-ring: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }
.btn-ig { background: var(--ig-grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(193, 53, 132, .8); }
.btn-ig:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 16px 30px -12px rgba(193, 53, 132, .95); }
.btn-ig .ico { stroke-width: 2; }
.topbar p { gap: .45rem; }
.topbar-ig { margin-left: 1.25rem; padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .2); }
.nav-ig { display: none; }
@media (max-width: 940px) {
  .nav-ig { display: block; }
  .nav-ig a { display: flex !important; align-items: center; gap: .6rem; color: #C13584 !important; font-weight: 700; }
  .nav-ig .ico { width: 1.3rem; height: 1.3rem; }
}
.ig-band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: #fff; }
.ig-in {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-l); position: relative; isolation: isolate;
  background: linear-gradient(#fff, #fff) padding-box, var(--ig-ring) border-box; border: 3px solid transparent;
  box-shadow: 0 20px 50px -30px rgba(193, 53, 132, .6);
}
.ig-avatar { display: block; width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: var(--ig-ring); flex: none; }
.ig-avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 3px solid #fff; }
.ig-avatar img { width: 42px; height: auto; }
.ig-kicker { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-weight: 700; font-size: .9rem; color: #A3246B; }
.ig-kicker .ico { width: 1.1rem; height: 1.1rem; }
.ig-copy h2 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ig-copy p:last-child { margin: 0; color: var(--muted); }
.ig-copy a { color: #A3246B; text-decoration: none; overflow-wrap: anywhere; }
.ig-copy a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .ig-in { grid-template-columns: auto 1fr; }
  .ig-in .btn-ig { grid-column: 1 / -1; width: 100%; }
  .ig-avatar { width: 72px; height: 72px; }
}
.footer-btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Ajustes de pantallas muy angostas */
.btn-wa-xl { max-width: 100%; }
@media (max-width: 420px) {
  .wa-lines { min-width: 0; }
  .wa-lines small { white-space: normal; }
  .svc-other .svc-body { padding: 1.5rem 1.1rem; }
  .svc-other .btn-wa-xl { width: 100%; }
}
