/* ================================
   PITIUPI PRESENTATION - SLIDE 5 STYLES
   Tarjetas cerebrales con efectos neuronales
   ================================ */

/* ================================
   CONTENEDOR PRINCIPAL
   ================================ */

   .slide[data-slide="5"] {
    overflow: visible;
    padding: 1.5rem !important;
}

.slide[data-slide="5"] h2 {
    margin-bottom: 5.5rem;
    font-size: 2.8rem;
}

/* ================================
   GRID DE TARJETAS CEREBRALES (COMPACTO)
   ================================ */

.brain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 850px;
    position: relative;
    z-index: 10;
}

/* ================================
   TARJETA CEREBRAL (COMPACTA)
   ================================ */

.brain-card {
    position: relative;
    background: linear-gradient(135deg, rgba(3, 0, 46, 0.9), rgba(51, 204, 0, 0.05));
    border: 2px solid rgba(51, 204, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(51, 204, 0, 0.1);
}

/* Fondo de partículas */
.brain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.brain-card:hover::before {
    opacity: 1;
    animation: pulseParticles 2s ease-in-out infinite;
}

@keyframes pulseParticles {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ================================
   CONTENIDO DE LA TARJETA (REDUCIDO)
   ================================ */

.brain-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Icono cerebral (más pequeño) */
.brain-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px currentColor);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.brain-card:hover .brain-icon {
    transform: scale(1.15) rotateY(360deg);
    filter: drop-shadow(0 0 20px currentColor);
}

/* Título (más pequeño) */
.brain-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.3rem 0;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.brain-card:hover .brain-title {
    color: var(--neon);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.8);
}

/* Descripción (más compacta) */
.brain-description {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-10px);
}

.brain-card:hover .brain-description {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
}

/* Medidor de intensidad (más pequeño) */
.intensity-meter {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.brain-card:hover .intensity-meter {
    opacity: 1;
}

.intensity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.8);
    position: relative;
    overflow: hidden;
}

.brain-card:hover .intensity-fill {
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Diferentes intensidades para cada tarjeta */
.brain-card:nth-child(1) .intensity-fill { width: 95%; }
.brain-card:nth-child(2) .intensity-fill { width: 85%; }
.brain-card:nth-child(3) .intensity-fill { width: 78%; }
.brain-card:nth-child(4) .intensity-fill { width: 90%; }

/* ================================
   EFECTOS DE HOVER EN LA TARJETA (REDUCIDO)
   ================================ */

.brain-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(57, 255, 20, 0.3),
        inset 0 0 30px rgba(57, 255, 20, 0.1);
}

/* ================================
   ANIMACIÓN DE ENTRADA
   ================================ */

.brain-card {
    animation: cardSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.brain-card:nth-child(1) { animation-delay: 0.1s; }
.brain-card:nth-child(2) { animation-delay: 0.2s; }
.brain-card:nth-child(3) { animation-delay: 0.3s; }
.brain-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .brain-grid {
        gap: 1rem;
        max-width: 750px;
    }
    
    .brain-card {
        padding: 1.3rem;
    }
    
    .brain-icon {
        font-size: 2.2rem;
    }
    
    .brain-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .slide[data-slide="5"] h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .brain-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }
    
    .brain-card {
        padding: 1.5rem;
    }
    
    .brain-icon {
        font-size: 2.5rem;
    }
    
    .brain-title {
        font-size: 1.3rem;
    }
    
    .brain-description {
        font-size: 1rem;
    }
    
    .brain-card:hover .brain-description {
        max-height: 180px;
    }
}