/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --blanco: #FFFFFF;
    --gris-luz: #F8F9FA;
    --azul-poder: #0047AB; 
    --azul-oscuro: #003580;
    --rojo-accion: #E63946; 
    --texto-oscuro: #1A1A1A;
    --texto-gris: #555555;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
@font-face {
    font-family: 'Ubuntu'; 
    src: url('../fonts/Ubuntu-Regular.woff2') format('woff2'), /* Formato moderno y ligero */
         url('../fonts/Ubuntu-Regular.ttf') format('truetype'); /* Respaldo para navegadores viejos */
    /* font-weight: bold; */
    font-style: normal;
    font-display: swap; /* Evita que el texto desaparezca mientras carga */
}
@font-face {
    font-family: 'WarWound'; 
    src: url('../fonts/WarWound.woff2') format('woff2'), /* Formato moderno y ligero */
         url('../fonts/WarWound.ttf') format('truetype'); /* Respaldo para navegadores viejos */
    /* font-weight: bold; */
    font-style: normal;
    font-display: swap; /* Evita que el texto desaparezca mientras carga */
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   NAVEGACIÓN (Navbar)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--azul-poder);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--rojo-accion);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--azul-poder);
}

.btn-rojo-nav {
    background: var(--rojo-accion);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* =========================================
   HERO SECTION (IMAGEN FIJA)
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 8% 0px; /* Reducido padding inferior para que la foto toque la base */
    min-height: 90vh;
    background: linear-gradient(135deg, #ffffff 60%, #f0f4f8 100%);
}

.hero-content {
    flex: 1.2;
    padding-right: 60px;
}

.hero-content h1 {
	/* font-family: 'WarWound';  */
    font-family: 'Libre Baskerville', serif;
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--azul-poder);
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--rojo-accion);
    display: block;
}

.distrito-tag {
    display: inline-block;
    background-color: rgba(0, 71, 171, 0.1);
    color: var(--azul-poder);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.main-subtitle {
	font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--texto-gris);
    max-width: 500px;
}

.main-subtitle strong {
    color: var(--azul-poder);
}

.divider-short {
    width: 60px;
    height: 4px;
    background-color: var(--rojo-accion);
    margin: 20px 0;
    border-radius: 2px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-btns a {
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-azul {
    background: var(--azul-poder);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.2);
}

.btn-azul:hover {
    background: var(--azul-oscuro);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--azul-poder);
    color: var(--azul-poder);
}

.btn-outline:hover {
    background: var(--azul-poder);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 71, 171, 0.15));
}
/* =========================================
	LETRA P POR DEFECTO
   ========================================= */
.p {
    font-family: 'Ubuntu', sans-serif;
}

/* =========================================
   PROPUESTAS (Grid)
   ========================================= */
.propuestas {
    padding: 100px 8%;
    background: var(--blanco);
}

.section-title {
    text-align: center;
    /* font-family: 'Libre Baskerville', serif; */
	font-family: 'Ubuntu', serif;
    font-size: 2.5rem;
    color: var(--azul-poder);
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    background: var(--gris-luz);
    border-radius: 15px;
    border-bottom: 4px solid transparent;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--rojo-accion);
}

.card h3 {
	font-family: 'Ubuntu', sans-serif;
    /* font-family: 'Montserrat', sans-serif; */
    margin-bottom: 15px;
    color: var(--azul-poder);
}

/* =========================================
   RESPONSIVE (Móviles)
   ========================================= */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background: var(--azul-poder);
}

@media (max-width: 992px) {
    .mobile-menu-icon { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-links.active { display: flex; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 0px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h1 { font-size: 2.8rem; }
    .main-subtitle { margin: 0 auto; }
    .divider-short { margin: 20px auto; }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns a { width: 100%; max-width: 300px; }

    .hero-image img {
        max-width: 85%;
    }
}

/* Estilos Generales de la Sección */
.seccion-contacto {
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: 'Arial', sans-serif; /* Aquí puedes usar la fuente que configuramos antes */
}

.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Títulos */
.seccion-contacto h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Grid Responsive (Magia aquí) */
.grid-contacto {
    display: flex;
    flex-direction: column; /* Por defecto para móvil */
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

/* Formulario */
.formulario {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.grupo-input {
    margin-bottom: 15px;
}

.grupo-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.grupo-input input, 
.grupo-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Importante para que el padding no rompa el ancho */
}

.boton-enviar {
    background-color: #0056b3; /* Color de campaña */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s;
}

.boton-enviar:hover {
    background-color: #003d7a;
}

/* Información Directa */
.info-directa h3 {
    color: #0056b3;
}

.lista-contacto {
    list-style: none;
    padding: 0;
}

.lista-contacto li {
    margin-bottom: 15px;
}

/* --- MEDIA QUERIES (Ajuste para Pantallas Grandes) --- */
@media (min-width: 768px) {
    .grid-contacto {
        flex-direction: row; /* Se ponen uno al lado del otro */
        align-items: flex-start;
    }

    .formulario, .info-directa {
        flex: 1; /* Se reparten el espacio 50/50 */
    }
}

/* =========================================
   CARRUSEL DE FOTOS (Una a la vez)
   ========================================= */
/* =========================================
   CARRUSEL DE FOTOS (Una a la vez - RESPETA PROPORCIONES)
   ========================================= */
.hero-banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa; /* Fondo por si las fotos tienen transparencia */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px; /* Altura fija para el contenedor */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Espacio interno para que las fotos no toquen los bordes */
    box-sizing: border-box;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para respetar proporciones */
    border-radius: 8px;
}

/* Flechas de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--azul-poder);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--azul-poder);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--rojo-accion);
    transform: scale(1.2);
    border-color: white;
}

.indicator:hover {
    background-color: var(--azul-poder);
    transform: scale(1.1);
}

/* Responsive para el carrusel */
@media (max-width: 1200px) {
    .carousel-slides {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 60px;
    }

    .hero-banner {
        margin-left: 0;
        margin-top: 40px;
        width: 100%;
        max-width: 500px;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-slides {
        height: 400px;
    }
    
    .carousel-slide {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .carousel-slides {
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-slide {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-slides {
        height: 300px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slides {
        height: 250px;
    }
}

/* =========================================
   VIDEO RESPONSIVE
   ========================================= */
.video-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    width: 100%;
    max-width: 500px;
}

.responsive-video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive para el video */
@media (max-width: 992px) {
    .video-container {
        margin-left: 0;
        margin-top: 40px;
        max-width: 100%;
    }
    
    .responsive-video {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .responsive-video {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .responsive-video {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .responsive-video {
        max-height: 250px;
    }
}


/* =========================================
   SECCIÓN TRAYECTORIA - DISEÑO OPTIMIZADO
   ========================================= */

/* Opción 1 - Contenedor vertical centrado */
.contenedor-trayectoria {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.foto-candidato {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
    transition: transform 0.3s ease;
}

.foto-candidato:hover {
    transform: translateY(-10px);
}

.img-candidato {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.divider-custom {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--azul-poder), var(--rojo-accion));
    border-radius: 2px;
    margin: 10px 0;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: var(--gris-luz);
    border-radius: 15px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.qr-container:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.img-qr {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.qr-leyenda {
    color: var(--azul-poder);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Opción 2 - Grid lado a lado */
.grid-trayectoria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-qr-grid {
    width: 180px;
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.img-qr-grid:hover {
    transform: scale(1.05);
}

.qr-texto {
    margin-top: 15px;
    color: var(--azul-poder);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-trayectoria {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-item:first-child {
        order: 1;
    }
    
    .grid-item:last-child {
        order: 2;
    }
    
    .foto-candidato {
        max-width: 400px;
    }
    
    .img-qr, .img-qr-grid {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .contenedor-trayectoria {
        padding: 10px;
    }
    
    .foto-candidato {
        max-width: 300px;
    }
    
    .img-qr {
        width: 120px;
        height: 120px;
    }
}

