

        /* =========================================
   VARIABLES Y ESTILOS BASE
   ========================================= */
:root {
    --bg-dark: #0f172a;
    --accent-cyan: #06b6d4;
    --accent-gold: #fbbf24;
}

body.specialties-body {
    margin: 0; padding: 0;
    overflow: hidden; /* Oculta el scrollbar principal */
    background: var(--bg-dark);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Navbar (estilos básicos para que no se rompa visualmente) */
/* 1. Busca tu clase .navbar actual y agrégale la línea de 'transition' al final */


/* 2. AÑADE ESTA NUEVA REGLA (Puedes ponerla justo debajo de la anterior) */
/* Oculta el navbar cuando la vista de detalles está abierta */
body.detail-view-open .navbar {
    opacity: 0;
    transform: translateY(-100%); /* Lo desliza hacia arriba fuera de la pantalla */
    pointer-events: none; /* Evita clics accidentales mientras está invisible */
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a.active { color: var(--accent-cyan); font-weight: bold; }

/* --- CONTENEDOR SLIDER FULLSCREEN --- */
.fullscreen-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* --- CADA SLIDE --- */
.slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateY(50px);
    z-index: 1;
}

.slide.active {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    z-index: 5;
}

/* --- LA IMAGEN Y LA CORTINA --- */
.slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.1); transition: transform 4s linear;
}
.slide.active .slide-bg { transform: scale(1); }

.slide.left-fade::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.85) 45%, rgba(15,23,42,0.4) 65%, rgba(15,23,42,0.2) 100%);
    transition: background 0.8s ease;
}
.slide.right-fade::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(-90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.85) 45%, rgba(15,23,42,0.4) 65%, rgba(15,23,42,0.2) 100%);
    transition: background 0.8s ease;
}

/* Oscurecer la imagen de fondo de forma suave cuando se abren los detalles para poder leer bien el texto largo */
body.detail-view-open .slide.active::before {
    background: linear-gradient(0deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.9) 100%);
}

/* --- CONTENIDO DEL SLIDE --- */
.slide-content {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    width: 65%;
    box-sizing: border-box;
    z-index: 10;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out; /* Transición para desvanecer */
}

/* Desvanecer el contenido inicial cuando se abre la vista de detalles */
body.detail-view-open .slide-content {
    opacity: 0 !important;
    transform: translateY(-50%) scale(0.95);
    pointer-events: none;
}

.left-fade .slide-content { left: 0; text-align: left; padding-left: 80px; padding-right: 20px; }
.right-fade .slide-content { right: 0; text-align: right; padding-right: 120px; padding-left: 20px; }

/* Animación interna del contenido al activar el slide */
.slide-content > * { opacity: 0; transform: translateY(20px); transition: 0.5s ease forwards; }
.slide.active .slide-category { animation: slideUp 0.5s ease forwards 0.3s; }
.slide.active .slide-title { animation: slideUp 0.5s ease forwards 0.4s; }
.slide.active .slide-decor { animation: slideUp 0.5s ease forwards 0.5s; }
.slide.active .slide-desc { animation: slideUp 0.5s ease forwards 0.6s; }
.slide.active .slide-stats { animation: slideUp 0.5s ease forwards 0.7s; }
.slide.active .btn-explore { animation: slideUp 0.5s ease forwards 0.8s; }

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Tipografía y Estilos */
.slide-category { font-size: 1.2rem; letter-spacing: 5px; font-weight: 600; display: block; margin-bottom: 10px;}
.cyan-text { color: var(--accent-cyan); }
.gold-text { color: var(--accent-gold); }

.slide-title { 
    font-family: 'Teko', sans-serif; 
    font-size: clamp(3.5rem, 7vw, 7.5rem); 
    line-height: 0.85; 
    margin: 0; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    white-space: nowrap; 
}
.slide-decor { width: 80px; height: 5px; margin: 20px 0; }
.right-fade .slide-decor { margin: 20px 0 20px auto; }
.cyan-bg { background: var(--accent-cyan); box-shadow: 0 0 15px var(--accent-cyan); }
.gold-bg { background: var(--accent-gold); box-shadow: 0 0 15px var(--accent-gold); }

.slide-desc { font-size: 1.2rem; color: #ddd; line-height: 1.6; margin-bottom: 30px; }
.slide-stats { display: flex; gap: 30px; margin-bottom: 40px; }
.right-fade .slide-stats { justify-content: flex-end; }
.stat { font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.stat i { font-size: 1.5rem; color: rgba(255,255,255,0.5); }

.btn-explore {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 35px;
    border-radius: 50px; font-family: 'Teko', sans-serif; font-size: 1.5rem; letter-spacing: 1px;
    background: transparent; color: #fff; transition: 0.3s; cursor: pointer;
}
.btn-explore.cyan-border { border: 2px solid var(--accent-cyan); }
.btn-explore.cyan-border:hover { background: var(--accent-cyan); color: var(--bg-dark); }
.btn-explore.gold-border { border: 2px solid var(--accent-gold); }
.btn-explore.gold-border:hover { background: var(--accent-gold); color: var(--bg-dark); }

.slide-watermark {
    position: absolute; bottom: 5%; left: 5%;
    font-family: 'Teko', sans-serif; font-size: 30vw; line-height: 1;
    color: rgba(255,255,255,0.03); z-index: 1; pointer-events: none;
}
.slide-watermark.right { left: auto; right: 5%; }

/* --- HUD LATERAL --- */
.orano-hud {
    position: fixed; right: 40px; top: 50%; transform: translateY(-50%);
    z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 20px;
    transition: opacity 0.5s ease-in-out;
}
/* Ocultar HUD cuando se abre detalle */
body.detail-view-open .orano-hud { opacity: 0; pointer-events: none; }

.hud-line { width: 2px; height: 100px; background: rgba(255,255,255,0.2); margin-right: 14px; }
.hud-dots { display: flex; flex-direction: column; gap: 15px; align-items: flex-end; }
.dot { display: flex; align-items: center; gap: 15px; cursor: pointer; color: rgba(255,255,255,0.5); transition: 0.3s; }
.dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); display: block; margin-right: 10px; transition: 0.3s; }
.dot:hover, .dot.active { color: #fff; }
.dot:hover::after, .dot.active::after { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); transform: scale(1.5); }
.dot span { font-family: 'Teko', sans-serif; font-size: 1.2rem; opacity: 0; transform: translateX(10px); transition: 0.3s; }
.dot:hover span, .dot.active span { opacity: 1; transform: translateX(0); }
.hud-scroll-text { writing-mode: vertical-rl; margin-top: 20px; margin-right: 10px; font-size: 0.8rem; letter-spacing: 3px; color: rgba(255,255,255,0.5); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* =========================================
   VISTA DE DETALLES (SCROLLABLE, FONDO TRANSPARENTE)
   ========================================= */

.fullscreen-detail-view {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    /* MAGIA AQUÍ: Fondo completamente transparente. Se verá la imagen del slide activo debajo */
    background: transparent; 
    z-index: 2000; 
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    
    overflow-y: auto; /* Permite el scroll hacia abajo */
    overflow-x: hidden;
}

.fullscreen-detail-view.active {
    opacity: 1;
    visibility: visible;
}

/* Personalizar scrollbar */
.fullscreen-detail-view::-webkit-scrollbar { width: 8px; }
.fullscreen-detail-view::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.fullscreen-detail-view::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }
.fullscreen-detail-view::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* BOTÓN CERRAR */
.close-fullscreen-btn {
    position: fixed;
    top: 40px; right: 50px;
    width: 60px; height: 60px;
    border-radius: 50%; background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.5rem; cursor: pointer;
    z-index: 2100; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.close-fullscreen-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: rotate(90deg); }

/* CONTENEDOR INTERNO DE LA INFO */
.fullscreen-scroll-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 100px 40px; /* Espacio arriba para no chocar con el navbar */
}

/* Animaciones en cascada para la info de la malla */
.fullscreen-scroll-content > div {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fullscreen-detail-view.active .detail-header-section { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.fullscreen-detail-view.active .detail-info-grid { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.fullscreen-detail-view.active .detail-footer { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Estilos de la info */
.detail-header-section { margin-bottom: 80px; }
.detail-badge { color: var(--accent-cyan); font-weight: 600; letter-spacing: 4px; font-size: 1rem; display: block; margin-bottom: 10px; }
.detail-title { font-family: 'Teko', sans-serif; font-size: 6rem; line-height: 0.9; color: #fff; margin: 0 0 20px 0; }
.detail-line { width: 100px; height: 3px; background: var(--accent-gold); margin-bottom: 30px; }
.detail-lead { font-size: 1.5rem; color: #eee; line-height: 1.6; max-width: 800px; font-weight: 300; }

.detail-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    margin-bottom: 100px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 60px;
}
.detail-number { font-family: 'Teko', sans-serif; font-size: 4rem; color: rgba(255,255,255,0.1); line-height: 0.8; margin-bottom: -15px; }
.column-title { font-family: 'Teko', sans-serif; font-size: 2.5rem; color: #fff; margin-bottom: 20px; letter-spacing: 1px; }
.column-text { color: #ccc; font-size: 1.1rem; line-height: 1.8; }

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.detail-list li::before { content: ''; width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; }

.detail-footer { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 60px; }
.cta-box h3 { font-family: 'Teko', sans-serif; font-size: 3rem; color: #fff; margin-bottom: 30px; }
.btn-detail-glow {
    display: inline-flex; align-items: center; gap: 15px; padding: 15px 40px; border-radius: 50px;
    background: transparent; color: var(--accent-gold); border: 2px solid var(--accent-gold);
    font-family: 'Teko', sans-serif; font-size: 1.5rem; letter-spacing: 2px; transition: 0.3s; text-decoration: none;
}
.btn-detail-glow:hover { background: var(--accent-gold); color: var(--bg-dark); box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }

/* Responsive General */
@media (max-width: 900px) {
    .orano-hud { display: none; }
    .slide-content { width: 100%; padding: 40px 20px; top: auto; bottom: 5%; transform: none; text-align: center !important; }
    .slide-title { font-size: 4.5rem; }
    .left-fade .slide-decor, .right-fade .slide-decor { margin: 15px auto; }
    .slide-stats { flex-direction: column; gap: 10px; align-items: center; margin-bottom: 20px; }
    .detail-info-grid { grid-template-columns: 1fr; gap: 40px; }
    .close-fullscreen-btn { top: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem; }
    .detail-title { font-size: 4rem; }
    .fullscreen-scroll-content { padding: 80px 20px; }
}

