/*
 * ==========================================
 * Budokan SKIF - Estilos principales
 * ==========================================
 * Autor:  Diego Alejandro Guachetá
 * Fecha: Febrero 2026
 * Descripción: Sistema de estilos para el
 *              sitio web oficial de Budokan SKIF Antioquia
 * ==========================================
 */

/* Variables CSS */
:root {
    --color-black: #1a1a1a;
    --color-red: #d32f2f;
    --color-gold: #d4af37;
    --color-cream: #faf8f3;
    --color-gray: #2d2d2d;
    --color-light-gray: #757575;
    --color-gold-light: #e8c970;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--color-cream);
    color: var(--color-black);
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray) 100%);
    color: var(--color-cream);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--color-red);
}

/* Header para página de documentos (más compacto) */
.documents-page header {
    padding: 2rem 2rem 1.5rem;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.25; 
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease-out;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .logo {
        width: 80px;
    }
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    animation: slideDown 0.8s ease-out;
}

/* h1 más pequeño para página de documentos */
.documents-page h1 {
    font-size: 3rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-cream);
    opacity: 0.9;
    animation: slideDown 0.8s ease-out 0.2s backwards;
}

/* Subtitle más pequeño para página de documentos */
.documents-page .subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
}

.kanji-accent {
    position: absolute;
    top: 50%;
    right: 5%;
    font-size: 12rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.15);
    transform: translateY(-50%);
    user-select: none;
    pointer-events: none;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

nav {
    margin-top: 1rem;
    animation: slideDown 0.8s ease-out 0.3s backwards;
}

nav a {
    color: var(--color-cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    border: 1px solid rgba(244, 241, 232, 0.3);
    margin-right: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

nav a:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* ========================================
   CONTENEDOR Y SECCIONES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    padding: 3rem 0;
}

/* Main más corto cuando es necesario */
.documents-page main {
    min-height: 60vh;
}

section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.3s; }
section:nth-child(2) { animation-delay: 0.5s; }
section:nth-child(3) { animation-delay: 0.7s; }
section:nth-child(4) { animation-delay: 0.9s; }

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

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--color-black);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
}

/* h2 con animación para página de documentos */
.documents-page h2 {
    animation: fadeInUp 0.8s ease-out;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-red);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

/* Párrafo de introducción */
p.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   CARDS DE INFORMACIÓN
   ======================================== */

.info-card {
    background: white;
    padding: 2.5rem;
    margin: 2rem 0;
    border-left: 5px solid var(--color-red);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--color-red);
}

.info-card p, 
.info-card ul {
    color: var(--color-gray);
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: bold;
}

/* ========================================
   CARDS DE DOCUMENTOS
   ======================================== */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-card {
    background: white;
    padding: 2rem;
    border-left: 5px solid var(--color-red);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.document-card:nth-child(1) { animation-delay: 0.3s; }
.document-card:nth-child(2) { animation-delay: 0.4s; }
.document-card:nth-child(3) { animation-delay: 0.5s; }
.document-card:nth-child(4) { animation-delay: 0.6s; }
.document-card:nth-child(5) { animation-delay: 0.7s; }
.document-card:nth-child(6) { animation-delay: 0.8s; }

.document-card::before {
    content: '📄';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.03;
    transform: rotate(15deg);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-width: 8px;
}

.document-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: var(--color-red);
    text-transform: uppercase;
}

.document-card .doc-type {
    display: inline-block;
    background: var(--color-cream);
    color: var(--color-gray);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border-radius: 2px;
}

.document-card p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   BOTONES
   ======================================== */

.cta-button {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-cream);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.download-btn {
    display: inline-block;
    background: var(--color-red);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '⬇';
    margin-right: 0.5rem;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.download-btn:hover::after {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

/* ========================================
   GRIDS Y LAYOUTS
   ======================================== */

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   CATEGORÍAS (página de documentos)
   ======================================== */

.category-section {
    margin-top: 4rem;
}

.category-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-red);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--color-black);
    color: var(--color-cream);
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--color-red);
}

footer p {
    color: var(--color-light-gray);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE - TABLETS Y MÓVILES
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .documents-page h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 2rem;
    }

    .kanji-accent {
        font-size: 6rem;
    }

    section {
        padding: 3rem 0;
    }

    .info-card {
        padding: 1.5rem;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

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

    nav a {
        display: block;
        margin-bottom: 0.5rem;
    }
}