/* ============================================
   ARTICULO.CSS - Páginas de artículo
   Los estilos base se cargan desde estilos.css
   ============================================ */

/* NAVEGACIÓN */
.nav-articulo {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 24px 10px;
}

.nav-articulo .volver {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-articulo .volver:hover {
    color: #fff;
}

/* CABECERA */
.header-articulo {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 30px;
    text-align: center;
}

.fecha-articulo {
    display: block;
    margin-bottom: 15px;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.titulo-articulo {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.25;
}

/* CONTENEDOR */
.contenido-articulo {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
    overflow-wrap: break-word;
}

.contenido-articulo .intro {
    margin-bottom: 35px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* TEXTO PRINCIPAL */
.texto-principal {
    color: #d0d0d0;
    font-size: 1.02rem;
    line-height: 1.85;
}

.texto-principal p {
    margin-bottom: 22px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.texto-principal h2 {
    margin: 10px 0 30px;
    padding-bottom: 14px;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.texto-principal h3 {
    margin: 45px 0 18px;
    color: #fff;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: var(--acento);
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.texto-principal b,
.texto-principal strong {
    color: #fff;
    font-weight: 600;
}

/* Listas */
.texto-principal ul {
    list-style: none;
    margin: 0 0 24px;
    padding-left: 22px;
}

.texto-principal ul li {
    position: relative;
    margin-bottom: 10px;
    line-height: 1.7;
}

.texto-principal ul li::before {
    content: "•";
    position: absolute;
    left: -22px;
    color: var(--acento);
    font-weight: 700;
}

/* Frase de cierre */
.texto-principal .cierre {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    font-style: italic;
    color: #999;
}

/* Enlaces */
.texto-principal a,
.link-texto {
    color: var(--acento);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.texto-principal a:hover,
.link-texto:hover {
    color: #fff;
}

/* CAJA DE VIDEO / RECURSO EXTRA */
.video-extra {
    margin-top: 35px;
    padding: 20px 24px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-left: 3px solid var(--acento);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.95rem;
}

.video-extra p {
    margin: 0;
}

/* TARJETA LINK PREVIEW */
.link-preview-link {
    display: block;
    margin: 30px 0 35px;
    color: inherit;
    text-decoration: none;
}

.link-preview {
    display: flex;
    align-items: stretch;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-preview-link:hover .link-preview {
    border-color: #888;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.link-img {
    flex: 0 0 140px;
    background: #1a1a1a;
}

.link-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-info {
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-info h4 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.link-info p {
    margin-bottom: 10px;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

.link-url {
    color: #999;
    font-size: 0.8rem;
}

/* PIE */
.footer-articulo {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 24px 40px;
    border-top: 1px solid #333;
    color: #888;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================
   MÓVILES
   ============================================ */

@media (max-width: 600px) {
    .nav-articulo {
        padding: 20px 20px 10px;
    }

    .header-articulo {
        padding: 25px 20px;
    }

    .contenido-articulo {
        padding: 0 20px 40px;
    }

    .contenido-articulo .intro {
        font-size: 1rem;
    }

    .texto-principal {
        font-size: 1rem;
    }

    .texto-principal h3 {
        margin-top: 35px;
    }

    .link-preview {
        flex-direction: column;
    }

    .link-img {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .link-info {
        padding: 18px;
    }

    .video-extra {
        padding: 16px 18px;
    }

    .footer-articulo {
        margin: 0 20px;
        padding: 25px 0;
    }
    
}