/* ════════════════════════════════════════════════════════════
   Servicloud · Estilos visuales de la web pública (la «piel»)
   Se activan con <body class="lp-theme-…">. El color de marca del negocio
   sigue mandando en botones y detalles; el estilo cambia el resto.
   ════════════════════════════════════════════════════════════ */

/* Superficies comunes que la base pinta en blanco */
/* Valor por defecto con especificidad 0 (:where) para que cada estilo pueda redefinirlo */
:where(body[class*="lp-theme-"]) { --surface: #fff; }
body[class*="lp-theme-"] :is(.lp-channels a, .lp-form, .lp-steps li, .lp-card, .lp-project, .lp-socials a, .lp-hero-channels a, .lp-items, .lp-sent, .lp-menu-btn) { background: var(--surface); }
body[class*="lp-theme-"] .lp-menu-btn { color: var(--ink); }
/* El menú solo tiene fondo cuando es desplegable (móvil); en escritorio va integrado en la cabecera */
@media (max-width: 859.98px) { body[class*="lp-theme-"] .lp-nav { background: var(--surface); } }
body[class*="lp-theme-"] .lp-form :is(input, select, textarea) { background: var(--surface); color: var(--ink); }

/* ─────────── NOCTURNO · oscuro técnico, brillos suaves y líneas finas ─────────── */
.lp-theme-nocturno {
  --paper: #0B0D12; --surface: #12151D; --ink: #E8EAF0; --ink-2: #9AA1B2;
  --line: rgb(255 255 255 / .09); --tint: #0F1219;
  --glow: color-mix(in srgb, var(--brand) 55%, #8B7CF6);
  background: var(--paper); color: var(--ink);
}
/* Enlaces con especificidad mínima: los componentes (botones, flotante, conversaciones) conservan sus colores */
:where(.lp-theme-nocturno) a { color: var(--ink); }
:where(.lp-theme-nocturno) :is(p, .lp-about, .lp-intro, .lp-muted) a:not(.lp-btn), :where(.lp-theme-nocturno) a.lp-link { color: color-mix(in srgb, var(--glow) 70%, white); }
.lp-theme-nocturno .lp-header { background: rgb(11 13 18 / .72); border-bottom-color: var(--line); }
.lp-theme-nocturno a.lp-brand, .lp-theme-nocturno .lp-nav a:not(.lp-btn) { color: var(--ink); }
.lp-theme-nocturno .lp-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(60% 55% at 70% 0%, color-mix(in srgb, var(--glow) 32%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 70%),
    var(--paper);
}
.lp-theme-nocturno .lp-hero::before {   /* rejilla finísima */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}
.lp-theme-nocturno .lp-hero > * { position: relative; }
.lp-theme-nocturno h1 { background: linear-gradient(180deg, #fff 30%, #A9AFC0); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.035em; }
.lp-theme-nocturno h2 { letter-spacing: -0.03em; }
.lp-theme-nocturno .lp-tint { background: var(--tint); }
.lp-theme-nocturno .lp-section { border-top: 1px solid var(--line); }
.lp-theme-nocturno :is(.lp-card, .lp-project, .lp-steps li, .lp-form, .lp-channels a, .lp-item) {
  border-color: var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
}
.lp-theme-nocturno :is(.lp-card, .lp-project):hover { border-color: color-mix(in srgb, var(--glow) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 40%, transparent), 0 18px 40px -20px var(--glow); }
.lp-theme-nocturno .lp-btn { box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset, 0 8px 24px -8px var(--glow); }
.lp-theme-nocturno .lp-btn-ghost, .lp-theme-nocturno .lp-nav a.lp-btn.lp-btn-ghost { background: rgb(255 255 255 / .04); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lp-theme-nocturno .lp-card-img { background: #191D27; }
.lp-theme-nocturno .lp-menu-dots { border-bottom-color: var(--line); }
.lp-theme-nocturno .lp-footer { background: #07080C; border-top: 1px solid var(--line); }
.lp-theme-nocturno .lp-form :is(input, select, textarea) { border-color: var(--line); }

/* ─────────── ESTUDIO CREATIVO · titulares enormes, bloques de color y movimiento ─────────── */
.lp-theme-estudio { --paper: #F2EFE9; --surface: #FFFFFF; --ink: #111111; --ink-2: #4A4A4A; --line: #1111111F; --tint: #E9E4DA; --r: 24px; background: var(--paper); }
.lp-theme-estudio .lp-header { background: rgb(242 239 233 / .85); border-bottom: 0; }
.lp-theme-estudio h1 { font-size: clamp(2.8rem, 12vw, 7.5rem); line-height: .92; letter-spacing: -0.055em; font-weight: 800; text-transform: none; }
.lp-theme-estudio h2 { font-size: clamp(2.2rem, 8vw, 4.8rem); line-height: .95; letter-spacing: -0.045em; }
.lp-theme-estudio .lp-hero { background: var(--paper); padding: 56px 0 72px; }
.lp-theme-estudio .lp-lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 30ch; color: var(--ink); }
.lp-theme-estudio .lp-section { padding: clamp(64px, 10vw, 128px) 0; }
.lp-theme-estudio .lp-tint { background: var(--ink); color: #F2EFE9; --ink-2: #BDB8AE; --line: rgb(255 255 255 / .14); }
.lp-theme-estudio .lp-tint :is(h2, h3, strong) { color: #fff; }
.lp-theme-estudio .lp-tint :is(.lp-card, .lp-project, .lp-steps li, .lp-form, .lp-channels a) { background: #1C1C1C; color: #F2EFE9; border-color: rgb(255 255 255 / .12); }
.lp-theme-estudio .lp-btn { border-radius: 999px; min-height: 58px; padding: 0 28px; font-size: 1.05rem; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.lp-theme-estudio .lp-btn:hover { transform: translateY(-2px) scale(1.02); }
.lp-theme-estudio .lp-card { border: 0; border-radius: var(--r); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lp-theme-estudio .lp-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.lp-theme-estudio .lp-card-img { aspect-ratio: 1; }
.lp-theme-estudio .lp-steps li::before { background: var(--accent, #FF4D2E); color: var(--accent-ink, #111); }
.lp-theme-estudio .lp-footer { background: var(--accent, #FF4D2E); color: #111; }
.lp-theme-estudio .lp-footer a { color: #111; }
/* Aparición al desplazarse (landing.js añade .is-in). Sin movimiento si el usuario lo prefiere. */
.lp-theme-estudio .lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.lp-theme-estudio .lp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-theme-estudio .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-theme-estudio :is(.lp-card, .lp-btn):hover { transform: none; }
}

/* ─────────── EDITORIAL · papel cálido, remates y secciones numeradas ─────────── */
.lp-theme-editorial {
  --paper: #F3EDE2; --surface: #FBF8F2; --ink: #2A2420; --ink-2: #6B5F55; --line: #D9CFBF; --tint: #ECE4D6; --r: 4px;
  --text: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--paper); counter-reset: lp-sec;
}
.lp-theme-editorial { font-size: 18px; }
.lp-theme-editorial .lp-header { background: rgb(243 237 226 / .9); border-bottom: 1px solid var(--line); }
.lp-theme-editorial h1 { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1.02; }
.lp-theme-editorial h2 { font-weight: 500; letter-spacing: -0.01em; }
.lp-theme-editorial .lp-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.lp-theme-editorial .lp-section { counter-increment: lp-sec; }
.lp-theme-editorial .lp-section h2::before { content: counter(lp-sec, decimal-leading-zero) " — "; display: block; font-family: var(--text); font-size: .8rem; letter-spacing: .14em; color: var(--brand); margin-bottom: 10px; font-weight: 600; }
.lp-theme-editorial .lp-tint { background: var(--tint); }
.lp-theme-editorial .lp-wrap { max-width: 980px; }
.lp-theme-editorial .lp-about::first-letter { float: left; font-family: var(--display); font-size: 3.6em; line-height: .82; padding: 6px 10px 0 0; color: var(--brand); }
.lp-theme-editorial :is(.lp-card, .lp-project, .lp-steps li, .lp-form, .lp-channels a) { border-radius: var(--r); box-shadow: none; }
.lp-theme-editorial .lp-btn { border-radius: 2px; letter-spacing: .02em; }
.lp-theme-editorial .lp-card-img { filter: saturate(.85) sepia(.08); }
.lp-theme-editorial .lp-steps li::before { border-radius: 0; background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.lp-theme-editorial .lp-footer { background: #2A2420; color: #D9CFBF; }

/* ─────────── FRESCO · suave, redondeado y con aire ─────────── */
.lp-theme-fresco { --paper: #F7FBF9; --surface: #FFFFFF; --tint: color-mix(in srgb, var(--brand) 9%, #F3F8F6); --line: color-mix(in srgb, var(--brand) 14%, #E6EEEA); --r: 22px; background: var(--paper); }
.lp-theme-fresco .lp-hero { background: radial-gradient(80% 70% at 85% 10%, color-mix(in srgb, var(--accent, var(--brand)) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--tint), var(--paper)); }
.lp-theme-fresco h1, .lp-theme-fresco h2 { letter-spacing: -0.015em; }
.lp-theme-fresco :is(.lp-card, .lp-project, .lp-steps li, .lp-form, .lp-channels a) { border-color: transparent; box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--brand) 45%, transparent); }
.lp-theme-fresco .lp-card-img { border-radius: calc(var(--r) - 6px); margin: 8px 8px 0; }
.lp-theme-fresco .lp-footer { background: color-mix(in srgb, var(--brand) 85%, black); }

/* ─────────── CONTRASTE · blanco y negro, bordes marcados ─────────── */
.lp-theme-contraste { --paper: #FFFFFF; --surface: #FFFFFF; --ink: #000; --ink-2: #333; --line: #000; --tint: #F2F2F2; --r: 0; }
.lp-theme-contraste .lp-header { background: #fff; border-bottom: 2px solid #000; }
.lp-theme-contraste h1 { font-size: clamp(2.4rem, 10vw, 5rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; }
.lp-theme-contraste h2 { text-transform: uppercase; letter-spacing: -0.02em; }
.lp-theme-contraste .lp-hero { background: #fff; border-bottom: 2px solid #000; }
.lp-theme-contraste .lp-tint { background: var(--tint); }
.lp-theme-contraste :is(.lp-card, .lp-project, .lp-steps li, .lp-form, .lp-channels a, .lp-hero-channels a, .lp-socials a) { border: 2px solid #000; border-radius: 0; box-shadow: 6px 6px 0 #000; }
.lp-theme-contraste :is(.lp-card, .lp-project):hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.lp-theme-contraste .lp-btn { border-radius: 0; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.lp-theme-contraste .lp-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.lp-theme-contraste .lp-steps li::before { border-radius: 0; }
.lp-theme-contraste .lp-footer { background: #000; color: #fff; }
@media (prefers-reduced-motion: reduce) { .lp-theme-contraste :is(.lp-card, .lp-project):hover { transform: none; } }
/* Las conversaciones (WhatsApp, email, formulario…) son tarjetas claras: texto oscuro aunque la web sea oscura */
.lp-theme-nocturno .lp-conv { color: #1D2320; }

/* Portada con imagen de fondo: el texto siempre claro sobre el velo, en cualquier estilo */
body[class*="lp-theme-"] .lp-hero.lp-hero-cover { color: #fff; border-bottom: 0; background: #1A1D22; }
body[class*="lp-theme-"] .lp-hero.lp-hero-cover > .lp-cover-media { position: absolute; }
/* El velo prevalece sobre los adornos propios de cada estilo (p. ej. la rejilla de «Nocturno») */
body[class*="lp-theme-"] .lp-hero.lp-hero-cover::before {
  opacity: 1; -webkit-mask-image: none; mask-image: none; background-size: auto;
  background-image: linear-gradient(0deg, rgb(10 12 16 / var(--veil-b)) 0%, rgb(10 12 16 / var(--veil-t)) 75%);
}
@media (min-width: 860px) {
  body[class*="lp-theme-"] .lp-hero.lp-hero-cover::before { background-image: linear-gradient(90deg, rgb(10 12 16 / var(--veil-b)) 0%, rgb(10 12 16 / var(--veil-t)) 85%); }
}
body[class*="lp-theme-"] .lp-hero-cover h1 { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.lp-theme-nocturno .lp-hero-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--paper)); }
.lp-theme-editorial .lp-hero-cover h1 { font-weight: 500; }
.lp-theme-contraste .lp-hero-cover h1 { text-shadow: none; }
.lp-theme-contraste .lp-hero-cover { --veil-b: .9; --veil-t: .6; }
