/* =====================================================
   CUSTOM PROPERTIES - PALETA FUTURISTA
   ===================================================== */
:root {
    /* Colores oscuros base */
    --bg-dark: #0a0a0f;
    --bg-darker: #05050a;
    --bg-medium: #1a1a2e;

    /* Keller brand */
    --keller-blue: #003e7e;
    --keller-blue-dark: #002a54;
    --keller-orange: #e94e1b;
    /* Acentos técnicos suaves */
    --accent-soft: rgba(0, 255, 245, 0.3);
    --accent-blue: #00d9ff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Tipografía - Ajuste de legibilidad a petición del usuario */
    --font-title: 'Rajdhani', sans-serif;
    /* Antes Orbitron */
    --font-body: 'Rajdhani', sans-serif;
    --font-alt: 'Space Grotesk', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Bordes */
    --radius: 12px;
    --radius-lg: 20px;
    /* Neon Accents */
    --neon-cyan: #00fff5;
    --neon-magenta: #ff00ff;
    --neon-lime: #39ff14;
}

/* =====================================================
   RESET Y BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =====================================================
   GRADIENTE MESH ANIMADO
   ===================================================== */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        linear-gradient(rgba(10, 10, 15, 0.7), rgba(5, 5, 10, 0.9)),
        url('assets/IMG_1338.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(0.8) contrast(1.1);
}

@keyframes mesh {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* =====================================================
   CANVAS DE PARTÍCULAS
   ===================================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* =====================================================
   HEADER FUTURISTA
   ===================================================== */
.header {
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.2s forwards;
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.logo {
    height: 160px;
    /* Aumentado de 60px a 160px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 62, 126, 0.5)) brightness(0) invert(1);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.header-text {
    flex: 1;
}

.header-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.glow-text {
    display: block;
    background: linear-gradient(90deg, #ffffff, var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.glow-text.accent {
    background: linear-gradient(90deg, var(--keller-orange), #ffcc33);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 20px rgba(233, 78, 27, 0.3);
}

.header-subtitle {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    font-family: var(--font-alt);
    font-size: 1rem;
    letter-spacing: 1px;
}

.user-name {
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.4);
}

.user-divider {
    color: rgba(255, 255, 255, 0.3);
}

.user-role {
    color: rgba(255, 255, 255, 0.6);
}

.header-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--keller-blue) 20%, var(--keller-orange) 50%, var(--keller-blue) 80%, transparent);
    opacity: 0.6;
}

/* =====================================================
   HERO SECTION CON MODELO 3D
   ===================================================== */
.hero {
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 20px rgba(0, 255, 245, 0.6);
    letter-spacing: 4px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: rgba(0, 255, 245, 0.05);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 245, 0.1);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.3);
}

.stat-value {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-lime);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
}

.hero-model {
    position: relative;
}

.model-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.model-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-lime));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect removed by user request (Maintained) */
.model-container:hover::before {
    opacity: 0;
    animation: none;
}

#model-canvas {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    display: block;
}

.model-controls-hint {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-alt);
}

.control-panel-section {
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.section-title-small {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
    border-left: 4px solid var(--keller-orange);
    padding-left: var(--spacing-sm);
}

.control-grid {
    display: grid;
    /* Grid sin Terminal: Solo Gráficos + Botón */
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.control-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.control-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-xs);
    flex-shrink: 0;
}

.control-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.live-indicator {
    font-size: 0.8rem;
    color: var(--neon-lime);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-lime);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 5px var(--neon-lime);
    }

    50% {
        opacity: 0.3;
        box-shadow: none;
    }
}

/* Terminal Styles */
.terminal-window {
    background: #050505;
    border-radius: var(--radius);
    padding: var(--spacing-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #0f0;
    flex: 1;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.terminal-content {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.terminal-line {
    margin-bottom: 4px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd {
    color: #fff;
    margin-right: 8px;
    font-weight: bold;
}

/* Chart Styles */
.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
    border: 1px solid rgba(0, 255, 245, 0.1);
    background: rgba(0, 20, 40, 0.3);
    border-radius: var(--radius);
}

#sensor-chart {
    width: 100%;
    height: 100%;
}

.sensor-val {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    font-weight: 700;
}

@media (max-width: 768px) {
    .control-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SECCIÓN DE NOTEBOOKS
   ===================================================== */
.notebooks-section {
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

/* Weather Widget Styles - Repositioned */
.wisen-row {
    display: grid;
    grid-template-columns: 4fr 1.2fr;
    gap: var(--spacing-md);
    align-items: stretch;
}

@media (max-width: 1200px) {
    .wisen-row {
        grid-template-columns: 1fr;
    }
}

.weather-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    /* Match large-chart height */
}

.weather-city {
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--keller-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.weather-icon {
    font-size: 3.5rem;
    margin: var(--spacing-sm) 0;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.4));
}

.weather-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: var(--spacing-lg);
}

.weather-temp {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-tech);
}

.weather-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
}

.weather-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.w-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.w-label {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-size: 0.7rem;
}

.w-value {
    color: var(--neon-cyan);
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    z-index: 5;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent);
}

.title-text {
    color: var(--neon-magenta);
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.notebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 5;
}

.notebook-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    /* Necesario para z-index */
    z-index: 10;
    /* Asegurar que esté por encima de fondos/partículas */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    /* Fix para enlaces */
    text-decoration: none !important;
    color: white !important;
    display: block;
    /* Asegura área de clic completa */
    cursor: pointer;
    /* Feedback visual */
    pointer-events: auto !important;
    /* Forzar interactividad */
}

.notebook-card:visited,
.notebook-card:active,
.notebook-card:focus {
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.notebook-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notebook-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--card-glow);
    border-color: var(--card-color);
}

.notebook-card:hover::before {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Colores específicos por tarjeta (Ajustados a Keller y técnica) */
.notebook-card.cyan {
    --card-color: var(--keller-blue);
    --card-glow: rgba(0, 62, 126, 0.2);
}

.notebook-card.magenta {
    --card-color: var(--keller-orange);
    --card-glow: rgba(233, 78, 27, 0.2);
}

.notebook-card.lime {
    --card-color: #2ecc71;
    --card-glow: rgba(46, 204, 113, 0.2);
}

.notebook-card.blue {
    --card-color: #3498db;
    --card-glow: rgba(52, 152, 219, 0.2);
}

.notebook-card.pink {
    --card-color: #95a5a6;
    --card-glow: rgba(149, 165, 166, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px var(--card-glow));
}

.card-sources {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--card-color);
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--card-color);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 15px var(--card-glow);
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--card-color), transparent);
    border: 1px solid var(--card-color);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--card-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.card-link:hover::before {
    width: 300px;
    height: 300px;
}

.card-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--card-glow);
}

/* =====================================================
   ESPECIALIDADES TÉCNICAS
   ===================================================== */
.specialties-section {
    margin-bottom: var(--spacing-md);
    padding: 0;
    /* Eliminado padding superior para cerrar hueco */
}

.specialties-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.specialty-item {
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(0, 255, 245, 0.05);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 30px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: default;
}

.specialty-item:hover {
    background: rgba(0, 255, 245, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.4);
    transform: scale(1.05);
}

/* =====================================================
   GALERÍA
   ===================================================== */
.gallery-section {
    margin-bottom: var(--spacing-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: var(--spacing-xs);
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-lime), transparent);
    margin-bottom: var(--spacing-md);
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-tech {
    margin-top: var(--spacing-xs);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   ANIMACIONES
   ===================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.7;
        filter: brightness(1.3);
    }
}

/* =====================================================
   SECCIÓN TÉCNICA (INSTRUMENTACIÓN Y SOFTWARE)
   ===================================================== */
.technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tech-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-title {
    font-family: var(--font-tech);
    color: var(--keller-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--keller-orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Lista de Instrumentación */
/* =====================================================
   RESUMEN WISEN (TABLA)
   ===================================================== */
.wisen-summary-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wisen-summary-content {
    flex: 1;
    overflow-y: auto;
    font-size: 0.85rem;
}

.wisen-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.8);
}

.wisen-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--keller-orange);
    font-family: var(--font-tech);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.wisen-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wisen-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wisen-val {
    font-family: var(--font-title);
    font-weight: bold;
    color: var(--neon-cyan);
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.ok {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-lime);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.status-badge.warning {
    background: rgba(255, 204, 51, 0.2);
    color: #ffcc33;
    border: 1px solid rgba(255, 204, 51, 0.3);
    animation: pulse-warning 2s infinite;
}

.status-badge.danger {
    background: rgba(255, 0, 0, 0.2);
    color: #ff3333;
    border: 1px solid rgba(255, 0, 0, 0.3);
    animation: pulse-danger 1s infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes pulse-danger {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
}

/* Ajuste específico para el contenedor botón */
.wisen-button-container {
    /* Mantenemos estilos previos pero aseguramos ajuste en grid */
}

/* Gráfica Wisen Pernet */
/* --- SECCIÓN WISEN MULTI-PROYECTO --- */
.wisen-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.wisen-chart-card.large-chart {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.wisen-chart-card.large-chart .chart-container {
    flex-grow: 1;
    height: 420px !important;
    position: relative;
}

.wisen-legend {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    justify-content: center;
}

@media (max-width: 768px) {
    .wisen-section {
        grid-template-columns: 1fr;
    }
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-list li:hover {
    background: rgba(0, 62, 126, 0.2);
    border-color: var(--keller-blue);
    transform: translateX(10px);
}

.tech-icon {
    font-size: 1.5rem;
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-info strong {
    color: #fff;
    font-family: var(--font-tech);
    font-size: 1.1rem;
}

.tech-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Tarjeta DTL Destacada */
.highlight-card {
    background: linear-gradient(145deg, rgba(0, 62, 126, 0.2), rgba(0, 0, 0, 0.8));
    border: 1px solid var(--keller-orange);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(233, 78, 27, 0.1);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--keller-orange);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-title {
    color: #fff;
    font-family: var(--font-tech);
    font-size: 1.8rem;
    margin: 0;
}

.card-badge {
    background: var(--keller-orange);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.software-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--keller-blue);
}

.software-item h4 {
    color: var(--keller-orange);
    font-family: var(--font-tech);
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.software-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.card-footer {
    margin-top: auto;
    text-align: right;
    font-family: var(--font-tech);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =====================================================
   SIMULADOR GEOTÉCNICO
   ===================================================== */
.geo-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Estilos específicos para inputs geométricos */
.geo-controls .param-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Forzar 2 columnas siempre */
    gap: 15px;
    margin-bottom: 15px;
}

.geo-controls .param-group {
    display: flex;
    flex-direction: column;
}

.geo-controls label {
    font-size: 0.9em;
    margin-bottom: 6px;
    color: #bbb;
    white-space: nowrap;
}

/* Ocultar flechas/spinners en inputs numéricos para ver bien los números */
.geo-controls input[type="number"]::-webkit-inner-spin-button,
.geo-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.geo-controls input[type="number"] {
    -moz-appearance: textfield;
    /* Firefox */
}

/* Estilos base para inputs (incluyendo capas) */
.geo-controls input[type="number"],
.geo-controls input[type="range"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 6px 8px;
    /* Tamaño estándar para capas */
    font-size: 1rem;
    font-family: var(--font-tech);
    width: 100%;
    min-width: 0;
    transition: border-color 0.3s, background 0.3s;
}

/* Estilos DESTACADOS para los 4 parámetros principales (Cabecera) */
.control-header input[type="number"] {
    padding: 10px 12px;
    /* Más grande, pero no excesivo */
    font-size: 1.2rem;
    /* Legible y destacado sin ser gigante */
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.geo-controls input[type="number"]:focus {
    border-color: var(--keller-orange);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

.geo-controls,
.geo-results {
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.geo-controls h3,
.geo-results h3 {
    color: var(--keller-orange);
    font-family: var(--font-tech);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Parametros */
.param-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.param-group {
    flex: 1;
}

.param-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--keller-blue);
}

input[type="number"],
select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
}

/* Capas */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.layer-row {
    display: grid;
    grid-template-columns: 30px 1fr 1fr 1fr 30px;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--keller-blue);
}

.layer-index {
    color: var(--keller-orange);
    font-weight: bold;
    font-family: var(--font-tech);
}

.layer-input-group label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.remove-layer-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.remove-layer-btn:hover {
    transform: scale(1.2);
}

.geo-btn {
    background: var(--keller-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.geo-btn:hover {
    background: #00509e;
}

/* Resultados */
.result-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.result-row strong {
    font-family: var(--font-tech);
    color: #fff;
}

.result-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.result-row.total strong {
    color: var(--keller-blue);
    font-size: 1.2rem;
}

.result-row.admissible strong {
    color: var(--keller-orange);
    font-size: 1.4rem;
}

/* Visual Bar */
.capacity-visual {
    margin-top: 2rem;
}

.capacity-bar-bg {
    background: rgba(255, 255, 255, 0.1);
    height: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.capacity-bar-fill {
    background: var(--keller-orange);
    /* Fallback */
    height: 100%;
    width: 0%;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.capacity-legend {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.geo-note {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .geo-grid {
        grid-template-columns: 1fr;
    }

    .layer-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .layer-row select {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   BOTÓN WISEN (REDONDO & ANIMADO)
   ===================================================== */
.wisen-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.wisen-red-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ff0000);
    border: 4px solid #8b0000;
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: pulse-red 2s infinite;
}

.wisen-red-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.wisen-red-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.wisen-btn-text {
    color: white;
    font-weight: bold;
    font-family: var(--font-title);
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.wisen-label {
    margin-top: 1.5rem;
    color: var(--keller-orange);
    font-family: var(--font-title);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* =====================================================
   MODAL WISEN & LANZADOR
   ===================================================== */

@media (max-width: 900px) {
    .geo-container {
        grid-template-columns: 1fr;
    }

    .layer-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--keller-blue);
    }

    .layer-index {
        display: none;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .geo-container {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    #model-canvas {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .notebooks-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* =====================================================
   ESTILOS PARA EL VISOR 3D DE HIDRONIVELES
   ===================================================== */

.clickable-tech-item {
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.clickable-tech-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateX(10px) scale(1.02);
    box-shadow: -5px 0 15px rgba(0, 217, 255, 0.2);
}

.tech-action-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--keller-orange);
    border: 1px solid var(--keller-orange);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.clickable-tech-item:hover .tech-action-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Overlay Pantalla Completa */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    /* Se activa por JS */
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.overlay-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.overlay-title h3 {
    font-family: var(--font-title);
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

.close-overlay-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-overlay-btn:hover {
    background: var(--keller-orange);
    border-color: var(--keller-orange);
    transform: rotate(90deg);
}

.overlay-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#hydro-canvas-container {
    width: 100%;
    height: 100%;
}

.viewer-controls-ui {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.control-help {
    background: rgba(0, 0, 0, 0.6);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-lime);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-lime);
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* PET Lite Button Styles */
.pet-lite-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.pet-lite-card {
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pet-lite-card:hover {
    transform: translateY(-5px);
    border-color: var(--keller-blue);
}

.pet-hammer-animation {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.pile-head {
    width: 80px;
    height: 20px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 2px solid #555;
}

.pet-hammer {
    font-size: 50px;
    position: absolute;
    top: -10px;
    animation: hammer-strike 2s infinite ease-in-out;
    transform-origin: bottom right;
}

.sonic-waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sonic-waves span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--keller-blue);
    margin: 2px 0;
    opacity: 0;
    border-radius: 2px;
    animation: waves-propagation 2s infinite ease-in-out;
}

.sonic-waves span:nth-child(2) {
    animation-delay: 0.2s;
    width: 40px;
}

.sonic-waves span:nth-child(3) {
    animation-delay: 0.4s;
    width: 60px;
}

@keyframes hammer-strike {

    0%,
    20%,
    100% {
        transform: rotate(-45deg) translate(-20px, -20px);
    }

    10%,
    30% {
        transform: rotate(0deg) translate(0, 0);
    }
}

@keyframes waves-propagation {

    0%,
    10% {
        opacity: 0;
        transform: translateY(0);
    }

    15% {
        opacity: 1;
    }

    40%,
    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}

.pet-lite-content {
    flex: 1;
}

.pet-lite-content h3 {
    color: var(--keller-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pet-lite-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hammer-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px !important;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.5s;
}

.hammer-btn:hover .btn-shine {
    left: 100%;
}

@media (max-width: 768px) {
    .pet-lite-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* =====================================================
   MÓDULO PET VISIÓN Y 3D
   ===================================================== */
.pet-vision-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.pet-vision-actions {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.camera-btn {
    font-size: 1.2rem;
    padding: 20px 40px !important;
    background: linear-gradient(135deg, var(--neon-cyan), var(--keller-blue)) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.camera-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 245, 0.5);
}

.camera-btn .tech-icon {
    font-size: 1.5rem;
}

.pet-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pet-vision-grid.active {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
}

.vision-panel,
.vision-3d-panel {
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.vision-panel h3,
.vision-3d-panel h3 {
    color: var(--neon-cyan);
    font-family: var(--font-title);
    margin-bottom: var(--spacing-md);
    text-align: center;
    letter-spacing: 2px;
}

/* -- Escaner IA Animación -- */
.vision-scanner-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--neon-cyan);
}

#pet-scanned-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    /* Asegurar que la imagen es 100% visible */
    position: relative;
    z-index: 1;
    transition: all 1s ease;
}

#pet-scanned-image.analyzed {
    opacity: 1;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 2px solid var(--neon-cyan);
    z-index: 20;
    box-shadow: 0 0 15px rgba(0, 255, 245, 0.4);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px;
}

.laser-scanner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--neon-lime);
    box-shadow: 0 0 15px var(--neon-lime), 0 0 30px var(--neon-lime);
    z-index: 10;
    display: none;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 30, 0.4);
    /* Mucho más transparente para dejar ver la foto */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    display: none;
}

.scanning-text {
    color: var(--neon-lime);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-lime);
    animation: pulse-text 1s infinite alternate;
}

@keyframes pulse-text {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 20px var(--neon-lime);
    }
}

.vision-results {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    color: var(--neon-lime);
    min-height: 120px;
}

.vision-result-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInStep 0.5s forwards;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
    }
}

/* -- Panel de Diagnóstico Experto (NotebookLM) -- */
.expert-diagnosis-panel {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 15, 30, 0.8);
    border-left: 4px solid var(--neon-magenta);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInStep 0.5s forwards;
    position: relative;
    overflow: hidden;
}

.expert-diagnosis-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.05), transparent);
    pointer-events: none;
}

.diagnosis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding-bottom: 8px;
}

.diagnosis-header h4 {
    color: var(--neon-magenta);
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0;
}

.diagnosis-content {
    white-space: pre-wrap;
    text-align: justify;
}

.diagnosis-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.loading-pulse {
    color: var(--neon-magenta);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    animation: pulse-text 1.5s infinite alternate;
}

/* -- 3D Render Panel -- */
.vision-3d-panel .model-container {
    flex: 1;
    min-height: 400px;
    position: relative;
    border: 1px solid rgba(255, 0, 255, 0.3);
    background: radial-gradient(circle at center, rgba(30, 0, 40, 0.6) 0%, rgba(5, 5, 10, 0.9) 100%);
}

#pet-3d-canvas-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

/* Modificador Fullscreen para el canvas 3D al hacer doble click */
.fullscreen-3d {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: radial-gradient(circle at center, rgba(30, 0, 40, 0.95) 0%, rgba(5, 5, 10, 1) 100%) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.fullscreen-3d canvas {
    border-radius: 0 !important;
}

@media (max-width: 992px) {
    .pet-vision-grid {
        grid-template-columns: 1fr;
    }
}