/*
 * SegurHorario AdsManager – Landing pública para anunciantes
 * Sigue la misma paleta y fuentes que el resto del proyecto.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-2: #1f2a44;
    --bg-input: #0b1224;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.32);

    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-cta: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);

    --shadow-glow: 0 20px 60px rgba(99, 102, 241, 0.25);
    --shadow-soft: 0 12px 32px rgba(2, 6, 23, 0.6);
}

html, body { background: var(--bg-darker); color: var(--text-primary); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(1200px 800px at 110% -10%, rgba(99,102,241,0.18) 0%, transparent 60%),
        radial-gradient(900px 700px at -10% 100%, rgba(236,72,153,0.14) 0%, transparent 60%),
        radial-gradient(800px 600px at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 70%),
        var(--bg-darker);
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* Partículas/blobs decorativos */
.bg-3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-3d .blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
    animation: floatBlob 22s ease-in-out infinite;
}
.bg-3d .blob.b1 { width: 360px; height: 360px; background: #6366f1; top: -120px; left: -120px; }
.bg-3d .blob.b2 { width: 420px; height: 420px; background: #ec4899; top: 40%; right: -160px; animation-delay: -6s; }
.bg-3d .blob.b3 { width: 320px; height: 320px; background: #06b6d4; bottom: -120px; left: 30%; animation-delay: -12s; }

@keyframes floatBlob {
    0%,100% { transform: translateY(0) translateX(0) scale(1); }
    50%     { transform: translateY(-30px) translateX(20px) scale(1.05); }
}

/* Contenedor */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Header */
.ad-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border-color);
}
.ad-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.ad-brand { display: flex; align-items: center; gap: 12px; }
.ad-brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--gradient-cta);
    display: grid; place-items: center; font-size: 20px;
    box-shadow: var(--shadow-glow);
}
.ad-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ad-brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.ad-brand-text small { font-size: 11px; color: var(--text-muted); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

.ad-nav { display: flex; align-items: center; gap: 8px; }
.ad-nav a {
    color: var(--text-secondary); font-weight: 500; font-size: 14.5px;
    padding: 8px 12px; border-radius: var(--radius-xs); transition: all .2s ease;
}
.ad-nav a:hover { color: var(--text-primary); background: rgba(148,163,184,0.08); }
.ad-nav .btn-outline {
    border: 1px solid var(--border-strong); color: var(--text-primary);
    padding: 8px 14px; border-radius: var(--radius-xs);
}
.ad-nav .btn-primary-sm {
    background: var(--gradient-cta); color: #fff; padding: 9px 16px; border-radius: var(--radius-xs); font-weight: 600;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}
.ad-nav-hide-mobile { display: flex; }
@media (max-width: 820px) { .ad-nav-hide-mobile { display: none; } }

/* Hero */
.hero {
    padding: 72px 0 64px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero .badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(99,102,241,0.14); color: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.4); font-weight: 600; font-size: 13px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.08;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 18px;
}
.hero h1 .grad {
    background: var(--gradient-cta); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--text-secondary); font-size: 18px; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; border: none; font-family: inherit; }
.btn-primary { background: var(--gradient-cta); color: #fff; padding: 14px 22px; border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(99,102,241,0.4); font-size: 15px; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 50px rgba(99,102,241,0.5); }
.btn-ghost { color: var(--text-primary); padding: 14px 22px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(255,255,255,0.02); font-size: 15px; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; }

.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 22px; color: var(--text-primary); }
.stat span { color: var(--text-muted); font-size: 13px; letter-spacing: .3px; }

/* Login card */
.login-card {
    background: linear-gradient(160deg, rgba(30,41,59,0.85) 0%, rgba(15,23,42,0.85) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
}
.login-card::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(236,72,153,0.10));
    pointer-events: none; opacity: .35;
}
.login-card > * { position: relative; z-index: 1; }
.login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-card .login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
    background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border-color); font-size: 15px; font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(99,102,241,0.18); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 18px; font-size: 13px; color: var(--text-muted); }
.form-row a { color: var(--primary-light); font-weight: 600; }
.form-row label.remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.alert-info { background: rgba(6,182,212,0.10); border: 1px solid rgba(6,182,212,0.4); color: #67e8f9; }
.alert-error { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }

.login-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; margin: 18px 0 14px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
.btn-oauth {
    width: 100%; background: rgba(255,255,255,0.04); color: var(--text-primary);
    padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px;
}
.btn-oauth:hover { background: rgba(255,255,255,0.07); }

.login-card .legal { margin-top: 16px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* Sección genérica */
.section { padding: 84px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-eyebrow {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: rgba(139,92,246,0.10); color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.35); font-size: 12px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 17px; }

/* Cards genéricas */
.cards { display: grid; gap: 22px; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    background: linear-gradient(160deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.7) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,0.5); box-shadow: 0 24px 50px rgba(2,6,23,0.6); }
.card .ic {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
    background: rgba(99,102,241,0.18); border: 1px solid rgba(99,102,241,0.4);
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* Cómo funciona (steps) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
    background: linear-gradient(160deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.7) 100%);
    border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px;
    position: relative;
}
.step-num {
    position: absolute; top: -16px; left: 24px;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient-cta); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 16px;
    box-shadow: 0 8px 22px rgba(99,102,241,0.45);
}
.step h3 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; }
.step p { color: var(--text-secondary); font-size: 14.5px; }

/* Tipos de campaña */
.tipo {
    background: linear-gradient(160deg, rgba(30,41,59,0.75) 0%, rgba(15,23,42,0.85) 100%);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; gap: 12px;
    position: relative; overflow: hidden;
}
.tipo::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    background: var(--gradient-3); border-radius: 50%; filter: blur(40px); opacity: .25;
}
.tipo .tag {
    align-self: flex-start; padding: 5px 10px; border-radius: 999px;
    background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35);
    font-size: 12px; font-weight: 700; letter-spacing: .4px;
}
.tipo h3 { font-size: 18px; font-weight: 800; }
.tipo p { color: var(--text-secondary); font-size: 14.5px; }
.tipo ul { color: var(--text-secondary); font-size: 14px; padding-left: 18px; }
.tipo ul li { margin: 3px 0; }

/* Beneficios (lista con icono) */
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: rgba(15,23,42,0.6); }
.benefit-item .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.4); font-size: 18px; flex-shrink: 0; }
.benefit-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.benefit-item p { color: var(--text-secondary); font-size: 14px; }

/* Tarifas / planes */
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.plan {
    background: linear-gradient(160deg, rgba(30,41,59,0.78) 0%, rgba(15,23,42,0.85) 100%);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 28px; position: relative;
}
.plan.featured { border-color: rgba(99,102,241,0.7); box-shadow: 0 26px 60px rgba(99,102,241,0.20); }
.plan .ribbon {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-cta); color: #fff; padding: 4px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .4px;
}
.plan h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan .price { font-size: 38px; font-weight: 800; margin: 12px 0 4px; }
.plan .price small { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; }
.plan li { padding: 8px 0; color: var(--text-secondary); border-bottom: 1px dashed var(--border-color); font-size: 14.5px; }
.plan li:last-child { border-bottom: none; }
.plan .btn-block { margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    background: rgba(15,23,42,0.55); padding: 18px 22px; margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--text-primary); display: flex; justify-content: space-between; gap: 12px; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text-muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; color: var(--text-secondary); }

/* CTA final */
.cta {
    margin: 0 auto; max-width: 1100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(236,72,153,0.10));
    border: 1px solid rgba(99,102,241,0.45);
    border-radius: 26px;
    padding: 48px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,0.06), transparent 60%); pointer-events: none; }
.cta h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cta p { color: var(--text-secondary); max-width: 720px; margin: 0 auto 24px; }

/* Footer */
.ad-footer { padding: 40px 0 60px; color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--border-color); margin-top: 60px; }
.ad-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.ad-footer a { color: var(--text-secondary); }
.ad-footer a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
    .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-list { grid-template-columns: 1fr; }
    .planes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .hero { padding: 36px 0 24px; }
    .section { padding: 56px 0; }
    .cards.cols-3, .cards.cols-4, .cards.cols-2 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .ad-header .container { height: 60px; }
    .ad-brand-mark { width: 34px; height: 34px; font-size: 18px; }
    .ad-brand-text strong { font-size: 15px; }
    .login-card { padding: 22px; }
}
