/* ==================== VARIABLES ==================== */
:root {
    --primary-red: #C8102E;
    --dark-red: #C8102E;
    --light-red: #C8102E;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray: #666666;
    --light-gray: #f8f8f8;
    --border-gray: #e0e0e0;
    --transition: 0.3s ease;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    position: relative;
}

/* ==================== LISTA 53 SIDEBAR ==================== */
.lista53-sidebar {
    position: fixed;
    top: 0;
    left: 10px;
    width: 70px;
    height: 100vh;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.lista53-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.l53-stripe {
    height: 100%;
}

.l53-stripe.red   { background-color: #C8102E; width: 24px; }
.l53-stripe.white { background-color: #ffffff; width: 22px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.l53-stripe.blue  { background-color: #002D6E; width: 24px; }

.lista53-badge {
    position: fixed;
    top: 50vh;
    left: 10px;
    transform: translateY(-50%);
    width: 88px;
    height: 88px;
    margin-left: -9px;
    z-index: 1000;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

.lista53-svg {
    width: 100%;
    height: 100%;
}

/* Offset body content so stripes don't cover text */
body {
    padding-left: 80px;
}

/* ==================== VOTE BANNER ==================== */
.vote-banner {
    background-color: var(--dark-red);
    color: var(--white);
    text-align: center;
    padding: 0.7rem 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.vote-date {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.vote-separator {
    opacity: 0.5;
}

.vote-text {
    opacity: 0.95;
}

.vote-text strong {
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.nav-lista {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-candidate-name {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.btn-donate {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.btn-donate:hover {
    background-color: var(--dark-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 80px 40px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ==================== HERO BADGES ==================== */
.hero-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Badge Lista 53 */
.badge-lista {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 6px 6px 6px 0;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.badge-lista-stripes {
    display: flex;
    flex-direction: column;
    height: 55px;
    width: 14px;
    margin-right: 8px;
    overflow: hidden;
    border-radius: 50px 0 0 50px;
}

.stripe {
    flex: 1;
    display: block;
}

.stripe.red   { background-color: #C8102E; }
.stripe.white { background-color: #ffffff; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.stripe.blue  { background-color: #002D6E; }

.badge-lista-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--black);
    line-height: 1;
    padding: 4px;
}

.badge-lista-circle span {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 1px;
}

.badge-lista-circle strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--black);
}

/* Badge Opción 6 */
.badge-opcion {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    min-width: 60px;
}

.badge-opcion-label {
    background-color: #C8102E;
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 8px;
    width: 100%;
    text-align: center;
}

.badge-opcion-number {
    color: var(--black);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 12px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-desc {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-info {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    border: 2px dashed var(--white);
}

.hero-photo {
    width: 48%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.hero-photo-2 {
    margin-left: 4%;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 80px 40px;
    background-color: var(--light-gray);
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-red);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text h3 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray);
}

.about-text .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* foto móvil — oculta en desktop */
.about-photo-top {
    display: none;
}

.about-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h4 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--gray);
    margin: 0;
}

/* ==================== PRIORITIES SECTION ==================== */
.priorities-section {
    padding: 80px 40px;
    background-color: var(--white);
}

.priorities-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.priorities-row {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.priorities-row:last-child {
    margin-bottom: 0;
}

.priorities-photo-col {
    flex: 0 0 200px;
    position: sticky;
    top: 90px;
}

.quote-with-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
    position: relative;
}

.quote-photo {
    width: 200px;
    border-radius: 10px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.quote-text {
    background: #f9f0f2;
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.priorities-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.priorities-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.priority-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-red);
    transition: all var(--transition);
    cursor: pointer;
}

.priority-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(228, 29, 61, 0.15);
}

.priority-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.priority-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.priority-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ==================== KEY POINTS SECTION ==================== */
.key-points {
    padding: 80px 40px;
    background-color: #f5f5f5;
}

.key-points h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-red);
}

.points-list {
    max-width: 900px;
    margin: 0 auto;
}

.point-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.point-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.point-content h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.point-content p {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* ==================== COMMITMENT SECTION ==================== */
.commitment-section {
    padding: 80px 40px;
    background-color: var(--white);
}

.commitment-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.commitment-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.commitment-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.commitment-list {
    list-style: none;
    padding: 0;
}

.commitment-list li {
    padding: 0.8rem 0;
    color: var(--black);
    border-bottom: 1px solid var(--border-gray);
    padding-left: 1.5rem;
    position: relative;
}

.commitment-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.commitment-list li:last-child {
    border-bottom: none;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    text-align: center;
}

.cta-message {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.logo-redencion {
    height: 180px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-large {
    background-color: var(--white);
    color: var(--primary-red);
}

/* ==================== CONTACT/DONATION SECTION ==================== */
.contact-section {
    padding: 80px 40px;
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-section h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.donation-btn {
    padding: 1rem;
    border: 2px solid var(--primary-red);
    background-color: var(--white);
    color: var(--primary-red);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.donation-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.donation-btn.custom {
    grid-column: 1 / -1;
}

.donation-message {
    border-left: 5px solid var(--primary-red);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    background-color: #fdf2f4;
    border-radius: 0 10px 10px 0;
}

.donation-cta {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.donation-alias {
    font-size: 1rem;
    color: #555;
    letter-spacing: 0.5px;
}

.donation-alias strong {
    font-size: 2rem;
    display: block;
    margin-top: 0.3rem;
    color: var(--primary-red);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.contact-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.contact-logo-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.custom-amount {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.custom-amount input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
}

.custom-amount button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(228, 29, 61, 0.1);
}

.checkbox-group p {
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
    color: var(--gray);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem 40px;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-info {
    font-size: 0.95rem;
    color: #ddd;
    font-weight: 500;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #999;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 1rem 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-top: 2px solid var(--primary-red);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-logo-col {
        padding: 1rem 0;
    }

    .hero {
        padding: 60px 20px;
    }

    .about-section,
    .priorities-section,
    .key-points,
    .cta-section,
    .contact-section {
        padding: 60px 20px;
    }

    .about-section h2,
    .priorities-section h2,
    .key-points h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .donation-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .point-item {
        flex-direction: column;
    }

    .commitment-content {
        padding: 1.5rem;
    }

    .commitment-section h2 {
        font-size: 2rem;
    }

    /* Priorities layout: stack photo above grid on mobile */
    .priorities-row {
        flex-direction: column;
    }

    .priorities-photo-col {
        flex: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        position: static;
    }

    .priorities-grid {
        grid-template-columns: 1fr;
    }

    /* About section */
    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    /* en móvil: mostrar foto del título, ocultar la del stats */
    .about-photo-top {
        display: block;
        max-width: 240px;
        width: 100%;
        margin: 16px auto 0;
        border-radius: 8px;
        object-fit: cover;
    }

    .about-stats .about-photo {
        display: none;
    }

    .about-photo {
        max-width: 240px;
        width: 100%;
    }


    /* Navbar brand */
    .nav-lista {
        font-size: 1rem;
    }

    .nav-candidate-name {
        font-size: 0.9rem;
    }

    /* Vote banner */
    .vote-banner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .vote-separator {
        display: none;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.6rem;
    }

    /* Contact form */
    .form-group input {
        font-size: 16px; /* prevents iOS zoom */
    }

    /* Lista 53 sidebar — hide on very small screens */
    .lista53-sidebar {
        display: none;
    }

    body {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .priority-card {
        padding: 1.5rem;
    }

    .stat-card h4 {
        font-size: 1.5rem;
    }

    .custom-amount {
        flex-direction: column;
    }

    .donation-options {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 16px;
    }

    .about-section,
    .priorities-section,
    .commitment-section,
    .cta-section,
    .contact-section {
        padding: 40px 16px;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}
