/* =========================================================
   STREFLIX ACADEMY
   Style.css — V2
   Identidad: Academia + Tecnología + Propiedad Digital
   ========================================================= */


/* =========================================================
   1. VARIABLES DE IDENTIDAD
   ========================================================= */

:root {

    /* ---------- Fondos ---------- */

    --bg-color: #FBF9F5;
    --surface-color: #FFFFFF;
    --surface-dark: #101A33;


    /* ---------- Identidad Streflix ---------- */

    --brand-blue: #35B4F0;
    --brand-navy: #101A33;
    --brand-gold: #C5A880;


    /* ---------- Texto ---------- */

    --text-main: #17243A;
    --text-secondary: #526176;
    --text-on-dark: #F8FAFC;


    /* ---------- Bordes ---------- */

    --border-color: #DCE3EA;
    --border-dark: rgba(255, 255, 255, 0.12);


    /* ---------- Estados ---------- */

    --hover-blue: #249ED8;
    --hover-gold: #D4B98A;


    /* ---------- Sombras ---------- */

    --shadow-soft: 0 4px 12px rgba(16, 26, 51, 0.06);
    --shadow-medium: 0 8px 24px rgba(16, 26, 51, 0.09);


    /* ---------- Geometría ---------- */

    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 12px;
}


/* =========================================================
   2. BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background-color: var(--bg-color);
    color: var(--text-main);

    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;

    overflow-x: hidden;

    line-height: 1.6;
}


/* =========================================================
   3. CONTENEDOR PRINCIPAL
   ========================================================= */

.wrapper {
    max-width: 900px;
    width: 100%;

    padding: 0 20px 30px 20px;
}


/* =========================================================
   4. CABECERA
   Header panorámico global — presencia institucional refinada
   ========================================================= */

.site-header {

    width: 100vw;

    position: relative;
    left: 50%;
    right: 50%;

    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 20px;

    box-sizing: border-box;

    background-color: #1A2E40;

    border-radius: 0;

    border-bottom:
        3px solid var(--brand-gold);

    box-shadow:
        0 4px 14px rgba(16, 26, 51, 0.10);

    padding-top: 16px;
    padding-bottom: 16px;
    padding-left:
        max(
            20px,
            calc((100vw - 900px) / 2 + 20px)
        );
    padding-right:
        max(
            20px,
            calc((100vw - 900px) / 2 + 20px)
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 36px;

    text-align: left;

    z-index: 20;
}


/* =========================================================
   5. MARCA
   ========================================================= */

.site-brand {

    width: auto;

    flex: 0 0 auto;

    text-align: left;
}


.brand-link {

    display: block;

    color: inherit;

    text-decoration: none;
}


.brand-link:hover {

    color: inherit;
}


.site-header h1 {

    font-size: 1.62rem;

    margin: 0 0 4px 0;

    letter-spacing: -0.45px;

    color: #FBF9F5;

    display: inline-flex;

    align-items: center;

    justify-content: flex-start;

    line-height: 1.1;
}


/* Símbolo Streflix */

.brand-icon-substitute {

    height: 28px;

    width: auto;

    object-fit: contain;

    vertical-align: middle;

    margin-right: -3px;

    mix-blend-mode: screen;
}


/* Texto principal de marca */

.brand-name {

    display: inline-block;
}


/* Texto Academy */

.academy-text {

    margin-left: 0.42em;

    letter-spacing: 0.45px;
}


/* =========================================================
   6. SLOGAN
   ========================================================= */

.slogan {

    color: var(--brand-gold);

    font-size: 0.71rem;

    font-weight: 700;

    letter-spacing: 0.75px;

    margin: 0;

    width: auto;

    text-align: left;

    line-height: 1.35;
}


/* =========================================================
   7. NAVEGACIÓN PRINCIPAL
   ========================================================= */

.main-nav {

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 8px;

    margin-top: 0;

    flex-wrap: nowrap;
}


.main-nav a {

    color: #D6DEE7;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    padding: 8px 9px;

    border-radius: 5px;

    border: 1px solid transparent;

    background-color: transparent;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.main-nav a:hover {

    color: #FFFFFF;

    background-color:
        rgba(255, 255, 255, 0.055);
}


/* Página activa */

.main-nav a.active {

    color: var(--brand-gold);

    background-color:
        rgba(197, 168, 128, 0.10);

    border-color:
        rgba(197, 168, 128, 0.22);
}


/* Contacto — CTA institucional Streflix */

.main-nav a.nav-contact {

    margin-left: 5px;

    padding-left: 14px;
    padding-right: 14px;

    color: var(--brand-gold);

    border-color: var(--brand-gold);

    background-color: transparent;
}


.main-nav a.nav-contact:hover,
.main-nav a.nav-contact.active {

    color: var(--brand-navy);

    background-color: var(--brand-gold);

    border-color: var(--brand-gold);
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero-banner {

    width: 100%;

    height: 240px;

    overflow: hidden;

    border-bottom: 4px solid var(--brand-gold);

    border-radius: var(--radius-medium);

    margin-bottom: 28px;

    background-color: var(--brand-navy);

    box-shadow: var(--shadow-soft);
}


.hero-banner img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   9. TARJETAS GENERALES
   ========================================================= */

.intro-card,
.nav-card,
.site-footer {

    background-color: var(--surface-color);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-large);

    padding: 28px;

    margin-bottom: 24px;

    box-shadow: var(--shadow-soft);
}


/* =========================================================
   10. TEXTO INTRODUCTORIO
   ========================================================= */

.intro-card p,
.nav-card p {

    color: var(--text-secondary);

    font-size: 1.05rem;

    line-height: 1.75;

    margin: 0 0 15px 0;
}


/* Último párrafo sin margen */

.intro-card p:last-child,
.nav-card p:last-child {

    margin-bottom: 0;
}


/* =========================================================
   11. TÍTULOS
   ========================================================= */

h2 {

    font-size: 1.7rem;

    margin-top: 34px;

    margin-bottom: 18px;

    color: var(--text-main);

    border-bottom: 1px solid var(--border-color);

    padding-bottom: 10px;

    line-height: 1.25;
}


.nav-card h3 {

    margin-top: 0;

    margin-bottom: 10px;

    font-size: 1.35rem;

    color: var(--text-main);

    line-height: 1.3;
}


/* =========================================================
   12. ENLACES
   ========================================================= */

a {

    color: var(--brand-blue);

    transition:
        color 0.2s ease;
}


a:hover {

    color: var(--hover-blue);
}


/* =========================================================
   13. BOTÓN PRINCIPAL
   ========================================================= */

.btn {

    display: inline-block;

    background-color: var(--brand-navy);

    color: var(--text-on-dark);

    padding: 11px 21px;

    border-radius: var(--radius-small);

    text-decoration: none;

    font-weight: 700;

    font-size: 0.95rem;

    text-transform: uppercase;

    letter-spacing: 0.2px;

    border: 1px solid transparent;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.btn:hover {

    background-color: var(--brand-blue);

    color: var(--brand-navy);

    transform: translateY(-1px);
}


/* =========================================================
   14. BOTÓN PRIMARIO STREFLIX
   ========================================================= */

.btn-primary {

    background-color: var(--brand-blue);

    color: var(--brand-navy);

    border-color: var(--brand-blue);
}


.btn-primary:hover {

    background-color: var(--hover-blue);

    color: var(--brand-navy);
}


/* =========================================================
   15. BOTÓN SECUNDARIO
   ========================================================= */

.btn-secondary {

    background-color: transparent;

    color: var(--brand-navy);

    border: 1px solid var(--brand-navy);
}


.btn-secondary:hover {

    background-color: var(--brand-navy);

    color: var(--text-on-dark);
}


/* =========================================================
   16. BOTÓN SOBRE FONDO OSCURO
   ========================================================= */

.btn-dark {

    background-color: var(--surface-color);

    color: var(--brand-navy);

    border-color: var(--surface-color);
}


.btn-dark:hover {

    background-color: var(--brand-blue);

    color: var(--brand-navy);

    border-color: var(--brand-blue);
}


/* =========================================================
   17. ELEMENTOS DE PROPIEDAD DIGITAL
   ========================================================= */

.digital-property {

    border-left: 3px solid var(--brand-blue);

    padding-left: 18px;

    margin: 24px 0;
}


.digital-property strong {

    color: var(--brand-navy);
}


/* =========================================================
   18. CATEGORÍAS / ETIQUETAS
   ========================================================= */

.category {

    color: var(--brand-blue);

    font-size: 0.78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* =========================================================
   19. INFORMACIÓN SECUNDARIA
   ========================================================= */

.meta {

    color: var(--text-secondary);

    font-size: 0.88rem;

    line-height: 1.5;
}


/* =========================================================
   20. BLOQUES OSCUROS
   ========================================================= */

.dark-section {

    background-color: var(--brand-navy);

    color: var(--text-on-dark);

    border-radius: var(--radius-large);

    padding: 30px;

    margin-bottom: 24px;
}


.dark-section h2,
.dark-section h3 {

    color: var(--text-on-dark);
}


.dark-section p {

    color: #D5DEE8;
}


/* =========================================================
   21. ELEMENTOS DESTACADOS
   ========================================================= */

.highlight {

    color: var(--brand-blue);

    font-weight: 700;
}


/* =========================================================
   22. FOOTER
   ========================================================= */

.site-footer {

    text-align: center;

    border-top: 2px solid var(--brand-gold);
    border-bottom: 2px solid var(--brand-gold);

    padding: 25px 20px;

    color: var(--text-secondary);

    font-size: 0.9rem;

    line-height: 1.6;
}


.site-footer h3 {

    color: #1A2E40;

    margin-top: 0;
}


.site-footer p {

    color: #475569;
}


.site-footer a {

    color: var(--brand-gold);

    font-weight: 700;

    text-decoration: none;
}


.site-footer a:hover {

    color: var(--hover-gold);

    text-decoration: underline;
}


.footer-legal {

    font-size: 0.85rem;

    margin-top: 15px;
}


/* =========================================================
   23. SEPARADORES
   ========================================================= */

hr {

    border: 0;

    border-top: 1px solid var(--border-color);

    margin: 30px 0;
}


/* =========================================================
   24. SELECCIÓN DE TEXTO
   ========================================================= */

::selection {

    background-color: rgba(53, 180, 240, 0.25);

    color: var(--brand-navy);
}


/* =========================================================
   25. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 768px) {

    .wrapper {

        padding-left: 16px;

        padding-right: 16px;
    }


    .site-header {

        padding-top: 14px;

        padding-bottom: 14px;

        padding-left: 16px;

        padding-right: 16px;

        margin-bottom: 22px;

        border-radius: 0;

        flex-direction: column;

        justify-content: center;

        gap: 12px;
    }


    .site-brand {

        text-align: center;
    }


    .site-header h1 {

        font-size: 1.5rem;

        justify-content: center;
    }


    .slogan {

        text-align: center;
    }


    .main-nav {

        justify-content: center;

        gap: 6px;

        flex-wrap: wrap;
    }


    .main-nav a {

        font-size: 15px;

        padding: 7px 9px;
    }


    .main-nav a.nav-contact {

        margin-left: 2px;
    }


    .hero-banner {

        height: 210px;
    }


    .intro-card,
    .nav-card,
    .site-footer {

        padding: 23px;
    }


    h2 {

        font-size: 1.5rem;
    }
}


/* =========================================================
   26. RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 520px) {

    body {

        font-size: 15px;
    }


    .wrapper {

        padding-left: 12px;

        padding-right: 12px;

        padding-bottom: 20px;
    }


    .site-header {

        border-radius: 0;

        padding: 13px 12px 12px 12px;

        gap: 11px;
    }


    .site-header h1 {

        font-size: 1.38rem;

        flex-wrap: nowrap;
    }


    .brand-icon-substitute {

        height: 24px;
    }


    .academy-text {

        margin-left: 0.36em;
    }


    .slogan {

        font-size: 0.65rem;

        letter-spacing: 0.58px;

        margin-bottom: 0;
    }


    .main-nav {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 5px 8px;

        width: 100%;

        padding-top: 2px;

        border-top:
            1px solid rgba(197, 168, 128, 0.18);
    }


    .main-nav a {

        font-size: 14.5px;

        padding: 8px 5px;

        text-align: center;

        white-space: normal;

        border-radius: 4px;
    }


    .main-nav a.nav-contact {

        margin-left: 0;

        padding-left: 5px;

        padding-right: 5px;
    }


    .hero-banner {

        height: 140px;

        border-bottom-width: 3px;

        margin-bottom: 20px;
    }


    .intro-card,
    .nav-card,
    .site-footer {

        padding: 20px;

        margin-bottom: 18px;

        border-radius: var(--radius-medium);
    }


    .intro-card p,
    .nav-card p {

        font-size: 1rem;

        line-height: 1.7;
    }


    h2 {

        font-size: 1.4rem;

        margin-top: 26px;
    }


    .nav-card h3 {

        font-size: 1.2rem;
    }


    .btn {

        width: 100%;

        text-align: center;

        padding: 11px 16px;
    }


    .digital-property {

        padding-left: 14px;
    }
}




/* =========================================================
   28. BLOG STREFLIX V2 — ÍNDICE EDITORIAL
   Sistema visual maestro de publicaciones
   ========================================================= */

/* ---------- Presentación ---------- */

.blog-intro {
    max-width: 720px;
    margin-bottom: 34px;
}

.blog-intro h2 {
    margin-bottom: 10px;
}

.blog-intro p {
    margin: 0;
    line-height: 1.65;
}


/* ---------- Grilla ---------- */

.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}


/* ---------- Tarjeta ---------- */

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;

    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

@media (hover: hover) {

    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-medium);
    }
}


/* ---------- Imagen ---------- */

.blog-card-image-link {
    display: block;
    overflow: hidden;
    background: var(--bg-color);
}

.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition: transform 0.3s ease;
}

@media (hover: hover) {

    .blog-card:hover .blog-card-image {
        transform: scale(1.025);
    }
}


/* ---------- Contenido ---------- */

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 22px;
}


/* ---------- Metadatos ---------- */

.blog-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    min-height: 46px;
    margin-bottom: 11px;
}

.blog-card-category {
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.blog-card-date {
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.blog-card-separator {
    display: none;
}


/* ---------- Título ---------- */

.blog-card h3 {
    margin: 0 0 11px 0;
    line-height: 1.3;
    font-size: 1.08rem;
}

.blog-card h3 a {
    color: var(--text-main);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--brand-blue);
}


/* ---------- Descripción ---------- */

.blog-card-description {
    margin: 0 0 20px 0;

    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.92rem;

    max-height: 4.8em;
    overflow: hidden;
}


/* ---------- Acceso de lectura ---------- */

.blog-card-read {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin-top: auto;

    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-card-read:hover {
    color: var(--brand-blue);
}

.blog-card-read span {
    display: inline-block;
    margin-left: 6px;

    transition: transform 0.2s ease;
}

@media (hover: hover) {

    .blog-card-read:hover span {
        transform: translateX(3px);
    }
}


/* ---------- Estados ---------- */

.blog-empty,
.blog-error {
    grid-column: 1 / -1;

    padding: 24px;

    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
}

.blog-error {
    color: #B3261E;
}


/* =========================================================
   29. BLOG STREFLIX V2 — RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {

    .blog-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 560px) {

    .blog-intro {
        margin-bottom: 26px;
    }

    .blog-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-content {
        padding: 18px 18px 20px;
    }

    .blog-card h3 {
        font-size: 1.05rem;
    }

    .blog-card-description {
        max-height: 3.2em;
    }
}




/* =========================================================
   30. SISTEMA MAESTRO DE PUBLICACIONES — STREFLIX
   Lectura editorial de artículos individuales
   ========================================================= */

.article-container {
    max-width: 820px;
    margin: 0 auto;
}

.article-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
}

.article-header {
    margin-bottom: 28px;
}

.article-header .category {
    display: block;
    margin-bottom: 12px;
}


/* ---------- Identidad de series editoriales ---------- */

.article-series {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 16px 0;
}

.article-series-name {
    color: var(--brand-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.article-series-position {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.4;
}

.article-header h1 {
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta strong {
    color: var(--text-main);
    font-weight: 700;
}

.article-meta span {
    color: var(--text-secondary);
}

.article-lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.article-featured-image {
    margin: 30px 0 34px 0;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-featured-image figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.article-body h2 {
    margin-top: 36px;
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 20px;
    line-height: 1.75;
}

.article-conclusion {
    margin-top: 34px;
    padding: 22px;
    border-left: 3px solid var(--brand-blue);
    background: var(--bg-color);
    border-radius: 0 8px 8px 0;
}

.article-back {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 520px) {

    .article-card {
        padding: 22px 18px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.85rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-body p {
        line-height: 1.7;
    }
}


/* =========================================================
   27. ACCESIBILIDAD — REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   31. INICIO (.PAGE-HOME) — INTEGRACIÓN HEADER + HERO
       El header panorámico ya es global.
       Aquí permanece únicamente la continuidad exclusiva de Inicio.
   ========================================================= */

.page-home .site-header {
    margin-bottom: 0;
}


/* Hero contenido e integrado directamente al pie del header */
.page-home .hero-banner {
    height: 270px;

    margin-top: 0;
    margin-bottom: 28px;

    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;

    border-bottom: 3px solid var(--brand-gold);

    box-shadow: 0 8px 24px rgba(16, 26, 51, 0.09);
}


/* ---------------------------------------------------------
   INICIO — TABLET (<= 768px)
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .page-home .site-header {
        margin-bottom: 0;
    }


    .page-home .hero-banner {
        height: 225px;

        margin-top: 0;

        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;

        border-bottom: 3px solid var(--brand-gold);
    }
}


/* ---------------------------------------------------------
   INICIO — MÓVIL (<= 520px)
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .page-home .site-header {
        margin-bottom: 0;
    }


    .page-home .hero-banner {
        height: 155px;

        margin-top: 0;
        margin-bottom: 20px;

        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;

        border-bottom-width: 3px;
    }
}
