﻿
/* --- 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
 * ===================================================================
 */

.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;
    border-radius: 12px;
    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;
}