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

body {
    font-family: Arial, sans-serif;
    padding-top: 70px; /* Compensar navbar fija */
}

/* NAVBAR FIJA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #222;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #ff6600;
}

/* SECCIONES GENERALES */
.section {
    padding: 50px 20px;
    text-align: center;
    min-height: 100vh;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 20px;
}

/* CUENTA REGRESIVA */
.countdown-section {
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* background: transparent; Fondo transparente */
}

.countdown-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: auto;
    gap: 20px;
}

/* Lado izquierdo */
.event-info {
    flex: 1;
    text-align: left;
}

.event-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.event-info p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.event-info .btn {
    padding: 10px 20px;
    background: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.event-info .btn:hover {
    background: #e78b12;
}

/* Lado derecho */
.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    transition: all 0.5s ease;
}

.time-box span {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6600;
    display: block;
    perspective: 1000px;
    position: relative;
}

/* Texto debajo de números */
.time-box p {
    font-size: 0.9rem;
    color: white;
}

/* Animación Flip */
.flip {
    animation: flipAnim 0.6s ease-in-out;
}

@keyframes flipAnim {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* CONTACTO */
#contacto {
    min-height: 85vh; /* 70% de la altura de la ventana */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .countdown-container {
        flex-direction: column;
        text-align: center;
    }

    .event-info {
        text-align: center;
    }
}

@media (max-width: 375px) {
    .countdown-container {
        flex-direction: column;
        text-align: center;
    }

    .event-info {
        text-align: center;
    }

    .time-box span {
        font-size: 1.3rem;
    }

    .time-box p {
        font-size: 0.7rem;
    }
}
