/* Fuente general */
body {
    background-color: #f4f4f4;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Sección de portada con superposición */
.hero-section {
    position: relative;
    max-height: 50vh;
    overflow: hidden;
}

.cover-photo {
    width: 100%;
    max-height: 50vh; /* Máximo 50% de la altura de la pantalla */
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 2rem;
}

/* Estilo de la foto del candidato */
.candidate-photo {
    width: 80%;
    max-width: 320px;
    border: 5px solid #d32f2f;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.candidate-photo:hover {
    transform: scale(1.05);
}

/* Contenedor de información */
.container-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.candidate-name {
    color: #d32f2f;
    font-size: 3rem;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
}

/* Temporizador */
.countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #d32f2f;
    padding: 20px;
    border: 2px dashed #d32f2f;
    border-radius: 10px;
    background: #fff5f5;
}

/* Estilo de la papeleta */
.ballot-image {
    max-width: 100%;
    border: 5px solid #d32f2f;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    transition: transform 0.3s ease-in-out;
}

.ballot-image:hover {
    transform: scale(1.05);
}

/* Responsividad */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
}
