* {
    margin: 0;
    padding: 0;
    transition: all 0.25s ease;
}

header {
    width: 100%;
    background: #3962e9;
    background: linear-gradient(440deg, #2a17cf, #00d5ff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

header>div {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s;
    cursor: pointer;
}

#logo:hover {
    transform: scale(1.05);
}

#div-logo {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-direction: row;
}

#nombre_academia {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s;
    color: #f2f3f0;
    /* sobre fondo azul degradado */
}

#nombre_academia:hover {
    transform: scale(1.05);
}

#menu-header {
    display: flex;
    gap: 25px;
}

.link-encabezado {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: 0.3s ease;
    cursor: pointer;
}

.link-encabezado:hover {

    padding: 0px 12px;
     color: #dbdbdb;
    text-decoration: underline;
    transform: scale(1.2);
}

.carrusel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 80px auto;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}


.slides {
    display: flex;
    transition: transform 0.6s ease;
}


.slides img {
    width: 100%;
    min-width: 100%;
    height: 420px;
    object-fit: cover;
}

.carrusel .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.85);
    border: none;

    /* Tamaño completamente fluido */
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    padding: clamp(6px, 1.5vw, 12px) clamp(8px, 2vw, 16px);

    border-radius: 50%;
    cursor: pointer;
    z-index: 10;

    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
    .carrusel .btn:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
    }
}

.carrusel .left {
    left: clamp(6px, 2vw, 20px);
}

.carrusel .right {
    right: clamp(6px, 2vw, 20px);
}

@media (max-width: 480px) {
    .carrusel .btn {
        font-size: 1rem;
        padding: 6px 8px;
    }
}

@media (min-width: 1600px) {
    .carrusel .btn {
        font-size: 2rem;
        padding: 14px 18px;
    }

    .carrusel .left {
        left: 30px;
    }

    .carrusel .right {
        right: 30px;
    }
}

.carrusel-cta {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cta-box {
    backdrop-filter: blur(6px);
    padding: 22px 28px;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    animation: float 3s ease-in-out infinite;
    will-change: transform;
    background: rgba(255, 255, 255, 0.98); 
    border: 1px solid rgba(0,0,0,0.08);
}

.cta-box:hover {
    animation-play-state: paused;
}

.cta-box h3 {
    color: #2563eb;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 14px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(15deg, #000acc, #03dafb);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(36, 32, 141, 0.4);
    background-color: #0c0aa5;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #f5f9ff;
    color: #1e293b;
    line-height: 1.7;
}

:root {
    --primary: #3b82f6;
    --secondary: #6366f1;
    --accent: #22c55e;
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #facc15;
    --dark: #0f172a;
    --light: #ffffff;
    --muted: #64748b;
    --bg-soft: #f0f6ff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 90px 20px;
}

.hero-academia {
    position: relative;
    min-height: 95vh;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(99, 102, 241, 0.85)),
        url("imagenes/hero-academia.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-academia::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: white;
    border-radius: 50% 50% 0 0;
}

.hero-content {
    position: relative;
    max-width: 850px;
    padding: 0 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 1.7rem;
    margin: 20px 0;
    font-weight: 500;
}


.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #eef2ff;
}

.hero-buttons,
.inscripcion-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn-primary {
    background: var(--accent);
    background-color: #6e6f8d;
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
    color: white;
    background: linear-gradient(60deg, #2f3f95, #000c8c);
}


.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
}


.btn-secondary {
    background: white;
    background: linear-gradient(15deg, #6064af, #26cae3);
    color: var(--primary);
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    color: #ffffff;
}


.btn-secondary:hover {
    background: #00d9ff;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.sobre-nosotros {
    background: #f8faff;
    padding: 60px 20px 40px 20px;
}

.sobre-nosotros h2 {
    font-size: 2.8rem;
    color: #1e293b;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}

.sobre-nosotros .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
}

.sobre-nosotros .experiencia {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 10px;
    font-weight: 600;
    margin-top: 0%;
    margin-bottom: 80px;
    padding: 0%;
    text-align: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 70px;
}

.valor-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.valor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

.valor-card p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.servicios {
    padding: 70px 20px 20px 20px;
    background-color: #f9fafb;
}

.servicios h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: #1e3a8a;
    font-weight: 700;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.servicio-item.reverse {
    flex-direction: row-reverse;
}

.servicio-img {
    flex: 1 1 350px;
    min-width: 280px;
    max-width: 450px;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.servicio-text {
    flex: 2 1 500px;
    min-width: 300px;
}

.servicio-text h3 {
    font-size: 1.8rem;
    color: #2563eb; 
    margin-bottom: 20px;
    font-weight: 700;
}

.servicio-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #334155; 
}

.servicio-text ul {
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.servicio-text ul li {
    margin-bottom: 10px;
    font-weight: 500;
    color: #2563eb; 
    position: relative;
}

.asignaturas {
    background: #ffffff;
    padding: 10px 20px 20px 20px;
}

.asignaturas h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 50px;
}

.asignaturas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.asignatura-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
}

.asignatura-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.asignatura-img {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
    object-fit: cover;
}

.asignatura-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asignatura-card h3 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 10px;
}

.asignatura-card p {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.niveles {
    position: relative;
    min-height: 200px;
    color: #ffffff;
    background-size: cover;
}

.nivelesTitulo {
    color: #010057;
}

.niveles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #b8fbff;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    border-radius: 200px;
}

.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.nivel-card {
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.07);
    transition: 0.35s;
    display: flex;
    flex-direction: column;
}

.nivel-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.nivel-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eaf1ff;
}

.nivel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nivel-content {
    padding: 26px;
    text-align: center;
}

.nivel-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--dark);
    color: #1e4169;
}

.nivel-content p {
    font-size: 0.95rem;
    color: var(--muted);
}

.metodologia {
    padding: 40px 20px 40px 20px;
    background-color: #ffffff;
}

.metodologia h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: #1e3a8a; 
    font-weight: 700;
}

.metodologia-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.metodologia-item.reverse {
    flex-direction: row-reverse;
}

.metodo-img {
    flex: 1 1 350px;
    min-width: 280px;
    max-width: 450px;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.metodo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.metodo-text {
    flex: 2 1 500px;
    min-width: 300px;
}

.metodo-text h3 {
    font-size: 1.8rem;
    color: #2563eb; 
    margin-bottom: 20px;
    font-weight: 700;
}

.metodo-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #334155; 
}

.metodo-text ul {
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.metodo-text ul li {
    margin-bottom: 10px;
    font-weight: 500;
    color: #2563eb; 
    position: relative;
}

.beneficios {
    background: var(--bg-soft);
    background-color: #e8f3f3;
    padding-bottom: 100px;
}

.beneficios-lista {
    max-width: 750px;
    margin: auto;
    list-style: none;
}

.beneficios-lista li {
    background: rgb(255, 255, 255);
    padding: 16px 20px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.inscripcion {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(148, 149, 195, 0.9)),
        url("imagenes/inscripcion.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    position: relative;
}

.inscripcion p {
    max-width: 750px;
    margin: 0 auto 45px;
}

.menu-mobile-btn {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.btn-primary,
.btn-secondary,
.cta-btn,
.btn-prueba {
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:active,
.btn-secondary:active,
.cta-btn:active {
    transform: scale(0.96);
}

.valor-card,
.asignatura-card,
.nivel-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.valor-card:hover,
.asignatura-card:hover,
.nivel-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.servicio-img img,
.metodo-img img,
.asignatura-img img,
.nivel-img img {
    transition: transform 0.5s ease;
}

.link-encabezado {
    position: relative;
}

.link-encabezado::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.link-encabezado:hover::after {
    width: 100%;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

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

section {
    position: relative;
}

section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(0, 0, 0, 0.04);
}

.beneficios-lista li {
    transition: transform 0.3s ease;
}

.beneficios-lista li:hover {
    transform: translateX(10px);
    border-left: 4px solid #2563eb; 
    background-color: #f0f6ff;      
}

.hero-content h1,
.hero-content h2,
.hero-content p {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.hero-content h1 { animation-delay: 0.2s; }
.hero-content h2 { animation-delay: 0.4s; }
.hero-content p  { animation-delay: 0.6s; }

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#3b82f6, #6366f1);
    border-radius: 20px;
}

.ubicacion {
    padding: 50px 0;
    text-align: center;
}

.ubicacion h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.ubicacion .mapa iframe {
    width: 100%;
    max-width: 900px;
    height: 450px;
    border-radius: 10px;
}

.beneficios-lista li {
    opacity: 0;
    transition: opacity 0.8s ease; 
}

.beneficios-lista li.active {
    opacity: 1;
}

.btn.right {
    background-color: #ffffff;
    color: #0059ff;
    transition: background-color 0.3s ease;
}



.btn.left {
    background-color: #ffffff;
    color: #0059ff;
    transition: background-color 0.3s ease;
}

main.container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

main.container h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #1a1a1a; 
    border-bottom: 3px solid #005fcc; 
    padding-bottom: 10px;
}

main.container h2 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #003366; 
    position: relative;
    padding-left: 14px;
    font-weight: 600;
}

main.container h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    height: 70%;
    width: 5px;
    background-color: #005fcc;
    border-radius: 2px;
}

main.container p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #222; 
}

main.container ul {
    margin: 15px 0 20px 22px;
}

main.container li {
    margin-bottom: 8px;
}

main.container strong {
    color: #000; 
    font-weight: 600;
}

main.container a {
    color: #005fcc; 
    text-decoration: underline; 
    font-weight: 500;
}

main.container a:hover {
    color: #003366;
    text-decoration: underline;
}

main.container a:focus {
    outline: 3px solid #ffbf47; 
    outline-offset: 2px;
}

main.container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

main.container h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 3px solid #005fcc;
    padding-bottom: 10px;
}

main.container h2 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #003366;
    position: relative;
    padding-left: 14px;
    font-weight: 600;
}

main.container h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    height: 70%;
    width: 5px;
    background-color: #005fcc;
    border-radius: 2px;
}

main.container p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #222;
}

main.container ul {
    margin: 15px 0 20px 22px;
}

main.container li {
    margin-bottom: 8px;
}

main.container strong {
    color: #000;
    font-weight: 600;
}

main.container a {
    color: #005fcc;
    text-decoration: underline;
    font-weight: 500;
}

main.container a:hover {
    color: #003366;
}

main.container a:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

main.container ul li {
    padding-left: 4px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /
}

@media (min-width: 320px) and (max-width: 480px) {
    .servicio-text {
        min-width: 200px;
    }

    .servicio-img {
        min-width: 250px;
        height: 170px;
    }

    .metodo-text {
        min-width: 200px;
    }

    .metodo-img {
        min-width: 250px;
        height: 170px;
    }

    .hero-academia {
        min-height: 100vh;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .servicio-img {
        width: 400px;
        ;
        max-height: 250px;
    }

    .metodo-img {
        width: 400px;
        ;
        max-height: 250px;
    }

    .hero-academia {
        min-height: 100vh;
    }
}

@media (max-width: 768px) {

            main.container {
                padding: 25px;
            }

    main.container h1 {
        font-size: 1.8rem;
    }

    main.container h2 {
        font-size: 1.1rem;
    }

            .cta-box {
                padding: 20px 15px;
                border-radius: 16px;
                margin: 20px 10px;
            }
            .cta-box h3 {
                font-size: 1.3rem; 
                margin-bottom: 10px;
            }
            .cta-box p {
                font-size: 0.95rem;
                line-height: 1.5;
            }
            .cta-btn {
                font-size: 0.9rem;
                padding: 10px 18px;
            }  

            .servicio-item,
            .servicio-item.reverse {
                flex-direction: column;
                text-align: center;
            }

    .servicio-text {
        width: 100%;
        margin-top: 20px;
    }

    .servicio-text ul {
        text-align: left;
    }

    main.container {
        padding: 25px;
    }

    main.container h1 {
        font-size: 1.8rem;
    }

    main.container h2 {
        font-size: 1.1rem;
    }

            .asignatura-img {
                height: 110px;
            }
        
            .nivel-img {
                height: 180px;
            }
        
            .metodologia-item,
            .metodologia-item.reverse {
                flex-direction: column;
                text-align: center;
            }

    .metodo-text {
        width: 100%;
        margin-top: 20px;
    }

            .metodo-text ul{

                text-align: left;
            }
            .hero-content h1 {
                font-size: 2.6rem;
            }


    .hero-content h2 {
        font-size: 1.4rem;
    }


    section h2 {
        font-size: 2.1rem;
    }

            #menu-header {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: #3962e9;
                flex-direction: column;
                align-items: center;
                gap: 20px;
                padding: 20px 0;
                display: none;
            }


            .link-encabezado {
                font-size: 1.2rem;
            }

            .menu-mobile-btn {
                display: block;
            }

            #menu-header.active {
                display: flex;
                animation: slideDown 0.3s ease;
            }
    }

@media (max-width: 3024px) {

    .hero-academia {
        min-height: 80vh;
    }

            .servicio-item {
                gap: 30px;
                margin-bottom: 60px;
            }

            .servicio-img {
                height: 250px;
            }

            .asignaturas-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .metodologia-item {
                gap: 30px;
                margin-bottom: 60px;
                text-decoration: none;
            }

    .metodo-img {
        height: 250px;
    }
}

@media (min-width: 3024px) and (max-width: 8000px) {
    .hero-academia {
        min-height: 40vh;
    }
}

@media (max-width: 480px) {

        .container {
            padding: 70px 15px;
        }

        .hero-content h1 {
            font-size: 2.2rem;
        }

    .hero-content h2 {
        font-size: 1.2rem;
    }

        .carrusel img {
            height: 220px;
        }

    .slides img {
        height: 240px;
    }

        .carrusel-cta {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 85%;
            max-width: 320px;
        }

    .cta-box {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .cta-box h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .cta-box p {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .cta-btn {
        font-size: 0.85rem;
        padding: 8px;
    }

        .servicio-text h3 {
            font-size: 1.5rem;
        }

    .servicio-text p,
    .servicio-text ul li {
        font-size: 0.95rem;
    }

    .servicio-item {
        margin-bottom: 50px;
    }

    .servicio-img {
        max-width: 350px;
        max-height: 200px;
        height: 200px;
    }

        .asignaturas {
            padding: 40px 15px;
        }

    .asignaturas h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .asignaturas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asignatura-img img {
        height: 150px;
    }

    .asignatura-card h3 {
        font-size: 1.2rem;
    }

    .asignatura-card p {
        font-size: 0.95rem;
    }

        .metodo-text h3 {
            font-size: 1.5rem;
        }

    .metodo-text p,
    .metodo-text ul li {
        font-size: 0.95rem;
    }

    .metodologia-item {
        margin-bottom: 50px;
    }

        .metodo-img {
            max-width: 350px;
            max-height: 200px;
            height: 200px;
        }
    }

@keyframes float {

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

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

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

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