/* ==========================================
   ABOUT.CSS - ESPECÍFICO PARA about.php
   Compatible con styles.css (sin sobrescribir)
   ========================================== */

/* ==========================================
   0. CANVAS DE FONDO ANIMADO
   ========================================== */

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent;
}

/* Hacer contenedores semi-transparentes */
.container {
    position: relative;
    z-index: 1;
}

.top-menu {
    position: relative;
    z-index: 2;
    background: rgba(20, 24, 82, 0.9) !important;
    backdrop-filter: blur(10px);
}

/* ==========================================
   1. TABS CONTAINER
   ========================================== */

.tabs-container {
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Tabs Header */
.tabs-header {
    display: flex;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.tabs-header::-webkit-scrollbar {
    height: 4px;
}

.tabs-header::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.tabs-header::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    display: block;
    cursor: pointer;
}

.tab-btn:hover {
    color: white;
    background: rgba(52, 167, 193, 0.2);
}

.tab-btn.active {
    color: white;
    background: rgba(52, 167, 193, 0.3);
    border-bottom-color: #34A7C1;
}

/* Tab Content */
.tab-content {
    padding: 40px;
    line-height: 1.8;
    background: transparent;
}

.tab-content.active {
    display: block;
}

.tab-content:not(.active) {
    display: none;
}

/* ==========================================
   2. SECCIONES DE CONTENIDO
   ========================================== */

.about-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.about-section h2 {
    color: #34A7C1;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #34A7C1;
    padding-bottom: 10px;
}

.about-section h3 {
    color: #1a365d;
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.about-section h4 {
    color: #34A7C1;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

.about-section h5 {
    color: #1a365d;
    font-size: 1em;
    margin: 15px 0 10px 0;
}

/* ==========================================
   3. CAJAS DE INFORMACIÓN
   ========================================== */

.info-box,
.points-category,
.step-box {
    background: rgba(227, 242, 253, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #34A7C1;
    backdrop-filter: blur(5px);
}

.note-box {
    background: rgba(255, 243, 205, 0.95);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.example-box {
    background: rgba(209, 236, 241, 0.95);
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.warning-box {
    background: rgba(248, 215, 218, 0.95);
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.success-box {
    background: rgba(212, 237, 218, 0.95);
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* ==========================================
   4. TARJETAS DE ELEMENTOS Y MODALIDADES
   ========================================== */

.element-card,
.modality-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 5px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.element-card:hover,
.modality-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.element-card.fire {
    border-left-color: #e57373;
    background: linear-gradient(to right, rgba(229, 115, 115, 0.1), rgba(255, 255, 255, 0.95));
}

.element-card.earth {
    border-left-color: #81c784;
    background: linear-gradient(to right, rgba(129, 199, 132, 0.1), rgba(255, 255, 255, 0.95));
}

.element-card.air {
    border-left-color: #ffee58;
    background: linear-gradient(to right, rgba(255, 238, 88, 0.1), rgba(255, 255, 255, 0.95));
}

.element-card.water {
    border-left-color: #4fc3f7;
    background: linear-gradient(to right, rgba(79, 195, 247, 0.1), rgba(255, 255, 255, 0.95));
}

.modality-card.cardinal {
    border-left-color: #ff6b6b;
    background: linear-gradient(to right, rgba(255, 107, 107, 0.1), rgba(255, 255, 255, 0.95));
}

.modality-card.fixed {
    border-left-color: #4ecdc4;
    background: linear-gradient(to right, rgba(78, 205, 196, 0.1), rgba(255, 255, 255, 0.95));
}

.modality-card.mutable {
    border-left-color: #95e1d3;
    background: linear-gradient(to right, rgba(149, 225, 211, 0.1), rgba(255, 255, 255, 0.95));
}

/* ==========================================
   5. LISTAS
   ========================================== */

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section ul li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.about-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34A7C1;
    font-weight: bold;
    font-size: 1.2em;
}

.about-section ol {
    padding-left: 30px;
}

/* ==========================================
   6. STEPS / PASOS
   ========================================== */

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    margin-right: 10px;
}

/* ==========================================
   7. TABLA COMPARATIVA
   ========================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tr:hover {
    background: rgba(248, 249, 250, 0.8);
}

/* ==========================================
   8. FAQ
   ========================================== */

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 4px solid #34A7C1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.faq-question {
    font-weight: 600;
    color: #1a365d;
    font-size: 1.1em;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #34A7C1;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

/* ==========================================
   9. BACK ARROW / VOLVER - OCULTA
   ========================================== */

.back-arrow {
    display: none !important;
}

/* ==========================================
   10. LOGO Y MENU
   ========================================== */

.menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.menu-logo:hover {
    opacity: 0.8;
}

.menu-logo img {
    height: 30px;
    width: auto;
}

footer {
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%) !important;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 15px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 2px 0 !important;
    color: #34A7C1 !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

footer strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

footer img {
    filter: brightness(1.5) drop-shadow(0 0 4px rgba(52, 167, 193, 0.6)) !important;
    height: 18px !important;
}

/* ==========================================
   12. RESPONSIVE - TABLETS
   ========================================== */

@media (max-width: 968px) {
    .tabs-header {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        min-width: 120px;
        font-size: 0.85em;
        padding: 12px 15px;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .about-section h2 {
        font-size: 1.5em;
    }
    
    .about-section h3 {
        font-size: 1.2em;
    }
}

/* ==========================================
   13. RESPONSIVE - MÓVILES
   ========================================== */

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 10px;
    }
    
    /* Tabs Container */
    .tabs-container {
        margin: 30px auto;
        border-radius: 12px;
    }
    
    /* Tabs header */
    .tabs-header {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        min-width: 110px;
        font-size: 0.8em;
        padding: 12px 12px;
    }
    
    /* Tab content */
    .tab-content {
        padding: 20px;
    }
    
    /* About section */
    .about-section {
        padding: 18px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .about-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .about-section h3 {
        font-size: 1.2em;
        margin: 18px 0 12px 0;
    }
    
    .about-section h4 {
        font-size: 1.1em;
        margin: 15px 0 8px 0;
    }
    
    /* Cajas info */
    .info-box,
    .points-category,
    .step-box,
    .note-box,
    .example-box,
    .warning-box,
    .success-box {
        padding: 15px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    /* Cards */
    .element-card,
    .modality-card,
    .faq-item {
        padding: 15px;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    /* Tabla */
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    /* Footer */
    footer {
        padding: 20px 15px;
        font-size: 0.9em;
    }
    
    footer p {
        margin: 4px 0;
        font-size: 0.9em;
    }
}

/* ==========================================
   14. RESPONSIVE - MÓVILES PEQUEÑOS
   ========================================== */

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .tabs-container {
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        min-width: 90px;
        font-size: 0.75em;
        padding: 10px 10px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .about-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .about-section h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .about-section h3 {
        font-size: 1.1em;
        margin: 12px 0 8px 0;
    }
    
    .about-section h4 {
        font-size: 0.95em;
    }
    
    .info-box,
    .points-category,
    .step-box,
    .note-box,
    .example-box,
    .warning-box,
    .success-box {
        padding: 12px;
        margin: 12px 0;
    }
    
    .element-card,
    .modality-card,
    .faq-item {
        padding: 12px;
        margin: 10px 0;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9em;
        margin-right: 8px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .back-arrow {
        left: 10px;
        font-size: 20px;
        padding: 6px 10px;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 0.85em;
    }
    
    footer p {
        font-size: 0.8em;
    }
}

/* ==========================================
   15. ACCESIBILIDAD
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid #34A7C1;
    outline-offset: 2px;
}

/* ==========================================
   PALETA DE COLORES - AZUL OSCURO
   ========================================== */

.element-card {
    background: linear-gradient(135deg, #1a365d 0%, #0a192f 100%) !important;
    border-left: 5px solid #34A7C1 !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    color: white !important;
}

.element-card h4 {
    color: #34A7C1 !important;
    margin-top: 0 !important;
}

.element-card p,
.element-card ul,
.element-card li {
    color: #e0e0e0 !important;
}

.element-card.fire {
    border-left-color: #5b9dd1 !important;
}

.element-card.earth {
    border-left-color: #34A7C1 !important;
}

.element-card.air {
    border-left-color: #6b9dd1 !important;
}

.element-card.water {
    border-left-color: #2980b9 !important;
}

.info-box,
.note-box,
.example-box,
.warning-box,
.success-box,
.points-category {
    background: linear-gradient(135deg, #1a365d 0%, #0a192f 100%) !important;
    border-left: 5px solid #34A7C1 !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    color: #e0e0e0 !important;
}

.info-box strong,
.note-box strong,
.example-box strong,
.warning-box strong,
.success-box strong,
.points-category strong {
    color: #34A7C1 !important;
}

.info-box h3,
.note-box h3,
.example-box h3,
.warning-box h3,
.success-box h3,
.points-category h3 {
    color: #34A7C1 !important;
}

.info-box h4,
.note-box h4,
.example-box h4,
.warning-box h4,
.success-box h4,
.points-category h4 {
    color: #34A7C1 !important;
}

.warning-box {
    border-left-color: #e74c3c !important;
}

.success-box {
    border-left-color: #27ae60 !important;
}

.example-box {
    border-left-color: #3498db !important;
}

.note-box {
    border-left-color: #f39c12 !important;
}

.element-card ul,
.element-card ol,
.info-box ul,
.note-box ul,
.example-box ul,
.warning-box ul,
.success-box ul,
.points-category ul,
.points-category ol {
    color: #e0e0e0 !important;
}

.element-card li,
.info-box li,
.note-box li,
.example-box li,
.warning-box li,
.success-box li,
.points-category li {
    color: #e0e0e0 !important;
}


.modality-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-left: 5px solid #34A7C1 !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    color: #333 !important;
}

.modality-card h4 {
    color: #34A7C1 !important;
    margin-top: 0 !important;
}

.modality-card p,
.modality-card ul,
.modality-card li {
    color: #333 !important;
}

.modality-card.cardinal {
    border-left-color: #3498db !important;
}

.modality-card.fixed {
    border-left-color: #e74c3c !important;
}

.modality-card.mutable {
    border-left-color: #f39c12 !important;
}

@media print {
    body {
        background: white;
    }
    
    #bgCanvas {
        display: none;
    }
    
    .top-menu,
    footer {
        display: none;
    }
    
    .tabs-container,
    .about-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}