/* Variables propias del carrusel (las de marca -secondary, secondary-ink-
   ya vienen de style.css; estas son solo para el "flashcard" blanco) */
:root {
    --text-color: #1f2937;
}

/* NOTA: body, .ul_principal_segundario, .button_principal_segundario,
   .titulo y .container_todos ya no se definen aqui: vienen de style.css,
   que ahora se carga antes que este archivo, para que toda la app
   comparta el mismo color/tipografia de marca. */

.carousel-container {
    width: 90%;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 250px;
    margin: 0 auto 20px;
    transition: height 0.3s ease;
}

.carousel {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    text-align: justify;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: var(--secondary-ink);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--secondary-color);
}

.carousel-contador {
    font-family: "Nunito Sans", sans-serif;
    color: var(--text-color);
    font-size: 0.95rem;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 640px) {
    .carousel-container {
        width: 100%;
    }
    
    .carousel-item {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 0.875rem;
    }
}
  
