/* ===== RESET Y ESTILOS BASE MEJORADOS CON ANIMACIONES ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    scroll-behavior: smooth; /* Desplazamiento suave */
}

body.bg-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); /* Degradado sutil */
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out; /* Animación al cargar */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    margin-top: 80px;
    animation: slideUp 0.7s ease-out; /* Animación de entrada */
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.text-warning {
    color: #ffb74d !important;
    text-shadow: 0 0 8px rgba(255, 183, 77, 0.3); /* Sombra de texto */
}

/* ===== ESTILOS COMPARTIDOS PARA SECCIONES CON EFECTOS MEJORADOS ===== */
section {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    margin-top: 5px;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    border: 1px solid #3d3d3d;
    position: relative;
}

/* Efecto de borde animado */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, rgba(100, 181, 246, 0.3), rgba(66, 165, 245, 0.3), rgba(30, 136, 229, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

section:hover::before {
    opacity: 0.5;
    animation: borderGlow 3s infinite ease-in-out;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px); /* Efecto de levitación */
    border-color: #4d4d4d;
}

/* ===== FLEX PARA COLUMNAS CON EFECTOS ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 15px;
}

.row > [class^="col-"] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    transition: transform 0.3s ease;
}

.row > [class^="col-"]:hover {
    transform: scale(1.01); /* Efecto de zoom sutil */
}

/* ===== SCROLLBAR MEJORADA CON ANIMACIÓN ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}


/* ===== TIPOGRAFÍA MEJORADA CON EFECTOS ===== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #ffb74d, #ff7043);
    border-radius: 3px;
    animation: underlineExpand 0.5s ease-out forwards;
}

@keyframes underlineExpand {
    from { width: 0; opacity: 0; }
    to { width: 50px; opacity: 1; }
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

p:hover {
    color: #ffffff;
}

/* ===== EFECTOS Y DETALLES VISUALES MEJORADOS ===== */
.text-muted {
    color: #9e9e9e !important;
    transition: color 0.3s ease;
}

.text-muted:hover {
    color: #bdbdbd !important;
}

.highlight {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.25));
    padding: 2px 4px;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

.scrollable-personajes {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
}


.genshin-section::before {
  z-index: 0 !important; /* Detrás del contenido */
  pointer-events: none !important; /* No bloquear clics */
}
.genshin-section {
  position: relative;
  z-index: 1;
}


@keyframes pulse {
    0% { background-color: rgba(255, 193, 7, 0.15); }
    50% { background-color: rgba(255, 193, 7, 0.25); }
    100% { background-color: rgba(255, 193, 7, 0.15); }
}

/* ===== RESPONSIVE CON TRANSICIONES ===== */
@media (max-width: 768px) {
    .row > [class^="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        transition: all 0.3s ease;
    }
    
    .container {
        margin-top: 60px !important;
    }
}

@media (max-width: 576px) {
    .container {
        margin-top: 55px !important;
        gap: 8px;
    }
    
    section {
        padding: 12px;
        transition: all 0.3s ease;
    }
    
    section:hover {
        transform: none; /* Desactivar efecto de levitación en móviles */
    }
}

/* Efecto de carga para elementos dinámicos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dynamic-content {
    animation: fadeInUp 0.5s ease-out forwards;
}