/* Páginas públicas de las empresas (usa el acento de la empresa: --accent-* lo fija <style id="tema-empresa">) */
:root {
    --accent-50:#F0FDFA; --accent-100:#CCFBF1; --accent-200:#99F6E4; --accent-300:#5EEAD4; --accent-400:#2DD4BF; --accent-500:#14B8A6; --accent-600:#0D9488; --accent-700:#0F766E; --accent-800:#115E59;
    --n-50:#F8FAFC; --n-100:#F1F5F9; --n-200:#E2E8F0; --n-300:#CBD5E1; --n-500:#64748B; --n-600:#475569; --n-700:#334155; --n-900:#0F172A;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--n-900); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.pv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Aviso de vista previa */
.pv-banner { position: sticky; top: 0; z-index: 200; background: #FEF3C7; color: #92400E; text-align: center; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #FDE68A; }
.pv-banner a { color: #92400E; font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* Navegación */
.pv-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--n-200); }
.pv-banner + .pv-nav { top: 41px; }
.pv-nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.pv-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--n-900); min-width: 0; }
.pv-brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-brand:hover { text-decoration: none; }
.pv-mark { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--accent-500), var(--accent-700)); }
.pv-links { display: flex; align-items: center; gap: 22px; }
.pv-links a:not(.pv-btn) { color: var(--n-600); font-weight: 500; font-size: 15px; }
.pv-links a:not(.pv-btn):hover { color: var(--n-900); text-decoration: none; }

/* Botones */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: var(--accent-600); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; border: 1px solid transparent; transition: background .15s, transform .05s; }
.pv-btn:hover { background: var(--accent-700); }
.pv-btn:active { transform: translateY(1px); }
.pv-btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.pv-btn-lg { padding: 14px 28px; font-size: 16px; }
.pv-btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.pv-btn-ghost:hover { background: rgba(255,255,255,.24); }

/* Portada */
.pv-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 96px 0 104px; background: linear-gradient(150deg, var(--accent-600) 0%, var(--accent-800) 100%); }
.pv-hero::before, .pv-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.pv-hero::before { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.pv-hero::after { width: 420px; height: 420px; left: -140px; bottom: -220px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.pv-hero .pv-wrap { position: relative; z-index: 1; }
.pv-hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.pv-sub { font-size: clamp(17px, 2.4vw, 21px); opacity: .92; max-width: 640px; margin: 0 auto 12px; }
.pv-desc { max-width: 620px; margin: 0 auto 8px; opacity: .85; font-size: 16px; }
.pv-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pv-hero .pv-btn:not(.pv-btn-ghost) { background: #fff; color: var(--accent-800) !important; }
.pv-hero .pv-btn:not(.pv-btn-ghost):hover { background: var(--accent-50); }

/* Secciones */
.pv-section { padding: 76px 0; }
.pv-alt { background: var(--n-50); }
.pv-section h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; font-weight: 700; text-align: center; }
.pv-lead { text-align: center; color: var(--n-600); max-width: 560px; margin: 10px auto 0; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.pv-card { background: #fff; border: 1px solid var(--n-200); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pv-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,.08); transform: translateY(-2px); border-color: var(--accent-200); }
.pv-card h3 { font-size: 17px; letter-spacing: -0.01em; }
.pv-card-desc { color: var(--n-600); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--n-100); margin-top: auto; }
.pv-price { font-weight: 700; color: var(--accent-700); font-size: 18px; }
.pv-dur { font-size: 13px; color: var(--n-500); background: var(--n-100); padding: 3px 10px; border-radius: 999px; }

/* Contacto */
.pv-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.pv-ci { background: #fff; border: 1px solid var(--n-200); border-radius: 14px; padding: 18px 20px; }
.pv-ci span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--n-500); margin-bottom: 6px; }
.pv-ci a, .pv-ci p { font-size: 16px; font-weight: 500; color: var(--n-900); word-break: break-word; }
.pv-ci a { color: var(--accent-700); }

/* Pie */
.pv-foot { padding: 32px 0 40px; text-align: center; color: var(--n-500); font-size: 14px; border-top: 1px solid var(--n-200); }
.pv-team { margin-top: 6px; font-size: 12px; }
.pv-team a { color: var(--n-500); }

/* En construcción */
.pl-obra { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; background: linear-gradient(160deg, var(--accent-50), #fff 55%); }
.pl-obra-box { max-width: 520px; }
.pl-obra-mark { width: 60px; height: 60px; border-radius: 16px; font-size: 26px; margin-bottom: 14px; }
.pl-obra-nombre { font-weight: 600; color: var(--n-600); letter-spacing: .02em; margin-bottom: 26px; }
.pl-obra h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.pl-obra-msg { color: var(--n-600); font-size: 18px; margin-bottom: 26px; }
.pl-obra-acceso { margin-top: 30px; font-size: 13px; } .pl-obra-acceso a { color: var(--n-500); }

/* Página de la plataforma */
.pl-hero { padding: 110px 0 120px; }
.pl-rubros { padding: 30px 0; border-bottom: 1px solid var(--n-200); background: var(--n-50); }
.pl-rubros-t { text-align: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--n-500); margin-bottom: 14px; }
.pl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pl-chips li { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--n-200); font-size: 14px; font-weight: 500; color: var(--n-700); }
.pl-ico { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-50); color: var(--accent-700); margin-bottom: 4px; }
.pl-ico svg { stroke: currentColor; fill: none; stroke-width: 1.9; }
.pl-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; counter-reset: none; }
.pl-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--n-200); border-radius: 16px; padding: 22px; }
.pl-num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent-600); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pl-steps h3 { font-size: 16px; margin-bottom: 4px; } .pl-steps p { color: var(--n-600); font-size: 14px; }
.pl-narrow { max-width: 760px; }
.pl-faq { margin-top: 32px; display: grid; gap: 10px; }
.pl-faq details { background: #fff; border: 1px solid var(--n-200); border-radius: 14px; padding: 4px 20px; }
.pl-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent-700); }
.pl-faq details[open] summary::after { content: '–'; }
.pl-faq details p { color: var(--n-600); padding: 0 0 16px; }
.pl-neg { text-decoration: none !important; color: inherit; } .pl-ver { color: var(--accent-700); font-weight: 600; font-size: 14px; margin-top: auto; }
.pl-contacto { padding: 76px 0; text-align: center; color: #fff; background: linear-gradient(150deg, var(--accent-600), var(--accent-800)); }
.pl-contacto h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin-bottom: 8px; } .pl-contacto p { opacity: .9; }
.pl-contacto .pv-btn:not(.pv-btn-ghost) { background: #fff; color: var(--accent-800) !important; }

/* 404 */
.pv-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--n-50); text-align: center; padding: 24px; }
.pv-404 h1 { font-size: 72px; letter-spacing: -0.04em; color: var(--n-300); }
.pv-404 p { color: var(--n-600); margin-top: 8px; }

@media (max-width: 720px) {
    .pv-hero { padding: 64px 0 72px; }
    .pv-section { padding: 52px 0; }
    .pv-links a:not(.pv-btn) { display: none; }
    .pv-wrap { padding: 0 18px; }
    .pv-cta .pv-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pv-card, .pv-btn { transition: none; } }
