/* =============================================
   DEVSUMMIT 2025 - ESTILOS CSS
   ============================================= */

/* Configuración básica */
html {
    scroll-behavior: smooth;
}

/* Efecto de parpadeo mejorado para el contador */
@keyframes blinkEffect {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    45% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    55% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    65% {
        opacity: 1;
        transform: scale(1);
    }
    70% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    75% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.blink-digit {
    animation: blinkEffect 1.5s;
    animation-timing-function: ease-in-out;
}

/* Media query para dispositivos móviles */
@media (max-width: 640px) {
    .countdown-digit {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }
}

/* =============================================
   CARRUSEL DE SPONSORS
   ============================================= */

.sponsor-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.sponsor-carousel {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollSponsors 30s linear infinite;
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsor-carousel:hover {
    animation-play-state: paused;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
    transition: all 0.5s ease;
}

.sponsor-logo {
    width: 130px;
    height: 80px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.sponsor-logo,
.sponsor-placeholder {
    opacity: 0.7;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

/* Efecto hover para los logos */
.sponsor-item:hover .sponsor-logo,
.sponsor-item:hover .sponsor-placeholder {
    transform: scale(1.4);
    opacity: 1;
    filter: grayscale(0);
    z-index: 10;
}

/* Efecto de overlay que degrada los bordes del carrusel */
.sponsor-carousel-container::before,
.sponsor-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsor-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

.sponsor-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

/* =============================================
   NOTIFICACIONES
   ============================================= */

/* Estilos para la notificación de suscripción */
#subscription-notification {
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #10b981;
}

/* Animación para el botón de suscripción */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#subscription-form button:hover {
    animation: pulse 1.5s infinite;
}

/* =============================================
   AGENDA RESPONSIVA - MÓVIL
   ============================================= */

/* En móviles, cambiar el layout de la agenda para mostrar hora arriba y contenido abajo */
@media (max-width: 768px) {
    /* Cambiar el flex direction para que sea vertical en móviles */
    .agenda-container .agenda-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    /* Hora arriba en móviles */
    .agenda-container .agenda-time {
        width: 100%;
        text-align: left;
        margin-right: 0;
        margin-top: 0;
        font-size: 1.1rem;
        color: #0284c7;
        font-weight: 700;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }

    /* Contenido abajo en móviles */
    .agenda-container .agenda-content {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Ajustar espaciado general en móviles */
    .day-content {
        padding: 1.5rem;
    }

    .agenda-container {
        gap: 1.5rem;
    }
}

/* =============================================
   PESTAÑAS DE DÍAS - RESPONSIVO
   ============================================= */

/* Estilos base para las pestañas */
.day-tab {
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.day-tab:not(.active) {
    color: #374151;
}

.day-tab:not(.active):hover {
    color: #0284c7;
    background-color: #f3f4f6;
}

.day-tab.active {
    background-color: #0284c7;
    color: white;
}

/* Estilos responsivos para móviles */
@media (max-width: 640px) {
    /* Container de pestañas más estrecho en móviles */
    .day-tabs-container {
        padding: 0 1rem;
    }

    .day-tabs-wrapper {
        padding: 0.25rem;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
    }

    .day-tabs-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    /* Pestañas más compactas en móviles */
    .day-tab {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: max-content;
        text-align: center;
    }

    /* Contenedor de pestañas con scroll horizontal */
    .day-tabs-inner {
        display: flex;
        gap: 0.25rem;
        min-width: max-content;
    }
}

/* Para tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    .day-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* =============================================
   CONTADOR RESPONSIVO - MÓVIL
   ============================================= */

/* Mejoras para el contador en móviles */
@media (max-width: 640px) {
    /* Contenedor principal del contador */
    .countdown-container {
        margin: 0 auto;
        padding: 1.5rem 1rem;
        max-width: 95%;
    }

    #countdown {
        padding: 0.5rem;
        gap: 0.25rem;
        grid-template-columns: repeat(4, 70px);
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Cada elemento del contador */
    .countdown-item {
        padding: 0.75rem 0.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 80px;
        max-height: 80px;
        width: 100%;
        min-width: 60px;
        max-width: 70px;
        text-align: center;
        margin: 0 auto;
    }

    /* Números del contador */
    .countdown-container .countdown-digit {
        font-size: 1.8rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        margin: 0 auto;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        overflow: hidden;
    }

    /* Labels debajo de los números */
    .countdown-container .countdown-item .text-sm {
        font-size: 0.65rem;
        margin-top: 0.25rem;
        text-align: center;
        width: 100%;
        line-height: 1.1;
        height: 20px;
        min-height: 20px;
        max-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* Título del contador */
    .countdown-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Para tablets pequeñas */
@media (min-width: 641px) and (max-width: 768px) {
    .countdown-container .countdown-digit {
        font-size: 2.5rem;
    }

    .countdown-container .countdown-item {
        padding: 1rem 0.5rem;
        min-height: 80px;
    }
}
