/* ==========================================
   VARIABLES
   ========================================== */

:root {

    --blue-deep: #123C8C;
    --blue-bright: #2F6FED;
    --blue-sky: #EAF2FF;

    --yellow: #FFD23F;
    --yellow-soft: #FFF3CC;

    --ink: #0A1930;

    --coral: #FF6B5B;

    --white: #FFFFFF;

    --green: #2BD576;
}


/* ==========================================
   RESET
   ========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {

    background: var(--blue-sky);

    color: var(--ink);

    font-family: 'Nunito', sans-serif;

    overflow-x: hidden;
}


h1,
h2,
h3,
.logo-text {

    font-family: 'Baloo 2', sans-serif;
}


a {

    text-decoration: none;

    color: inherit;
}



/* ==========================================
   FONDO DECORATIVO
   ========================================== */

.bg-shapes {

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;
}


.bg-shapes span {

    position: absolute;

    opacity: 0.16;

    font-size: 52px;

    animation: float 9s ease-in-out infinite;

    filter:
        drop-shadow(
            0 4px 0 rgba(0, 0, 0, 0.03)
        );
}


.bg-shapes span:nth-child(1) {

    top: 8%;
    left: 4%;

    animation-delay: 0s;

    font-size: 60px;
}


.bg-shapes span:nth-child(2) {

    top: 22%;
    left: 88%;

    animation-delay: 1.2s;

    font-size: 44px;
}


.bg-shapes span:nth-child(3) {

    top: 62%;
    left: 6%;

    animation-delay: 2.1s;

    font-size: 50px;
}


.bg-shapes span:nth-child(4) {

    top: 78%;
    left: 82%;

    animation-delay: 0.6s;

    font-size: 66px;
}


.bg-shapes span:nth-child(5) {

    top: 45%;
    left: 92%;

    animation-delay: 3s;

    font-size: 36px;
}


.bg-shapes span:nth-child(6) {

    top: 5%;
    left: 48%;

    animation-delay: 1.8s;

    font-size: 38px;
}


@keyframes float {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {

        transform:
            translateY(-22px)
            rotate(8deg);
    }
}



/* ==========================================
   HEADER
   ========================================== */

header {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 6%;
}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;
}


.logo-badge {

    width: 44px;

    height: 44px;

    background: var(--blue-deep);

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--yellow);

    font-size: 22px;

    transform: rotate(-6deg);

    box-shadow:
        0 4px 0 rgba(18, 60, 140, 0.25);
}


.logo-text {

    font-size: 1.35rem;

    font-weight: 800;

    color: var(--blue-deep);

    line-height: 1.05;
}


.logo-text span {

    color: var(--coral);
}


nav ul {

    display: flex;

    gap: 34px;

    list-style: none;

    font-weight: 700;

    color: var(--blue-deep);
}


nav ul li a {

    position: relative;

    padding-bottom: 4px;
}


nav ul li a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -2px;

    width: 0%;

    height: 3px;

    background: var(--yellow);

    border-radius: 3px;

    transition: width .25s ease;
}


nav ul li a:hover::after {

    width: 100%;
}



/* ==========================================
   HERO
   ========================================== */

.hero {

    position: relative;

    z-index: 2;

    text-align: center;

    padding: 40px 6% 60px;
}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: var(--white);

    border: 2px solid var(--yellow);

    color: var(--blue-deep);

    font-weight: 800;

    font-size: 0.85rem;

    padding: 7px 16px;

    border-radius: 999px;

    margin-bottom: 22px;
}


.hero h1 {

    font-size:
        clamp(2.2rem, 5vw, 3.6rem);

    color: var(--blue-deep);

    line-height: 1.12;

    max-width: 820px;

    margin: 0 auto 18px;
}


.hero h1 .accent {

    color: var(--coral);

    position: relative;

    white-space: nowrap;
}


.hero h1 .underline {

    display: block;

    height: 12px;

    margin-top: -10px;

    background: var(--yellow);

    border-radius: 8px;

    z-index: -1;

    opacity: .9;
}


.hero p {

    max-width: 560px;

    margin: 0 auto 30px;

    font-size: 1.1rem;

    font-weight: 600;

    color: #39507f;
}


.hero-ctas {

    display: flex;

    gap: 16px;

    justify-content: center;

    flex-wrap: wrap;
}


.btn {

    font-family: 'Baloo 2', sans-serif;

    font-weight: 700;

    font-size: 1.05rem;

    padding: 14px 30px;

    border-radius: 16px;

    border: none;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.btn-primary {

    background: var(--blue-bright);

    color: var(--white);

    box-shadow:
        0 6px 0 var(--blue-deep);
}


.btn-primary:hover {

    transform: translateY(-3px);
}


.btn-ghost {

    background: var(--white);

    color: var(--blue-deep);

    box-shadow:
        0 6px 0 var(--yellow);

    border: 2px solid var(--yellow);
}


.btn-ghost:hover {

    transform: translateY(-3px);
}



/* ==========================================
   SECCIÓN AZUL DE CURSOS
   ========================================== */

.courses-section {

    position: relative;

    z-index: 2;

    width: 100%;

    background: var(--blue-deep);

    padding: 45px 20px 50px;
}


.courses-grid {

    width: 100%;

    max-width: 1080px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 28px;
}



/* ==========================================
   TARJETAS DE CURSOS
   ========================================== */

.course-card {

    position: relative;

    background: var(--white);

    border-radius: 26px;

    padding: 34px 30px 30px;

    min-height: 300px;

    box-shadow:
        0 10px 0 rgba(18, 60, 140, 0.08),
        0 14px 30px rgba(18, 60, 140, 0.10);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.course-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 14px 0 rgba(18, 60, 140, 0.10),
        0 20px 34px rgba(18, 60, 140, 0.14);
}


.course-card .glow {

    position: absolute;

    top: -60px;

    right: -60px;

    width: 160px;

    height: 160px;

    border-radius: 50%;

    opacity: .5;

    z-index: 0;
}


.card-blue .glow {

    background:
        radial-gradient(
            circle,
            var(--blue-sky),
            transparent 70%
        );
}


.card-yellow .glow {

    background:
        radial-gradient(
            circle,
            var(--yellow-soft),
            transparent 70%
        );
}



/* ==========================================
   ICONOS
   ========================================== */

.course-icon {

    width: 64px;

    height: 64px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    margin-bottom: 18px;

    position: relative;

    z-index: 1;
}


.card-blue .course-icon {

    background: var(--blue-deep);

    color: var(--yellow);
}


.card-yellow .course-icon {

    background: var(--yellow);

    color: var(--blue-deep);
}



/* ==========================================
   BADGES
   ========================================== */

.badge-new {

    position: absolute;

    top: 24px;

    right: 24px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: var(--coral);

    color: var(--white);

    font-family: 'Baloo 2', sans-serif;

    font-weight: 700;

    font-size: 0.78rem;

    padding: 6px 12px 6px 10px;

    border-radius: 999px;

    z-index: 1;
}


.badge-free {

    background: var(--green);
}



/* ==========================================
   CONTENIDO TARJETAS
   ========================================== */

.course-card h3 {

    font-size: 1.4rem;

    color: var(--blue-deep);

    margin-bottom: 10px;

    position: relative;

    z-index: 1;
}


.course-card p {

    color: #4a5f8a;

    font-weight: 600;

    font-size: 0.98rem;

    margin-bottom: 20px;

    position: relative;

    z-index: 1;
}


.tag-row {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 22px;

    position: relative;

    z-index: 1;
}


.tag {

    font-size: 0.78rem;

    font-weight: 700;

    padding: 5px 12px;

    border-radius: 999px;
}


.card-blue .tag {

    background: var(--blue-sky);

    color: var(--blue-deep);
}


.card-yellow .tag {

    background: var(--yellow-soft);

    color: #7a5a00;
}


.card-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-weight: 800;

    font-family: 'Baloo 2', sans-serif;

    position: relative;

    z-index: 1;
}


.card-blue .card-link {

    color: var(--blue-bright);
}


.card-yellow .card-link {

    color: #a67200;
}


.card-link .arrow {

    transition:
        transform .2s ease;
}


.course-card:hover
.card-link .arrow {

    transform:
        translateX(5px);
}



/* ==========================================
   SEGUNDA FILA
   ========================================== */

.reviews-section {

    position: relative;

    z-index: 2;

    width: 100%;

    padding: 28px 20px 60px;
}


.reviews-grid {

    width: 100%;

    max-width: 1080px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 28px;
}



/* ==========================================
   TARJETAS DE OPINIONES
   ========================================== */

.grid-box {

    background: var(--white);

    border-radius: 26px;

    min-height: 420px;

    padding: 30px;

    box-shadow:
        0 10px 0 rgba(18, 60, 140, 0.08),
        0 14px 30px rgba(18, 60, 140, 0.10);

    overflow: hidden;
}


/* ==========================================
   CABECERA DEL CARRUSEL
   ========================================== */

.carousel-section .section-head {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 20px;
    box-sizing: border-box;
    text-align: center;
}

.carousel-section .section-head h2 {
    color: var(--blue-deep);
    font-size: 1.5rem;
    margin: 0;
}

.carousel-section .section-head p {
    color: #39507f;
    font-weight: 600;
    margin: 6px 0 0;
}



/* ==========================================
   LOS ALUMNOS OPINAN
   ========================================== */

.students-opinion {

    background: var(--yellow-soft);

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.student-opinion-content {

    max-width: 360px;
}


.student-opinion-icon {

    width: 64px;

    height: 64px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--yellow);

    border-radius: 18px;

    font-size: 30px;
}


.student-opinion-content h2 {

    color: var(--blue-deep);

    font-size: 1.7rem;

    margin-bottom: 12px;
}


.student-opinion-content p {

    color: #4a5f8a;

    font-weight: 600;

    line-height: 1.6;
}


.stars {

    margin-top: 22px;

    font-size: 1.2rem;
}



/* ==========================================
   POPUP
   ========================================== */

.popup-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(10, 25, 48, 0.65);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 9999;
}


.popup {

    position: relative;

    width: 100%;

    max-width: 480px;

    background: var(--white);

    border-radius: 28px;

    padding: 40px 30px;

    text-align: center;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.25);
}


.popup-close {

    position: absolute;

    top: 12px;

    right: 16px;

    border: none;

    background: none;

    font-size: 32px;

    color: #777;

    cursor: pointer;
}


.popup-icon {

    font-size: 48px;

    margin-bottom: 12px;
}


.popup-badge {

    display: inline-block;

    background: var(--green);

    color: white;

    padding: 7px 15px;

    border-radius: 999px;

    font-family: 'Baloo 2', sans-serif;

    font-weight: 700;

    margin-bottom: 18px;
}


.popup h2 {

    color: var(--blue-deep);

    font-size: 2rem;

    margin-bottom: 12px;
}


.popup p {

    color: #4a5f8a;

    font-weight: 600;

    line-height: 1.5;

    margin-bottom: 20px;
}


.popup-highlight {

    background: var(--blue-sky);

    color: var(--blue-deep);

    border-radius: 14px;

    padding: 12px;

    font-weight: 700;

    margin-bottom: 22px;
}


.popup-button {

    display: block;

    background: var(--blue-bright);

    color: white;

    padding: 14px 20px;

    border-radius: 14px;

    font-family: 'Baloo 2', sans-serif;

    font-weight: 700;

    font-size: 1.05rem;

    box-shadow:
        0 5px 0 var(--blue-deep);
}


.popup small {

    display: block;

    margin-top: 14px;

    color: #7180a0;
}



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

footer {

    position: relative;

    z-index: 2;

    text-align: center;

    padding: 26px 6% 40px;

    color: #5a6f99;

    font-weight: 600;

    font-size: 0.9rem;
}



/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 760px) {

    nav ul {

        display: none;
    }


    .hero {

        padding-top: 25px;

        padding-bottom: 40px;
    }


    .courses-section {

        padding:
            30px 15px 35px;
    }


    .courses-grid {

        grid-template-columns: 1fr;
    }


    .reviews-section {

        padding:
            20px 15px 40px;
    }


    .reviews-grid {

        grid-template-columns: 1fr;
    }


    .course-card {

        min-height: auto;
    }


    .grid-box {

        min-height: 380px;
    }


    .badge-new {

        top: 20px;

        right: 20px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .bg-shapes span {

        animation: none;
    }

}


/* ==========================================
   CONTACTO
   ========================================== */

#contacto{
    background:#fffdf5;

    border-color:
        rgba(255,210,63,0.45);
}


/* ==========================================
   FORMULARIO
   ========================================== */

.contact-form{
    display:flex;

    flex-direction:column;

    gap:13px;
}


.form-group{
    display:flex;

    flex-direction:column;

    gap:6px;
}


.form-group label{
    font-weight:800;

    color:var(--blue-deep);
}


.form-group input,
.form-group textarea{
    width:100%;

    border:
        2px solid #dce6f8;

    border-radius:11px;

    padding:10px 13px;

    font-family:'Nunito', sans-serif;

    font-size:0.95rem;

    color:var(--ink);

    background:white;

    outline:none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--blue-bright);

    box-shadow:
        0 0 0 3px
        rgba(47,111,237,0.10);
}


.form-group textarea{
    min-height:100px;

    resize:vertical;
}


/* ==========================================
   BOTÓN ENVIAR
   ========================================== */

.submit-btn{
    background:var(--blue-bright);

    color:white;

    border:none;

    border-radius:11px;

    padding:11px 18px;

    font-family:'Baloo 2', sans-serif;

    font-size:1rem;

    font-weight:700;

    cursor:pointer;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


.submit-btn:hover{
    transform:translateY(-2px);

    opacity:.92;
}


.submit-btn:active{
    transform:translateY(1px);
}


/* ==========================================
   WHATSAPP
   ========================================== */

.whatsapp-container{
    margin-top:18px;
}


.whatsapp-btn{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    background:#25D366;

    color:white;

    padding:11px 18px;

    border-radius:11px;

    font-family:'Baloo 2', sans-serif;

    font-size:1rem;

    font-weight:700;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


.whatsapp-btn:hover{
    transform:translateY(-2px);

    opacity:.92;
}


.whatsapp-btn:active{
    transform:translateY(1px);
}


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

footer{
    position:relative;

    z-index:2;

    text-align:center;

    padding:26px 6% 40px;

    color:#5a6f99;

    font-weight:600;

    font-size:0.9rem;
}


/* ==========================================
   TABLET / MÓVIL
   ========================================== */

@media (max-width:760px){

    nav ul{
        display:none;
    }


    .main-grid{
        grid-template-columns:1fr;

        padding:
            30px 6% 60px;
    }


    .course-card{
        padding:
            28px 22px 25px;
    }


    .grid-box{
        padding:
            25px 20px;
    }


    .badge-new{
        position:relative;

        top:auto;
        right:auto;

        margin-bottom:18px;
    }


    .hero{
        padding-top:25px;
    }


    .hero h1{
        font-size:2.3rem;
    }
}
/* ==========================================
   POPUP CLASE DE PRUEBA
   ========================================== */

.popup-overlay{
    position:fixed;

    top:0;
    left:0;
    right:0;
    bottom:0;

    background:rgba(10,25,48,0.65);

    display:flex;

    align-items:center;
    justify-content:center;

    padding:20px;

    z-index:99999;

    opacity:0;

    visibility:hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.popup-overlay.active{
    opacity:1;

    visibility:visible;
}


.popup{
    position:relative;

    width:100%;

    max-width:460px;

    background:#fff;

    border-radius:25px;

    padding:35px 30px;

    text-align:center;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.25);

    transform:scale(.9);

    transition:
        transform .3s ease;
}


.popup-overlay.active .popup{
    transform:scale(1);
}


.popup-close{
    position:absolute;

    top:12px;
    right:15px;

    width:35px;
    height:35px;

    border:0;

    border-radius:50%;

    background:#f0f3f8;

    color:#123C8C;

    font-size:24px;

    cursor:pointer;
}


.popup-icon{
    font-size:48px;

    margin-bottom:5px;
}


.popup-badge{
    display:inline-block;

    background:#FFF3CC;

    color:#7a5a00;

    padding:6px 14px;

    border-radius:50px;

    font-family:'Baloo 2',sans-serif;

    font-weight:800;

    font-size:.8rem;

    margin-bottom:12px;
}


.popup h2{
    color:#123C8C;

    font-family:'Baloo 2',sans-serif;

    font-size:2rem;

    margin-bottom:10px;
}


.popup p{
    color:#4a5f8a;

    font-family:'Nunito',sans-serif;

    font-weight:600;

    line-height:1.5;

    margin-bottom:18px;
}


.popup-highlight{
    background:#EAF2FF;

    color:#123C8C;

    padding:10px;

    border-radius:12px;

    font-family:'Nunito',sans-serif;

    font-weight:700;

    font-size:.9rem;

    margin-bottom:20px;
}


.popup-button{
    display:block;

    background:#2F6FED;

    color:white;

    padding:13px 20px;

    border-radius:13px;

    font-family:'Baloo 2',sans-serif;

    font-weight:800;

    font-size:1.05rem;

    box-shadow:
        0 5px 0 #123C8C;
}


.popup small{
    display:block;

    margin-top:14px;

    color:#7a8baa;

    font-family:'Nunito',sans-serif;
}
/* ==========================================
   PÁGINA DE CONTACTO
   ========================================== */

.contact-page {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 6% 90px;
}


.contact-page-head {
    text-align: center;
    margin-bottom: 40px;
}


.contact-page-head h1 {
    font-family: 'Baloo 2', sans-serif;
    color: var(--blue-deep);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}


.contact-page-head p {
    color: #39507f;
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto;
}


/* Dos tarjetas */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}


/* Tarjetas */

.contact-card {
    background: var(--white);
    /*background: #FFF3CC;*/
    border-radius: 26px;
    padding: 34px 30px 30px;

    box-shadow:
        0 10px 0 rgba(18,60,140,0.08),
        0 14px 30px rgba(18,60,140,0.10);
}


/* Título de las tarjetas */

.contact-card .section-head {
    text-align: center;
    margin-bottom: 28px;
}


.contact-card .section-head h2 {
    font-family: 'Baloo 2', sans-serif;
    color: var(--blue-deep);
    font-size: 1.6rem;
}


.contact-card .section-head p {
    color: #39507f;
    font-weight: 600;
    margin-top: 6px;
}


/* Calendario */

.reservation-card {
    overflow: hidden;
}


.calendar-frame {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 15px;
}


/* Móvil */

@media (max-width: 760px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-page {
        padding-top: 30px;
    }

    .calendar-frame {
        height: 600px;
    }

}
h4{

    font-family: 'Baloo 2', sans-serif;
    color: var(--blue-deep);
    font-size: 20px;
    margin-bottom: 10px;
    margin-left: 200px
}
html {
    scroll-behavior: smooth;
}
.carousel-section {
    width: 100%;
    background: white;
    padding: 60px 40px;
}

#cursosCarousel {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-inner {
    padding: 20px 80px 50px;
}

.carousel-card {
    max-width: 600px;
    min-height: 280px;
    margin: 0 auto;

    padding: 35px;

    
    border-radius: 25px;

    box-shadow: 0 10px 30px rgba(30, 70, 130, 0.12);
}

.carousel-blue {
    background: #ADCEF1;
}

.carousel-yellow {
    background: #fff3c4;
}


.carousel-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf2ff;
    border-radius: 16px;

    font-size: 30px;

    margin-bottom: 20px;
}

.carousel-card h3 {
    color: #19458f;
    font-size: 24px;
}

.carousel-card p {
    color: #526b91;
    line-height: 1.6;
}
.carousel-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.carousel-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 7px 14px;

    background: #e8f1ff;
    color: #2459a6;

    border-radius: 20px;

    font-weight: 700;
}

.carousel-tag {
    display: inline-block;

    padding: 7px 14px;

    background: #e8f1ff;
    color: #2459a6;

    border-radius: 20px;

    font-weight: 700;
}


@media (max-width: 700px) {

    .carousel-section {
        padding: 40px 15px;
    }

    .carousel-inner {
        padding: 15px 45px 50px;
    }

    .carousel-card {
        padding: 25px;
    }
}/* Flechas del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #19458f;
    border-radius: 50%;
    background-size: 50%;
    width: 45px;
    height: 45px;
}
/* ==========================================
   MENÚ RESPONSIVE - MÓVIL
   ========================================== */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #19458f;
    font-size: 32px;

    cursor: pointer;

    padding: 5px;
}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 768px) {

    header {
        position: relative;
    }

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Ocultar menú inicialmente */
    header nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        background: white;

        padding: 15px 20px;

        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

        z-index: 1000;
    }

    /* Mostrar menú al pulsar */
    header nav.menu-open {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;

        gap: 5px;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li a {
        display: block;

        padding: 12px 15px;

        color: #19458f;

        text-decoration: none;

        font-weight: 700;

        border-radius: 10px;
    }

    header nav ul li a:hover {
        background: #eef5ff;
    }
}
/* ==========================================
   PÁGINAS LEGALES
   ========================================== */

.legal-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px;
}

.legal-header {
    text-align: center;
    margin-bottom: 45px;
}

.legal-header h1 {
    font-size: 48px;
    margin: 15px 0;
}

.legal-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #60708a;
    line-height: 1.7;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.legal-card {
    background: white;
    border-radius: 22px;
    padding: 30px 35px;
    box-shadow: 0 8px 25px rgba(30, 70, 130, 0.08);
}

.legal-card h2 {
    color: #19458f;
    margin-top: 0;
    margin-bottom: 15px;
}

.legal-card p,
.legal-card li {
    color: #526b91;
    line-height: 1.7;
}

.legal-card ul {
    padding-left: 25px;
}

.legal-card a {
    color: #19458f;
    font-weight: 700;
}


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

footer {
    text-align: center;
    padding: 35px 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #19458f;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin: 0;
    color: #60708a;
}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 768px) {

    .legal-page {
        padding: 45px 18px;
    }

    .legal-header h1 {
        font-size: 36px;
    }

    .legal-card {
        padding: 25px 22px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

}
/* ==========================================
   NEWSLETTER
   ========================================== */

.newsletter-section {
    width: 100%;
    background: #ffffff;
    padding: 45px 20px 50px;
    box-sizing: border-box;
}

.newsletter-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.newsletter-card {
    width: 100%;
    background: #EFF2F7;
    border-radius: 26px;
    padding: 35px;
    box-sizing: border-box;
}


/* ==========================================
   BREVO - OCUPAR TODO EL ANCHO
   ========================================== */

.newsletter-card .sib-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.newsletter-card #sib-form-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.newsletter-card #sib-container,
.newsletter-card #sib-container.sib-container--large,
.newsletter-card #sib-container.sib-container--vertical {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    background-color: rgba(180, 219, 242, 1) !important;

    border: 0 !important;
    border-radius: 18px !important;
}

/* El propio formulario */
.newsletter-card #sib-form {
    width: 100% !important;
    max-width: none !important;
}


/* Campos */
.newsletter-card .entry__field {
    width: 100% !important;
}

.newsletter-card input {
    box-sizing: border-box !important;
    width: 100% !important;
}


/* Botón */
.newsletter-card button {
    border-radius: 8px !important;
}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 760px) {

    .newsletter-section {
        padding: 30px 15px 40px;
    }

    .newsletter-card {
        padding: 15px;
        border-radius: 22px;
    }

    .newsletter-card #sib-container {
        border-radius: 14px !important;
    }
}
/* ==========================================
   NEWSLETTER - CONTENIDO INTERIOR
   ========================================== */

.newsletter-card #sib-form {
    max-width: 820px !important;
    margin: 0 auto !important;
}

/* Título */
.newsletter-card .sib-form-block p {
    margin: 0;
}

/* Espaciado de los bloques */
.newsletter-card #sib-form > div {
    padding: 10px 0 !important;
}

/* Texto descriptivo */
.newsletter-card .sib-text-form-block p {
    margin: 0;
    line-height: 1.5;
}

/* Etiqueta */
.newsletter-card .entry__label {
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Campo email */
.newsletter-card .entry__field {
    width: 100% !important;
}

.newsletter-card .entry__field input {
    width: 100% !important;
    height: 48px;
    border-radius: 8px !important;
    font-size: 16px;
}

/* Texto de ayuda */
.newsletter-card .entry__specification {
    display: block;
    margin-top: 7px;
}

/* Botón */
.newsletter-card .sib-form-block__button {
    padding: 13px 25px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
}
    