/* --- 1. VARIABLES DE MARCA --- */
:root {
    --verde-joseph: #004d47;  
    --amarillo-joseph: #ffd300; 
    --gris-brand: #303030;    
    --blanco: #ffffff;
    --beige-plaza: #f3f3e0;   
    --verde-alianza: #009440; 
    --whatsapp-green: #25D366;
}

/* --- 2. GENERAL --- */
body {
    background-color: var(--verde-joseph);
    font-family: 'Oswald', sans-serif;
    color: var(--blanco);
    margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center;
    overflow-x: hidden;
}

/* --- 3. HEADER --- */
header {
    width: 100%; max-width: 1200px; 
    padding: 0px 30px; 
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box; z-index: 10;
    height: auto; 
}

.header-logo {
    max-height: 250px; 
    width: auto;      
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    margin-top: -10px; 
}

/* Botones del Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn-header {
    background-color: transparent;
    border: 2px solid var(--amarillo-joseph);
    color: var(--amarillo-joseph);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.icon-btn-header:hover {
    background-color: var(--amarillo-joseph);
    color: var(--verde-joseph);
    transform: scale(1.1);
}

.btn-unete {
    background-color: var(--amarillo-joseph); color: var(--verde-joseph);
    padding: 12px 30px; border-radius: 50px; text-decoration: none;
    font-weight: 700; text-transform: uppercase; font-size: 1rem;
    transition: transform 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-top: 10px; 
}
.btn-unete:hover { transform: scale(1.05); }

/* --- 4. HERO SECTION --- */
.hero {
    width: 100%; max-width: 1300px; padding: 0;
    display: flex; flex-direction: row; 
    align-items: flex-start; 
    justify-content: center;
    gap: 30px; box-sizing: border-box; 
    min-height: 60vh;
    margin-top: -50px; 
    padding-top: 0px; 
}

.hero-content {
    flex: 0 1 auto; text-align: right; z-index: 2;
    margin-bottom: 20px; 
    margin-top: 40px; 
    display: flex; flex-direction: column; align-items: flex-end;
    min-height: 450px;
}

/* Badge 115 Animado */
.hero-super-badge {
    display: flex; flex-direction: column; align-items: flex-end;
    margin-bottom: 30px; 
    animation: badgePulse 2s infinite; transform-origin: center;
}
@keyframes badgePulse {
    0%, 20%, 40%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.05); } 
}
.super-camara-text { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0px; margin-right: 5px; }
.super-number-box { position: relative; padding: 0 10px; display: inline-block; }
.super-number-box::before {
    content: ''; position: absolute; top: -5px; right: -10px; bottom: 0; left: 20%;
    border-top: 5px solid var(--blanco); border-right: 5px solid var(--blanco); border-bottom: 5px solid var(--blanco);
    pointer-events: none;
}
.super-number-box::after {
    content: ''; position: absolute; bottom: -8px; left: 35px; width: 15px; height: 15px;
    border-bottom: 5px solid var(--blanco); border-right: 5px solid var(--blanco);
    transform: rotate(45deg); background-color: var(--verde-joseph); pointer-events: none;
}
.super-number-text { font-size: 6rem; font-weight: 700; line-height: 0.9; display: block; margin-top: 5px; }

/* Textos Hero */
.caja-texto {
    background-color: var(--amarillo-joseph); color: var(--verde-joseph);
    padding: 10px 25px; font-size: 3.2rem; font-weight: 700; text-transform: uppercase;
    transform: rotate(-2deg); display: inline-block; margin-bottom: 10px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

.num-destacado {
    font-size: 1.3em;
    vertical-align: -3px; 
    margin-right: 5px;
}

.texto-gigante {
    font-size: 5.5rem; font-weight: 700; text-transform: uppercase;
    line-height: 0.85; margin: 10px 0; text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.num-proposito {
    color: var(--amarillo-joseph);
    font-size: 1.1em;
    margin-right: 10px;
}

.subtitulo-impacto {
    font-size: 2.8rem; display: flex; align-items: center; justify-content: flex-end;
    gap: 15px; margin-top: 15px; min-height: 1.2em;
}
.badge-para {
    background-color: var(--amarillo-joseph); color: var(--verde-joseph);
    padding: 5px 15px; font-size: 2rem; font-weight: 700; transform: rotate(3deg);
    white-space: nowrap; 
}

/* Animación Máquina de Escribir JS */
.texto-maquina-js {
    border-right: 5px solid var(--amarillo-joseph); padding-right: 5px;
    animation: blink-cursor 0.75s step-end infinite; 
    white-space: nowrap; 
    display: inline-block;
}
@keyframes blink-cursor { from, to { border-color: transparent; } 50% { border-color: var(--amarillo-joseph); } }

/* Hero Image y Contenedor */
.hero-image { 
    flex: 0 1 auto; 
    display: flex; 
    justify-content: flex-start; 
    align-items: flex-end; 
    position: relative; 
    margin-top: -80px; 
    overflow: visible; 
}

.hero-image img { 
    max-width: 100%; 
    height: auto; 
    max-height: 680px; 
    filter: drop-shadow(10px 10px 15px rgba(0,0,0,0.3)); 
    animation: slideIn 1s ease-out; 
    z-index: 1; 
}
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* --- FIRMA DEL CANDIDATO (ESCRITORIO - AJUSTADO PARA SUBIR) --- */
.candidate-signature {
    position: absolute; 
    /* AJUSTE: Se cambió a 0px para subirlo y que monte la imagen */
    bottom: 0px; 
    right: 0px; 
    z-index: 10;
    
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 5px;
    
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
    transform: rotate(-3deg);
}

.name-block { 
    line-height: 0.85; 
    text-align: center; 
    margin: 0; 
}

.party-logo-box {
    background-color: transparent; 
    padding: 0;
    border: none;
    box-shadow: none;
    display: block; 
    margin: 0;
}

/* IMAGEN ALIANZA VERDE */
.party-logo-img {
    width: 140px; 
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
    object-fit: contain;
    margin-bottom: -15px; 
    z-index: 2;
}

/* IMAGEN FIRMA */
.candidate-logo-img {
    width: auto;
    height: auto;
    max-width: 180px; 
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4));
    object-fit: contain;
    margin-top: 0;
    z-index: 1;
}

/* --- 5. PROPUESTAS (TARJETAS) --- */
.propuestas-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    max-width: 1200px; padding: 40px 20px 80px 20px; width: 100%;
}
.card {
    background-color: transparent; border: 3px solid var(--amarillo-joseph);
    width: 180px; padding: 30px 15px 50px 15px; text-align: center;
    position: relative; transition: transform 0.3s;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    cursor: pointer;
}
.card:hover { transform: translateY(-10px); background: var(--amarillo-joseph); }
.card:hover .card-icon, .card:hover h3 { color: var(--verde-joseph); }
.card:active { transform: scale(0.98); }

.card-icon { font-size: 4rem; color: var(--amarillo-joseph); margin-bottom: 15px; display: block; text-shadow: 2px 2px 0px rgba(0,0,0,0.3); }
.card h3 { font-size: 1.3rem; margin: 0; text-transform: uppercase; line-height: 1.1; font-weight: 700; color: var(--blanco); }

/* --- 6. MODALES Y GALERÍA --- */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--verde-joseph); margin: 20px auto; padding: 0;
    border: 4px solid var(--amarillo-joseph); width: 95%; max-width: 600px;
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-btn {
    color: var(--amarillo-joseph); float: right; font-size: 40px; font-weight: bold;
    position: absolute; right: 15px; top: 0px; cursor: pointer; z-index: 10;
}
.close-btn:hover { color: var(--blanco); }

.modal-body { padding: 30px; text-align: center; }

.modal-img { 
    width: 100%; height: auto; max-height: 50vh; object-fit: contain;
    border-bottom: 4px solid var(--amarillo-joseph); margin-bottom: 20px; display: block; 
    margin-left: auto; margin-right: auto;
}

.modal-title { font-size: 2.2rem; color: var(--amarillo-joseph); text-transform: uppercase; margin: 0 0 15px 0; line-height: 1; }
.modal-desc { font-size: 1.1rem; line-height: 1.5; font-weight: 300; color: var(--blanco); }

/* Grid Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}
.gallery-item {
    position: relative; overflow: hidden; border: 2px solid var(--amarillo-joseph);
    border-radius: 5px; display: flex; flex-direction: column;
}
.gallery-item img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Botones Galería */
.btn-download {
    display: block; width: 100%; background-color: var(--amarillo-joseph);
    color: var(--verde-joseph); text-align: center; padding: 8px 0;
    text-decoration: none; font-weight: bold; font-size: 0.9rem;
    transition: background 0.3s; border: none; cursor: pointer;
    font-family: 'Oswald', sans-serif; z-index: 2; 
}
.btn-download:hover { background-color: #fff; color: var(--verde-joseph); }

.pagination-controls {
    display: flex; justify-content: center; align-items: center; gap: 20px;
    margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1);
}
.page-indicator { color: var(--amarillo-joseph); font-size: 1.2rem; }
.btn-pag {
    background-color: transparent; border: 2px solid var(--blanco); color: var(--blanco);
    padding: 5px 15px; border-radius: 20px; cursor: pointer; transition: all 0.3s;
    font-family: 'Oswald', sans-serif; display: flex; align-items: center; gap: 5px;
}
.btn-pag:hover { background-color: var(--amarillo-joseph); border-color: var(--amarillo-joseph); color: var(--verde-joseph); }

/* --- 7. FOOTER COMBINADO --- */
.footer-combined { width: 100%; background-color: var(--gris-brand); padding: 80px 20px; display: flex; justify-content: center; }
.footer-content { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 60px; width: 100%; max-width: 1200px; flex-wrap: wrap; }

.col-form, .col-voluntario { flex: 1; min-width: 300px; }

.col-voluntario { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding-top: 20px; }
.voluntario-title { font-size: 3.5rem; line-height: 0.9; margin: 0 0 25px 0; text-transform: uppercase; }
.voluntario-title span { font-size: 2.5rem; font-weight: 400; }

/* --- ANIMACIÓN Y ESTILOS BOTÓN WHATSAPP --- */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #000; /* Texto negro para máximo contraste */
    padding: 20px 50px; /* Tamaño aumentado */
    border-radius: 10px; /* Bordes redondeados modernos */
    font-size: 2rem; /* Texto gigante */
    font-weight: 800; /* Negrita pesada */
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: fit-content;
    animation: pulse-green 2s infinite; /* Animación de latido */
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: #fff;
    animation: none; /* Detener animación al hacer hover */
    transform: scale(1.1); /* Crecer un poco más fijo */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.btn-whatsapp i { font-size: 2.2rem; }

.voluntario-text { font-size: 1rem; max-width: 90%; margin-bottom: 40px; opacity: 0.8; font-weight: 300; border-left: 2px solid var(--amarillo-joseph); padding-left: 15px; }
.vinculate-container { display: flex; flex-direction: column; gap: 0px; transform: rotate(-2deg); }
.vinculate-big { font-size: 4.5rem; font-weight: 700; text-transform: uppercase; line-height: 0.85; color: var(--blanco); }

.col-form { max-width: 500px; }
.form-container {
    border: 4px solid var(--amarillo-joseph); padding: 40px; width: 100%; position: relative;
    background-color: var(--verde-joseph); box-sizing: border-box; box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
}
.form-title-urban { 
    color: var(--blanco); font-size: 2.5rem; margin-top: 0; margin-bottom: 40px; 
    text-transform: uppercase; line-height: 1; font-weight: 700; text-align: center; 
}
.sticker-aqui { background-color: var(--amarillo-joseph); color: var(--verde-joseph); padding: 2px 10px; display: inline-block; transform: rotate(-3deg); margin-left: 5px; }
.input-group { margin-bottom: 25px; position: relative; }

.input-urban {
    width: 100%; background: rgba(0,0,0,0.2); border: none; border-bottom: 3px solid var(--blanco);
    padding: 15px 10px; color: var(--blanco); font-family: 'Oswald', sans-serif; font-size: 1.1rem;
    box-sizing: border-box; transition: all 0.3s;
}
.input-urban::placeholder { color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 400; }
.input-urban:focus { outline: none; background: rgba(255, 211, 0, 0.1); border-bottom: 3px solid var(--amarillo-joseph); padding-left: 20px; }

select.input-urban {
    color: var(--blanco);
    appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat; background-position: right 10px center;
}
select.input-urban option { background-color: var(--verde-joseph); color: var(--blanco); }

.btn-submit-urban {
    width: 100%; background-color: var(--blanco); color: var(--verde-joseph); border: none; padding: 15px;
    font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; text-transform: uppercase;
    cursor: pointer; border: 2px solid var(--blanco); transition: all 0.2s; margin-top: 10px;
}
.btn-submit-urban:hover {
    background-color: var(--amarillo-joseph); border-color: var(--amarillo-joseph);
    color: var(--verde-joseph); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- 8. MÓVIL Y ZOOM (RESPONSIVE) --- */
@media (max-width: 900px) {
    header { flex-direction: row; padding: 10px 20px; }
    .header-logo { max-height: 150px; }

    /* Ajuste de botones en móvil */
    .header-actions { gap: 10px; }
    .icon-btn-header { width: 40px; height: 40px; font-size: 1rem; }
    .btn-unete { padding: 10px 15px; font-size: 0.9rem; }

    .hero { flex-direction: column; margin-top: 0px; align-items: center; }
    .hero-content { 
        min-height: auto; align-items: center; text-align: center; 
        margin-bottom: 40px; width: 95%; margin-top: 20px;
    } 
    .hero-super-badge { align-items: center; }

    .subtitulo-impacto { justify-content: center; flex-wrap: wrap; gap: 5px; }
    .texto-maquina-js { font-size: 1.5rem; white-space: normal; border-right: none; padding-right: 0; }
    .badge-para { font-size: 1.5rem; }

    .hero-image { 
        width: 100%; justify-content: center; margin-top: 0px; 
        flex-direction: column; align-items: center; overflow: visible; 
    }
    .hero-image img { width: 85%; max-width: 400px; height: auto; max-height: none; }
    
    /* En móvil, dejamos que fluya natural debajo de la foto */
    .candidate-signature {
        position: relative; 
        transform: rotate(0deg); 
        /* AJUSTE MÓVIL: Margen negativo arriba para subirlo y acercarlo */
        margin: -10px auto 20px auto; 
        top: 0; /* Reseteamos el top */
        width: fit-content;
        left: 20px; 
        bottom: auto; 
        right: auto;
    }

    .footer-content { flex-direction: column; gap: 50px; align-items: center; }
    .col-voluntario { order: 1; width: 100%; text-align: center; align-items: center; padding-top: 0; } 
    .voluntario-text { border: none; padding: 0; text-align: center; max-width: 90%; margin: 0 auto 30px auto; }
    .vinculate-container { align-items: center; transform: rotate(0deg); }
    
    .col-form { order: 2; width: 100%; display: flex; justify-content: center; }
    .form-container { width: 95%; margin: 0 auto; padding: 30px 20px; }

    /* Ajuste Modal Móvil */
    .modal-content { margin: 15% auto; width: 95%; }
}