/* ------------------ ESTILOS GENERALES ------------------ */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

h1, h2, h3 {
    margin: 0;
}

a {
    text-decoration: none;
}

/* ------------------ HEADER ------------------ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.header nav ul li a {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.header nav ul li a:hover {
    background: #6FBC43;
    color: white;
}

.header-wrap {
    gap: 60px;
}

/* ------------------ SECCIÓN BIENVENIDA ------------------ */
.bienvenida {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8% 8%;
    background: linear-gradient(135deg, #e3f9e5, #f7fff5);
    border-radius: 0 0 30px 30px;
    flex-wrap: wrap;
    gap: 40px;
}

.texto-bienvenida h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1b4332;
}

.texto-bienvenida span {
    color: #6FBC43;
}

.texto-bienvenida p {
    font-size: 1.2rem;
    color: #555;
    margin: 15px 0;
}

.btn-ver-todo {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #6FBC43, #4A9C2E);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

.btn-ver-todo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.imagenes-bienvenida {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    grid-auto-rows: 160px;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.img-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    background: #fff;
}

.img-card:hover {
    transform: scale(1.05);
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-card.grande {
    grid-row: span 2;
}

/* ✨ ------------------ SECCIÓN ESTADÍSTICAS ------------------ */
.stats-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #6FBC43, #4A9C2E);
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ✨ ------------------ SECCIÓN BENEFICIOS ------------------ */
.beneficios-section {
    padding: 100px 8%;
    background: #fff;
}

.beneficios-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #e6f7e8;
    color: #6FBC43;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.beneficios-header h2 {
    font-size: 2.5rem;
    color: #1b4332;
    font-weight: 700;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.beneficio-card {
    padding: 40px 30px;
    background: #f9f9f9;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #6FBC43;
    background: white;
}

.beneficio-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.beneficio-card h3 {
    font-size: 1.4rem;
    color: #1b4332;
    margin-bottom: 15px;
    font-weight: 600;
}

.beneficio-card p {
    color: #555;
    line-height: 1.7;
}

/* ------------------ QUIÉNES SOMOS ------------------ */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 8%;
    gap: 60px;
    flex-wrap: wrap;
}

.text-section {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
}

.text-section h1 {
    font-size: 2.8rem;
    color: #1b4332;
    margin-bottom: 25px;
    font-weight: 700;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
}

.text-section-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contactanos {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-contactanos:hover {
    transform: translateY(-3px);
}

.btn-mas-nosotros {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.btn-mas-nosotros:hover {
    background-color: #eee;
}

.image-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.image-section img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.video-pequeno {
    width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}

/* ✨ ------------------ CATEGORÍAS ------------------ */
.categorias-section {
    padding: 100px 8%;
    background: #f9f9f9;
}

.categorias-header {
    text-align: center;
    margin-bottom: 60px;
}

.categorias-header h2 {
    font-size: 2.5rem;
    color: #1b4332;
    font-weight: 700;
    margin-bottom: 10px;
}

.categorias-header p {
    font-size: 1.1rem;
    color: #555;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.categoria-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.categoria-imagen {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categoria-card:hover .categoria-imagen img {
    transform: scale(1.1);
}

.categoria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 30px 20px;
    color: white;
}

.categoria-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.categoria-overlay p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-categoria {
    display: inline-block;
    padding: 10px 25px;
    background: #6FBC43;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-categoria:hover {
    background: #4A9C2E;
    transform: scale(1.05);
}

/* ------------------ SECCIÓN NOSOTROS ------------------ */
.nosotros-section {
    padding: 100px 8%;
    background: #fff;
    border-top: 2px solid #eee;
}

.nosotros-about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.nosotros-text-block h2 {
    font-size: 2rem;
    color: #6FBC43;
    margin-bottom: 15px;
    font-weight: 700;
}

.nosotros-text-block p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 25px;
}

.commitment-card {
    margin-top: 30px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    text-align: center;
}

.commitment-card h3 {
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

/* ✨ ------------------ TESTIMONIOS ------------------ */
.testimonios-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #e6f7e8, #f7fff5);
}

.testimonios-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonios-header h2 {
    font-size: 2.5rem;
    color: #1b4332;
    font-weight: 700;
}

.testimonios-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonio-rating {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonio-texto {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.autor-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6FBC43, #4A9C2E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.autor-info h4 {
    font-size: 1rem;
    color: #1b4332;
    margin-bottom: 3px;
}

.autor-info p {
    font-size: 0.85rem;
    color: #777;
}

/* ✨ ------------------ BLOG ------------------ */
.blog-section {
    padding: 100px 8%;
    background: #fff;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h2 {
    font-size: 2.5rem;
    color: #1b4332;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #555;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-imagen img {
    transform: scale(1.1);
}

.blog-categoria {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #6FBC43;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-contenido {
    padding: 30px 25px;
}

.blog-contenido h3 {
    font-size: 1.4rem;
    color: #1b4332;
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-contenido p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-link {
    color: #6FBC43;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #4A9C2E;
}

/* ✨ ------------------ FAQ ------------------ */
.faq-section {
    padding: 100px 8%;
    background: #f9f9f9;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: #1b4332;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-header p {
    font-size: 1.1rem;
    color: #555;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-pregunta {
    width: 100%;
    padding: 25px 30px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b4332;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-pregunta:hover {
    background: #f9f9f9;
}

.faq-icon {
    font-size: 1.5rem;
    color: #6FBC43;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-respuesta {
    max-height: 300px;
}

.faq-respuesta p {
    padding: 0 30px 25px 30px;
    color: #555;
    line-height: 1.8;
}

/* ------------------ CALL TO ACTION ------------------ */
.call-to-action-section {
    background: linear-gradient(135deg, #e6f7e8, #d9fdd3);
    padding: 90px 8%;
    text-align: center;
    border-radius: 25px 25px 0 0;
}

.call-to-action-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1b4332;
    font-weight: 700;
}

.call-to-action-section p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #555;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 700px;
    margin: auto;
}

.form-container input,
.form-container button {
    padding: 14px 15px;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    outline: none;
}

.form-container input:focus {
    border-color: #6FBC43;
}

.form-container button {
    background: linear-gradient(135deg, #6FBC43, #4A9C2E);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container button:hover {
    transform: scale(1.05);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 900px) {
    .nosotros-about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bienvenida {
        flex-direction: column;
        text-align: center;
    }

    .texto-bienvenida {
        order: 2;
    }

    .imagenes-bienvenida {
        display: grid;
        grid-template-columns: repeat(2, 180px);
        grid-auto-rows: 180px;
        gap: 20px;
        align-items: stretch;
    }

    .img-card.grande {
        grid-row: span 2;
        height: 100%;
    }
}

.menu-publico {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* ===================== MEJORAS RESPONSIVE PRO ===================== */

/* Evita desbordamientos */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ----------- Tablets ----------- */
@media (max-width: 992px) {

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .menu-publico {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .bienvenida {
        flex-direction: column;
        text-align: center;
        padding: 12% 5%;
    }

    .texto-bienvenida h1 {
        font-size: 2.5rem;
    }

    .imagenes-bienvenida {
        grid-template-columns: repeat(2, 160px);
        grid-auto-rows: 160px;
    }

    .main-content {
        flex-direction: column;
        text-align: center;
    }

    .video-pequeno {
        width: 100%;
        max-width: 350px;
    }
}

/* ----------- Móviles ----------- */
@media (max-width: 576px) {

    .header {
        padding: 15px 5%;
    }

    .logo img {
        height: 40px;
    }

    .menu-publico {
        flex-direction: column;
        gap: 10px;
    }

    .texto-bienvenida h1 {
        font-size: 1.9rem;
    }

    .texto-bienvenida p {
        font-size: 1rem;
    }

    .btn-ver-todo {
        width: 100%;
        display: block;
        text-align: center;
    }

    .imagenes-bienvenida {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .img-card.grande {
        grid-row: span 1;
    }

    .stats-container,
    .beneficios-grid,
    .categorias-grid,
    .blog-grid,
    .testimonios-slider {
        grid-template-columns: 1fr;
    }

    .call-to-action-section h2 {
        font-size: 1.8rem;
    }

    .call-to-action-section p {
        font-size: 1rem;
    }

    .form-container {
        flex-direction: column;
    }

    .form-container input,
    .form-container button {
        width: 100%;
    }
}

/* ================= MENU RESPONSIVE REAL ================= */

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Desktop */
.menu-publico {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
}

/* Móvil */
@media (max-width: 768px) {

    .header-wrap {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .menu-publico {
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }

    .menu-publico.active {
        display: flex;
    }

}

/* ===== MISIÓN Y VISIÓN PRO ===== */

.mision-vision-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #f4fdf5, #ffffff);
}

.mision-vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.mv-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 6px solid #6FBC43;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.mv-card h2 {
    font-size: 2rem;
    color: #6FBC43;
    margin-bottom: 20px;
    font-weight: 700;
}

.mv-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}