/* ===================================================================
   ELONGA - PLATAFORMA DE LENGUA GESTUAL ANGOLANA
   CSS Profesional y Responsive
   =================================================================== */

/* ===================================================================
   RESET Y CONFIGURACIÓN BASE
   =================================================================== */

/* Scroll suave */
html,body {
    scroll-behavior: smooth;
     overflow-x: hidden;
     width: 100%;
} 

/* Box-sizing universal */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Variables CSS */
:root {
    --primary-color: #2467b4;
    --primary-dark: #1a4d8a;
    --secondary-color: #4a90e2;
    --accent-color: #ff6b6b;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ===================================================================
/* ===================================================================
   NAVBAR - BARRA DE NAVEGACIÓN
   Estilos centralizados en: /static/css/navbar.css
   =================================================================== */


/* ===================================================================
   HERO SECTION - SECCIÓN PRINCIPAL
   =================================================================== */

.hero1 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    padding: 120px 40px 80px 40px;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#download-icon{
    cursor: pointer;
}

.hero1-contenido {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: center;
}

.caixa_info {
    flex: 1;
    min-width: 350px;
    max-width: 600px;
    text-align: left;
}

.caixa_info h1 {
    font-size: 3em;
    color: var(--primary-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.texto2 {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.imagen-fondo1 {
    /*max-width: 280px;*/
    margin-top: 0px;
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    /*animation: float 3s ease-in-out infinite;*/
}

.imagen-fondo2 {
    height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    margin-top: 80px;
    width: 290px;
}

   .testimonios-container{
    display: flex;
    justify-content: center; /* centra horizontalmente */
    gap: 30px;
    flex-wrap: wrap; /* para móviles */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===================================================================
   BUSCADOR MODERNO Y PROFESIONAL
   =================================================================== */

.busqueda_form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 60px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 10px 40px rgba(36, 103, 180, 0.15);
    transition: var(--transition);
    border: 2px solid transparent;
    margin-top: 60px;
}

.search-wrapper:hover {
    box-shadow: 0 15px 50px rgba(36, 103, 180, 0.25);
    transform: translateY(-2px);
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(36, 103, 180, 0.1);
}

.search-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
    font-family: inherit;
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(36, 103, 180, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d3a6d 100%);
    transform: translateX(3px);
    box-shadow: 0 6px 25px rgba(36, 103, 180, 0.4);
}

.search-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.search-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ===================================================================
   SOBRE NÓS - ABOUT SECTION
   =================================================================== */

.caixa_hero_sobrenos {
    background: var(--bg-white);
    padding: 100px 50px;
    text-align: center;
}

.div_sobrenos {
    max-width: 1000px;
    margin: 0 auto;
}

.titulo_sobrenos {
    font-size: 2.8em;
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.titulo_sobrenos::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.txt_sobrenos {
    font-size: 1.15em;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 25px;
    text-align: justify;

}

/*Contenido del grafico */


.contexto-social {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contexto-text,
.grafica-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.contexto-text {
    overflow-wrap: break-word;
    word-break: normal;
}

.desafios-list {
    max-width: 100%;
    padding-left: 0;
    list-style: none;
}

.desafios-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    overflow-wrap: break-word;
}

.grafica-wrapper {
    overflow: hidden;
}

.chart-container-sobre {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
}

.chart-container-sobre canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}


/* ===================================================================
   CURSOS DISPONÍVEIS - SERVICES SECTION
   =================================================================== */

.caixa_hero {
    background: var(--bg-light);
    padding: 100px 50px;
    text-align: center;
}

.titulo_cursos {
    font-size: 2.8em;
    color: var(--primary-dark);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.titulo_cursos::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.mis_cursos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.curso_card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    width: 350px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.curso_card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.curso_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.curso_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(33%) sepia(89%) saturate(1093%) hue-rotate(190deg) brightness(91%) contrast(90%);
}

.curso_info h3 {
    font-size: 1.5em;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.curso_info p {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================================================
   BIBLIOTECA VIRTUAL - CAROUSEL
   =================================================================== */

.caixa_hero_libro {
    background: var(--bg-white);
    padding: 100px 50px;
    text-align: center;
}

.titulo_biblioteca {
    font-size: 2.8em;
    color: var(--primary-dark);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.titulo_biblioteca::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 50px auto;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
}

.carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.libro-card {
    min-width: 240px;
    max-width: 240px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.libro-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.libro-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-light);
}

.libro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.libro-card:hover .libro-image img {
    transform: scale(1.05);
}

.libro-content {
    padding: 20px;
}

.libro-content h3 {
    font-size: 1.15em;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
    min-height: 50px;
}

.autor {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.precio {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 700;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn i {
    font-size: 18px;
}

.ver-mais-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ver-mais-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===================================================================
   ESTADÍSTICAS - CHART SECTION
   =================================================================== */

.estadisticas-section {
    background: var(--bg-light);
    padding: 100px 50px;
    text-align: center;
}

.chart-container {
    max-width: 900px;
    height: 400px;
    margin: 40px auto;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.chart-note {
    color: var(--text-light);
    font-size: 0.95em;
    font-style: italic;
    margin-top: 20px;
}

#graficoSurdos {
    max-width: 100%;
    height: 100%;
} 

/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d3a6d 100%);
    color: white;
    padding: 60px 50px 30px 50px;
}

.div_footer {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    flex-wrap: wrap;
}

.footer_columna {
    flex: 1;
    min-width: 250px;
}

.footer_columna h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

.footer_columna h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: white;
}

.footer_columna p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.footer_columna ul {
    list-style: none;
}

.footer_columna ul li {
    margin-bottom: 12px;
}

.footer_columna ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer_columna ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer_columna i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 18px;
    color: white;
    margin: 0;
}

.footer_bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer_bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

/* ===================================================================
   BOTÃO WHATSAPP FLUTUANTE
   =================================================================== */

.boton_watsap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    margin-right: 2px;
    width: 70px;
    height: 70px;
    /*background: #25D366;*/
    background: rgba(26, 9, 1, 0.782);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(169, 57, 5, 0.782);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 30px rgba(200, 76, 19, 0.782);
    }

    50% {
        box-shadow: 0 4px 30px rgba(200, 76, 19, 0.786);
    }
}

.boton_watsap:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(169, 57, 5, 0.782);
}

.boton_watsap img {
    width: 40px;
    height: 40px;
}

/* ===================================================================
   RESPONSIVE DESIGN - PANTALLAS EXTRA GRANDES
   =================================================================== */

@media (min-width: 1920px) {

    .hero1-contenido,
    .stats-container,
    .div_sobrenos,
    .mis_cursos,
    .featured-books,
    .steps-container,
    .testimonios-container {
        max-width: 1600px;
    }

    .caixa_info h1 {
        font-size: 3.5em;
    }

    .stat-number {
        font-size: 3.5em;
    }
}

/* ===================================================================
   RESPONSIVE DESIGN - DESKTOP GRANDE (1440px - 1920px)
   =================================================================== */

@media (max-width: 1440px) {
    .hero1-contenido {
        max-width: 1300px;
    }

    .caixa_info h1 {
        font-size: 2.8em;
    }
}

/* ===================================================================
   RESPONSIVE DESIGN - LAPTOP/DESKTOP (1024px - 1440px)
   =================================================================== */

@media (max-width: 1024px) {
    .hero1 {
        padding: 100px 30px 60px 30px;
    }

    .caixa_info h1 {
        font-size: 2.5em;
    }

    .mis_cursos {
        gap: 30px;
    }

    .curso_card {
        width: 300px;
    }

    .featured-books {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .steps-container,
    .testimonios-container {
        gap: 30px;
    }

    .sobre-content {
        gap: 40px;
    }

    .sobre-image {
        flex: 0 0 300px;
    }
}

/* ===================================================================
   RESPONSIVE DESIGN - TABLET LANDSCAPE (900px - 1024px)
   =================================================================== */

@media (max-width: 900px) {
    .caixa_info h1 {
        font-size: 2.2em;
    }

    .texto2 {
        font-size: 1.1em;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-books {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .sobre-content {
        flex-direction: column;
    }

    .sobre-image {
        flex: 1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===================================================================
   RESPONSIVE DESIGN - TABLET PORTRAIT (768px - 900px)
   =================================================================== */

@media (max-width: 768px) {
    /* Hero móvel */
    .hero1 {
        padding: 90px 20px 50px 20px;
        min-height: 600px;
    }

    .hero1-contenido {
        flex-direction: column;
        gap: 30px;
    }

    .sobre-image img{
        margin: auto !important;
        display: block;

    }

    .imagen-fondo2 {
        display: none;
    }

    .imagen-fondo1 {
        max-width: 180px;
        order: 2;
    }

    .caixa_info {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .caixa_info h1 {
        font-size: 2em;
    }

    .btn-biblioteca {
        padding: 16px 35px;
        font-size: 12px !important;

    }


    /*Centralizar la parte fel grafico*/


  .contexto-social {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .contexto-text,
    .grafica-wrapper {
        width: 100%;
        max-width: 700px;
    } 

    .desafios-list {
        text-align: left;
    }
    /*------------------------------------------------*/

    .texto2 {
        font-size: 1.05em;
    }

    /* Hero CTAs responsive */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

      .search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    /* Buscador móvel */
    .search-wrapper {
        padding: 6px 6px 6px 20px;
    }

    .search-input {
        font-size: 14px;
        padding: 12px 8px;
    }

    .search-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .btn-text {
        display: none;
    }

    .btn-icon {
        margin: 0;
    }

    /* Stats responsive */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2em;
    }

    /* Sobre Nós responsive */
    .sobre-content {
        flex-direction: column;
    }

    .sobre-image {
        flex: 1;
        max-width: 100%;
    }

    .sobre-features {
        grid-template-columns: 1fr;
    }

    /* Secciones móviles */
    .caixa_hero_sobrenos,
    .caixa_hero,
    .caixa_hero_libro,
    .estadisticas-section,
    .biblioteca-preview,
    .como-funciona,
    .testimonios,
    .cta-final {
        padding: 60px 20px;

    }


    /*
    div .testimonio-card {
        margin: auto !important;
        display: block;
    }
    */

    .titulo_sobrenos,
    .titulo_cursos,
    .titulo_biblioteca {
        font-size: 2em;
    }

    .txt_sobrenos {
        font-size: 1em;
        text-align: left;
    }

    /* Cursos móviles */
    .mis_cursos {
        gap: 25px;
    }

    .curso_card {
        width: 100%;
        max-width: 350px;
    }

    /* Biblioteca preview responsive */
    .featured-books {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Steps responsive */
    .steps-container {
        grid-template-columns: 1fr;
    }

    /* Testimonios responsive */
    .testimonios-container {
        grid-template-columns: 1fr;
    }
 
    /* CTA final responsive */
    .cta-content h2 {
        font-size: 1.9em !important;
    }

    .cta-content p {
        font-size: 1.1em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* Carousel móvil */
    .carousel-wrapper {
        gap: 10px;
    }

    .carousel-container {
        width: 75%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 14px;
    }

    .libro-card {
        min-width: 180px;
        max-width: 180px;
    }

    .libro-image {
        height: 240px;
    }

    /* Gráfico móvil */
    .chart-container {
        height: 300px;
        padding: 20px;
    }

    /* Footer móvil */
    .footer {
        padding: 40px 20px 20px 20px;
    }

    .div_footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer_columna {
        min-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    /* WhatsApp móvil */
    .boton_watsap {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 0px;
        margin-right: 8px;
    }

    .boton_watsap img {
        width: 35px;
        height: 35px;
    }
}

/* ===================================================================
   RESPONSIVE - MÓVILES PEQUENOS (480px - 768px)
   =================================================================== */

@media (max-width: 600px) {
    .hero1 {
        padding: 85px 15px 40px 15px;
        min-height: 550px;
    }

    .caixa_info h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }

    .texto2 {
        font-size: 1em;
    }

    .stats-section {
        padding: 50px 20px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2em;
    }

    .titulo_sobrenos,
    .titulo_cursos,
    .titulo_biblioteca {
        font-size: 1.8em;
    }

   .btn-biblioteca {
        padding: 16px 35px;
        font-size: 12px;
     
    }

    .step-card {
        padding: 35px 25px;
    }

    .testimonio-card {
        padding: 30px 25px;
    }

}

/* ===================================================================
   RESPONSIVE - MÓVILES MUY PEQUENOS (320px - 480px)
   =================================================================== */

@media (max-width: 480px) {
    .hero1 {
        padding: 80px 15px 40px 15px;
    }

    /* Grafica */ 

    .contexto-social {
        padding: 0 .75rem;
        gap: 1.5rem;
    }

    .grafica-wrapper {
        padding: 1rem;
    }

    .chart-container-sobre {
        min-height: 240px;
    }


    .caixa_info h1 {
        font-size: 1.6em;
    }

    .texto2 {
        font-size: 0.95em;
    }

    /* Stats en columna única */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .stat-icon i {
        font-size: 24px;
    }

    .stat-number {
        font-size: 2em;
    }

    /* Secciones con menos padding */
    .biblioteca-preview,
    .como-funciona,
    .testimonios,
    .cta-final {
        padding: 50px 15px;
    }

    .caixa_hero_sobrenos,
    .caixa_hero {
        padding: 50px 15px;
    }

    /* Títulos más pequeños */
    .titulo_sobrenos,
    .titulo_cursos,
    .titulo_biblioteca {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 1em;
    }

    /* Feature items */
    .sobre-features {
        gap: 15px;
    }

    .feature-item {
        padding: 12px;
        font-size: 0.95em;
    }

    .feature-item i {
        font-size: 20px;
    }

    /* Cards de curso */
    .curso_card {
        padding: 30px 25px;
    }

    .curso_icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .curso_info h3 {
        font-size: 1.3em;
    }

    /* Libros destacados */
    .book-card {
        max-width: 100%;
    }

    .book-image {
        height: 280px;
    }

    .book-content {
        padding: 20px;
    }

    .book-content h3 {
        font-size: 1.2em;
    }

    .btn-biblioteca {
        padding: 16px 35px;
        font-size: 12px;
        
    }

    /* Steps */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
        top: -18px;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        margin: 25px auto 20px auto;
    }

    .step-icon i {
        font-size: 30px;
    }

    .step-card h3 {
        font-size: 1.2em;
    }

    .step-card p {
        font-size: 0.95em;
    }

    /* Testimonios */
    .testimonio-card {
        padding: 25px 20px;
    }

    .testimonio-text {
        font-size: 1em;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-avatar i {
        font-size: 20px;
    }

   

    .cta-content p {
        font-size: 1em;
    }

    .btn-primary.large,
    .btn-secondary.large {
        padding: 16px 35px;
        font-size: 16px;
    }

    /* Footer */
    .footer_columna h2 {
        font-size: 1.6em;
    }

    .footer_columna h3 {
        font-size: 1.15em;
    }

    /* Carousel para móviles pequeños */
    .carousel-container {
        width: 70%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .libro-card {
        min-width: 160px;
        max-width: 160px;
    }

    .libro-image {
        height: 220px;
    }

    .chart-container {
        height: 250px;
        padding: 15px;
    }
}

/* ===================================================================
   RESPONSIVE - DISPOSITIVOS EXTRA PEQUEÑOS (< 375px)
   =================================================================== */

@media (max-width: 375px) {
    .caixa_info h1 {
        font-size: 1.4em;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 14px 25px;
        font-size: 14px;
    }

    .search-wrapper {
        padding: 5px 5px 5px 15px;
    }

    .search-input {
        font-size: 13px;
        padding: 10px 6px;
    }

    .search-btn {
        padding: 10px 20px;
    }

    .stat-number {
        font-size: 1.8em;
    }

    .titulo_sobrenos,
    .titulo_cursos,
    .titulo_biblioteca {
        font-size: 1.4em;
    }

    .curso_icon {
        width: 60px;
        height: 60px;
    }

    .book-badge {
        padding: 4px 12px;
        font-size: 0.8em;
    }

    .btn-biblioteca {
        padding: 16px 35px;
        font-size: 12px;
    }


}

/* ===================================================================
   RESPONSIVE - LANDSCAPE MODE (orientación horizontal en móviles)
   =================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero1 {
        min-height: auto;
        padding: 100px 20px 40px 20px;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .caixa_hero_sobrenos,
    .caixa_hero,
    .biblioteca-preview,
    .como-funciona,
    .testimonios,
    .cta-final {
        padding: 50px 20px;
    }
}

/* ===================================================================
   HERO CTAs - BOTONES PRINCIPALES
   =================================================================== */

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px rgba(36, 103, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(36, 103, 180, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 20px 45px;
    font-size: 18px;
}

/* ===================================================================
   STATS SECTION - ESTADÍSTICAS ÚTILES
   =================================================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 40px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    /*transform: translateY(-8px);*/
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.stat-icon i {
    font-size: 28px;
    color: white;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: white;
    margin: 10px 0;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    font-weight: 500;
}

/* ===================================================================
   SOBRE NÓS MEJORADO
   =================================================================== */

.sobre-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.sobre-text {
    flex: 1.3;
    /* ocupa más espacio */
}

.sobre-image {
    flex: 0 0 280px;
    /* tamaño imagen*/
}

.sobre-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-left: 60px;
}

.sobre-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 22px;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===================================================================
   SERVICIOS CON LINKS
   =================================================================== */

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 50px;
}

.curso-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.curso-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

.curso-link i {
    transition: transform 0.3s ease;
}

.curso-link:hover i {
    transform: translateX(5px);
}

/* ===================================================================
   BIBLIOTECA PREVIEW - DESTACADOS
   =================================================================== */

.biblioteca-preview {
    background: var(--bg-white);
    padding: 100px 50px;
    text-align: center;
    /* Centralizar todo adentro de este div */
}

.biblioteca-header {
    text-align: center;
    margin-bottom: 60px;
}

.biblioteca-title-group {
    max-width: 700px;
    margin: 0 auto;
}

.biblioteca-subtitle {
    font-size: 1.15em;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.6;
}

.featured-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.book-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.book-card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4caf50;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 10;
}

.book-badge.popular {
    background: #ff9800;
}

.book-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-light);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.01);
    /* Efecto de zoom cuando paso el mouse */
}

.book-content {
    padding: 25px;
}

.book-content h3 {
    font-size: 1.4em;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.book-author {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.book-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.book-level,
.book-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9em;
}

.book-level i,
.book-pages i {
    color: var(--primary-color);
}

/* CTA BIBLIOTECA */    
.biblioteca-cta {
    text-align: center;
}

.btn-biblioteca {
    display: inline-flex; 
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 25px rgba(36, 103, 180, 0.3); 
    transition: var(--transition);
    justify-content: center;
}

.btn-biblioteca:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(36, 103, 180, 0.4);
}

.btn-biblioteca i {
    transition: transform 0.3s ease;
}

.btn-biblioteca:hover i {
    transform: translateX(8px);
}

.cta-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 1em;
}

/* ===================================================================
   COMO FUNCIONA - STEPS
   =================================================================== */

.como-funciona {
    background: var(--bg-light);
    padding: 100px 50px;
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.step-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    /*transform: translateY(-8px);*/
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(36, 103, 180, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 25px auto;
}

.step-icon i {
    font-size: 35px;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.4em;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================================================
   TESTIMONIOS
   =================================================================== */

.testimonios {
    background: var(--bg-white);
    padding: 100px 50px;
    text-align: center;
}

.testimonios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.testimonio-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
}

.testimonio-card:hover {
    /*transform: translateY(-0.5px);*/
    box-shadow: var(--shadow-md);
}

.testimonio-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonio-stars i {
    color: #ffc107;
    font-size: 18px;
}

.testimonio-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    color: white;
    font-size: 22px;
}

.author-info h4 {
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 3px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9em;
}

/* ===================================================================
   CTA FINAL
   =================================================================== */

.cta-final {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 100px 50px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: #f0f0f0;
}

.cta-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ===================================================================
   FOOTER MEJORADO
   =================================================================== */

.footer_bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer_bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* ===================================================================
   ANIMAÇÕES E TRANSIÇÕES ADICIONAIS
   =================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll reveal para elementos */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enlace del mismo color */
.link_mais,
.link-estudo:link,
.link-estudo:visited,
.link-estudo:hover,
.link-estudo:active {
    color: blue; 
} 