/* ==========================================================================
   CSS DEL SLIDER DE IDEAS (style_mosaico.css)
   (VERSIÓN 13: CORRECCIÓN LÓGICA DE FADE PARA DESKTOP)
   ========================================================================== */

:root {
    --idea-yellow: #ffd500;
    --idea-orange: #ff8c00;
    --idea-text-dark: #2d3033;
    --idea-text-light: #333;
}

/* --- REGLA PARA LA SECCIÓN COMPLETA (FONDO DE VALLA) --- */
#creative-ideas-slider {
    width: 100%;
    padding: 60px 0;
    box-sizing: border-box;
    overflow: hidden;
    
    background-image: url('../images/portfolio/Fondo_02.jpg');
    background-size: cover;
    background-position: center;
}

#creative-ideas-slider .section-header {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    color: var(--idea-text-dark); 
}
#creative-ideas-slider .section-header h2 {
    color: var(--idea-text-dark);
}


/* --- Contenedor Principal para centrar el visor --- */
.ideas-slider-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- VISOR DE CONTENIDO (MÓVIL-FIRST) --- */
#idea-viewer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Vertical en móvil */
    
    border: 1px solid #fff;
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    
    overflow: hidden;
    min-height: 60vh;
}

/* --- Columnas de Contenido (MÓVIL-FIRST) --- */
.idea-poster-column,
.idea-info-column {
    position: relative; 
    box-sizing: border-box;
    padding: 30px 20px;
}

.idea-poster-column {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 213, 0, 0.8) 50%, rgba(255, 213, 0, 0.9) 100%); 
    flex-basis: 40%;
    backdrop-filter: blur(5px);
    min-height: 250px;
}

.idea-info-column {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    flex-basis: 60%;
    min-height: 300px;
}

/* Contenido dentro de las columnas */
.idea-poster-content,
.idea-info-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.poster-header {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    color: var(--idea-text-dark);
}

.idea-poster-content .poster-main {
    font-family: 'Barlow Condensed', 'DIN Condensed', 'Impact', sans-serif;
    font-size: 2.8rem;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
    color: var(--idea-text-dark);
    margin: 20px 0;
    word-break: break-word;
}

.poster-footer {
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    color: var(--idea-text-dark);
}

.info-title {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--idea-text-dark);
    margin-top: 0;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.info-scroll-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    height: 120px;
}

.info-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--idea-text-light);
    margin: 0;
}

.info-scroll-content::-webkit-scrollbar { width: 6px; }
.info-scroll-content::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
.info-scroll-content::-webkit-scrollbar-thumb { background: var(--idea-yellow); border-radius: 10px; }
.info-scroll-content::-webkit-scrollbar-thumb:hover { background: var(--idea-orange); }

.info-button {
    flex-shrink: 0;
    display: block; 
    margin: 20px auto 0 auto; /* Centrado */
    padding: 12px 20px;
    background: var(--idea-yellow);
    color: #000;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    max-width: 200px;
}
.info-button:hover {
    background: #000;
    color: #fff;
}

/* --- Navegación (Flechas y Miniaturas) --- */
#idea-thumbnails-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px 20px 10px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.idea-nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}
.idea-nav-arrow img {
    width: 25px;
    height: auto;
    transition: transform 0.2s ease;
}
.idea-nav-arrow:hover img {
    transform: scale(1.1);
}

/* WRAPPER DE THUMBS (MODIFICADO PARA MÓVIL) */
.idea-thumbnails-wrapper {
    position: relative; /* CRÍTICO: para apilar los thumbs */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    
    /* Ancho y alto para contener 1 thumb + su glow */
    width: 180px; 
    height: 160px;
    margin: 0;
}

/* --- THUMBS GENERADOS POR CSS (CON FADE) --- */
#idea-thumbnails-nav .idea-thumb {
    /* --- ESTILOS MÓVIL --- */
    position: absolute; /* Apilados uno encima de otro */
    top: 20px;
    left: 20px;
    opacity: 0; /* Oculto por defecto */
    
    width: 140px; 
    min-height: 120px;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Barlow Condensed', 'DIN Condensed', 'Impact', sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--idea-text-dark);
    text-transform: uppercase;
    word-break: break-word;
    
    /* Transición para el fade */
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* El thumb activo es visible */
#idea-thumbnails-nav .idea-thumb.active {
    opacity: 1;
}

/* GLOW AMARILLO EN HOVER Y ACTIVE */
#idea-thumbnails-nav .idea-thumb:hover,
#idea-thumbnails-nav .idea-thumb.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--idea-yellow);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 
                0 0 15px 5px var(--idea-yellow); /* GLOW AMARILLO */
}


/* ==========================================================================
   MEDIA QUERY - VISTA ESCRITORIO
   ========================================================================== */
@media (min-width: 768px) {

    #creative-ideas-slider {
        background-image: url('../images/portfolio/Fondo_01.jpg');
    }

    #idea-viewer {
        flex-direction: row;
        min-height: 350px;
    }

    .idea-poster-column,
    .idea-info-column {
        min-height: 350px;
    }
    
    .idea-poster-content .poster-main {
        font-size: 3.5rem;
    }

    .info-title {
        font-size: 24px;
    }

    .info-scroll-content {
        height: auto;
        max-height: 180px;
    }
    
    /* --- NAVEGACIÓN EN ESCRITORIO --- */
    #idea-thumbnails-nav {
        max-width: 800px;
        padding: 40px 20px 20px 20px;
        justify-content: space-between;
    }

    /* DESACTIVAR SLICK EN ESCRITORIO (Ahora es No-Slick) */
    .idea-thumbnails-wrapper {
        position: relative; /* Mantiene la posición */
        display: flex; /* Vuelve a ser flex */
        flex-wrap: nowrap;
        width: auto;
        height: auto; /* Altura automática */
        margin: 0 10px;
        gap: 15px;
    }
    
    #idea-thumbnails-nav .idea-thumb {
        position: relative; /* <<< CAMBIO: Vuelve a ser relativo */
        top: auto;
        left: auto;
        opacity: 1; /* <<< CAMBIO: Todos visibles */
        margin: 0;
    }
}




/* ==========================================================================
   FIX: Aislar estilos de <strong> y <em> dentro del slider
   ========================================================================== */

/* * Estas reglas son súper específicas para "ganarle" a cualquier 
 * estilo global de style.css
*/

#creative-ideas-slider .info-text strong {
    font-family: inherit; /* Hereda 'Montserrat' del párrafo .info-text */
    font-weight: 700;     /* O 'bold'. Asegura que sea negrita */
    font-size: inherit;     /* Hereda los 15px del párrafo */
    color: inherit;         /* Hereda el color #333 del párrafo */
    display: inline;        /* MUY IMPORTANTE: Anula cualquier 'display: block' */
    font-style: normal;     /* Resetea por si el global le puso itálica */
    margin: 0;
    padding: 0;
}

#creative-ideas-slider .info-text em {
    font-family: inherit;
    font-weight: 400;     /* O 'normal'. Asegura que NO sea negrita */
    font-size: inherit;
    color: inherit;
    display: inline;
    font-style: italic;     /* Asegura que SÍ sea itálica */
    margin: 0;
    padding: 0;
}