/* Estilos generales */
/* Esquema de colores mejorado */
:root {
    /* Colores principales (azules) */
    --primary-color: #003366;
    --primary-light: #0D4C8C;
    --primary-dark: #002244;
    
    /* Color Pantone 148 U como acento */
    --accent-color: #EFBE7D; /* Pantone 148 U */
    --accent-dark: #C99653;
    --accent-light: #F5D3A2;
    
    /* Colores complementarios */
    --secondary-color: #005A9C;
    --secondary-light: #0076CE;
    --secondary-dark: #004275;
    
    /* Colores neutros y de texto */
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-text: #555555;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
    
    /* Efectos */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-gray);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    font-weight: 400;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.divider {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.divider span {
    display: inline-block;
    height: 4px;
    width: 70px;
    background-color: var(--secondary-color);
    position: relative;
}

.divider span:before, .divider span:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 30px;
    background-color: var(--accent-color); /* Pantone 148 U */
    top: 0;
}

.divider span:before {
    left: -40px;
}

.divider span:after {
    right: -40px;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(142, 92, 47, 0.2);
    margin-top: 20px;
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(142, 92, 47, 0.3);
}

/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(0, 51, 102, 0.95); /* Color azul oscuro */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.cta-nav {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
}

.cta-nav:hover {
    background: var(--secondary-light);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Cabecera con parallax */
.parallax-header {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1589391886645-d51941baf7fb?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 34, 68, 0.9), rgba(0, 90, 156, 0.85));
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 80px;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

.election-info {
    margin: 40px 0;
}

.election-info h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.vote-number {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0px 3px 8px rgba(0,0,0,0.3);
    margin: 25px 0;
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.4);
    border: 2px solid var(--accent-color); /* Borde color Pantone 148 U */
}

.vote-number span {
    font-size: 2.5rem;
    margin-right: 15px;
    vertical-align: middle;
    color: var(--accent-color); /* Pantone 148 U */
}

.election-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Contador regresivo */
.countdown {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.countdown-item {
    margin: 0 15px;
    text-align: center;
}

.countdown-item span:first-child {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    background: rgba(142, 92, 47, 0.85);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(107, 69, 32, 0.3);
}

.countdown-item span:last-child {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Perfil del candidato */
.candidate-profile {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.candidate-profile:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242,242,242,0.6) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.profile-image {
    flex: 1;
    min-width: 300px;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(10deg);
    transition: var(--transition);
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0);
}

.image-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,51,102,0.3), rgba(153,0,0,0.3));
    z-index: 1;
}

.image-container img {
    width: 100%;
    display: block;
}

.profile-text {
    flex: 2;
    min-width: 300px;
}

.profile-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.qualifications {
    margin-top: 40px;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.qualification-item .icon {
    flex: 0 0 60px;
    height: 60px;
    background-color: var(--light-gray);
    color: var(--accent-color); /* Pantone 148 U */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.qualification-item:hover .icon {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.qualification-item .text h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.qualification-item .text p {
    color: var(--gray-text);
}

/* Agradecimiento */
.gratitude {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-align: center;
    padding: 80px 0;
}

blockquote {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-left: 5px solid var(--secondary-color);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

blockquote:before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
}

blockquote cite {
    font-style: normal;
    font-weight: 600;
}

/* Rol del juez */
.role {
    background-color: white;
}

.role-content {
    margin-top: 40px;
}

.role-text p {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.role-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--light-gray);
    color: var(--accent-color); /* Pantone 148 U */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.role-card:hover .card-icon {
    background-color: var(--secondary-color);
    color: white;
}

.role-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.role-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Sobre la elección */
.election-nature {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.election-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.election-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.values {
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateX(10px);
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-gray);
    color: var(--accent-color); /* Pantone 148 U */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    transition: var(--transition);
}

.value-item:hover .value-icon {
    background-color: var(--secondary-color);
    color: white;
}

.value-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-dark);
}

.pdf-download {
    flex: 0 0 300px;
    text-align: center;
}

.pdf-download a {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pdf-download a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.pdf-download i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.pdf-download span {
    font-weight: 600;
}

/* Llamada a la acción */
.call-to-action {
    background-image: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.call-to-action .overlay {
    background: linear-gradient(rgba(0, 34, 68, 0.92), rgba(0, 51, 102, 0.88));
}

.call-to-action h2 {
    font-size: 2.5rem;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color); /* Pantone 148 U */
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 800;
    padding: 20px 50px;
    border-radius: 10px;
    margin: 40px 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(239, 190, 125, 0.4);
    border: 2px solid var(--primary-color);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 190, 125, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 190, 125, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 190, 125, 0);
    }
}

.cta-info {
    margin-top: 30px;
}

.candidate-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.position {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.social-share {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}


/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color); /* Pantone 148 U */
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* Estilos para el resumen del CV */
.cv-summary {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: left;
}

.cv-summary h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.cv-details {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.cv-section {
    margin-bottom: 20px;
}

.cv-section h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cv-section h4 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.cv-section ul {
    list-style-type: none;
    padding-left: 15px;
}

.cv-section ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.cv-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.cv-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-top: 10px;
}

.cv-download:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cv-download i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: white;
}

/* Ajustes responsive para el CV */
@media (max-width: 768px) {
    .cv-summary {
        padding: 20px 15px;
    }
    
    .cv-details {
        max-height: 300px;
    }
}

/* Estilos para mejorar la legibilidad de la propuesta */
.proposal-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--secondary-dark);
    font-weight: 500;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.proposal-point {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.proposal-point:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proposal-point h4 {
    font-size: 1.1rem;
    color: var (--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.proposal-point h4 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.proposal-point p {
    margin-left: 28px;
    margin-bottom: 0;
}

/* Responsive de la propuesta */
@media (max-width: 768px) {
    .proposal-point h4 {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
}

/* Información de la boleta */
.ballot-info {
    background-color: rgba(239, 190, 125, 0.15); /* Fondo sutilmente Pantone 148 U */
    border-left: 3px solid var(--accent-color);
}

.ballot-info i {
    color: var(--accent-color); /* Pantone 148 U */
}

/* Añadir texto específico en la información de la boleta */
.ballot-info p strong {
    color: var(--accent-color); /* Pantone 148 U */
}

/* Responsive */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }

    .header-content h1 {
        font-size: 2.8rem;
    }

    .vote-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .profile-content, .election-content {
        flex-direction: column;
    }

    .profile-image, .profile-text, .election-card, .pdf-download {
        width: 100%;
    }

    .header-content h1 {
        font-size: 2.2rem;
    }

    .election-info h2 {
        font-size: 1.5rem;
    }

    .vote-number {
        font-size: 3rem;
    }

    .election-info h3 {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 2rem;
        padding: 15px 40px;
    }

    .candidate-name {
        font-size: 1.5rem;
    }

    .countdown-item span:first-child {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2.2rem;
    }

    .countdown-item {
        margin: 0 10px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        height: calc(100vh - 70px);
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active i:before {
        content: "\f00d";
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }

    .vote-number {
        font-size: 2.5rem;
    }

    .vote-number span {
        font-size: 1.8rem;
    }

    .role-cards {
        grid-template-columns: 1fr;
    }

    blockquote {
        padding: 30px 20px;
    }
}