body header .contenedor-principal .barra-navegacion.scrolled .menu-desplegable {
    background: #0b3d63 !important;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-desplegable a {
    color: #ffffff !important;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-desplegable a:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

.testimonio-subtitulo {
    font-size: 1.15rem;
    color: rgb(232, 0, 0);
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    font-style: italic;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: center;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* WhatsApp Floating Tooltip */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.whatsapp-tooltip {
    background: #fff;
    color: #000;
    text-shadow: 0 0 10px #25D366;
    font-size: 1rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    padding: 10px 18px;
    border-radius: 24px;
    margin-right: 80px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    white-space: nowrap;
}


.whatsapp-float {
    position: static;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.25);
    border-radius: 50%;
    background: #25d366;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.whatsapp-float:hover {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* =========================================
   1. RESET & GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 154px;
    /* Compensar navbar fijo */
}

body {
    background-color: #F6F8FA;
    font-family: Arial, sans-serif;
    color: #222;
}

/* =========================================
   2. HEADER & HERO SECTION
   ========================================= */
header {
    background: #00588F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
}

/* Contenedor principal - renombrado para evitar conflicto con Bootstrap .container */
body header .contenedor-principal .contenedor-imagen {
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Importante para posicionar navbar y botón */
}

body header .contenedor-principal {
    width: 100%;
}

/* Imagen de fondo principal - 1280x800 */
body header .contenedor-principal .contenedor-imagen .hero-img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    object-fit: cover;
    object-position: center center;
    opacity: 0.98;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 77% 100%, 0 96%);
    background: #f8fbff;
    overflow: hidden;
    z-index: 1;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: clamp(540px, 62vw, 920px);
}

/* Diapositivas del hero - renombrado .active a .activo para evitar conflicto con Bootstrap */
.hero-diapositiva {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.hero-diapositiva:first-child {
    position: relative;
    height: 100%;
}

.hero-diapositiva.activo {
    opacity: 1;
    z-index: 1;
}

/* Fade-in suave en la primera carga */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-diapositiva.activo:first-child {
    animation: heroFadeIn 1.8s ease-in-out;
}

/* Animación zoom-in (acercamiento) en la imagen activa */
.hero-diapositiva .hero-img {
    transform: scale(1);
    transition: transform 6s ease-out, opacity 0.6s ease;
}

.hero-diapositiva.activo .hero-img {
    transform: scale(1.08);
}

/* Navegación del Hero Slider */
.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

/* Puntos de navegación del hero - renombrado .active a .activo */
.hero-punto {
    width: 50px;
    height: 5px;
    border-radius: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-punto:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-punto.activo {
    background: white;
}

body header .contenedor-principal .header-text h1 {
    font-family: Arial, sans-serif;
    font-size: 30px;
    color: white;
    margin: 0;
    padding: 16px 8px;
    word-break: break-word;
}

/* =========================================
   3. NAVBAR (ARREGLADO)
   ========================================= */
/* Barra de navegación - usando selectores específicos para evitar conflicto con Bootstrap .navbar */
body header .contenedor-principal .barra-navegacion {
    display: block;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100vw;
    z-index: 100;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar con scroll - cambia a azul cuando pasa el hero */
body header .contenedor-principal .barra-navegacion.scrolled {
    box-shadow: 0 8px 20px rgba(2, 16, 38, 0.3);
}

.nav-franja-superior {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background-color: #0b3d63;
}

.nav-franja-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 11px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 500;
}

.nav-franja-inner span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a {
    color: white;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a:hover {
    color: #d3d3d3;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a.boton-contacto {
    background-color: #fff;
    color: #00588F;
}

body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a.boton-contacto:hover {
    background-color: #f0f0f0;
    color: #00588F;
}

/* Espacio para navbar fijo en desktop */
body header .contenedor-principal .contenedor-imagen {
    margin-top: 154px;
}


/* Contenedor UL principal */
body header .contenedor-principal .barra-navegacion nav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
    height: 160px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 60px 14px;
    background: rgba(246, 248, 252, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body header .contenedor-principal .barra-navegacion.scrolled nav {
    background: #0b3d63;
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

body header .contenedor-principal .barra-navegacion.scrolled .nav-franja-superior {
    background: #0b3d63;
}

/* --- LOGO --- */
.nav-logo {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    width: 320px;
    height: 80px;
    background: transparent;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: end;
}

.title-nav-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.logo-normal {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Logo visibility logic */
.logo-scroll {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: scale(1.5);
    transform-origin: left center;
}

.barra-navegacion.scrolled .logo-normal {
    opacity: 0;
    visibility: hidden;
}

.barra-navegacion.scrolled .logo-scroll {
    opacity: 1;
    visibility: visible;
}

/* --- ITEMS DEL MENÚ --- */
.menu-items {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    align-items: flex-end;
    justify-content: flex-end;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

/* Efecto destacador flúor detrás de "Cursos" */
.menu-items a.nav-destacado {
    position: relative;
}

.menu-items a.nav-destacado::before {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: 2px;
    height: 47%;
    background: #b8ff2b;
    opacity: 0.55;
    z-index: -1;
    border-radius: 2px;
    transform: rotate(-1deg);
    transition: opacity 0.3s ease;
}

.menu-items a.nav-destacado:hover::before {
    opacity: 0.75;
}

/* --- CARRITO --- */
.nav-carrito {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    margin-bottom: 0;
    justify-self: end;
    grid-column: 2;
    grid-row: 2;
    background-color: transparent;
    color: #D94D48;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-carrito i {
    font-size: 20px;
}

.nav-carrito:hover {
    color: #00588F;
    transform: translateY(-2px);
}

.barra-navegacion.scrolled .nav-carrito {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

.barra-navegacion.scrolled .nav-carrito:hover {
    color: #fff;
}

/* Ocultar hamburguesa en desktop */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer;
        padding: 8px;
        z-index: 9999 !important;
        position: fixed !important;
        right: 20px;
        top: 25px;
        transform: none;
    }
}

.menu-items li a {
    text-decoration: none;
    color: #334155;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: block;
    padding: 8px 0;
    border-radius: 0;
    transition: color 0.2s;
    position: relative;
}

@media (min-width: 901px) {
    body header .contenedor-principal button:not(.hero-punto):not(.menu-toggle) {
        left: 72.5%;
        top: 80.8%;
        font-size: 19px;
        padding: 11px 22px;
    }
}

.menu-items li a:hover {
    color: #00588F;
}

.menu-items li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00588F;
    transition: width 0.3s ease;
}

.menu-items li a:hover::after {
    width: 100%;
}

.menu-items li a.boton-contacto {
    background-color: #00588F;
    color: #fff;
    padding: 8px 20px;
}

.menu-items li a.boton-contacto::after {
    display: none;
}

.menu-items li a.boton-contacto:hover {
    background-color: #004a79;
    color: #fff;
}

.barra-navegacion.scrolled .menu-items li a {
    color: rgba(255, 255, 255, 0.9);
}

.barra-navegacion.scrolled .menu-items li a:hover {
    color: #fff;
}

.barra-navegacion.scrolled .menu-items li a::after {
    background-color: #fff;
}

.barra-navegacion.scrolled .menu-items li a.boton-contacto {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #fff;
}

.barra-navegacion.scrolled .menu-items li a.boton-contacto:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #00588F;
    border-color: rgba(255, 255, 255, 0.95);
}

/* --- MENÚ DESPLEGABLE CURSOS (renombrado para evitar conflicto con Bootstrap .dropdown) --- */
.desplegable {
    position: relative;
}

.boton-desplegable {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icono-desplegable {
    font-size: 10px;
    margin-right: 0;
    transition: transform 0.3s ease;
}

.desplegable:hover .icono-desplegable {
    transform: rotate(180deg);
}

/* Menú desplegable - renombrado de .dropdown-menu para evitar conflicto con Bootstrap */
.menu-desplegable {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: block !important;
    /* Override Bootstrap display:none */
}

.desplegable:hover .menu-desplegable {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-desplegable a {
    display: block;
    padding: 10px 20px;
    color: #334155 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.menu-desplegable a:hover {
    background-color: rgba(0, 88, 143, 0.08);
    color: #00588F !important;
}

.barra-navegacion.scrolled .menu-desplegable {
    background: #0b3d63;
    border-color: rgba(255, 255, 255, 0.1);
}

.barra-navegacion.scrolled .menu-desplegable a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.barra-navegacion.scrolled .menu-desplegable a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

/* =========================================
   4. BOTÓN HERO
   ========================================= */
body header .contenedor-principal button:not(.hero-punto):not(.menu-toggle) {
    position: absolute;
    left: 73%;
    top: 92.2%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: white;
    background-color: #00588F;
    border: none;
    /* border-radius: 50px; */
    font-size: 20px;
    padding: 10px 20px;
    min-width: 180px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   5. MAIN CONTENT
   ========================================= */
main {
    background-color: white;
    padding-bottom: 40px;
}

main .header-section {
    background-color: white;
    padding: 80px;
    margin: auto;
    margin-bottom: 60px;
}

main .header-section#nosotros {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 62vw, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0b1e33;
}

main .header-section h2 {
    color: #1e293b;
    text-align: center;
    font-size: 38px;
    background: #333;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-right: 300px;
    padding-bottom: 15px;
}

main .header-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3A1078;
    border-radius: 2px;
}

main .header-section#nosotros h2.titulo-nosotros::after {
    display: none;
}

main .header-section#nosotros h2.titulo-nosotros {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 12px 18px;
    font-size: clamp(2.2rem, 5.6vw, 4.4rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

main .header-section#nosotros h2 .titulo-nosotros-linea {
    display: block;
    margin-top: 6px;
    font-size: clamp(2.8rem, 9vw, 6.2rem);
    font-weight: 400;
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
}

main .container-main {
    position: relative;
    z-index: 2;
    background-color: transparent;
    padding: 2vw 4vw;
}

main .container-main .about-us {
    padding: 26px 30px;
    display: block;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin-bottom: 36px;
}

main .header-section#nosotros .container-main {
    width: min(100%, 1120px);
    margin: 0 auto;
}

main .header-section#nosotros .about-us {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}


main .container-main .about-us h3 {
    color: white;
    margin: 0;
    font-size: 1.16rem;
    font-weight: 400;
    line-height: 1.7;
}

main .certification-main .certification img {
    width: 50px;
    height: 50px;
}

main .about-us {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Catamaran', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 30px 0;
}

.featured-listado {
    background: white;
    padding: 18px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 26px;
    align-items: center;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

.featured-listado-section {
    padding: 34px 4vw 56px;
}

.featured-listado-wrap {
    max-width: 1500px;
    margin: 0 auto;
}

.featured-listado-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.featured-listado-content {
    padding-right: 8px;
}

.featured-kicker {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
}

.featured-listado-content h3 {
    margin: 8px 0 10px;
    color: black;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    line-height: 1.1;
}

.featured-listado-content p {
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.featured-listado-content ol {
    margin: 0;
    padding-left: 24px;
    display: grid;
    gap: 10px;
    color: #000;
    font-size: 1.25rem;
    font-weight: 300;
}

.featured-listado-content li::marker {
    color: #9ca3af;
    font-weight: 500;
}

/* Efecto destacador multicolor en cada curso */
.featured-listado-content li {
    position: relative;
    z-index: 0;
}

.featured-listado-content li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
    border-radius: 2px;
    transform: rotate(-0.5deg);
}

.featured-listado-content li:nth-child(1)::after { background: #ffeb3b; }  /* amarillo */
.featured-listado-content li:nth-child(2)::after { background: #b8ff2b; }  /* verde flúor */
.featured-listado-content li:nth-child(3)::after { background: #ff9100; }  /* naranja */
.featured-listado-content li:nth-child(4)::after { background: #40c4ff; }  /* celeste */
.featured-listado-content li:nth-child(5)::after { background: #ea80fc; }  /* rosa/lila */

@media (max-width: 900px) {

    .nav-franja-inner {
        padding: 9px 20px;
        gap: 10px;
        font-size: 12px;
    }
    main .container-main .about-us {
        padding: 20px 16px;
    }

    .featured-listado-section {
        padding: 24px 15px 36px;
    }

    .featured-listado {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px;
    }

    .featured-listado-media img {
        max-height: none;
    }

    .featured-listado-content h3 {
        font-size: 2rem;
    }

    .featured-listado-content ol {
        font-size: 1.05rem;
        gap: 8px;
    }

    main .container-main .about-us h3 {
        font-size: 1.1rem;
        text-align: justify;
    }
}

main .about-us h3 {
    text-align: justify;
    color: #444;
    text-indent: 0;
}

/* Certificación NCH */
.certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px auto;
    padding: 30px;
}

.certification nav-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.certification p {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    text-align: center;
}

/* =========================================
   5.1 CARRUSEL DE TARJETAS
   ========================================= */
.seccion-carousel-stats {
    background-color: #00000004;
    /* padding-top: 50px; */
    margin-top: 0;
}

.carrusel-tarjetas {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 60px 0;
    /* Aumentado para dar más "aire" y altura */
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    /* Asegurar que ocupe altura */
}

/* Efecto de desvanecimiento en los bordes */
.carrusel-tarjetas::before,
.carrusel-tarjetas::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.carrusel-tarjetas::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.carrusel-tarjetas::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

/* Pista del carrusel - controlada por JavaScript */
.pista-tarjetas {
    display: flex;
    gap: 30px;
    width: max-content;
    transition: none;
    align-items: center;
    /* Centrar items verticalmente */
}

@keyframes desplazar-tarjetas {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Tarjeta individual */
/* Tarjeta con tamaño fijo para evitar saltos */
.tarjeta {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 25px 20px;
    background: transparent;
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

/* Contenido de la tarjeta - números limpios */
.tarjeta-contenido {
    text-align: center;
    border: solid 2px #000;
    border-radius: 50px;
    padding: 18px;
}

.tarjeta-contenido h3.contador,
.tarjeta-contenido h3 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 8px;
    background-color: #000000bc;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    /* Evitar saltos de línea raros */
}

.tarjeta-contenido p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

/* Botón de la tarjeta */
.boton-tarjeta {
    background: white;
    color: #00588F;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.boton-tarjeta:hover {
    background: #2AC3F3;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(42, 195, 243, 0.4);
}

/* =========================================
   5.1 GALLERY SECTION
   ========================================= */
.bloque-individual {
    padding: 56px 0;
}

.bloque-gallery,
.bloque-catalogo {
    background: #f7f8fb;
}

.bloque-testimonios {
    background: #f7f8fb;
}

.gallery-section {
    padding: 0 0 10px;
    background: transparent;
}

.gallery-header {
    text-align: center;
    padding: 0 0 24px;
}

.gallery-header h2 {
    color: #1e293b;
    font-size: 38px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.gallery-header p {

    color: #64748b;
    font-size: 16px;
}

.gallery-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2AC3F3, #6f7df0);
    border-radius: 2px;
}

/* =========================================
   5.2 GALLERY SLIDER
   ========================================= */
.gallery-slider {
    margin-top: 20px;
    position: relative;
    background: transparent;
    padding-bottom: 32px;
}

.slider-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
}

/* Diapositivas de la galería - renombrado para evitar conflicto con Bootstrap */
.diapositivas {
    position: relative;
    width: 100%;
    height: 500px;
}

.diapositiva {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.diapositiva.activo {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.diapositiva img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Navegación del Slider - Botones */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 30px;
    height: 60px;
    padding-bottom: 10px;
}

/* Puntos de navegación de la galería - renombrado .active a .activo */
.punto-nav {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #cfd6e4 0%, #b8c2d6 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(12px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.punto-nav:hover {
    background: linear-gradient(135deg, #8fc8e6 0%, #6ea9cc 100%);
    transform: translateY(6px);
    box-shadow: 0 5px 15px rgba(42, 195, 243, 0.3);
}

.punto-nav.activo {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2AC3F3 0%, #4f46e5 100%);
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(42, 195, 243, 0.4);
}

.punto-nav.activo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

/* =========================================
   5.4 SECCIÓN CONTACTO
   ========================================= */
.seccion-contacto {
    padding: 40px 0 60px;
}

.seccion-contacto .header-section {
    background: transparent;
    padding: 0;
    margin: 0 0 24px;
    text-align: center;
}

.seccion-contacto .header-section h2 {
    display: inline-block;
    margin: 0 auto;
    margin-right: 0;
    position: relative;
}

.contenedor-contacto {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Info de contacto */
.info-contacto {
    padding: 30px 0;
}

.info-contacto h3 {
    font-size: 28px;
    font-weight: 600;
    color: #00588F;
    margin-bottom: 15px;
}

.info-contacto>p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.datos-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.dato i {
    font-size: 30px;
    color: black;
    width: 24px;
}

.dato span {
    font-size: 16px;
    color: #444;
}

/* Formulario */
.formulario-contacto {
    background: white;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 88, 143, 0.1);
    border: 1px solid rgba(0, 88, 143, 0.08);
}

.campo-grupo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: #2AC3F3;
    background: white;
    box-shadow: 0 0 0 4px rgba(42, 195, 243, 0.1);
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #aaa;
}

/* Botón Enviar */
.boton-enviar {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #00588F;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.boton-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 88, 143, 0.3);
}

.boton-enviar i {
    font-size: 18px;
}

/* Checkbox Consentimiento */
.item-consentimiento-checkbox {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    /* Alineado a la izquierda */
}

.contenedor-checkbox {
    display: flex;
    align-items: flex-start;
    /* Alinear arriba para texto largo */
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.contenedor-checkbox input {
    width: auto;
    /* Evitar que tome 100% como otros inputs */
    margin-top: 3px;
    cursor: pointer;
    accent-color: #2AC3F3;
    /* Color del check nativo moderno */
}

.texto-consentimiento {
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive contacto */
@media (max-width: 768px) {
    .contenedor-contacto {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .campo-grupo {
        grid-template-columns: 1fr;
    }

    .info-contacto {
        text-align: center;
    }

    .datos-contacto {
        align-items: center;
    }
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #0b3d63;
    color: white;
    padding: 40px 40px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.footer-col h4 {
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-col p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.footer-brand-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo-main {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.footer-cert-logo {
    width: 120px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.footer-mercadopago-logo {
    width: 190px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 4px 0 0;
}

.footer-top .footer-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    width: max-content;
    text-align: center;
}

.footer-content {
    text-align: center;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Funnel Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-content a {
    color: #d9d9d9;
    text-decoration-line: none;
    list-style-type: none;
}

.footer-year {
    font-size: 14px;
    opacity: 0.8;
}

.footer-dev {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-dev p {
    font-size: 13px;
    opacity: 0.7;
}

.footer-dev a {
    color: #2AC3F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* =========================================
   6.1 WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: rotate(15deg);
}

/* =========================================
   7. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablet y pantallas medianas */
@media (max-width: 900px) {

    /* Navbar más compacto */
    body header .contenedor-principal .contenedor-imagen ul {
        padding: 15px 20px;
    }

    /* Ajuste Logo */
    .nav-logo {
        width: clamp(210px, 33vw, 240px);
        height: clamp(52px, 8.5vw, 60px);
    }

    /* Menu items más pequeños */
    .menu-items {
        gap: 25px;
    }

    .menu-items li a {
        font-size: 15px;
        padding: 6px 0;
    }

    /* Carrito más compacto en tablet */
    .nav-carrito {
        padding: 6px 16px;
        font-size: 15px;
    }

    .nav-carrito i {
        font-size: 18px;
    }

    /* Ajuste Botón Hero */
    body header .contenedor-principal button:not(.hero-punto) {
        font-size: 14px;
        padding: 8px 16px;
        left: 50%;
        top: 90%;
        min-width: 150px;
    }

    /* Ajuste navegación hero */
    .hero-nav {
        bottom: 15px;
    }

    .hero-punto {
        width: 40px;
        height: 4px;
    }

    /* Menú desplegable */
    .icono-desplegable {
        font-size: 8px;
    }

    .menu-desplegable {
        min-width: 180px;
    }

    .hero-slides {
        height: clamp(420px, 68vw, 680px);
    }
}

/* Móviles */
@media (max-width: 768px) {

    .nav-franja-superior {
        display: none;
    }

    /* ===== NAVBAR MÓVIL CON HAMBURGUESA ===== */
    body header .contenedor-principal .barra-navegacion {
        height: 70px;
        padding: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    body header .contenedor-principal .barra-navegacion nav {
        height: 70px;
        padding: 0 20px;
        position: relative;
        align-items: center;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    /* Logo móvil */
    .nav-logo {
        flex-shrink: 0;
        width: clamp(180px, 55vw, 220px);
        height: clamp(44px, 13vw, 52px);
    }

    .title-nav-img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        transition: width 0.3s;
        object-fit: contain;
        object-position: left center;
    }

    /* En móvil ambos logos deben ocupar el mismo marco visual */
    .logo-scroll {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;
        transform: scale(1.5);
        transform-origin: left center;
    }

    .logo-normal,
    .logo-scroll {
        width: 100%;
        height: 100%;
    }

    /* Carrito móvil - Solo ícono */
    .nav-carrito {
        position: fixed;
        right: 56px;
        top: 15px;
        padding: 10px;
        margin: 0;
        border-width: 2px;
        z-index: 9998;
        min-width: auto;
    }
    /* mostrar y ocultar texto del carrito según estado del menú */
    /* .nav-carrito span {
        display: none;
    } */

    .nav-carrito i {
        font-size: 24px;
        margin: 0;
    }

    /* Menú Items - Oculto por defecto en móvil */
    .menu-items {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 99;
    }

    .menu-items.activo {
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu-items li {
        width: 100%;
        text-align: center;
    }
    
    .menu-items li a {
        display: block;
        padding: 15px;
        font-size: 20px;
        border-radius: 12px;
    }

    .menu-items li a:hover {
        background: #f0f8ff;
    }

    /* ===== HERO SLIDER MÓVIL (Restaurado a desktop) ===== */

    body header .contenedor-principal .contenedor-imagen .hero-img {
        height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: center center;
    }

    .hero-slides {
        height: clamp(300px, 78vw, 540px);
    }

    /* BOTÓN HERO - FORZAR POSICIÓN EXACTA DE DESKTOP */
    body header .contenedor-principal button:not(.hero-punto):not(.menu-toggle) {
        /* Restaurar valores originales de desktop */
        position: absolute !important;
        left: 79% !important;
        top: 92.2% !important;
        transform: translate(-50%, -50%) !important;
        /* Asegurar que se vea igual aunque sea pequeño */
        font-size: clamp(10px, 4vw, 20px) !important;
        /* Escalar fuente */
        padding: clamp(5px, 2vw, 10px) clamp(10px, 4vw, 20px) !important;
        min-width: clamp(100px, 30vw, 180px) !important;
        white-space: nowrap;
    }

    /* Ajustar navegación hero */
    .hero-nav {
        bottom: 10px;
        gap: 6px;
    }

    .hero-punto {
        width: 20px;
        height: 3px;
    }

    /* ALINEACIÓN NAVBAR - LOGO Y HAMBURGUESA */

    .nav-logo {
        margin-left: -10px;
        /* Ajuste fino para logo */
    }

    /* Botón Hamburguesa - Alineado con el logo */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer;
        padding: 8px;
        z-index: 9999 !important;
        position: fixed !important;
        right: 6px;
        top: 15px;
        transform: none !important;
    }

    /* Forzar visibilidad al costado del carrito */
    body header .contenedor-principal .barra-navegacion .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        right: 6px !important;
        top: 15px !important;
        z-index: 10000 !important;
        border-radius: 8px;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animación hamburguesa abierta */
    .menu-toggle.activo .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.activo .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.activo .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Navbar scrolled - líneas blancas sin fondo */
    body header .contenedor-principal .barra-navegacion.scrolled .hamburger-line {
        background: #fff !important;
    }

    /* Menú Items - Debajo del navbar */
    .menu-items {
        top: 70px;
        padding-top: 20px;
    }

    /* SOBREESCRIBIR ESTILOS DE SCROLLED PARA MÓVIL */
    /* El texto debe ser siempre oscuro en el menú móvil porque el fondo es blanco */
    body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a {
        color: #333333 !important;
    }

    /* Hover negro como solicitó el usuario */
    body header .contenedor-principal .barra-navegacion.scrolled .menu-items li a:hover,
    .menu-items li a:hover {
        color: black !important;
        background-color: #f0f8ff;
        /* Mantener fondo suave */
    }

    /* Desplegable en móvil */
    .desplegable {
        width: 100%;
    }

    /* Ocultar texto 'Cursos' en móvil, dejando solo 'Ver cursos' */
    .boton-desplegable {
        display: none !important;
    }

    .menu-desplegable {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        border-radius: 12px;
    }

    /* ===== HERO SLIDER MÓVIL ===== */

    body header .contenedor-principal .contenedor-imagen {
        margin-top: 70px;
        /* Revertir overflow para comportamiento standard */
        overflow: visible;
    }

    /* Revertir a ancho responsive */
    .hero-slides {
        width: 100%;
        height: clamp(300px, 78vw, 540px);
    }

    body header .contenedor-principal .contenedor-imagen .hero-img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: center center;
    }

    /* BOTÓN HERO - Ajuste para móvil responsive */
    /* Mantener position absolute pero ajustar tamaño para pantalla pequeña */
    body header .contenedor-principal button:not(.hero-punto):not(.menu-toggle) {
        /* Mantener posición relativa a la imagen */
        position: absolute !important;
        left: 73% !important;
        top: 92.2% !important;
        transform: translate(-50%, -50%) !important;
        /* Ajustar escala para móvil */
        font-size: clamp(8px, 2.5vw, 16px) !important;
        padding: clamp(4px, 1.5vw, 8px) clamp(8px, 3vw, 16px) !important;
        min-width: auto !important;
        white-space: nowrap;
    }

    .hero-nav {
        bottom: 5px;
        gap: 4px;
    }

    .hero-punto {
        width: 20px;
        height: 3px;
    }

    /* ===== SECCIONES PRINCIPALES ===== */
    main .header-section h2 {
        font-size: 28px;
        padding: 40px 15px 15px;
    }

    main .header-section#nosotros h2.titulo-nosotros {
        padding: 14px 8px 12px;
        font-size: clamp(1.9rem, 8vw, 3rem);
        line-height: 1.12;
    }

    main .header-section#nosotros h2 .titulo-nosotros-linea {
        font-size: clamp(2.3rem, 12vw, 4.2rem);
    }

    main .header-section#nosotros {
        min-height: clamp(420px, 96vw, 560px);
    }

    main .about-us h3 {
        font-size: 18px;
        line-height: 1.6;
        text-align: justify;
    }

    main .container-main {
        padding: 15px;
    }

    main .header-section#nosotros .about-us {
        max-width: 100%;
    }

    /* ===== CARRUSEL TARJETAS ===== */
    .carrusel-tarjetas {
        max-width: 100%;
        margin: 30px auto;
    }

    .tarjeta {
        width: 180px;
        height: 120px;
    }

    .tarjeta-contenido h3 {
        font-size: 40px;
    }

    .tarjeta-contenido p {
        font-size: 14px;
    }

    /* ===== GALERÍA SLIDER ===== */
    .gallery-header h2 {
        font-size: 28px;
    }

    .slider-container {
        margin: 0 15px;
        border-radius: 12px;
    }

    .diapositivas {
        height: 300px;
    }

    .diapositiva img {
        border-radius: 12px;
    }

    .slider-nav {
        margin-top: 20px;
        height: 50px;
    }

    .punto-nav {
        width: 14px;
        height: 14px;
    }

    .punto-nav.activo {
        width: 18px;
        height: 18px;
    }

    /* Hero CTA Button Responsive */
    #hero-cta-btn {
        left: 50% !important;
        top: 93% !important;
        /* Centrado y abajo en móvil */
        font-size: 22px;
        min-width: 160px;
        padding: 10px 20px;
        width: 90%;
        max-width: 320px;
    }

    /* Carrusel Responsive */
    .carrusel-tarjetas {
        padding: 30px 0;
        min-height: 180px;
    }

    .tarjeta {
        width: 180px;
        height: 110px;
    }

    .tarjeta-contenido h3.contador,
    .tarjeta-contenido h3 {
        font-size: 36px;
    }

    .tarjeta-contenido p {
        font-size: 14px;
    }

    /* ===== CONTACTO ===== */
    .seccion-contacto {
        padding: 30px 0 40px;
    }

    .contenedor-contacto {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .info-contacto {
        text-align: center;
        padding: 20px 0;
    }

    .info-contacto h3 {
        font-size: 22px;
    }

    .datos-contacto {
        align-items: center;
    }

    .formulario-contacto {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .campo-grupo {
        grid-template-columns: 1fr;
    }

    .campo input,
    .campo textarea {
        padding: 12px 15px;
        font-size: 16px;
    }

    .boton-enviar {
        padding: 14px 25px;
        font-size: 15px;
    }

    /* hCaptcha responsive */
    .campo-captcha {
        transform: scale(0.9);
        transform-origin: center;
    }

    /* ===== FOOTER ===== */
    footer {
        padding: 25px 20px 15px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-brand-col,
    .footer-col {
        justify-content: center;
    }

    .footer-brand-stack {
        align-items: center;
    }

    .footer-logo-main {
        max-width: 230px;
    }

    .footer-mercadopago-logo {
        width: 180px;
        margin-top: 6px;
    }

    .footer-col h4 {
        font-size: 24px;
    }

    .footer-content span {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-content span a {
        font-size: 14px;
    }

    /* ===== WHATSAPP BUTTON ===== */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    /* ===== TESTIMONIOS RESPONSIVE ===== */
    body section .block-testimonios {
        padding: 20px 10px 40px;
        gap: 20px;
    }

    body section .card-testimonio {
        min-width: 100%;
        max-width: 100%;
        padding: 50px 15px 25px;
    }

    body section .card-testimonio .testimonio h3 {
        font-size: 18px;
        font-weight: bold;
        font-family: 'Nata Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Ajustar comilla en móvil */
    body section .card-testimonio::before {
        font-size: 60px;
        top: -25px;
        left: 20px;
    }

    /* ===== GALERÍA RESPONSIVE ===== */
    .gallery-slider {
        margin-top: 15px;
    }

    .slider-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        /* Full width looks better with no radius on sides sometimes, or keep radius small */
        margin: 0;
    }

    .diapositivas {
        height: 250px;
        /* Adjust height for mobile */
    }

    .diapositiva img {
        border-radius: 0;
        /* Match container */
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: clamp(160px, 58vw, 190px);
        height: clamp(40px, 12vw, 46px);
    }

    .title-nav-img,
    .logo-normal,
    .logo-scroll {
        width: 100%;
        height: 100%;
    }
}


/* Testimonios */


.catalogo-section {
    background: transparent;
    padding: 0 20px;
}

.catalogo-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalogo-header h2 {
    color: #1e293b;
    font-size: 38px;
    margin-bottom: 10px;
}

.catalogo-header p {
    color: #64748b;
    font-size: 16px;
}

.catalogo-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.catalogo-grid .curso-card h3 {
    text-align: center;
}

.catalogo-grid .curso-card h4 {
    position: absolute;
    background-color: #D94D48;
    color: white;
    margin: 0px;
    font-size: 16px;
    border: none;
    padding: 3.7px;
    margin-top: 10px;
    margin-left: 8.6px;
    border: transparent 1px solid;
    border-radius: 5px 5px;
    font-family: 'Funnel Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.catalogo-grid .precio {
    text-align: center;     
}
.catalogo-grid .precio .precio-anterior {
    font-size: 22px;
    font-weight: 500;
    color: #B0B0B0;
    text-decoration: line-through;
    margin-right: 8px;
}


.catalogo-grid .precio .precio-actual {
    font-size: 24px;    
    font-weight: 700;
    color: #E53935;
    letter-spacing: 0.5px;
}

.catalogo-grid .button-head button {
    background-color: #E53935;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.catalogo-grid .button-head button:hover {
    background-color: #c62828;
}

.curso-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.curso-card .precio {
    flex: 1;
    margin-bottom: 18px;
}

.curso-card .button-head {
    margin-top: auto;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}


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

.curso-card h3 {
    color: #312e81;
    font-size: 30px;
    padding: 18px 18px 24px;
    line-height: 1.3;
}

.catalogo-cta {
    text-align: center;
    margin-top: 28px;
}

.catalogo-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #00588F;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
}

.bloque-novedades {
    background: #fff;
}

.novedades-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.novedades-header {
    text-align: center;
    margin-bottom: 30px;
}

.novedades-header h2 {
    color: #1e293b;
    font-size: 38px;
    margin-bottom: 10px;
}

.novedades-header p {
    color: #64748b;
    font-size: 16px;
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.novedad-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    padding: 18px;
}

.novedad-card h3::before {
    content: "¡Nuevo! ";
    color: #ef4444;
    font-weight: 700;
}

.novedad-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.novedad-card h3 {
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.novedad-card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.novedad-card .data_label {
    font-size: 14px;
    color: #a8a8a8;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .catalogo-header h2 {
        font-size: 30px;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .curso-card h3 {
        font-size: 24px;
        padding: 16px 16px 20px;
    }

    .novedades-header h2 {
        font-size: 30px;
    }

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

    .novedad-card h3 {
        font-size: 1.28rem;
    }
}

@media (max-width: 480px) {
    .catalogo-section {
        padding: 0 12px;
    }

    .catalogo-header h2 {
        font-size: 26px;
    }

    .catalogo-header p {
        font-size: 14px;
    }

    .curso-card h3 {
        font-size: 21px;
        line-height: 1.25;
        padding: 14px 14px 18px;
    }

    .novedades-section {
        padding: 0 12px;
    }

    .novedades-header h2 {
        font-size: 26px;
    }

    .novedades-header p {
        font-size: 14px;
    }

    .catalogo-grid .curso-card h4 {
        font-size: 14px;
        margin-top: 8px;
        margin-left: 7px;
    }
}


body section .block-testimonios {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 20px 60px;
    background: transparent;
}

body section .testimonio p {
    position: relative;
    z-index: 2;
    font-style: italic;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Nata Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
}

body section .card-testimonio .testimonio {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body section .testimonio .footer-testim h3 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 4px;
}

body section .testimonio .footer-testim {
    margin-top: auto;
    padding: 14px var(--card-pad-x, 40px) 12px;
    min-height: 120px;
    width: calc(100% + (var(--card-pad-x, 40px) * 2));
    margin-left: calc(var(--card-pad-x, 40px) * -1);
    margin-right: calc(var(--card-pad-x, 40px) * -1);
    margin-bottom: calc(var(--card-pad-bottom, 50px) * -1);
    background-color: #f7f8fb;
    border: 1px solid #e2e8f0;
}

body main section .header-section#nosotros > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Viñeta oscura en los bordes del GIF */
main .header-section#nosotros::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.testimonio-highlight {
    color: #00588F;
    font-weight: 300;
}

body section .testimonio h3,
body section .testimonio .testimonio-subtitulo,
body section .testimonio .calificacion {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    body section .block-testimonios p {
        text-align: left;
        max-width: 100%;
    }
}


body section .card-testimonio {
    --card-pad-x: 40px;
    --card-pad-bottom: 50px;
    position: relative;
    text-align: center;
    border: #dbe3ef 1px solid;
    /* border-radius: 20px; */
    background-color: #ffffff;
    padding: 80px var(--card-pad-x) var(--card-pad-bottom);
    margin-top: 40px;
    flex: 1;
    min-width: 400px;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    /* Important to clip the decoration */
}

/* Decorative background shapes from muestra.png */
body section .card-testimonio::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -110px;
    width: 250px;
    height: 250px;
    background: #e8eef8;
    /* Dark navy */
    transform: rotate(-35deg);
    z-index: 0;
    box-shadow: 25px 0 0 rgba(203, 213, 225, 0.65);
    /* Second layer/shadow effect */
    pointer-events: none;
}

.card-testimonio .testimonio img {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    /* Circular image */
    object-fit: cover;
    margin-bottom: 25px;
    border: 1px solid #fff;
    /* Optional: theme colored border */
    background-color: #fff;
}

/* Quotation Mark */
body section .card-testimonio::before {
    content: '\201C';
    /* Smart quote open */
    position: absolute;
    top: -33px;
    left: 40px;
    font-size: 80px;
    font-family: serif;
    color: #64748b;
    /* Using theme blue */
    background-color: transparent;
    /* Removed white background */
    padding: 0 10px;
    line-height: 1;
    z-index: 3;
    /* Keep quote above decoration */
}

/* Rating Stars */
.calificacion {
    color: #FFD700;
    /* Yellow */
    margin-top: 10px;
    font-size: 1.2rem;
}

body section .testimonio h3 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 300;
}

body section .testimonio .testimonio-subtitulo {
    color: #2563eb;
    top: 0;
}

@media (max-width: 768px) {
    body section .card-testimonio {
        --card-pad-x: 15px;
        --card-pad-bottom: 25px;
    }

    body section .testimonio .footer-testim {
        min-height: 104px;
        border-radius: 10px 10px 16px 16px;
    }
}

/* =========================================
   MODAL VISTA PREVIA CURSO
   ========================================= */
.curso-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.curso-modal-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.curso-modal {
    background: #fff;
    border-radius: 12px;
    width: 94%;
    max-width: 1060px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalEntrar 0.35s ease;
    padding: 0;
}

@keyframes modalEntrar {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.curso-modal-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.curso-modal-cerrar:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

/* Navegación superior del modal */
.curso-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.curso-modal-arrow,
.curso-modal-grid {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curso-modal-arrow:hover,
.curso-modal-grid:hover {
    color: #00588F;
    background: rgba(0, 88, 143, 0.08);
}

/* Cuerpo del modal: imagen + info */
.curso-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Imagen */
.curso-modal-imagen {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 420px;
}

.curso-modal-imagen img {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.curso-modal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ef4444;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Info del curso */
.curso-modal-info {
    padding: 36px 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.curso-modal-info h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px;
    line-height: 1.25;
}

.curso-modal-meta {
    margin-bottom: 20px;
}

.curso-modal-meta p {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #475569;
    margin: 4px 0;
    text-align: center;
}

.curso-modal-meta p strong {
    color: #0f172a;
}

/* Métodos de pago */
.curso-modal-metodos-pago {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.metodo-pago-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.metodo-pago-tag i {
    font-size: 16px;
    color: #00588F;
}

/* Precios */
.curso-modal-precios {
    display: flex;
    align-items: baseline;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-precio-anterior {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 500;
}

.modal-precio-actual {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    color: #ef4444;
    font-weight: 700;
}

/* Acciones: cantidad + botón */
.curso-modal-acciones {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.curso-modal-cantidad {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.cantidad-btn {
    background: #fff;
    border: none;
    width: 42px;
    height: 42px;
    font-size: 18px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cantidad-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.cantidad-valor {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    width: 42px;
    text-align: center;
    border-left: 1.5px solid #cbd5e1;
    border-right: 1.5px solid #cbd5e1;
    height: 42px;
    line-height: 42px;
}

.curso-modal-carrito-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #ef4444;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.curso-modal-carrito-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.curso-modal-carrito-btn i {
    font-size: 18px;
}

/* Detalles (etiqueta, categoría) */
.curso-modal-detalles {
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.curso-modal-detalles p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #64748b;
    margin: 6px 0;
    text-align: center;
}

.curso-modal-detalles a {
    color: #00588F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.curso-modal-detalles a:hover {
    color: #003a5c;
    text-decoration: underline;
}

/* Compartir */
.curso-modal-compartir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.curso-modal-compartir span {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.curso-modal-social {
    display: flex;
    gap: 10px;
}

.curso-modal-social a {
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
}

.curso-modal-social a:hover {
    color: #00588F;
    border-color: #00588F;
    background: rgba(0, 88, 143, 0.06);
}

/* Responsive modal */
@media (max-width: 768px) {
    .curso-modal {
        width: 96%;
        max-height: 92vh;
        border-radius: 10px;
    }

    .curso-modal-body {
        grid-template-columns: 1fr;
    }

    .curso-modal-imagen {
        min-height: 280px;
        padding: 20px;
    }

    .curso-modal-info {
        padding: 24px 20px;
    }

    .curso-modal-info h2 {
        font-size: 1.3rem;
    }

    .curso-modal-acciones {
        flex-direction: column;
    }

    .curso-modal-carrito-btn {
        width: 100%;
    }

    .curso-modal-precios {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

/* =========================================
   CARRITO (OVERLAY)
   ========================================= */
.carrito-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 40px 20px;
}

.carrito-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.carrito-page {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1080px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalEntrar 0.35s ease;
    padding: 50px 40px 40px;
}

.carrito-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.carrito-cerrar:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

.carrito-titulo {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: #0f172a;
    text-align: center;
    margin: 0 0 30px;
    letter-spacing: -0.5px;
}

/* Pasos */
.carrito-pasos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.carrito-paso {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paso-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carrito-paso.activo .paso-num {
    background: #ef4444;
    color: #fff;
}

.paso-texto {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.carrito-paso.activo .paso-texto {
    color: #0f172a;
}

.paso-separador {
    font-size: 22px;
    color: #cbd5e1;
    font-weight: 300;
}

/* Layout: productos + totales */
.carrito-contenido {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Tabla de productos */
.carrito-productos {
    min-width: 0;
}

.carrito-tabla-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Item del carrito */
.carrito-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.carrito-item-img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.carrito-item-info {
    flex: 1;
    min-width: 0;
}

.carrito-item-nombre {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #00588F;
    text-decoration: none;
    margin: 0 0 6px;
    display: block;
    transition: color 0.2s;
}

.carrito-item-nombre:hover {
    color: #003a5c;
    text-decoration: underline;
}

.carrito-item-precios {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.carrito-item-precio-old {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.carrito-item-precio-new {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.carrito-item-ahorro {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.carrito-item-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}

.carrito-item-pagos {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.carrito-item-pagos .metodo-pago-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 10px;
}

.carrito-item-cantidad button {
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carrito-item-cantidad button:hover {
    background: #f1f5f9;
}

.carrito-item-cantidad span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    width: 32px;
    text-align: center;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    height: 32px;
    line-height: 32px;
}

.carrito-item-eliminar {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #ef4444;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.carrito-item-eliminar:hover {
    color: #dc2626;
}

.carrito-item-total {
    position: absolute;
    top: 24px;
    right: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

/* Carrito vacío */
.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
}

.carrito-vacio i {
    font-size: 56px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.carrito-vacio p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 20px;
}

.carrito-vacio-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #00588F;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.carrito-vacio-btn:hover {
    background: #004a79;
}

/* Totales */
.carrito-totales {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 24px;
    position: sticky;
    top: 60px;
}

.carrito-totales h3 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
}

/* Cupón */
.cupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: color 0.2s;
}

.cupon-toggle:hover {
    color: #0f172a;
}

.cupon-toggle i {
    font-size: 14px;
    transition: transform 0.3s;
}

.cupon-toggle.abierto i {
    transform: rotate(180deg);
}

.cupon-form {
    display: none;
    gap: 8px;
    padding: 12px 0;
}

.cupon-form.activo {
    display: flex;
}

.cupon-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.cupon-form input:focus {
    border-color: #00588F;
}

.cupon-aplicar {
    padding: 8px 18px;
    background: #00588F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cupon-aplicar:hover {
    background: #004a79;
}

/* Líneas de totales */
.carrito-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #475569;
}

.carrito-linea-total {
    border-bottom: none;
    padding-top: 16px;
}

.carrito-linea-total span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.carrito-total-valor {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.carrito-finalizar-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #ef4444;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carrito-finalizar-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Responsive carrito */
@media (max-width: 768px) {
    .carrito-overlay {
        padding: 20px 12px;
    }

    .carrito-page {
        padding: 40px 20px 30px;
    }

    .carrito-titulo {
        font-size: 2rem;
    }

    .carrito-pasos {
        gap: 10px;
        flex-wrap: wrap;
    }

    .paso-texto {
        font-size: 12px;
    }

    .carrito-contenido {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .carrito-totales {
        position: static;
    }

    .carrito-item {
        flex-wrap: wrap;
    }

    .carrito-item-total {
        position: static;
        margin-top: 8px;
        display: block;
    }
}

    /* Override final móvil: carrito a la izquierda de la hamburguesa */
    @media (max-width: 768px) {
        body header .contenedor-principal .barra-navegacion .nav-carrito {
            position: fixed !important;
            right: 95px !important;
            left: auto !important;
            top: 5px !important;
            margin: 0 !important;
            z-index: 10020 !important;
            pointer-events: auto !important;
        }

        body header .contenedor-principal .barra-navegacion .menu-toggle {
            position: fixed !important;
            right: -2px !important;
            left: auto !important;
            top: 19px !important;
            width: 30px !important;
            height: 30px !important;
            padding: 3px !important;
            display: flex !important;
            z-index: 10000 !important;
            pointer-events: auto !important;
        }
    }

/* =========================================
   8. LAYOUT PROFESIONAL (ALINEACIÓN GLOBAL)
   ========================================= */
:root {
    --site-max-width: 1200px;
    --site-gutter: 24px;
    --section-space-y: 56px;
}

main .header-section h2 {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

main .header-section,
.featured-listado-wrap,
.catalogo-section,
.novedades-section,
.gallery-section,
body section .block-testimonios,
.contenedor-contacto,
.footer-top,
.nav-franja-inner {
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
}

main .header-section#nosotros {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.bloque-individual,
.featured-listado-section,
.seccion-contacto {
    padding-top: var(--section-space-y);
    padding-bottom: var(--section-space-y);
}

.catalogo-section,
.novedades-section,
.gallery-section,
body section .block-testimonios,
.contenedor-contacto {
    padding-left: 0;
    padding-right: 0;
}

main .header-section {
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    :root {
        --site-gutter: 18px;
        --section-space-y: 44px;
    }
}

@media (max-width: 768px) {
    :root {
        --site-gutter: 14px;
        --section-space-y: 36px;
    }
}