/* ===== APRENDE — Guías Rápidas ===== */

/* ---------- Variables ---------- */
:root {
    --aprende-max: 760px;
    --aprende-radius: 16px;
    --aprende-gap: 2.5rem;
}

/* ---------- Hero de guía ---------- */
.guia__hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--aprende-radius);
    margin-bottom: 2rem;
}

.guia__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- Meta (sección, tiempo, fecha) ---------- */
.guia__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.guia__seccion {
    background: rgba(108, 99, 255, 0.15);
    color: #A5A0FF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guia__tiempo::before {
    content: "⏱ ";
}

.guia__actualizado {
    margin-left: auto;
    font-style: italic;
    font-size: 0.78rem;
}

/* ---------- Título ---------- */
.guia__titulo {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.guia__subtitulo {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--aprende-gap);
}

/* ---------- Cuerpo ---------- */
.guia__body {
    max-width: var(--aprende-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.guia__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: var(--aprende-gap) 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(108, 99, 255, 0.3);
}

.guia__body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E0E0E0;
    margin: 1.5rem 0 0.75rem;
}

.guia__body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.guia__body ul,
.guia__body ol {
    margin: 0 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.guia__body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1.02rem;
}

.guia__body strong {
    color: #fff;
}

/* ---------- Highlight Box ---------- */
.guia__highlight {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(59, 130, 246, 0.12));
    border-left: 4px solid #6C63FF;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.guia__highlight p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* ---------- Imagen interior ---------- */
.guia__imagen {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.guia__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- Tabla sencilla ---------- */
.guia__tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.guia__tabla th {
    background: rgba(108, 99, 255, 0.15);
    color: #A5A0FF;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(108, 99, 255, 0.3);
}

.guia__tabla td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.guia__tabla tr:hover td {
    background: rgba(108, 99, 255, 0.05);
}

.guia__tabla .porcentaje {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6C63FF;
}

.guia__tabla .porcentaje--verde {
    color: #10B981;
}

.guia__tabla .porcentaje--naranja {
    color: #F97316;
}

/* ---------- CTA Section (secundario) ---------- */
.guia__cta {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--aprende-radius);
    padding: 1.75rem;
    margin: 1.5rem 0;
    text-align: center;
}

.guia__cta--secondary h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guia__cta h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.guia__cta--secondary p {
    font-size: 0.9rem;
}

.guia__cta p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.guia__cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.guia__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.guia__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.guia__cta-btn--libro {
    background: rgba(108, 99, 255, 0.12);
    color: #A5A0FF;
    border: 1px solid rgba(108, 99, 255, 0.25);
}

.guia__cta-btn--curso {
    background: rgba(16, 185, 129, 0.1);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ---------- Newsletter (CTA Principal) ---------- */
.guia__newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--aprende-radius);
    padding: 2rem;
    margin: var(--aprende-gap) 0;
    text-align: center;
}

.guia__newsletter--hero {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(59, 130, 246, 0.12));
    border: 2px solid rgba(108, 99, 255, 0.4);
    padding: 2.5rem 2rem;
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.08);
}

.guia__newsletter--hero h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.guia__newsletter h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.guia__newsletter p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.guia__newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto;
}

.guia__newsletter-input {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.guia__newsletter-input:focus {
    border-color: #6C63FF;
}

.guia__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.guia__newsletter-btn {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #6C63FF, #3B82F6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.guia__newsletter-btn:hover {
    transform: translateY(-2px);
}

/* ---------- Siguiente guía ---------- */
.guia__next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    margin: var(--aprende-gap) 0;
}

.guia__next:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.3);
}

.guia__next-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guia__next-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.2rem;
}

.guia__next-arrow {
    font-size: 1.5rem;
    color: #6C63FF;
}

/* ---------- Disclaimer YMYL ---------- */
.guia__disclaimer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--aprende-gap);
    line-height: 1.5;
}

/* ---------- Breadcrumb ---------- */
.guia__breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.guia__breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.guia__breadcrumb a:hover {
    color: #6C63FF;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .guia__body {
        padding: 0 1rem;
    }

    .guia__hero {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .guia__cta {
        padding: 1.5rem 1rem;
    }

    .guia__cta-buttons {
        flex-direction: column;
    }

    .guia__newsletter-form {
        flex-direction: column;
    }

    .guia__meta {
        gap: 0.5rem;
    }

    .guia__actualizado {
        margin-left: 0;
    }
}