/* ==========================================================================
   1. VARIABLES Y ESTILOS GLOBALES
   ========================================================================== */
:root {
    --inces-blue: #0099dc;
    --inces-dark-grey: #31363b;
    --inces-cyan: #00e0ff;
    --inces-white: #ffffff;
    --inces-separator: rgba(255, 255, 255, 0.5);
    --inces-purple: #742991;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.home-page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Global button underline */
.btn,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: underline !important;
}

/* ==========================================================================
   NAVBAR (MENÚ AZUL)
   ========================================================================== */
.navbar-inces {
    background-color: var(--inces-blue) !important;
    min-height: 95px;
    /* More compact per Figma */
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-inces .nav-link {
    color: var(--inces-white) !important;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-inces .nav-link:hover {
    opacity: 0.8;
}

.navbar-inces .bi-house-door-fill {
    font-size: 1.2rem;
    margin-right: 6px;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 200;
    font-size: 1.2rem;
    user-select: none;
    margin: 0 4px;
}

/* NAVBAR DROPDOWN STYLES */
.navbar-inces .dropdown-menu {
    background-color: #1a1a1a;
    border: none;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-inces .dropdown-item {
    color: #ffffff;
    font-size: 0.95rem;
    padding: 8px 25px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.navbar-inces .dropdown-item:hover {
    background-color: #333333;
    color: var(--inces-cyan);
}

.navbar-inces .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

/* New Search Pill styles */
.search-container-pill {
    width: 280px;
    margin-left: 20px;
}

.nav-search-pill {
    border-radius: 50px !important;
    height: 38px;
    padding-left: 20px !important;
    padding-right: 45px !important;
    border: none !important;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.nav-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-search-btn:hover {
    color: var(--inces-blue);
}

.nav-catalog-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-catalog-link:hover {
    color: var(--inces-cyan);
    border-bottom-color: var(--inces-cyan);
}

/* ==========================================================================
   HERO MOSAIC GALLERY
   ========================================================================== */
/* ==========================================================================
   HERO MOSAIC GALLERY (ESTILO DUAL - IMAGEN 1 Y 2)
   ========================================================================== */
.hero-mosaic-section {
    width: 100%;
    overflow: hidden;
}

.hero-mosaic-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 524px;
    /* Increased 8.5% from 483px */
}

.hero-mosaic-item {
    flex: 1;
    min-width: 250px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-mosaic-img-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scaleX(1.04);
    /* Increased width by 4% */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

/* ESTADO 1: INICIAL (Imagen 1) */
.hero-mosaic-initial-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 12px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
    transition: all 0.4s ease;
    z-index: 15;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ESTADO 2: HOVER OVERLAY (Imagen 2) */
.hero-mosaic-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 10;
    padding: 40px;
}

.hero-mosaic-hover-content {
    text-align: center;
    color: #fff;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-mosaic-hover-title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-mosaic-hover-desc {
    font-size: 1.05rem;
    /* Reducido un 30% de 1.5rem */
    font-weight: 300;
    margin-bottom: 20px;
    /* Reducido el margen para mejor balance */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Whole card is now the link — show pointer and subtle zoom */
.hero-mosaic-img-wrapper {
    text-decoration: none !important;
    display: block;
}

/* VER MÁS button — blue gradient consistent with site */
.hero-mosaic-btn-cyan {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff !important;
    padding: 12px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    white-space: nowrap;
}

.hero-mosaic-btn-cyan:hover {
    background: linear-gradient(135deg, #0369a1, #0c4a6e);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    color: #fff !important;
}

/* DISPARADORES DE HOVER */
.hero-mosaic-item:hover .hero-mosaic-img-wrapper {
    transform: scale(1.06);
}

.hero-mosaic-item:hover .hero-mosaic-hover-overlay {
    opacity: 1;
}

.hero-mosaic-item:hover .hero-mosaic-hover-content {
    transform: translateY(0);
}

/* Title pill fades out on hover — replaced by VER MÁS */
.hero-mosaic-item:hover .hero-mosaic-initial-label {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

/* ==========================================================================
   NOVEDADES SECTION
   ========================================================================== */
.news-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.news-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    /* Ajuste para que las ondas no distraigan demasiado */
    z-index: 1;
    pointer-events: none;
}

.news-container {
    max-width: 1360px;
    /* Ancho ajustado según solicitud */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.news-title {
    font-size: 2.2rem;
    /* Reducido 27% (era 3rem) */
    font-weight: 700;
    color: #797979;
    letter-spacing: 1px;
    margin: 0;
    /* text-transform: uppercase; Removed as requested */
}

.btn-news-cyan {
    display: inline-block;
    background-color: #009DDF;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: underline !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 157, 223, 0.3);
}

.btn-news-cyan:hover {
    background-color: #0099d4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 172, 238, 0.4);
    color: #fff;
    text-decoration: underline !important;
}

.btn-news-cyan.btn-large {
    padding: 18px 60px;
    font-size: 1.3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columnas exactas */
    gap: 52px;
    /* Reducido un 23% (68px -> 52px) */
    margin-top: 50px;
}

.news-item-wrapper {
    width: 100%;
}

.news-img-box {
    width: 100%;
    aspect-ratio: 1.61;
    /* Ajustado para reducción de alto del 23% relativo al ancho */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.news-item-wrapper:hover .news-img-box {
    transform: scale(1.06);
    /* Escala suave */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-item-wrapper:hover .news-img {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .news-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .news-title {
        font-size: 2rem;
    }

    .news-container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */
.partner-logos-section {
    /* background-color: var(--inces-blue);*/
    /*FONDO LOGOS ESCUELAS DE FORMACION */
    background-image: url('/media/images/background_escuelas_home.original.png');
    /*background-position: center center;  /* Centra la imagen horizontal y verticalmente */
    background-repeat: no-repeat;
    /*   Evita que la imagen se duplique como mosaico */
    background-size: cover;
    /* El truco mágico: estira o recorta la imagen para llenar el contenedor */

    /* Matches navbar blue */
    padding: 20px 0;
    width: 100%;
    margin-bottom: 129px;
    /* Aumentado un 60.7% sobre los 80px previos */
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-item-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    /* Aumentado un 40% (de 10px a 14px) */
}

.logo-img {
    width: 100%;
    height: 100%;
    /* Maximized to fill the 6-column space completely */
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure logos are white */
    transition: transform 0.4s ease;
}

.logo-item-wrapper:hover .logo-img {
    transform: scale(1.1);
}


/* ==========================================================================
   BANNER SLIDER SECTION
   ========================================================================== */
.banner-slider-section {
    width: 100%;
    height: 100%;
    /* height: 240px !important;*/
    /* Compact height specified by user */
    padding: 0 100px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    /* Fully adapts to the container height */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* CAROUSEL CONTROLS */
.banner-slider-section .carousel-control-prev,
.banner-slider-section .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    /* Fixed height for the touch area */
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    /* Subtle background for visibility */
    border-radius: 50%;
    margin: 0 15px;
}

.banner-slider-section .carousel-control-prev-icon,
.banner-slider-section .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* ==========================================================================
   FORMATION SEARCH SECTION
   ========================================================================== */
.formation-search-section-v4 {
    width: 100% !important;
    margin: 0 !important;
    min-height: 642px !important;
    /* Mantenido 520px -> Aumentado 23.5% a 642px */
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.formation-search-overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100% !important;
    min-height: 100% !important;
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 0 !important;
    justify-content: center;
}

.formation-search-title {
    color: #fff;
    font-size: 2.0rem !important;
    /* Reducido 30% (era 2.0rem) */
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px !important;
    /* Reducido de 30px a 20px */
}

.formation-search-box-v4 {
    /* background: rgba(80, 80, 80, 0.95) !important;*/
    /* Gris más claro */
    background-image: url('/media/images/fondo_buscador_home.original.png');
    background-repeat: no-repeat;
    /*   Evita que la imagen se duplique como mosaico */
    background-size: cover;
    /* El truco mágico: estira o recorta la imagen para llenar el contenedor */

    padding: 17px 25px !important;
    /* Aumentado 33.33% más (era 13px) */
    border-radius: 30px !important;
    width: 100% !important;
    max-width: 850px !important;
    /* Reducido un 30% (850px -> 600px) */
    margin: 0 0 0 350px !important;
    /* Alineado a la izquierda con margen */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* LABELS */
.form-label {
    font-size: 0.85rem !important;
    /* Reducido 30% (era 1.2rem) */
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 2px !important;
    /* Reducido de 5px a 2px */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.search-pill-group {
    background: #fff !important;
    border-radius: 8px !important;
    /* Menos redondeado forzado */
    overflow: hidden;
    display: flex;
    height: 65px !important;
    /* Aumentado 33.33% más (era 49px) */
    width: 90% !important;
    margin-bottom: 5px !important;
    /* Reducido de 10px a 5px */
}

.custom-select-wrapper {
    background-color: #2F8AAB !important;
    /* Teal específico de la imagen */
    color: #fff !important;
    padding: 0 5px 0 15px !important;
    display: flex;
    align-items: center;
    font-weight: bold;
    width: 45%;
    max-width: 45%;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem !important;
}

.search-select-custom {
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-size: 16px 12px !important;
    padding-right: 25px !important;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.search-select-custom:focus {
    box-shadow: none !important;
    background-color: transparent !important;
    color: #fff !important;
}

.search-select-custom option {
    color: #333;
    background-color: #fff;
}

.search-input-custom {
    border: none !important;
    padding: 0 20px !important;
    flex-grow: 1;
    outline: none;
}

.search-input-full-pill {
    border: none !important;
    padding: 0 25px !important;
    height: 53px !important;
    /* Aumentado 33.33% más (era 40px) */
    border-radius: 8px !important;
    width: 90% !important;
    /* También reducido el ancho un 10% */
    /* También reducido el ancho un 10% */
    outline: none !important;
    margin-bottom: 5px !important;
    /* Reducido de 10px a 5px */
    font-size: 0.8rem !important;
    /* Reducido ~30% (era 1.1rem) */
}

/* RADIO BUTTONS */
.formation-radio-group {
    display: flex;
    flex-direction: column;
    /* Vertical */
    gap: 10px;
    margin-top: 5px;
}

.radio-option-custom {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    /* Reducido ~30% (era 1.1rem) */
    cursor: pointer;
    font-weight: 500;
}

.radio-option-custom input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-right: 15px;
    display: grid;
    place-content: center;
    background-color: #fff;
    /* Fondo blanco siempre */
    cursor: pointer;
}

.radio-option-custom input[type="radio"]::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.15s transform ease-in-out;
    background-color: #2F8AAB;
    /* Punto teal al seleccionar */
}

.radio-option-custom input[type="radio"]:checked::before {
    transform: scale(1);
}

/* ==========================================================================
   COUNTERS BANNER SECTION
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -120px;
    padding: 0;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.stats-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    padding: 0;
}

.stats-header-bar {
    width: 100% !important;
    max-width: none !important;
    height: 230px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -100px;
    position: relative;
    z-index: 10;
}

.stats-header-title {
    color: #2F8AAB;
    font-weight: 800;
    font-size: 2.2rem;
    text-align: center;
    margin: 0;
    text-transform: none;
    transform: translateY(-70%);
    /* Subido un 70% total (30% + 40%) */
}

.stats-content-area {
    width: 100%;
    min-height: 270px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
    /* Centrado real con flexbox */
    position: relative;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4.8rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

.stat-icon-img {
    width: 72px;
    height: auto;
    filter: grayscale(1) brightness(0.4) opacity(0.7);
}

.stat-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number-text {
    font-size: 2.65rem;
    font-weight: 800;
    color: #5d5d5d;
    line-height: 1;
}

.stat-dots-visual {
    display: block;
    font-size: 2.2rem;
    color: #5d5d5d;
    letter-spacing: 2px;
    font-weight: 900;
    line-height: 0.1;
    margin-top: 5px;
}

.stats-footer-bar {
    width: 100% !important;
    max-width: none !important;
    height: 132px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    position: relative;
    z-index: 12;
}

.stats-footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.95rem;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   FEATURED VIDEOS SECTION
   ========================================================================== */
.featured-videos-section {
    width: 100%;
    padding: 100px 0;
    background-color: #fdfdfd;
    position: relative;
    z-index: 5;
}

.videos-grid-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    /* Aumentado para acomodar diseño Figma */
    margin: 0 auto;
    padding: 0 40px;
}

.videos-grid {
    display: flex;
    justify-content: center;
    gap: 82px;
    /* Restaurado a valor previo */
    flex-wrap: nowrap;
    /* Forzar una sola fila */
}

.video-card-item {
    background: #ffffff;
    border-radius: 35px;
    width: 404px;
    /* Restaurado a valor previo */
    flex-shrink: 0;
    /* Evitar que se reduzcan */
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.video-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.video-thumbnail-box {
    position: relative;
    width: 100%;
    padding-top: 70%;
    /* Reducido 20% desde 87.6% */
    overflow: hidden;
    background-color: #eee;
}

.video-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333 !important;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    font-size: 0 !important;
    /* Hide icon text/size */
    text-decoration: none !important;
    text-decoration: none !important;
    /* Removed shadow for cleaner look matching ref */
    transition: all 0.3s ease;
    z-index: 10;
    clip-path: polygon(20% 0%, 20% 100%, 100% 50%);
    /* Triangle shape */
    background: #fff;
    border-radius: 0;
    /* Reset radius for triangle */
    width: 60px;
    height: 60px;
}

.video-play-hint:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    color: transparent !important;
    /* Hide icon color */
}

.video-no-thumb {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-thumb-placeholder {
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
}

.video-card-body {
    padding: 20px 25px;
    /* Reduced top/bottom padding */
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    gap: 10px;
    /* Space between buttons */
    align-items: flex-start;
    /* Left align */
}

.video-action-btn {
    background-color: #009DDF !important;
    /* Cyan matching ref */
    color: #ffffff !important;
    padding: 8px 25px;
    /* Smaller compact button */
    border-radius: 6px;
    /* Slightly rounded, not full pill */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: underline !important;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 157, 223, 0.25);
    display: inline-block;
}

.video-action-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

.video-registration-btn {
    background-color: #009DDF !important;
    /* Mismo cyan que Ver video */
    color: #ffffff !important;
    padding: 8px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    /* Reducido para coincidir con Ver video */
    text-decoration: underline !important;
    /* Subrayado */
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 157, 223, 0.25);
    display: inline-block;
}

.video-registration-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    /* Mismo efecto que Ver video */
    color: #ffffff !important;
    text-decoration: underline !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

/* ==========================================================================
   INTEREST LINKS SECTION
   ========================================================================== */
.interest-links-section {
    width: 100%;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    /*background-color: #f0f2f5;*/
    background-image: url('/media/images/fondo_enlacesdeinteres_G3lEK1L.original.png');
    background-repeat: no-repeat;
    /*   Evita que la imagen se duplique como mosaico */
    position: relative;
    z-index: 5;
}

.interest-links-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.interest-links-title {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px !important;
}

.interest-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
}

.interest-link-card {
    background-color: #0099dc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 153, 220, 0.3);

    min-height: 80px;
}

.interest-link-card:hover {
    transform: translateY(-5px);
    background-color: #008ad6;
}

.interest-link-icon-box {
    background: #ffffff;
    border-radius: 8px;
    width: 65px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interest-link-icon {
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
}

.interest-link-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

.interest-link-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    line-height: 1.2;
    flex-grow: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   SITE FOOTER (DIAGONAL SPLIT REFINED)
   ========================================================================== */
.site-footer {
    position: relative;
    width: 100%;
    min-height: 350px;
    padding: 40px 0 60px;
    /* Increased bottom padding by ~48% from 40px to 60px */
    overflow: hidden;
    color: #ffffff;
    /*background-color: var(--inces-purple);*/
    background-image: url('/media/images/footer1600.width-1400.png');
}

.footer-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center left;
    z-index: 1;
    background-repeat: no-repeat;
}

.footer-bg-purple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: var(--inces-purple);*/
    z-index: 2;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 15% 100%);
}

.footer-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.footer-main-row {
    padding-left: 30%;
    /* Effectively "moving everyone right" */
}

.footer-col-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-right: -40px;
    /* Bring it closer to middle */
    padding-top: 0;
}

.footer-logos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-label-text {
    font-size: 1.12rem;
    /* Increased 40% from 0.8rem */
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    color: #ffffff;
}

.footer-logo-main {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    /* Reduced from 120px to see them together more easily if requested */
}

.footer-logo-main img {
    height: 75px !important;
    /* Increased 25% from 60px for forced visibility */
    width: auto;
    display: block;
}

.footer-logo-secondary {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-logo-secondary img {
    height: 68.75px !important;
    /* Increased 25% from 55px for forced visibility */
    width: auto;
    display: block;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 0;
    /* Managed by me-4 in HTML */
    margin-left: 0;
}

.footer-column-title {
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0;
    /* Removed vertical space between links */
}

.footer-links-list a {
    color: #ffffff;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    font-size: 0.6rem;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.footer-dot {
    margin-right: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.footer-links-list a:hover {
    text-decoration: underline;
}

.footer-contact-info p,
.footer-contact-info li {
    margin-bottom: 0;
    /* Removed vertical space between links */
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #ffffff;
}

.footer-contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li::before {
    content: "•";
    margin-right: 6px;
    font-weight: 700;
}


.footer-bottom-part {
    margin-top: 20px;
    /* Reduced from 40px to move it up */
    width: 100%;
    padding: 0 15px;
}

.footer-cyan-divider {
    height: 1.2px;
    background-color: var(--inces-cyan);
    width: 100%;
    margin: 10px auto 10px;
    /* Reduced vertical margins to tighten/move up */
}

.footer-copyright-box {
    text-align: center;
}

.copyright-text,
.republic-text {
    font-size: 1.18rem;
    /* Increased 48% from 0.8rem */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.2;
}

.footer-col-social .footer-column-title {
    font-size: 0.91rem;
    /* Increased 40% from 0.65rem */
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link-circle {
    background-color: #7C7C7C;
    /* Changed to grey as requested */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-text-detail {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 0.6rem;
    word-break: break-all;
    font-weight: 400;
}

/* ==========================================================================
   RESPONSIVIDAD FINAL
   ========================================================================== */
@media (max-width: 991px) {
    .footer-bg-left {
        display: none;
    }

    .footer-bg-purple {
        clip-path: none;
    }

    .footer-content-wrapper {
        padding: 0 20px;
    }

    .footer-main-row {
        padding-left: 15px;
        text-align: center;
    }

    .footer-col-logos,
    .footer-col-center,
    .footer-col-social {
        text-align: center;
        margin: 30px 0;
        align-items: center !important;
        padding-left: 0 !important;
    }

    .footer-social-list {
        align-items: center;
        padding-left: 0;
    }

    .social-item {
        justify-content: center;
    }

    .hero-mosaic-grid {
        height: auto !important;
    }

    .hero-mosaic-item {
        height: 60vh;
        /* Altura decente para cada item en móvil */
    }
}

@media (max-width: 768px) {

    /* Responsive Search Box */
    .formation-search-box-v4 {
        max-width: 95% !important;
        margin: 0 auto !important;
        padding: 15px !important;
    }

    .search-pill-group {
        height: auto !important;
        flex-direction: column;
        padding: 5px;
    }

    .custom-select-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 5px;
        padding: 8px !important;
    }

    .search-input-custom {
        width: 100%;
        padding: 8px !important;
    }

    .search-input-full-pill {
        width: 100% !important;
    }

    /* Responsive Stats */
    .stats-header-bar {
        background-size: cover !important;
        margin-bottom: -20px !important;
        height: auto !important;
        padding: 20px 0 !important;
    }

    .stats-footer-bar {
        height: auto !important;
        padding: 20px 0 !important;
        background-size: cover !important;
        margin-top: -20px !important;
    }

    .stats-header-title,
    .stats-footer-title {
        font-size: 1.2rem !important;
        padding: 0 20px !important;
    }

    .stats-content-area {
        height: auto !important;
        padding: 40px 0 !important;
        background-size: cover !important;
        background-size: cover !important;
    }

    .stats-grid {
        gap: 2.5rem !important;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem !important;
    }

    .stat-icon-img {
        width: 50px !important;
    }

    .stat-number-text {
        font-size: 1.8rem !important;
    }

    /* Responsive Videos */
    .videos-grid {
        gap: 30px !important;
    }

    /* Responsive Navbar */
    .navbar-inces {
        padding: 10px 15px !important;
    }

    .search-container-pill {
        display: none;
        /* Hide search on mobile */
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 10px 0 !important;
    }

    /* Responsive Videos - Stack Vertically */
    .videos-grid {
        flex-direction: column !important;
        align-items: center;
    }

    .video-card-item {
        width: 100% !important;
        max-width: 400px;
    }

    /* Responsive Interest Links */
    .interest-links-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .interest-link-card {
        padding: 15px !important;
    }

    /* Responsive News Section */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .news-card {
        margin-bottom: 20px;
    }

    /* Responsive Footer Refinements */
    .footer-col-logos {
        margin-bottom: 40px;
    }

    .footer-main-row {
        text-align: center;
    }

    .footer-social-list {
        align-items: center;
        margin-top: 20px;
    }

    .social-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .social-link-circle {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }


    /* Responsive Partner Logos */
    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .partner-logo-item {
        max-width: 120px;
    }

    /* Corrected Responsive Slider Class */
    .carousel-item {
        height: 200px !important;
    }

    .carousel-caption h2 {
        font-size: 1.5rem !important;
    }

    .carousel-caption p {
        font-size: 0.9rem !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 991px) {

    /* Videos - 2 columns on tablet */
    .videos-grid {
        flex-wrap: wrap;
    }

    .video-card-item {
        width: calc(50% - 41px) !important;
    }

    /* Interest Links - 2 columns */
    .interest-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* News - 2 columns */
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Partner Logos - 3 columns */
    .partner-logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ==========================================================================
   NEWS LIST PAGE STYLES (DETAILED DESIGN)
   ========================================================================== */
.news-list-page {
    width: 100%;
}

.news-banner {
    width: 100%;
    height: 403px;
    /* Aumentado un 15% (de 350px a 403px) */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-banner-overlay {
    position: absolute;
    inset: 0;
    /* Fondo base de 40% y degradado más oscuro en el 20% inferior */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 80%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-banner h1 {
    color: #fff;
    font-size: 4.63rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.news-content-section {
    background: linear-gradient(135deg, #6c24b5 0%, #4a1a8c 100%);
    padding: 120px 0 40px;
    /* Reducido para acercar el footer */
    position: relative;
    min-height: 800px;
    overflow: hidden;
}



.dots-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

.news-grid-container {
    max-width: 1400px;
    position: relative;
    z-index: 5;
}

.news-grid-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.news-card-custom {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.news-card-custom:hover {
    transform: translateY(-10px);
}

.news-card-img-box {
    width: 100%;
    height: 344px;
    /* Aumentado un 23% (de 280px a 344px) */
}

.news-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-card-category {
    color: #f72c7b;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.news-card-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.news-card-btn {
    margin-top: 10px;
    background-color: #009DDF;
    color: #fff;
    padding: 9px 23px;
    /* Alto +13.33% (8px->9px), Ancho +16% (20px->23px) */
    border-radius: 6px;
    font-weight: 600;
    text-decoration: underline !important;
    font-size: 0.9rem;
    width: fit-content;
    display: inline-block;
}

.news-card-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

/* Side Logo positioned right below banner on the right */
.news-side-logo {
    position: absolute;
    top: -120px;
    /* Situado justo al inicio de la sección, pegado al banner */
    right: -10%;
    /* Desplazado un 10% adicional hacia la derecha (total -40%) */
    z-index: 20;
}

.news-side-logo img {
    width: 355px;
    /* Aumentado un 42% (de 250px a 355px) */
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}



@media (max-width: 1200px) {
    .news-grid-custom {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid-custom {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-banner h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .news-grid-custom {
        grid-template-columns: 1fr;
    }
}

/* Page: Qué es el Inces */

.about-inces-container {
    background-color: #00AEEF;
    /* Deep cyan background as fallback */
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.about-inces-banner .banner-img {
    height: 403px;
    object-fit: cover;
}

.about-inces-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 174, 239, 0.8) 0%, rgba(0, 174, 239, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   HOME RECENT NEWS BLOCK (AISLADO)
   ========================================================================== */
.hnrh-section {
    width: 100%;
    position: relative;
}

.hnrh-content {
    background: linear-gradient(135deg, #6c24b5 0%, #4a1a8c 100%);
    background-size: cover;
    background-position: center;
    padding: 80px 0 40px;
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hnrh-dots-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.hnrh-container {
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.hnrh-title {
    color: #ffffff;
    font-size: 3.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hnrh-side-logo {
    position: absolute;
    top: 15px;
    right: -8%;
    z-index: 3;
}

.hnrh-side-logo img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
}

.hnrh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-bottom: 46px;
}

.hnrh-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.hnrh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hnrh-card-img-box {
    width: 100%;
    height: 160px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.hnrh-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hnrh-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 3rem;
    background: linear-gradient(135deg, #374151, #111827);
}

.hnrh-card-overlay {
    position: relative;
    padding: 16px;
    background: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.hnrh-card-category {
    color: #009ddf;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hnrh-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hnrh-card-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.hnrh-card-btn {
    margin-top: auto;
    background-color: transparent;
    color: #009ddf !important;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.85rem;
    width: fit-content;
    display: inline-block;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.hnrh-card-btn:hover {
    background: transparent;
    color: #f72c7b !important;
}

.hnrh-card-btn-disabled,
.hnrh-card-btn-disabled:hover {
    background: #6b7280;
    color: #e5e7eb !important;
    cursor: not-allowed;
    text-decoration: none !important;
}

.hnrh-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hnrh-btn-regresar {
    background: #005a8d;
    color: #ffffff !important;
    padding: 12px 38px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.hnrh-btn-regresar:hover {
    background: #004a75;
    color: #ffffff !important;
}

@media (max-width: 1200px) {
    .hnrh-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hnrh-side-logo {
        right: -2%;
    }
}

@media (max-width: 992px) {
    .hnrh-title {
        font-size: 2.5rem;
    }

    .hnrh-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hnrh-side-logo {
        display: none;
    }
}

@media (max-width: 600px) {
    .hnrh-content {
        padding: 56px 0 30px;
    }

    .hnrh-title {
        font-size: 1.9rem;
        margin-bottom: 30px;
    }

    .hnrh-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hnrh-card-img-box {
        height: 260px;
    }
}

.banner-title {
    font-size: 4.63rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.content-card,
.side-image-wrapper,
.bottom-image-wrapper {
    border: 5px solid #00AEEF;
    border-radius: 53px !important;
    /* Increased thickness and rounding to match image */
}

.bullet-point {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
}

.btn-regresar {
    background-color: #0076a8;
    color: white;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s;
}

.btn-regresar:hover {
    background-color: #005b82;
    color: white;
}

.footer-slogan {
    font-size: 1.5rem;
    opacity: 0.8;
}

.image-placeholder {
    background-color: #eee;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
