/* ============================================================
   IMPORTACIÓN DE FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   VARIABLES CSS (Sistema de diseño)
   ============================================================ */
:root {
    /* Fondos */
    --bg: #060D17;              /* Fondo principal oscuro */
    --panel: #101827;           /* Panel base para tarjetas */
    --panel2: #182232;          /* Panel alternativo (hover) */

    /* Dorados (acento principal) */
    --gold: #C8AA6E;            /* Dorado estándar */
    --gold-light: #E0CC9A;      /* Dorado claro para textos destacados */
    --gold-dark: #8B6F3D;       /* Dorado oscuro para degradados */

    /* Textos */
    --text: #EDEDED;            /* Texto principal (blanco roto) */
    --text2: #8E9BB4;           /* Texto secundario (gris azulado) */

    /* Bordes */
    --border: #1F2D40;          /* Borde estándar */
    --border-gold: rgba(200, 170, 110, 0.25); /* Borde dorado semi-transparente */

    /* Utilidades */
    --hover: rgba(200, 170, 110, 0.06); /* Fondo hover sutil */
    --radius: 18px;             /* Radio de borde estándar */
    --radius-sm: 14px;          /* Radio de borde pequeño */
}

/* ============================================================
   RESET GLOBAL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   ESTILOS BASE DEL BODY
   ============================================================ */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(200, 170, 110, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(10, 200, 185, 0.02) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER DEL CONCEPTO
   ============================================================ */
.concepto-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 24, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 35px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-content {
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.back-button {
    text-decoration: none;
    color: var(--text2);
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.3px;
}

.back-button:hover {
    color: var(--gold-light);
    border-color: var(--border-gold);
    background: var(--hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.concepto-header-icon {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    box-shadow: 
        0 0 30px rgba(200, 170, 110, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concepto-header-icon:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 40px rgba(200, 170, 110, 0.45),
        0 12px 30px rgba(0, 0, 0, 0.6);
}

.concepto-info {
    flex: 1;
    min-width: 250px;
}

#concepto-name {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #E8D5A3, #C8AA6E, #A8884A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(200, 170, 110, 0.3));
}

.concepto-style {
    display: inline-block;
    background: rgba(200, 170, 110, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
.guide-container {
    max-width: 1300px;
    margin: auto;
    padding: 60px 40px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    margin-bottom: 28px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

section:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(200, 170, 110, 0.08);
}

section:hover::before {
    opacity: 1;
}

section h2 {
    color: var(--gold-light);
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   VIDEO
   ============================================================ */
#concepto-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

#concepto-video:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 25px rgba(200, 170, 110, 0.12);
}

/* ============================================================
   DESCRIPCIÓN
   ============================================================ */
#concepto-descripcion {
    background: var(--panel2);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 28px 30px;
    color: var(--text);
    line-height: 1.9;
    font-size: 17px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 30px rgba(200, 170, 110, 0.03);
}

/* ============================================================
   RECURSOS ADICIONALES
   ============================================================ */
#concepto-recursos {
    font-size: 16px;
    color: var(--text2);
    line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    margin-top: 80px;
    padding: 40px 20px 30px;
    border-top: 2px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(6,13,23,0.9) 0%, rgba(6,13,23,1) 100%);
    text-align: center;
    color: var(--text2);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-content p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.footer-content p:first-child {
    font-weight: 500;
    color: var(--text);
}

.footer-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    border-bottom: 1px dotted transparent;
}

.footer-content a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
    border-bottom-color: var(--gold);
}

footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: -42px auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 170, 110, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 170, 110, 0.4);
}

/* ============================================================
   SELECCIÓN DE TEXTO
   ============================================================ */
::selection {
    background: rgba(200, 170, 110, 0.25);
    color: #fff;
}

::-moz-selection {
    background: rgba(200, 170, 110, 0.25);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width: 900px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    #concepto-name {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .guide-container {
        padding: 35px 20px;
    }

    .concepto-header {
        padding: 25px 20px;
    }

    .concepto-header-icon {
        width: 120px;
        height: 120px;
    }

    section {
        padding: 28px 22px;
    }

    section h2 {
        font-size: 22px;
    }

    footer {
        margin-top: 60px;
        padding: 30px 16px 25px;
    }
}

@media(max-width: 768px) {
    .guide-container {
        padding: 30px 16px;
    }

    section {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    section h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    #concepto-name {
        font-size: 38px;
    }

    .concepto-header-icon {
        width: 100px;
        height: 100px;
    }

    .concepto-header {
        padding: 20px 16px;
    }

    .concepto-info {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .concepto-style {
        font-size: 12px;
        padding: 6px 14px;
    }

    #concepto-descripcion {
        font-size: 15px;
        padding: 20px 18px;
    }

    footer {
        margin-top: 50px;
        padding: 30px 16px 20px;
    }
}

@media(max-width: 600px) {
    #concepto-name {
        font-size: 34px;
    }

    .concepto-header-icon {
        width: 80px;
        height: 80px;
    }

    .back-button {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    #concepto-descripcion {
        padding: 22px 20px;
        font-size: 15px;
    }

    .guide-container {
        padding: 20px 12px;
    }

    section h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .back-button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .concepto-style {
        font-size: 11px;
        padding: 5px 12px;
    }

    #concepto-descripcion {
        font-size: 14px;
        padding: 16px 14px;
    }

    footer {
        margin-top: 40px;
        padding: 25px 14px 18px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}