/* =========================================================
   BANNER · Estilos para carrusel (Bootstrap 5)
   ========================================================= */

/* --- Sección base (cada slide) ----------------------------------- */
.banner-section {
    background: var(
        --banner-bg,
        linear-gradient(to right, var(--primario), var(--secundarioBis))
    );
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Eleva el contenido por encima de efectos/overlays */
.banner-section > .container {
    position: relative;
    z-index: 2;
}

/* Overlay suave para mejorar contraste del texto (opcional) */
.banner-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* --- Efectos de luz sintética ------------------------------------ */
.banner-section .luz-izquierda-sintetica,
.banner-section .luz-derecha-sintetica {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    pointer-events: none;
    z-index: 1;
    animation: luzDestello 6s ease-in-out infinite;
}
.banner-section .luz-izquierda-sintetica {
    left: -140px;
    top: -60px;
}
.banner-section .luz-derecha-sintetica {
    right: -140px;
    top: -80px;
}

/* --- Tipografías y apariciones (móvil primero) ------------------- */
.banner-badge {
    background: #fff;
    color: var(--secundario);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeUp 1s ease-out forwards 0s;
    opacity: 0;
}
.banner-title {
    font-family: "Tipografia1", cursive;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeUp 1s ease-out forwards 0.3s;
    opacity: 0;
}
.banner-subtitle {
    font-family: "Arial Black", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin: 0.4rem 0;
    animation: fadeUp 1s ease-out forwards 0.6s;
    opacity: 0;
}
.banner-button {
    background: var(--secundario);
    color: #fff;
    border: none;
    padding: 0.45rem 1.25rem;
    border-radius: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.3s;
    position: relative;
    z-index: 4;
    animation: bounceIn 1s ease-out forwards 0.9s;
    opacity: 0;
}
.banner-button:hover {
    background: var(--secundarioBis);
}

/* --- Imágenes ---------------------------------------------------- */
.banner-img-mentora,
.banner-img-sello {
    max-width: 160px;
    height: auto;
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
    transform: scale(0.95) translate(0, 0);
}

.banner-img-sello {
    margin-left: 1.8rem;
}

/* acercar/agrandar la imagen izquierda */
.banner-left-col {
    display: flex;
    justify-content: flex-end;
}
.banner-left-col .banner-img-mentora {
    transform: translate(2.9rem, 1rem) scale(1.04) !important;
}

/* =========================================================
   CARRUSEL (contenedor Bootstrap)
   ========================================================= */
.banner-carousel {
    position: relative;
}

/* Altura mínima del slide + respiro */
.banner-carousel .carousel-item {
    padding: 0.1rem 0;
    min-height: 210px !important;
}

/* Indicadores (siempre visibles) */
.banner-carousel .banner-indicators {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.8rem;
    margin: 0;
    gap: 0.5rem;
    z-index: 5;
}
.banner-carousel .banner-indicators [data-bs-target] {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    opacity: 0.6;
    border: 0;
}
.banner-carousel .banner-indicators .active {
    opacity: 1;
}

/* Flechas: ocultas en todos los tamaños */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    display: none !important;
}

/* =========================================================
   BREAKPOINTS
   ========================================================= */

/* ≥768px */
@media (min-width: 768px) {
    .banner-badge {
        font-size: 1.25rem;
    }
    .banner-title {
        font-size: 2.4rem;
    }
    .banner-subtitle {
        font-size: 1.5rem;
    }
    .banner-carousel .carousel-item {
        min-height: 320px;
    }

    .banner-left-col .banner-img-mentora {
        max-width: 280px;
        transform: translate(6rem, 1rem) scale(1.08);
    }
    .banner-img-sello {
        max-width: 180px;
        transform: scale(1.05) translate(-60px, -30px);
    }

    .banner-carousel .banner-indicators {
        bottom: 1rem;
    }
}

/* 992px–1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-badge {
        font-size: 1.35rem;
    }
    .banner-title {
        font-size: 2.6rem;
    }
    .banner-subtitle {
        font-size: 1.6rem;
    }

    .banner-left-col .banner-img-mentora {
        max-width: 320px;
        transform: translate(8rem, 1.4rem) scale(1.12);
    }
    .banner-img-sello {
        max-width: 190px;
        transform: scale(1.1) translate(-80px, -40px);
    }

    .banner-carousel .banner-indicators {
        bottom: 1.2rem;
    }
}

/* ≥1200px */
@media (min-width: 1200px) {
    .banner-badge {
        font-size: 1.4rem;
    }
    .banner-title {
        font-size: 3rem;
    }
    .banner-subtitle {
        font-size: 1.8rem;
    }
    .banner-carousel .carousel-item {
        min-height: 360px;
    }

    .banner-left-col .banner-img-mentora {
        max-width: 360px;
        transform: translate(10rem, 1.8rem) scale(1.16);
    }
    .banner-img-sello {
        max-width: 200px;
        transform: scale(1.2) translate(-130px, -60px);
    }

    .banner-carousel .banner-indicators {
        bottom: 1.4rem;
    }
}

/* Respeto por "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
    .banner-section * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes luzDestello {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}
/* =========================================================
   FIX notebook (1366×768): títulos largos + dots del carrusel
   ========================================================= */

/* 1) “Zona segura” sin cambiar altura del banner
   - Columna central en modo stack, con gap y padding-bottom
   - Evita que el CTA caiga sobre los indicadores */
.banner-section .row > .col-12.col-md-8.col-lg-6 {
    display: flex;
    flex-direction: column;
    align-items: center; /* usa flex-start si alineás a la izquierda */
    gap: 0.7rem; /* separa badge / título / subtítulo / CTA  */
    padding-bottom: 2rem; /* resguarda el área de los indicadores      */
}

/* 2) Título responsivo y con tope de 2 líneas en notebook */
@media (min-width: 992px) and (max-width: 1440px) {
    .banner-title {
        font-size: clamp(28px, 2.1vw + 10px, 42px);
        line-height: 1.15;
        max-width: 32ch; /* controla largo de línea */
        display: -webkit-box; /* — opcional: capado a 2 líneas — */
        -webkit-line-clamp: 2; /* si el texto es muy largo        */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .banner-subtitle {
        font-size: clamp(14px, 1.1vw + 8px, 22px);
        line-height: 1.2;
        max-width: 40ch;
    }
    .banner-button {
        padding: 0.55rem 1.05rem; /* CTA un poco más compacto */
        font-size: 0.95rem;
    }
}

/* tamaño general del sello (mentoría por defecto) */
.banner-img-sello {
    max-width: 150px; /* ajustá si querés */
    height: auto;
    margin-top: clamp(10px, 1.2vw, 55px) !important; /* ajustá a gusto */
}

/* achicar solo estos dos */
.banner-img-sello--curso,
.banner-img-sello--taller {
    max-width: 145px; /* ← probá 140–170px hasta que te guste */
}

/* ↓ solo curso y taller, bajarlos un poquito en desktop */
@media (min-width: 768px) {
    .banner-img-sello--curso,
    .banner-img-sello--taller {
        margin-top: clamp(8px, 1.2vw, 24px); /* ajustá a gusto */
    }
}

/* opcional: en móviles todavía un poco más chico */
@media (max-width: 576px) {
    .banner-img-sello {
        max-width: 180px;
    }
    .banner-img-sello--curso,
    .banner-img-sello--taller {
        max-width: 130px;
    }
}
