/* ============================================
   SANTA ANITA DESPIERTA — FULL DESIGN
   Estilo volante: fondo claro, rojo fuerte
   SIN espacios vacíos
   ============================================ */

:root {
    --bg-white: #ffffff;
    --bg-light: #f4f4f6;
    --bg-gray: #e8e8ec;
    --bg-dark: #1a1a1f;
    --bg-darker: #111115;

    --red: #D42027;
    --red-dark: #B01A20;
    --red-light: #e8454c;
    --red-bg: rgba(212, 32, 39, 0.06);
    --red-border: rgba(212, 32, 39, 0.2);

    --text-black: #1a1a1f;
    --text-dark: #2d2d35;
    --text-body: #444450;
    --text-muted: #777785;
    --text-light: #aaaab5;

    --border: #dddde2;
    --border-dark: #cccccc;

    --font-headline: 'Bebas Neue', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-light);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.red { color: var(--red); }

/* ============================================
   ALERT BAR
   ============================================ */
.alert-bar {
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(212, 32, 39, 0.3);
}

.alert-pulse {
    display: inline-block;
    margin: 0 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ============================================
   HERO — con fondo visual
   ============================================ */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background:
        url('https://images.unsplash.com/photo-1517732306149-e8f829eb588a?auto=format&fit=crop&q=60&w=1600') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.96) 40%,
        rgba(244,244,246,1) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-pre {
    font-family: var(--font-headline);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-muted);
    letter-spacing: 8px;
    margin-bottom: 0;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    color: var(--text-black);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-red {
    color: var(--red);
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 0 auto 16px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 16px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-family: var(--font-headline);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--red);
    letter-spacing: 2px;
}

.hero-cta strong {
    background: var(--red);
    color: #fff;
    padding: 2px 12px;
}

/* ============================================
   TICKER MARQUESINA
   ============================================ */
.ticker {
    background: var(--bg-dark);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    border-bottom: 3px solid var(--red);
}

.ticker-track {
    display: inline-flex;
    animation: scroll-left 40s linear infinite;
}

.ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 40px;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   STATS SECTION — "Santa Anita en Cifras"
   ============================================ */
.stats-section {
    padding: 50px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.section-title-sm {
    font-family: var(--font-headline);
    font-size: 2rem;
    text-align: center;
    color: var(--text-black);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.stat-number {
    display: block;
    font-family: var(--font-headline);
    font-size: 2.8rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ============================================
   WHY SECTION — "¿Por qué Voto Nulo?"
   ============================================ */
.why-section {
    padding: 50px 0;
    background: var(--bg-dark);
    color: #fff;
}

.why-section .section-title-sm {
    color: #fff;
}

.why-section .red {
    color: var(--red-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.why-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px 22px;
    transition: background 0.3s;
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
}

.why-num {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 10px;
}

.why-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ============================================
   INTRO CANDIDATES BANNER
   ============================================ */
.intro-candidates {
    padding: 40px 0;
    background: var(--bg-light);
}

.intro-banner {
    background: var(--red);
    color: #fff;
    padding: 30px 40px;
    text-align: center;
}

.intro-banner h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.intro-banner .red {
    color: var(--bg-dark);
}

.intro-banner p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ============================================
   CANDIDATES SECTION
   ============================================ */
.candidates-section {
    padding: 0 0 50px;
    background: var(--bg-light);
}

/* ============================================
   DOSSIER CARD
   ============================================ */
.dossier-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--red);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: cardIn 0.5s ease backwards;
}

.dossier-card:nth-child(1) { animation-delay: 0.05s; }
.dossier-card:nth-child(2) { animation-delay: 0.12s; }
.dossier-card:nth-child(3) { animation-delay: 0.19s; }
.dossier-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dossier-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Card number badge */
.card-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-headline);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Top row: photo + identity + party logo */
.dossier-top {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.candidate-photo-wrap {
    width: 170px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #ddd;
    border-right: 1px solid var(--border);
}

.candidate-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(110%);
    transition: filter 0.4s ease;
}

.dossier-card:hover .candidate-photo {
    filter: grayscale(0%) contrast(100%);
}

.dossier-identity {
    flex: 1;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.candidate-name {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--text-black);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.party-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.party-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 3px;
}

.party-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.candidate-role {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Data points list */
.dossier-points {
    padding: 16px 24px 18px;
    background: var(--bg-white);
}

.dossier-points ul {
    list-style: none;
    padding: 0;
    columns: 1;
}

.dossier-points li {
    position: relative;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid var(--bg-gray);
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.dossier-points li:last-child { border-bottom: none; }

.dossier-points li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--red);
    font-size: 0.55rem;
}

.dossier-points li strong { color: var(--text-black); font-weight: 700; }
.dossier-points li .bold-red { color: var(--red); font-weight: 700; }

/* Evidence photos row */
.dossier-evidence {
    display: flex;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
}

.evidence-label-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid var(--border);
    background: var(--bg-white);
}

.evidence-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.evidence-photos {
    display: flex;
    flex: 1;
    gap: 0;
}

.evidence-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
    cursor: pointer;
}

.evidence-item:last-child { border-right: none; }

.evidence-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    filter: grayscale(40%) brightness(90%);
    transition: all 0.4s ease;
    display: block;
}

.evidence-item:hover .evidence-img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.03);
}

.evidence-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 24px 10px 6px;
    font-size: 0.68rem;
    color: #ddd;
    font-family: var(--font-mono);
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-darker);
    color: #fff;
}

.cta-title {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 3px;
    margin-bottom: 12px;
    line-height: 1;
}

.cta-red {
    color: var(--red);
    text-shadow: 0 0 30px rgba(212, 32, 39, 0.4);
}

.cta-sub {
    font-size: 1.05rem;
    color: #888;
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.cta-site {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--font-headline);
    font-size: 1.5rem;
    padding: 8px 28px;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(212, 32, 39, 0.4);
}

/* ============================================
   SHARE SECTION
   ============================================ */
.share-section {
    padding: 40px 0;
    text-align: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-title {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    color: var(--text-black);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.share-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-fb { background: #1877f2; }
.share-wa { background: #25D366; }
.share-tw { background: #1a1a1f; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 24px 0;
    text-align: center;
    border-top: 3px solid var(--red);
    background: var(--bg-white);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-org {
    margin-bottom: 4px;
    color: var(--text-dark);
}

.footer-note {
    font-size: 0.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dossier-top {
        flex-direction: column;
    }
    .candidate-photo-wrap {
        width: 100%;
        min-height: 180px;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .dossier-evidence {
        flex-direction: column;
    }
    .evidence-label-wrap {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 16px;
    }
    .evidence-label {
        writing-mode: horizontal-tb;
    }
    .evidence-photos {
        flex-direction: column;
    }
    .evidence-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .hero {
        padding: 40px 20px;
        min-height: 50vh;
    }
    .alert-bar {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}
