/* FL Sanitaria — estilos principales
   Fondo azul noche con verde (acción), azul y morado (detalles). Sin arcoíris:
   el verde manda, azul y morado acompañan en íconos, pasos y bordes.
   Contrastes de texto verificados (WCAG AA ≥ 4.5:1). */
:root {
  --green: #20d18a;
  --green-hi: #3fe0a0;
  --blue: #2999f5;
  --purple: #9945f5;
  --ink-deep: #0b1626;
  --white: #fff;

  --bg: #0b1626;            /* fondo */
  --bg-2: #0e1c2f;          /* banda alterna */
  --surface: #11213a;       /* tarjetas */
  --surface-2: #152944;
  --ink: #eef3f8;           /* 15.9:1 sobre --bg */
  --muted: #a9b8c8;         /* 8.6:1 */
  --line: rgba(124, 192, 255, .14);
  --line-strong: rgba(124, 192, 255, .28);
  --green-text: #20d18a;    /* 8.9:1 */
  --blue-text: #7cc0ff;     /* 8.7:1 */
  --purple-text: #c4a0ff;   /* 8.0:1 */
  --green-tint: rgba(32, 209, 138, .12);
  --blue-tint: rgba(41, 153, 245, .14);
  --purple-tint: rgba(153, 69, 245, .16);
  --err: #ff8a80;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Montserrat Fallback", var(--font);
  color-scheme: dark;
}
/* Modo claro: solo lo usa el panel de fotos (admin.html) */
:root[data-theme="light"] {
  --bg: #f4f7fb; --bg-2: #eef3f9; --surface: #fff; --surface-2: #f7f9fc;
  --ink: #15263c; --muted: #5d6f85; --line: #e3e9f0; --line-strong: #c9d5e3;
  --green-text: #0a7d52; --blue-text: #1f5fc9; --purple-text: #7c2fd6;
  --green-tint: #e9faf3; --blue-tint: #eaf5fe; --purple-tint: #f5ecfe;
  --err: #b42318; --shadow: 0 10px 30px rgba(21, 38, 60, .08);
  color-scheme: light;
}

@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 113.4%; ascent-override: 85%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--green); color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.ico { width: 22px; height: 22px; flex: none; }
.ico-arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ink-deep); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Animaciones (js/animaciones.js): estado inicial oculto solo si JS + Motion están activos */
.anim [data-reveal], .anim [data-stagger] > *, .anim [data-pop] { opacity: 0; }
/* Hero: entra con CSS desde el primer pintado (no espera a la librería) */
.anim [data-hero] { animation: rise .7s var(--ease) both; }
.anim [data-hero]:nth-child(2) { animation-delay: .06s; } .anim [data-hero]:nth-child(3) { animation-delay: .12s; }
.anim [data-hero]:nth-child(4) { animation-delay: .18s; } .anim [data-hero]:nth-child(5) { animation-delay: .24s; }
.anim [data-hero-media] img { animation: wipe 1.1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes wipe { from { clip-path: polygon(var(--cut) 0, var(--cut) 0, 0 100%, 0 100%); } to { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); } }


/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 15px/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover .ico-arrow, .svc-ask:hover .ico-arrow, .text-link:hover .ico-arrow, .svc-mini:hover .ico-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-green { background: var(--green); color: var(--ink-deep); box-shadow: 0 8px 24px rgba(32, 209, 138, .25); }
.btn-green:hover { background: var(--green-hi); box-shadow: 0 10px 30px rgba(32, 209, 138, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-white { background: var(--white); color: var(--ink-deep); }
.btn-white:hover { background: #e6f9f0; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); }
.btn-dark { background: var(--ink); color: var(--bg); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: linear-gradient(90deg, #1f5fc9, #7c2fd6); color: var(--white); font-size: 14px; }
.topbar .container { display: flex; justify-content: center; }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.topbar-link svg { width: 18px; height: 18px; }
.topbar-link:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 22, 38, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--ink); }
:root[data-theme="light"] .site-header { background: rgba(255, 255, 255, .92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; }
.logo-text { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: .3px; color: var(--ink); white-space: nowrap; }
.logo-text b { color: var(--green); }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { padding: 12px 12px; border-radius: 8px; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; }
.theme-toggle .ico-sun, :root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: inline; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 16px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav-cta { margin: 16px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 380px) { .logo-text { font-size: 20px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 52px 0 40px; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 0% 0%, rgba(41, 153, 245, .12), transparent 70%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-slogan { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); color: var(--green-text); }
.hero-slogan > svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.hero h1 { font-size: clamp(30px, 2.9vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.h1-accent { display: block; margin-top: 8px; color: var(--green-text); font-size: .86em; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 26px 0 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 14px; font-weight: 600; }
.checks li { display: inline-flex; align-items: center; gap: 7px; padding-right: 12px; margin-right: 12px; white-space: nowrap; border-right: 1px solid var(--line-strong); }
.checks li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.checks .ico { color: var(--green); width: 20px; height: 20px; }
.hero-media { --cut: 9%; position: relative; margin: 0 calc((100vw - min(1180px, 100vw - 32px)) / -2) 0 0; }
.hero-media picture, .hero-media img { display: block; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
@media (min-width: 1200px) { .checks { flex-wrap: nowrap; } }
@media (max-width: 960px) {
  .hero { padding: 20px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero-media { --cut: 7%; order: 5; margin: 4px -16px 20px; }
  /* En celular y tablet la imagen se ve completa: sin corte diagonal ni recorte */
  .hero-media img, .hero-media.page-media img { aspect-ratio: auto; height: auto; clip-path: none; object-fit: contain; }
  .anim [data-hero-media] img { animation: rise .8s var(--ease) .15s both; }
    .checks { order: 6; }
  .hero h1 { font-size: clamp(28px, 7.6vw, 40px); }
  .lead { font-size: 16.5px; }
  .actions { margin: 20px 0 20px; }
  .actions .btn { flex: 1 1 220px; }
}
@media (max-width: 520px) {
  .lead-more { display: none; }
  .checks { flex-direction: column; gap: 8px; }
  .checks li { border: 0; margin: 0; padding: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 24px 0 56px; }
.section-head { max-width: 860px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 700px) { .section { padding: 52px 0; } .section-head { margin-bottom: 28px; } }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.svc { grid-column: span 3; position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 22px; transition: background .25s, transform .35s var(--ease), box-shadow .35s; }
.svc-grid > .svc:nth-child(n+5) { grid-column: span 4; }
.svc:hover, .svc:has(.svc-link:focus-visible) { background: var(--surface-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.tone-green { --tone: var(--green); --tone-text: var(--green-text); }
.tone-blue { --tone: var(--blue); --tone-text: var(--blue-text); }
.tone-purple { --tone: var(--purple); --tone-text: var(--purple-text); }
.svc-link { display: block; }
.svc-ico { width: 34px; height: 34px; color: var(--tone-text); margin-bottom: 14px; stroke-width: 1.6; }
.svc h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.svc-link:hover h3 { color: var(--tone-text); }
.svc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-link:focus-visible { outline: none; }
.svc:has(.svc-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.svc p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; }
.svc-ask { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--ink); }
.svc-ask:hover { color: var(--green-text); }
.svc-other { text-align: center; color: var(--muted); margin: 24px 0 0; }
@media (max-width: 960px) {
  .svc-grid > .svc, .svc-grid > .svc:nth-child(n+5) { grid-column: span 6; }
  .svc-grid > .svc:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .svc-grid { gap: 10px; }
  .svc-grid > .svc { padding: 16px 14px 6px; }
  .svc-grid .svc-ico { width: 28px; height: 28px; margin-bottom: 10px; }
  .svc-grid .svc h3 { font-size: 15.5px; line-height: 1.25; }
  .svc-grid .svc p { display: none; }
  .svc-grid .svc-ask { font-size: 14px; }
}

/* ---------- Pasos ---------- */
/* ---------- Línea de tiempo: Escríbenos → Evaluamos → Lo resolvemos ----------
   Cada etapa se enciende a medida que haces scroll (vertical en celular, horizontal en PC).
   --p (0 a 1) lo actualiza js/animaciones.js; sin JS o con menos movimiento, todo encendido. */
.timeline { --p: 1; --ico: 56px; list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
.anim .timeline { --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: calc(var(--ico) / 2 - 1.5px); left: calc((100% - 112px) / 6); width: calc((100% - 112px) * 2 / 3 + 112px); height: 3px; border-radius: 3px; background: var(--line-strong); }
.timeline::after { background: linear-gradient(90deg, var(--green), var(--blue) 50%, var(--purple)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 12px rgba(41, 153, 245, .45); }
.tl-step { position: relative; z-index: 1; text-align: center; }
.tl-ico { display: grid; place-items: center; width: var(--ico); height: var(--ico); border-radius: 50%; margin: 0 auto 18px; background: var(--bg); border: 2px solid var(--line-strong); color: var(--muted); transition: color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease); }
.tl-ico svg { width: 26px; height: 26px; }
.tl-step h3 { font-size: 21px; margin: 0 0 6px; transition: color .45s var(--ease), opacity .45s var(--ease); }
.tl-step p { color: var(--muted); margin: 0 auto; font-size: 15px; max-width: 30em; transition: opacity .45s var(--ease); }
.tl-step.is-lit .tl-ico { color: var(--tone-text); border-color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, var(--bg)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 14%, transparent), 0 0 26px color-mix(in srgb, var(--tone) 45%, transparent); transform: scale(1.06); }
.anim .tl-step:not(.is-lit) h3 { opacity: .45; }
.anim .tl-step:not(.is-lit) p { opacity: .35; }
html:not(.anim) .tl-step .tl-ico { color: var(--tone-text); border-color: var(--tone); }
@media (max-width: 800px) {
  .timeline { --ico: 52px; grid-template-columns: 1fr; gap: 34px; }
  .timeline::before, .timeline::after { top: calc(var(--ico) / 2); left: calc(var(--ico) / 2 - 1.5px); width: 3px; height: calc(100% - var(--ico) - 10px); }
  .timeline::after { background: linear-gradient(180deg, var(--green), var(--blue) 50%, var(--purple)); transform-origin: top; transform: scaleY(var(--p)); }
  .tl-step { display: grid; grid-template-columns: var(--ico) 1fr; gap: 18px; align-items: start; text-align: left; }
  .tl-step p { margin: 0; }
  /* tapa el tramo de línea que sobra debajo del último ícono */
  .tl-step:last-child::before { content: ""; position: absolute; left: calc(var(--ico) / 2 - 4px); top: var(--ico); bottom: -12px; width: 8px; background: var(--bg); }
  .tl-ico { margin: 0; }
  .tl-step h3 { margin-top: 12px; }
}

/* ---------- Galería por álbumes ---------- */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.albums[hidden], .album-view[hidden] { display: none; }
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); isolation: isolate; }
.album-cover { aspect-ratio: 16 / 9; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album-cover img:not(:first-child) { display: none; }
.album:hover .album-cover img { transform: scale(1.05); }
.album-body { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(8, 16, 28, .92)); color: var(--white); }
.album-body h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0; }
.album-body h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--green); }
.album-body p { display: none; }
.album-count { position: absolute; right: 14px; bottom: 13px; font-size: 13px; font-weight: 600; color: #cfe0f0; }
.album-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 20px; }
.album-head h3 { font-size: 24px; margin: 0; }
.album-head p { margin: 0; color: var(--muted); }
.album-back { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); font-weight: 700; font-size: 14px; border: 1px solid rgba(32, 209, 138, .4); }
.album-back:hover { background: var(--green); color: var(--ink-deep); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgba(8, 16, 28, .85); color: var(--white); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; }
.stage-antes { background: var(--white); color: var(--ink-deep); }
.stage-despues { background: var(--green); color: var(--ink-deep); }
.gallery-status { text-align: center; color: var(--muted); margin-top: 16px; }
.gallery-status:empty { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--ink-deep); border-color: var(--green); }
@media (max-width: 860px) { .albums { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .album-body { padding: 24px 10px 10px; } .album-body h3 { font-size: 14px; gap: 7px; } .album-count { display: none; } }

/* Visor */
.lightbox { position: fixed; inset: 0; background: rgba(5, 11, 20, .94); display: grid; place-items: center; z-index: 200; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: var(--white); text-align: center; max-width: 700px; font-size: 15px; }
.lightbox figcaption strong { color: var(--green); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.lightbox small { display: block; opacity: .8; margin-top: 6px; font-size: 12px; }
.lightbox a { color: inherit; text-decoration: underline; }
.lightbox .lb-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); background: var(--white); color: var(--ink-deep); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink-deep); font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox .lb-nav[hidden] { display: none; }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .lightbox .lb-nav { top: auto; bottom: 18px; transform: none; } }

/* ---------- Empresas ---------- */
.biz { display: grid; grid-template-columns: 1.15fr 1fr 0.8fr; align-items: stretch; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.biz-copy { padding: 32px; }
.biz-copy h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.biz-copy p { color: var(--muted); }
.biz-list { list-style: none; margin: 0; padding: 32px 16px; display: grid; gap: 12px; align-content: center; font-weight: 500; }
.biz-list li, .tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.biz-list .ico, .tick-list .ico { color: var(--green); width: 20px; height: 20px; margin-top: 2px; }
.biz-photo { position: relative; margin: 0; min-height: 220px; }
.biz-photo { overflow: hidden; }
.biz-photo img { position: absolute; inset: -24px 0; width: 100%; height: calc(100% + 48px); object-fit: cover; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.biz-photo::before { content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 10px; background: var(--green); transform: skewX(-12deg); z-index: 1; }
.biz-photo figcaption { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: 11px; }
.biz-photo figcaption { color: #dfe8f1; background: rgba(8, 16, 28, .75); padding: 2px 4px 2px 8px; border-radius: 6px; }
.biz-photo figcaption a, .page-media figcaption a { display: inline-block; padding: 13px 6px; text-decoration: underline; }
.prev { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; margin-top: 16px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(32, 209, 138, .16), var(--surface) 45%); }
.prev h3 { font-size: 20px; margin: 0 0 4px; }
.prev p { color: var(--muted); margin: 0; font-size: 15px; }
.prev-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-tint); color: var(--green); }
.prev-ico svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .biz { grid-template-columns: 1fr 1fr; }
  .biz-photo { grid-column: 1 / -1; min-height: 200px; }
  .biz-photo img { clip-path: none; }
  .biz-photo::before { display: none; }
}
@media (max-width: 640px) {
  .biz { grid-template-columns: 1fr; }
  .biz-copy { padding: 24px 20px 4px; }
  .biz-list { padding: 12px 20px 24px; }
  .prev { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .prev-ico { width: 44px; height: 44px; }
}

/* ---------- Preguntas + contacto ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: 12px; padding: 0 20px; transition: background .2s; }
.faq-item[open], .faq-item:hover { background: var(--surface-2); }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; padding: 17px 34px 17px 0; position: relative; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--green), var(--green)) center / 14px 2px no-repeat, linear-gradient(var(--green), var(--green)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }

/* ---------- Contacto: Frank grande, WhatsApp primero ---------- */
.contact { padding-top: 96px; }
.contact-card { position: relative; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: center; min-height: 440px; border-radius: 24px;
  background: linear-gradient(115deg, rgba(32, 209, 138, .95) 0%, rgba(10, 125, 82, .95) 30%, var(--surface) 30.2%, var(--surface) 100%); }
.contact-mascot { align-self: end; position: relative; height: 100%; }
.contact-mascot img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: calc(100% + 90px); width: auto; max-width: none; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
.contact-copy { padding: 44px 48px 44px 24px; }
.contact-copy h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.contact-copy p { color: var(--muted); font-size: 17px; max-width: 34em; }
.contact-copy p strong { color: var(--ink); }
.contact-actions { font-style: normal; display: grid; gap: 14px; margin-top: 24px; max-width: 520px; }
.btn-xl { min-height: 68px; padding: 12px 26px; border-radius: 18px; justify-content: flex-start; gap: 14px; text-align: left; }
.btn-xl svg { width: 30px; height: 30px; }
.btn-xl span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.2; }
.btn-xl small { font-size: 13.5px; font-weight: 600; opacity: .8; }
.contact-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alt-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; background: var(--bg); transition: background .2s, transform .3s var(--ease); min-width: 0; }
.alt-link:hover { background: var(--surface-2); transform: translateY(-2px); }
.alt-link b { display: block; font-size: 15px; }
.alt-link span:last-child { min-width: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ci { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.ci svg { width: 22px; height: 22px; }
.ci-tel { background: var(--blue-tint); color: var(--blue-text); }
.ci-mail { background: var(--purple-tint); color: var(--purple-text); }
@media (max-width: 960px) {
  .contact-card { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); background: linear-gradient(115deg, rgba(32, 209, 138, .95) 0%, rgba(10, 125, 82, .95) 34%, var(--surface) 34.2%, var(--surface) 100%); }
  .contact-copy { padding: 36px 28px 36px 12px; }
  /* La imagen se ajusta al ancho de su columna para no tapar el texto */
  .contact-mascot { overflow: visible; }
  .contact-mascot img { height: auto; width: 100%; max-width: 280px; }
  .contact-alt { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .contact { padding-top: 120px; }
  .contact-card { display: block; min-height: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(32, 209, 138, .95), rgba(10, 125, 82, .95) 300px, var(--surface) 300.5px); }
  .contact-mascot { display: block; height: 300px; }
  .contact-mascot img { height: 400px; }
  .contact-copy { padding: 28px 20px 24px; }
  .contact-alt { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.site-footer { background: #081120; border-top: 1px solid var(--line); color: var(--muted); padding: 48px 0 0; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 32px; }
.footer-inner > * + * { border-left: 1px solid var(--line); padding-left: 32px; }
.footer-slogan { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--green-text); margin: 6px 0 12px; }
.footer-brand p { margin-bottom: 10px; }
.footer-inner nav strong { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 6px; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; }
.footer-inner li a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(124, 192, 255, .35); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
.footer-inner li a:hover { color: var(--green-text); text-decoration-color: currentColor; }
.footer-inner .ico { width: 18px; height: 18px; color: var(--green); }
.footer-inner .ico-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.footer-inner li a:hover .ico-chev { transform: translateX(4px); color: var(--green); }
.footer-inner nav strong { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: 36px; padding: 8px 0; font-size: 13px; }
.footer-bottom a { display: inline-block; padding: 12px 0; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner > * + * { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--ink-deep); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(32, 209, 138, .4); }
.wa-icon svg { width: 30px; height: 30px; }

/* ---------- Páginas de servicio ---------- */
.page-hero { padding: 24px 0 56px; background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(41, 153, 245, .12), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--blue-text); display: inline-block; padding: 12px 4px; }
.breadcrumb li { display: inline-flex; align-items: center; }
.page-hero { overflow: hidden; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero .hero-slogan { margin-bottom: 14px; }
.page-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--tone); color: var(--tone-text); font-style: normal; }
.page-ico .ico { width: 26px; height: 26px; stroke-width: 1.6; }
.page-media img { aspect-ratio: 16 / 10; }
.page-media figcaption { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: 11px; color: #dfe8f1; background: rgba(8, 16, 28, .75); padding: 0 4px 0 8px; border-radius: 6px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.015em; }
.page-hero .lead { max-width: 680px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.panel h2 { font-size: 22px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.other-title { font-size: 24px; margin-bottom: 18px; }
.other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.svc-mini { grid-column: auto; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 700; }
.svc-mini .svc-ico { margin: 0; width: 28px; height: 28px; }
.svc-mini span { flex: 1; }
@media (max-width: 760px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .page-hero-copy { display: block; }
  .page-media { margin: 16px -16px 0; }
  .two-col { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Banner de promoción (se configura en admin.html) */
.promo-bar { color: var(--ink-deep); font-size: 14px; }
.promo-bar.tone-verde { background: var(--green); }
.promo-bar.tone-azul { background: #7cc0ff; }
.promo-bar.tone-morado { background: #c4a0ff; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; padding-block: 8px; position: relative; padding-inline-end: 44px; }
.promo-text { margin: 0; text-align: center; }
.promo-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink-deep); color: var(--white); font-weight: 700; white-space: nowrap; }
.promo-cta:hover { text-decoration: underline; }
.promo-close { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }

/* Comparador antes/después (galería) */
.gallery figure.compare { grid-column: span 2; cursor: ew-resize; touch-action: pan-y; }
@media (max-width: 560px) { .gallery figure.compare { grid-column: auto; } }
.compare img { position: absolute; inset: 0; }
.gallery figure.compare:hover img { transform: none; }
.compare .compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare .stage-despues { left: auto; right: 10px; }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(8, 16, 28, .4); pointer-events: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.compare figcaption { z-index: 2; }

/* Trabajos destacados (portada) */
.featured { margin-bottom: 36px; }
.featured[hidden] { display: none; }
.featured-title { font-size: 22px; margin: 0 0 14px; }
.featured-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.contact-hours { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.contact-hours[hidden], .footer-contact li[hidden] { display: none; }

/* Imágenes con fondo transparente (PNG/WebP con canal alfa) subidas desde el panel:
   se ven enteras, sin el corte diagonal ni el recorte, apoyadas sobre el fondo azul noche. */
figure.has-alpha img { clip-path: none; object-fit: contain; }
.hero-media.has-alpha img, .page-media.has-alpha img { aspect-ratio: 16 / 10; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .4)); }
.biz-photo.has-alpha img { object-position: 50% 100%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .4)); }
.biz-photo.has-alpha::before { display: none; }
