/* Importaciones de fuentes */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

/* Variables de colores */
:root {
    --color1: #2b7f87;
    --color2: #65b4b8;
    --color3: #cee5d1;
    --color4: #f3eeec;
    --color5: #e0c198;
    --color6: #ff7878;
    --verdePastel: #68c45f;
    --color-acento1: #d49a6a;
    --color-acento2: #1fb8a6;
    --color-acento3: #ff5e5e;
    --ui-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Reseteos */
* {
    margin: 0;
    padding: 0;
}
html {
    box-sizing: border-box;
    font-family: Montserrat;
}
*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    background-color: var(--color4);
}

.main {
    width: 100%;
    margin-top: 0 !important;
}

.resaltado {
    color: var(--color2);
}

.resaltado2 {
    color: var(--verdePastel);
}

.subrayado {
    text-decoration: underline;
    text-decoration-color: var(--color2);
    text-decoration-thickness: 2px;
}

.destacado {
    background-color: var(--color2);
}

.destacado2 {
    background-color: var(--verdePastel);
    border-radius: 30px;
    padding: 0px 10px;
}

.botonAzul, .botonRojo {
    padding: 4px 8px;       /* más angosto */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    max-width: 200px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

/* BOTÓN AZUL (Aceptar) */
.botonAzul {
    background-color: #007BFF;
    border: 2px solid #007BFF;
    color: white;
}

.botonAzul:hover {
    background-color: transparent;
    color: #007BFF;
}

/* BOTÓN ROJO (Cancelar) */
.botonRojo {
    background-color: #D9534F;
    border: 2px solid #D9534F;
    color: white;
}

.botonRojo:hover {
    background-color: transparent;
    color: #D9534F;
}

.boton1 {
    color: white !important;
    text-decoration: none;
    background-color: var(--color1);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid transparent;
    outline: 0;
    color: white;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.boton1:hover {
    background-color: var(--color4);
    border: 3px solid var(--color1);
    color: var(--color1);
}

.boton1:hover a {
    color: var(--color1);
}

.boton1 a {
    color: var(--color4);
    text-decoration: none;
}

.boton2 a {
    color: var(--color1);
    text-decoration: none;
}

.boton2 {
    text-decoration: none;
    background-color: var(--color4);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--color1);
    outline: 0;
    color: var(--color1);
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.boton2:hover {
    background-color: var(--color1);
    border: 3px solid transparent;
}

.boton2:hover a {
    color: var(--color4);
}

.social-fixed,
.social-fixed-list li {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0a800, #d96c82);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-fixed {
    position: fixed;
    bottom: 12%;
    right: 3%;
    z-index: 1000;
    overflow: hidden;
}

@media (max-height: 700px) {
    .social-fixed {
        bottom: 20%;
    }
}

/* efecto hover */
.social-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-fixed-list li a {
    display: flex; /* activa flexbox */
    align-items: center; /* centra verticalmente */
    justify-content: center; /* centra horizontalmente */
    width: 100%; /* ocupa todo el círculo */
    height: 100%; /* ocupa todo el círculo */
    border-radius: 50%; /* mantiene la forma circular */
}

.social-fixed img,
.social-fixed-list li img {
    width: 60%;
    height: auto;
    object-fit: contain; /* evita deformación */
}

/* Lista inicialmente oculta */
.social-fixed-display {
    position: fixed;
    bottom: 12%;
    right: 3%;
    opacity: 0; /* en lugar de display: none */
    pointer-events: none; /* no clickeable cuando está oculta */
    transition: opacity 0.3s ease;
    z-index: 999;
}

.social-fixed-display.active {
    opacity: 1;
    pointer-events: auto;
}

.social-fixed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Animación de aparición */
.social-fixed-list li {
    transform: translateY(100px);
    opacity: 0;
}

/* cuando se activa */
.social-fixed-display.active .social-fixed-list li {
    animation: riseUp 0.4s forwards;
}

/* animación escalonada */
.social-fixed-display.active .social-fixed-list li:nth-child(1) {
    animation-delay: 0.05s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(2) {
    animation-delay: 0.1s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(3) {
    animation-delay: 0.15s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(4) {
    animation-delay: 0.2s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(5) {
    animation-delay: 0.25s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(6) {
    animation-delay: 0.3s;
}
.social-fixed-display.active .social-fixed-list li:nth-child(7) {
    animation-delay: 0.35s;
}

@keyframes riseUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.whatsapp-fixed {
    position: fixed;
    bottom: 3%; /* lo muevo un poco arriba para que no choque con social-fixed */
    right: 3%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-fixed img {
    width: 60%; /* el logo ocupa gran parte del círculo */
    height: auto;
    object-fit: contain;
}

.whatsapp-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Header */

/* Topbar minimal */

.topbar-lang {
    width: 100%;
    background: var(--color4);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 4px 30px; /* mínimo alto */
    font-size: 0.9rem;
}

.lang-label {
    opacity: 0.8;
}

.topbar-lang {
    width: 90%;
    margin: auto;
    background: var(--color4);
    box-sizing: border-box;
    height: 30px; /* altura fina */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04); /* sutil */
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

/* contenedor interno para posicionar dropdown relativo al botón */
.lang-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* botón tipo pill pequeño */
.lang-btn {
    background-color: coral;
    background: #ffffff;
    border: 1.2px solid rgba(0, 0, 0, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 22px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* ajustes del contenido del botón */
.lang-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.lang-btn .caret {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* dropdown */
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 34px; /* justo debajo de la topbar (30px + 4px) */
    min-width: 140px;
    background: #fff;
    border: 1.2px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    box-sizing: border-box;
    z-index: 2000;
}

/* dropdown visible */
.lang-dropdown.open {
    display: block;
}

/* cada opción */
.lang-option {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* hover */
.lang-option:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* mobile: centrar topbar content y reducir padding */
@media (max-width: 500px) {
    .topbar-lang {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
    }
    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.header {
    width: 100%;
    margin: 0;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color4);
    box-sizing: border-box;
}

.nav {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.desktop-nav {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav img {
    width: 180px;
}

.desktop-nav .boton1 {
    white-space: nowrap;
    width: auto;
    padding: 0.6em 1.2em;
    font-size: 1rem;
}

@media (max-width: 500px) {
    .desktop-nav {
        max-width: none;
        margin: 0;
    }

    .header {
        padding: 0px 5px !important;
    }

    .desktop-nav img {
        height: 80px;
        width: auto;
        object-fit: contain;
    }
}

.main {
    width: 100%;
}

.hero {
    width: 100%;
    background-image: url("/static/landing_app/svg/fondo1.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

.heroText {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* mantiene el texto centrado verticalmente */
}

.heroImgWrapper {
    display: flex;
    align-items: flex-end; /* 👈 pega la imagen abajo */
}

.heroImgWrapper img {
    width: 700px;
    height: auto;
}

.heroButtons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 80%;
}

.heroButtons button {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    width: 50%;
    max-width: 300px;
}

.heroText h1 {
    color: white;
    font-family: var(--ui-font) !important;
    font-size: 80px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* sombra */
}

.heroText h1 {
    color: white;
    font-family: var(--ui-font) !important;
    font-size: 80px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* sombra */
}

.heroText p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* sombra */
    font-size: 25px;
    margin-bottom: 25px !important;
}

@media (max-width: 760px) {
    .heroImgWrapper {
        display: none !important;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 75vh;
    }

    .heroText {
        width: 100%;
    }

    .heroText h1 {
        font-size: 12vw;
        text-align: center;
    }

    .heroText p {
        font-size: 4vw;
    }

    .heroButtons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .heroButtons .boton1,
    .heroButtons .boton2 {
        width: 80%;
    }
}

.formula {
    position: relative;
    margin-top: 100px !important;
    margin-bottom: 100px !important;
    width: 90%;
    gap: 5%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.formula h2 {
    width: 50%;
    font-size: 80px;
    line-height: 1.7;
}

.formulaList {
    width: 50%;
    list-style: none; /* quitamos el estilo por defecto */
    padding: 0;
}

.formulaList li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px; /* espacio para el icono */
    font-size: 22px;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover: "levanta" cada ítem */
.formulaList li:hover {
    transform: translateX(10px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fafafa;
}

/* Ícono personalizado con gradiente */
.formulaList li::before {
    content: "✔"; /* podés cambiar por otro símbolo */
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

/* Animación pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.formulaList h4 {
    font-size: 26px;
    margin: 0 0 5px;
    color: var(--color1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.formulaList p {
    margin: 0;
    color: #444;
    font-size: 18px;
}

/* Animación al scrollear */
.formulaList li {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.formulaList li.visible {
    opacity: 1;
    transform: translateY(0);
}

.formulaList li:nth-child(1) {
    transition-delay: 0.1s;
}
.formulaList li:nth-child(2) {
    transition-delay: 0.2s;
}
.formulaList li:nth-child(3) {
    transition-delay: 0.3s;
}
.formulaList li:nth-child(4) {
    transition-delay: 0.4s;
}

@media (max-width: 890px) {
    .formula {
        flex-direction: column;
    }
    .formulaList {
        width: 90%;
        font-size: 20px;
    }

    .formula h2 {
        width: 100%;
        font-size: 50px;
        margin-bottom: 50px !important;
    }
}

.indicadores {
    background-color: white;
    padding: 100px 50px 50px 50px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: baseline;
    gap: 20px;
}

.indicadorItem {
    text-align: center;
    line-height: 1.6;
    width: 30%;
}

.indicadorItem img {
    width: 100px;
}

.indicadorItem h3 {
    font-size: 50px;
}

.indicadorItem h4 {
    font-size: 30px;
    color: var(--color1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* sombra */
}

.indicadorItem p {
    font-size: 20px;
    text-align: center;
}

@media (max-width: 800px) {
    .indicadores {
        flex-direction: column;
        gap: 50px;
    }

    .indicadorItem {
        margin: auto;
        width: 80%;
    }
}

hr {
    width: 60%;
    max-width: 1000px; /* opcional para pantallas grandes */
    margin: 0 auto 50px auto; /* top 0, bottom 50px, centrado horizontal */
    border: 2px solid grey;
    box-sizing: border-box;
}

.reconocimientos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    padding: 70px 50px;
    box-sizing: border-box; /* importante para que padding no sume al width */
    background-color: white;
}

.reconocimientos h2 {
    max-width: 100%; /* no se salga en móviles */
    margin: 0 auto; /* centrar bloque */
    text-align: center; /* centrar texto */
    font-size: 40px;
    font-weight: normal;
    padding: 10px 20px; /* opcional, para que el fondo se vea */
    border-radius: 5px; /* opcional */
}

@media (max-width: 670px) {
    .reconocimientos h2 {
        display: block;
        max-width: 100%; /* no se salga del contenedor */
        margin: 0 auto; /* centrar bloque */
        text-align: center; /* centrar texto */
        font-size: 8vw !important;
        font-weight: normal;
        padding: 10px 20px; /* espacio interno */
        border-radius: 5px; /* opcional */
        box-sizing: border-box; /* padding se incluye en max-width */
        word-wrap: break-word; /* rompe palabras largas si hace falta */
        overflow-wrap: break-word; /* compatibilidad extra */
    }

    .reconocimientos {
        padding: 70px 0px !important;
    }

    hr {
        width: 90%;
    }
}

.reconocimientos p {
    width: 75%;
    line-height: 1.6;
}

.reconocimientos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow: hidden;
    justify-content: center;
    padding: 20px;
}

.medalla {
    position: relative; /* necesario para el pseudo-elemento */
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffd700 50%, #daa520 50%);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden; /* para que el pseudo-elemento no sobresalga */
    width: 150px; /* ancho fijo relativo o ajustable con % si quieres responsivo */
    height: 150px; /* siempre igual al ancho para que sea círculo */
}

.medalla::after {
    content: "";
    position: absolute;
    inset: 0; /* top:0; bottom:0; left:0; right:0; */
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 50%, #ffd700 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.medalla:hover::after {
    opacity: 1;
}

.medalla > * {
    position: relative; /* para que el contenido quede por encima del pseudo-elemento */
    z-index: 1;
}

.medalla:hover {
    box-shadow: 4px 8px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-10px);
}

.medalla a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.medalla a img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* mantiene proporción de la imagen */
}

@media (max-width: 600px) {
    .medalla {
        width: 100px;
        height: 100px;
    }

    .partners p,
    .reconocimientos p {
        width: 100% !important;
        text-align: center;
    }
}

/* === Nuestros estudiantes === */

.nuestros_estudiantes {
    position: relative;
    width: 100%;
    padding: 60px 20px 100px 20px;
    overflow: hidden;
    background: #f9f9ff;
}

.nuestros_estudiantes .fondo-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.nuestros_estudiantes .contenido {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.nuestros_estudiantes .contenido .opiniones {
    width: 100%;
}

/* Título */
.nuestros_estudiantes .opiniones h2 {
    font-size: 40px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 870px) {
    .nuestros_estudiantes .opiniones h2 {
        font-size: 30px;
        max-width: 300px;
        margin: auto;
    }
}

/* Carrousel */
.carrousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Gradiente al inicio y final del carrousel */
.carrousel::before,
.carrousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.carrousel::before {
    left: 0;
    background: linear-gradient(to right, #f9f9ff 0%, transparent 100%);
}

.carrousel::after {
    right: 0;
    background: linear-gradient(to left, #f9f9ff 0%, transparent 100%);
}

/* Efectos carrousel */

.carrousel-track {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.comentario {
    width: 300px;
    height: 250px;
    padding: 1em;
    border-radius: 0.3em;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5em;
    animation: spin 15s linear infinite;
    flex-shrink: 0;
}

/* Estrellas */
.estrellas {
    color: #ffd700;
    font-size: 1rem;
}

/* Autor */
.autor {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* Nombre del autor */
.nombre {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Universidad o carrera */
.universidad {
    font-size: 0.8rem;
    color: #555;
}

/* Icono del autor */
.icono {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Animacion */

@keyframes spin {
    from {
        translate: 0%;
    }
    to {
        translate: -300%;
    }
}

/* Video testimonio */
.video-testimonio {
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-testimonio video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
    .comentario {
        flex: 0 0 250px;
    }
    .video-testimonio {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .card-2 {
        width: 80px;
    }
}

/* === GLIDE === */

.glide {
    position: relative;
    width: 90%;
    margin: 2em auto;
    overflow: hidden;
}

/* Fade lateral solo en desktop */
.glide::before,
.glide::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.glide::before {
    left: 0;
    background: linear-gradient(
        to right,
        #fff 0%,
        rgba(255, 255, 255, 0.95) 40%,
        transparent 100%
    );
}

.glide::after {
    right: 0;
    background: linear-gradient(
        to left,
        #fff 0%,
        rgba(255, 255, 255, 0.95) 40%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .glide::before,
    .glide::after {
        display: none;
    }

    .card-2 {
        width: 100px;
        height: 100px;
    }

    .glide {
        width: 100%;
        overflow: visible;
    }

    .reconocimientos {
        overflow: hidden;
    }
}

/* Slides */
.glide__slides {
    display: flex;
    align-items: center;
}

.glide__slide {
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* Cards */
.card-2 {
    padding: 12px;
    border-radius: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.25),
        inset -5px -5px 15px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateZ(0); /* forzar render GPU */
}

.card-2:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3),
        -5px -5px 15px rgba(255, 255, 255, 0.2);
    transform: scale(1.01); /* efecto de “levantar” */
}

.card-2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Flechas */
.glide__arrow {
    background-color: var(--color1, #007bff);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
}

.glide__arrow--left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.glide__arrow--right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Bullets */
.glide__bullets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.glide__bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.glide__bullet--active {
    background: var(--color1, #007bff);
}

/* === FAQ === */

.faq {
    background-color: var(--color2);
    width: 100%;
    padding: 70px 20px;
    text-align: center;
    overflow: hidden;
}

.faq h2 {
    font-size: 50px;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
}

.faq > p {
    font-size: 25px;
    color: white;
    margin-bottom: 20px;
}

.grid-faq {
    margin: auto;
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 20px;
    justify-content: center;
    align-items: center;
    place-items: center;
}

.bloque_pregunta {
    width: 100%;
    max-width: 80%;
    padding: 20px;
    background-color: white;
    border: 2px solid var(--color4);
    border-radius: 10px;
}

.bloque_superior_pregunta {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.bloque_superior_pregunta p {
    max-width: 100%; /* nunca más ancho que el bloque */
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.boton_desplegar_respuesta {
    background-color: transparent;
    font-size: 30px;
    width: 30px;
    color: var(--color1);
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.boton_esconder_respuesta {
    display: none;
    background-color: transparent;
    font-size: 30px;
    width: 30px;
    color: var(--color1);
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.bloque_inferior_pregunta {
    display: none;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.bloque_inferior_pregunta p {
    text-align: left !important;
    line-height: 1.6;
    font-size: 18px;
}

.bloque_inferior_pregunta.activo {
    display: block;
    max-height: 500px; /* suficientemente grande para el contenido */
}

.linea_separadora_bloque {
    width: 100%;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

/* Responsive: en pantallas menores a 768px → 1 sola columna */
@media (max-width: 768px) {
    .grid-faq {
        grid-template-columns: 1fr; /* una sola columna */
        width: 95%; /* más ancho en móvil */
    }
}

@media (max-width: 1000px) {
    .bloque_inferior_pregunta p,
    .bloque_superior_pregunta p {
        font-size: 16px !important;
    }
}

.footer {
    width: 100%;
    background-color: var(--color1);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer p {
    font-size: 20px;
    color: white;
}

.social-footer {
    list-style-type: none;
    display: flex;
    width: 20%;
    min-width: 200px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.social-footer li a img {
    width: 30px;
}

.estrellas_formula {
    position: absolute;
    top: -25%;
    left: 0%;
}

.estrellas_formula img {
    width: 150px;
}

@media (max-width: 1000px) {
    .estrellas_formula {
        position: absolute;
        top: -20%;
        left: 0%;
    }
}

@media (max-width: 670px) {
    .estrellas_formula {
        position: absolute;
        top: -15%;
    }

    .estrellas_formula img {
        width: 120px;
    }
}

@media (max-width: 500px) {
    .estrellas_formula {
        position: absolute;
        top: -10%;
    }

    .estrellas_formula img {
        width: 100px;
    }
}

.call_to_action {
    background-image: url("/static/landing_app/img/bg2.jpg");
    background-size: cover; /* la imagen se expande para cubrir toda la pantalla */
    background-repeat: no-repeat; /* evita que se repita */
    background-position: center; /* centrada */
    width: 100%;
    padding: 150px 50px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 500px) {
    .call_to_action {
        line-height: 1.8;
        padding: 150px 20px;
        gap: 15px;
    }
}

.call_to_action h2 {
    font-size: 30px;
}

.call_to_action p {
    font-size: 25px;
    text-align: center;
}

.contact_form {
    width: 100%;
}

.contact_form form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

@media (max-width: 350px) {
    .contact_form form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .call_to_action h2 {
        font-size: 25px;
    }

    .call_to_action p {
        font-size: 20px;
    }
}

.contact_form input[type="email"] {
    width: 80%;
    min-width: 150px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--color4);
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3);
}

.contact_form input[type="submit"]:focus {
    color: var(--color1) !important;
    background-color: transparent;
    border: 2px solid var(--color1);
}

.contact_form input[type="submit"]:hover {
    color: var(--color1) !important;
}


/*  --- Pagina 404 --- */
.not-found-container{
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    min-height: 70vh;
}


/* === SECCION BLOG INTERNO DE LA LANDING === */
.resumenBlog {
    width: 100%;
    padding: 70px 20px;
    text-align: left;

    /* Fondo tecnológico */
    background-color: var(--color4);
    background-image:
        linear-gradient(transparent 95%, rgba(0,0,0,0.04) 5%),
        linear-gradient(90deg, transparent 95%, rgba(0,0,0,0.04) 5%);
    background-size: 45px 45px;

    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

/* --- Títulos --- */
.rb-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.rb-title a {
    color: var(--color2);
    text-decoration: none;
    transition: color 0.25s ease;
}

.rb-title a:hover {
    text-decoration: underline;
}

.rb-subtitle {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0;
}


/* === GRID RESPONSIVO === */
.rb-posts-container {
    width: 100%;
    max-width: 1300px; /* ancho máximo del bloque completo */
    margin: 0 auto;

    display: grid;
    gap: 30px;

    /* Móvil por defecto */
    grid-template-columns: 1fr;
    justify-items: center;
}


/* --- Tarjetas de post --- */
.rb-post {
    width: 100%;
    max-width: 400px;   /* no más grandes de 400px */
    min-height: 300px;  /* altura estable */
    padding: 25px 20px;

    background: white;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    gap: 12px;

    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.rb-post:hover {
    transform: translateY(-5px);
    border-color: var(--color2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.post-image {
    width: fit-content;
    max-width: 100%;
    display: block;
    height: 200px;
}

/* --- Título del post --- */
.rb-post-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;

    /* Nunca overflow */
    white-space: normal;
    overflow-wrap: break-word;
}


/* --- Info del post --- */
.rb-post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: gray;
}


/* --- Subtítulo del contenido --- */
.rb-post-subtitle {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}


/* --- Botón, siempre al fondo --- */
.btnContinuarLeyendo {
    background-color: white;
    border: 2px solid var(--color2);
    padding: 10px 15px;
    text-decoration: none;
    color: #1a1a1a;

    max-width: 200px;

    margin-top: auto !important; /* ⭐ fuerza al fondo */
    transition: background-color 0.3s, color 0.3s;
}

.btnContinuarLeyendo:hover {
    background-color: var(--color2);
    color: white;
}


/* === 🔥 OPTIMIZACIÓN MOBILE === */
@media (max-width: 480px) {
    .rb-title {
        font-size: 30px;
    }

    .rb-post {
        padding: 20px 15px;
        min-height: auto; /* No queremos alturas fijas en pantallas muy pequeñas */
    }

    .rb-post-title {
        font-size: 18px;
    }

    .rb-post-subtitle {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .rb-posts-container {
        grid-template-columns: repeat(2, minmax(280px, 400px));
        justify-content: center; /* CENTRA LA FILA COMPLETA */
    }
}
@media (min-width: 992px) {
    .rb-posts-container {
        grid-template-columns: repeat(3, minmax(280px, 400px));
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .rb-post {
        min-height: auto;
        padding: 18px 14px;
    }
}

.rb-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* espacio entre posts */
}

.rb-post {
    flex: 1 1 300px; /* ancho mínimo de 300px, se adapta */
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.rb-post img.post-image {
    width: 100%;
    height: 200px; /* altura fija */
    object-fit: cover; /* ajusta imagen para llenar el contenedor */
    background: #fff; /* fondo blanco si la imagen no ocupa todo */
    border-radius: 0.25rem;
}

/* Para que el texto siempre quede alineado debajo de la imagen */
.rb-post-title, 
.rb-post-info, 
.rb-post-subtitle, 
.btnContinuarLeyendo {
    margin-top: 0.5rem;
}

.resumenBlog {
    position: relative;
    overflow: hidden;
    background: #f9f9ff !important;
}

.resumen-fondo-svg {
    position: absolute;
    top: 0;   /* ajusta según quieras que empiece */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.resumenBlog-content {
    position: relative;
    z-index: 1; /* sobre el SVG */
    padding: 3rem 1rem; /* ajusta según necesites */
}
