﻿
/* --- 1. Estilo base: Define el TAMAÑO y la ANIMACIÓN --- */
.app .menu a.btn-inspiration {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px; /* margen lateral*/
    padding: 15px; /* grosor*/
    z-index: 1;
    /* Propiedades clave que deben persistir */
    background-size: 200% auto !important;
    animation: gradient-flow 3s ease infinite, pulse-glow 1.5s ease-out infinite !important;

    will-change: filter, transform;
}

    .app .menu a.btn-inspiration:hover {
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        animation-play-state: paused, running;
    }

    .app .menu a.btn-inspiration > * {
        position: relative;
        z-index: 2;
    }


/* --- 2. Gradientes para cada tema: Define SÓLO la IMAGEN --- */

/* Default y Tema Teal */
.app .menu a.btn-inspiration {
    /* Usamos background-image para no resetear el size */
    background-image: linear-gradient(45deg, #00acac, #008a8a, #00acac);
}

body.theme-red .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #ff5b57, #d92521, #ff5b57);
}

body.theme-pink .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #ff89b5, #f53c86, #ff89b5);
}

body.theme-orange .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #f59c1a, #c47605, #f59c1a);
}

body.theme-yellow .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #fcc419, #d9a400, #fcc419);
}

body.theme-lime .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #a0d521, #7baf01, #a0d521);
}

body.theme-green .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #00b65a, #008c45, #00b65a);
}

body.theme-cyan .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #348fe2, #1a71c2, #348fe2);
}

body.theme-blue .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #49b6d6, #1399bd, #49b6d6);
}

body.theme-purple .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #727cb6, #4b5490, #727cb6);
}

body.theme-indigo .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #6b56c4, #44329a, #6b56c4);
}

body.theme-gray-600 .app .menu a.btn-inspiration {
    background-image: linear-gradient(45deg, #585f65, #363b3f, #585f65);
}


/* --- 3. NUEVO Ajuste para el modo oscuro --- */
[data-bs-theme="dark"] .app .menu a.btn-inspiration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15); /* Capa de brillo blanco semitransparente */
    border-radius: 6px;
    z-index: 1;
}


/* --- 4. Estilos para el modo minimizado (sin cambios) --- */
.app-sidebar-minified .btn-inspiration .btn-inspiration-text {
    display: none;
}

.app-sidebar-minified .btn-inspiration .fa-lightbulb {
    margin-right: 0 !important;
}


/* --- 5. Keyframes para la animación (sin cambios) --- */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Keyframes para la animación del pulso de resplandor */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    70% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- ESTILOS MEJORADOS (VERSIÓN 2 - MÁS ESPECÍFICA) --- */

/* 1. Reglas base del popover. Usamos .popover.popover-tour-kober para aumentar especificidad */
.popover.popover-tour-kober {
    --bs-popover-max-width: 450px;
    --bs-popover-border-radius: 0.75rem;
    --bs-popover-body-padding-x: 1.5rem;
    --bs-popover-body-padding-y: 1rem;
    --bs-popover-header-padding-x: 1.5rem;
    --bs-popover-header-padding-y: 0.75rem;
    background-color: rgba(30, 45, 60, 0.95); /* Fondo oscuro */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    border: none;
    z-index: 1080;
    /* Forzamos el color de texto base aquí (será heredado) */
    color: #f8f9fa;
}

    /* 2. Cabecera (título) */
    .popover.popover-tour-kober .popover-header {
        background-color: #0d6efd; /* Azul primario */
        color: #ffffff; /* Texto blanco */
        font-weight: 700;
        border-bottom: none;
        border-top-left-radius: calc(var(--bs-popover-border-radius) - 1px);
        border-top-right-radius: calc(var(--bs-popover-border-radius) - 1px);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

        /* Icono en el título */
        .popover.popover-tour-kober .popover-header::before {
            content: '✨';
            font-size: 1.2rem;
            line-height: 1;
        }

    /* 3. Cuerpo del popover - ¡REGLA CLAVE! */
    /* Aquí anulamos explícitamente el color de la plantilla */
    .popover.popover-tour-kober .popover-body {
        color: #f8f9fa; /* Texto blanco suave */
        font-size: 0.95rem;
        line-height: 1.6;
    }

        /* 4. Estilos para los párrafos dentro del cuerpo */
        .popover.popover-tour-kober .popover-body p {
            color: inherit; /* Hereda el color de .popover-body (#f8f9fa) */
            margin-bottom: 0.8rem;
        }

            .popover.popover-tour-kober .popover-body p:last-of-type {
                margin-bottom: 0;
            }

        /* 5. Resaltar las negritas (strong) */
        .popover.popover-tour-kober .popover-body strong {
            color: #4dc4d2; /* Color de acento cian */
            font-weight: 700;
        }

        /* 6. Estilo para el separador (línea horizontal) */
        .popover.popover-tour-kober .popover-body hr {
            border: 0; /* Resetea borde anterior */
            border-top: 1px solid rgba(255, 255, 255, 0.2); /* Línea clara */
            height: 1px; /* Asegura altura */
            background-color: transparent; /* Anula posible background-color */
            margin-top: 1rem;
            margin-bottom: 1rem;
        }

    /* 7. Flecha del popover para que combine con el fondo oscuro */
    .popover.popover-tour-kober.bs-popover-end > .popover-arrow::before {
        border-right-color: rgba(30, 45, 60, 0.95); /* El mismo fondo del popover */
    }

/* --- Animación de "pulso" para el badge "NUEVO" --- */
/* (Esta parte sigue igual) */
.pulse-animation {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/*
 * ===================================================================
 * Estilos Para tarjetas de selección de lineas y perfiles
 * ===================================================================
 */

:root {
    --kober-blue: #003A70;
    --card-radius: 16px;
    --transition-speed: 0.3s;
}

.card-img-top {
    object-fit: cover;
    width: 100%;
    height: 280px; /* ajusta según lo que prefieras */
    transition: transform 0.3s ease;
    border-radius: 0.35rem;
}

.hover-opacity {
    transition: opacity 0.3s ease;
}

    .hover-opacity:hover,
    .selected {
        opacity: 0.9;
        transform: scale(1.02);
    }

.card-img-overlay {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    transition: background-color 0.3s ease;
}

.card:hover .card-img-overlay,
.selected .card-img-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.card-img-overlay h4 {
    font-weight: bold;
    font-size: 24px;
    color: whitesmoke;
}

.card-img-overlay p {
    font-size: 16px;
    color: floralwhite;
}

.tooltip-card {
    position: absolute;
    z-index: 1000;
    max-width: 300px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    /* Mantenemos el radio del borde */
    border-radius: 12px;
    /* Agregamos la línea azul Kober a la izquierda */
    border-left: 5px solid #003A70;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .tooltip-card h5 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        font-weight: bold;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    .tooltip-card p {
        margin: 0;
        color: #dddddd;
        font-size: 0.95rem;
    }
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.fade-in-button {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.tooltip-card.show-tooltip {
    animation: fadeSlideUp 0.25s ease-out forwards;
}

/* --- ESTILOS PARA EL TÍTULO DE LA LÍNEA --- */

/* Importamos una fuente de Google Fonts con aire vintage/elegante */
/* --- ESTILOS PARA EL TÍTULO DE LA LÍNEA (OPCIÓN 2: BANNER) --- */

.linea-title {
    position: absolute;
    top: 20px;
    left: -5px; /* Lo sacamos un poco para el efecto del borde */
    z-index: 10;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #f5f5f5; /* Blanco humo */
    text-transform: uppercase; /* Mayúsculas para un look más fuerte */
    letter-spacing: 1.5px; /* Espaciado entre letras */

    background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    padding: 8px 18px 8px 25px; /* Espaciado interno */
    /* El borde izquierdo le da el toque de 'etiqueta' o 'placa' */
    border-left: 5px solid #c5a47e; /* Un color oro viejo/bronce */

    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    transition: all 0.3s ease-out;
}

.card:hover .linea-title {
    background-color: rgba(0, 0, 0, 0.75);
    border-left-color: #e0bb95; /* El borde se ilumina un poco */
    transform: translateX(5px);
}


.imagen-titulo {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    height: 150px; /* Define una altura fija para todas las imágenes */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .imagen-titulo img {
        max-height: 100%; /* Ajusta la imagen para que no sobrepase la altura del contenedor */
        max-width: 100%; /* Asegura que la imagen se mantenga dentro del ancho */
        object-fit: contain; /* Mantiene la proporción de la imagen */
    }

/*.modal-content {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.85);
}
*/

.zoom-container {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.zoom-wrapper {
    max-height: 500px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.zoom-image {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

    .zoom-image img {
        width: 100%;
        transition: transform 0.1s ease;
        will-change: transform;
        pointer-events: none;
        display: block;
    }

.zoom-wrapper button {
    z-index: 10;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.seleccionar-acabado {
    cursor: pointer;
}



/* =========================================
           GLOBAL: TARJETAS DE SELECCIÓN DE LÍNEA
           ========================================= */

/* --- Tarjeta Principal --- */
.kb-line-card {
    position: relative;
    background: transparent;
    overflow: visible; /* CRUCIAL: Para que la etiqueta salga */
    transition: all var(--transition-speed, 0.3s) cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
}

/* --- Contenedor de la Imagen (Wrapper) --- */
/* Renombrado de .img-wrapper a .kb-line-wrapper para evitar conflictos */
.kb-line-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius, 12px); /* Fallback a 12px si no existe la variable */
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.kb-line-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* --- Overlay Oscuro --- */
.kb-line-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    pointer-events: none;
}

.kb-line-card:hover .kb-line-overlay {
    background: rgba(0,0,0,0.3);
}

/* --- Etiqueta Flotante (Title) --- */
.kb-line-label {
    position: absolute;
    top: 20px;
    left: -10px; /* Efecto 3D salido a la izquierda */
    z-index: 20;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #f5f5f5; /* Blanco humo */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    padding: 8px 18px 8px 25px; /* Espaciado interno */
    border-left: 5px solid #c5a47e; /* Un color oro viejo/bronce */

    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    transition: all 0.3s ease-out;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

    /* Triangulito de sombra (Doble 3D) */
    .kb-line-label::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 10px;
        height: 10px;
        background-color: #000;
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        z-index: -1;
    }

/* --- Animaciones Hover --- */
.kb-line-card:hover .kb-line-label {
    transform: translateX(5px);
}

.kb-line-card:hover {
    transform: translateY(-8px);
}

    .kb-line-card:hover .kb-line-wrapper {
        box-shadow: 0 25px 50px rgba(0, 58, 112, 0.2);
    }

    .kb-line-card:hover img {
        transform: scale(1.08);
    }

/* --- Botón de Regresar (Back Button) --- */
.kb-nav-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--kober-blue, #003a70); /* Fallback de color */
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

    .kb-nav-back-btn:hover {
        background: var(--kober-blue, #003a70);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 58, 112, 0.25);
    }

/* --- Banner Promocional --- */
.kb-promo-banner {
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #fff;
}

    .kb-promo-banner:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 58, 112, 0.15);
    }

/* --- Header de Vista --- */
.kb-view-header {
    background-color: #fff;
    /* Los bordes y padding los manejas con bootstrap en el HTML,
               pero si quieres forzar algo global, ponlo aquí */
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .kb-line-card {
        height: 350px;
        aspect-ratio: unset;
        margin-bottom: 20px;
    }
}


/* --- Badges/Etiquetas dentro de la tarjeta --- */
.kb-badge-thickness {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75); /* Fondo oscuro semitransparente */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* =========================================
   MODIFICADORES PARA VISTA DE PERFILES
   ========================================= */

/* --- Tarjeta de Perfil (para no cortar el texto) --- */
/* Se aplica junto con .kb-line-card */
.kb-line-card.kb-profile-card {
    aspect-ratio: auto !important; /* Elimina la proporción 1/1.1 */
    height: auto !important; /* Deja que la altura la defina la imagen */
}

/* --- Estado SELECCIONADO --- */
/* La clase .selected la agrega tu JS al hacer click */
.kb-line-card.selected .kb-line-wrapper {
    /* Borde prominente del color institucional */
    border: 3px solid var(--kober-blue, #003a70) !important;
    /* Sombra más fuerte para resaltar */
    box-shadow: 0 12px 35px rgba(0, 58, 112, 0.5) !important;
    /* Pequeño levantamiento */
    transform: translateY(-5px);
}

/* Mantiene el overlay oscuro visible permanentemente en la selección */
.kb-line-card.selected .kb-line-overlay {
    background: rgba(0, 0, 0, 0.5) !important; /* Un poco más oscuro */
    opacity: 1;
}

/* (Opcional) Cambia el color de la etiqueta flotante al seleccionar */
.kb-line-card.selected .kb-line-label {
    background-color: var(--kober-blue, #003a70);
    border-left-color: #fff; /* Cambia la línea dorada a blanca para contraste */
}


/* Título de sección limpio */
.kb-section-title-sm {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

    .kb-section-title-sm::after {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background-color: var(--kober-gold, #c5a47e);
        margin: 5px auto 0;
    }