:root {
    --color-base: #0A2647;
    --color-dark: #041C32;
    --color-medium: #144272;
    --color-light: #205295;
    --color-soft: #2C74B3;
    --color-text: #d9ecff;
}

/* ===== LAYOUT GENERAL ===== */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #789DD8; /* Fondo oscuro base para que contraste con el panel claro */
}

.main-serv-consultores {
    width: 100%;
    min-height: 100vh;
}

/* ===== CONTENEDOR HERO GENERAL ===== */
.consultores-hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--color-dark);
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content-grid {
    position: relative;
    display: grid;
    /* 62% Izquierda para videos, 38% Derecha para el panel de texto */
    grid-template-columns: 62% 38%; 
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* ===== LADO IZQUIERDO: CONTENIDO INTERACTIVO (VIDEOS) ===== */
.interactive-left-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.video-box-consultores {
    position: relative;
    width: 100%;
    max-width: 215px; /* Tamaño optimizado para que entren los 3 de forma fluida */
    height: 315px;    
    background-color: #000000;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-box-consultores:hover {
    transform: translateY(-5px);
}

.video-box-consultores video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto interno sobre el video con degradado negro */
.video-caption-consultores {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; 
    background: linear-gradient(to top, rgba(7, 0, 23, 0.95) 0%, rgba(3, 0, 27, 0.4) 65%, rgba(4, 1, 32, 0) 100%);
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding: 0 20px 35px; 
    z-index: 10;
    text-align: center;
}

.video-caption-consultores h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.rounded-circle-custom {
    border-radius: 10px;
    overflow: hidden;
}

/* ===== LADO DERECHO: RECTÁNGULO VERTICAL DIFUMINADO (#C1D1EC) ===== */
.skewed-consultores-panel {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px 0 12%; /* Margen izquierdo extra por la inclinación de la diagonal */
    /* Corte diagonal que invade sutilmente el lado izquierdo */
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%); 
    overflow: hidden;
}

/* Filtro y color del panel (#C1D1EC con transparencias) */
.panel-blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 108, 190, 1) 0%, rgba(16, 63, 146, 0.75) 100%);
    backdrop-filter: blur(5px); /* Efecto difuminado de fondo */
    z-index: 2;
}

/* Alineación interna (Título arriba, Texto abajo) */
.panel-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
}

.title-area {
    margin-bottom: 25px;
}

.title-area h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF !important; /* Texto oscuro para contraste perfecto sobre el azul claro */
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    margin: 0;
    text-align: right;
}

.title-underline {
    width: 200px;
    height: 5px;
    background-color: #C1D1EC;
    margin-top: 12px;
    border-radius: 2px;
    margin-left: auto;
}

.info-description-box {
    width: 100%;
    text-align: justify;
}

.info-description-box p {
    font-size: 0.7rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0;
    font-weight: 500;
}

/* ===== CAROUSEL ===== */
.carousel-item div{
    margin-top: 10px;
}

#consultoresCarousel {
    width: 100%;
}

#consultoresCarousel .carousel-indicators {
    margin-bottom: 0;
    gap: 12px;
}

#consultoresCarousel .carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,.4);
}

#consultoresCarousel .carousel-indicators .active {
    background-color: #ffffff;
}

/* Mobile */
@media (max-width: 991px) {

    .carousel-item .row {
        justify-content: center;
    }

    .carousel-item .col-md-4 {
        margin-bottom: 20px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Pantallas medianas / Laptops pequeñas (Menos de 1200px) */
@media (max-width: 1200px) {
    .hero-content-grid { 
        grid-template-columns: 55% 45%; 
    }
    .skewed-consultores-panel {
        padding: 0 25px 0 8%;
    }
    .video-box-consultores { 
        max-width: 190px; /* Escalado sutil para evitar desbordamiento lateral */
        height: 280px; 
    }
    .title-area h1 { 
        font-size: 2rem; /* Mantenemos el tamaño controlado */
    }
    .info-description-box p { 
        font-size: 0.75rem; 
    }
}

/* Tabletas y Celulares (Menos de 991px) */
@media (max-width: 991px) {
    /* Permitimos que el contenedor crezca verticalmente si se apilan los videos */
    .consultores-hero-container {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    /* Reajuste de la geometría del panel de texto para formato móvil */
    .skewed-consultores-panel {
        height: auto;
        width: 100%;
        padding: 80px 24px 100px 24px;
        /* Corrección de la diagonal superior para que fluya en horizontal */
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); 
        order: 1; /* El bloque de texto se presenta primero */
    }
    
    .panel-content-wrapper {
        max-width: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .title-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .title-area h1 {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .title-underline {
        margin: 12px auto 0 auto; /* Centrado de la línea */
        width: 150px;
    }
    
    .info-description-box p {
        text-align: center; /* Centrado para una lectura más cómoda en móviles */
        font-size: 0.95rem; /* Proporcional a pantallas táctiles */
    }

    /* Contenedor de Videos inferior */
    .interactive-left-panel {
        order: 2; 
        padding: 40px 20px 60px 20px;
    }
}

/* Celulares Pequeños (Menos de 480px) */
@media (max-width: 480px) {
    .skewed-consultores-panel {
        padding: 60px 20px 80px 20px;
    }

    .title-area h1 {
        font-size: 1.8rem;
    }

    .info-description-box p {
        font-size: 0.85rem;
    }

    .video-box-consultores {
        max-width: 160px;
        height: 240px;
    }

    .video-caption-consultores h3 {
        font-size: 0.9rem;
    }
}