/*
Theme Name: API Theme
Theme URI: https://agustinpimentel.com
Author: Agustín Pimentel
Description: Tema propio, ligero y modular para la web personal de Agustín Pimentel.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: agustinpimentel
*/


/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 01: VARIABLES GLOBALES
   Función: definir los valores generales del diseño.
   ================================================== */

:root {

    /* 01.1 — PALETA DE COLORES PRINCIPAL */

    --color-white: #FFFFFF;
    --color-black: #111318;
    --color-blue: #102B59;
    --color-gray: #F5F6F8;


    /* 01.2 — COLORES DE TEXTO */

    --color-text: #252830;
    --color-muted: #707782;
    --color-heading: #111318;


    /* 01.3 — COLORES DE INTERFAZ */

    --color-border: #E5E7EB;
    --color-background: #FFFFFF;
    --color-background-soft: #F5F6F8;


    /* 01.4 — TIPOGRAFÍA */

    --font-primary: Arial, Helvetica, sans-serif;


    /* 01.5 — CONTENEDORES */

    --container-width: 1200px;
    --container-padding: 24px;


    /* 01.6 — ESPACIADO */

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;


    /* 01.7 — BORDES */

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;


    /* 01.8 — TRANSICIONES */

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

}


/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 02: RESET Y ESTILOS BASE
   Función: establecer una base visual coherente.
   ================================================== */


/* 02.1 — MODELO DE CAJA */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* 02.2 — CONFIGURACIÓN GENERAL */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
}


/* 02.3 — ELIMINAR MÁRGENES PREDETERMINADOS */

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
    margin-top: 0;
}


/* 02.4 — IMÁGENES Y ELEMENTOS MULTIMEDIA */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}


img {
    height: auto;
}


/* 02.5 — FORMULARIOS Y BOTONES */

button,
input,
select,
textarea {
    font: inherit;
}


/* 02.6 — ENLACES */

a {
    color: inherit;
    text-decoration: none;
}


/* 02.7 — LISTAS */

ul,
ol {
    padding-left: 1.5em;
}


/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 03: TIPOGRAFÍA
   Función: definir la jerarquía tipográfica del sitio.
   ================================================== */


/* 03.1 — TÍTULOS GENERALES */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}


/* 03.2 — TAMAÑOS DE TÍTULOS */

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}


/* 03.3 — PÁRRAFOS */

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}


/* 03.4 — TEXTO SECUNDARIO */

small {
    font-size: 0.875rem;
    color: var(--color-muted);
}


/* 03.5 — TEXTO DESTACADO */

strong,
b {
    font-weight: 700;
}


/* 03.6 — TEXTO EN CURSIVA */

em,
i {
    font-style: italic;
}


/* 03.7 — CITAS */

blockquote {
    margin-right: 0;
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-blue);
    color: var(--color-muted);
    font-size: 1.1rem;
    font-style: italic;
}



/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 04: ESTRUCTURA GLOBAL
   Función: definir los contenedores y la distribución
   general del contenido del sitio.
   ================================================== */


/* 04.1 — CONTENEDOR PRINCIPAL */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}


/* 04.2 — CONTENEDOR DE CONTENIDO */

.content-wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* 04.3 — SECCIONES GENERALES */

.section {
    width: 100%;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}


/* 04.4 — ESPACIADO ENTRE SECCIONES */

.section + .section {
    padding-top: 0;
}


/* 04.5 — CONTENEDOR DE ANCHO REDUCIDO */

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}


/* 04.6 — CONTENEDOR DE ANCHO AMPLIO */

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}


/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 05: CABECERA
   Función: definir la apariencia de la cabecera
   principal del sitio.
   ================================================== */


/* 05.1 — ESTRUCTURA DE LA CABECERA */

.site-header {
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}


/* 05.2 — CONTENEDOR INTERIOR */

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}


/* 05.3 — IDENTIDAD DE MARCA */

.site-brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    transition: color var(--transition-fast);
}


/* 05.4 — INTERACCIÓN DE MARCA */

.site-brand:hover {
    color: var(--color-blue);
}


/* 05.5 — ENFOQUE DE TECLADO */

.site-brand:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 4px;
}



/* ==================================================
   06. BOTONES
   ================================================== */

/* Botón base */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

/* Botón principal */

.button-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.button-primary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Botón secundario */

.button-secondary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.button-secondary:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* Botón con contorno */

.button-outline {
    background-color: transparent;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.button-outline:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* Estados de interacción */

.button:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
}

.button:active {
    transform: translateY(1px);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 07: PORTADA
   Función: definir los estilos de la sección
   principal de bienvenida del sitio.
   ================================================== */


/* 07.1 — ESTRUCTURA PRINCIPAL */

.hero {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--color-white);
}


/* 07.2 — CONTENEDOR INTERIOR */

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--container-width);
}


/* 07.3 — TEXTO INTRODUCTORIO */

.hero-eyebrow {
    margin-bottom: var(--spacing-sm);
    color: var(--color-blue);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* 07.4 — TÍTULO PRINCIPAL */

.hero-title {
    max-width: 900px;
    margin-bottom: var(--spacing-md);
    color: var(--color-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}


/* 07.5 — DESCRIPCIÓN */

.hero-description {
    max-width: 680px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-muted);
    font-size: 1.2rem;
    line-height: 1.7;
}


/* 07.6 — ACCIONES DE PORTADA */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}


/* 07.7 — DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .hero {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero-title {
        font-size: clamp(2.25rem, 9vw, 3.5rem);
    }

    .hero-description {
        font-size: 1.05rem;
    }

}


@media (max-width: 480px) {

    .hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
    }

}



/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 08: CONTENIDO
   Función: definir los estilos de las entradas,
   páginas y contenidos editoriales.
   ================================================== */


/* 08.1 — CONTENEDOR DEL ARTÍCULO */

.entry-content {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* 08.2 — TÍTULO DE LA ENTRADA */

.entry-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}


/* 08.3 — METADATOS DE LA ENTRADA */

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--color-muted);
    font-size: 0.875rem;
}


/* 08.4 — TEXTO DEL CONTENIDO */

.entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}


/* 08.5 — TÍTULOS DENTRO DEL CONTENIDO */

.entry-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
}

.entry-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.375rem;
}


/* 08.6 — ENLACES DEL CONTENIDO */

.entry-content a {
    color: var(--color-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--color-black);
}


/* 08.7 — IMÁGENES DEL CONTENIDO */

.entry-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: var(--spacing-lg) auto;
    border-radius: var(--border-radius-md);
}


/* 08.8 — LISTAS DEL CONTENIDO */

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}


/* 08.9 — SEPARADORES */

.entry-content hr {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 0;
    border-top: 1px solid var(--color-border);
}


/* 08.10 — DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .entry-content p {
        font-size: 1rem;
    }

    .entry-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

}



/* ==================================================
   09. TARJETAS
   ================================================== */

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

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal),
                transform var(--transition-normal);
}

/* Imagen de la tarjeta
   -------------------------------------------------- */

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-background-soft);
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido de la tarjeta
   -------------------------------------------------- */

.card-content {
    padding: var(--spacing-md);
}

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

.card-title {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-heading);
    font-size: 1.25rem;
    line-height: 1.4;
}

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

.card-description {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    color: var(--color-muted);
    font-size: 0.8125rem;
}

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

.card-interactive {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--transition-normal),
                transform var(--transition-normal);
}

.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17, 19, 24, 0.08);
}

.card-interactive:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 4px;
}

/* Responsive
   -------------------------------------------------- */

@media (max-width: 768px) {

    .card-content {
        padding: var(--spacing-sm);
    }

    .card-title {
        font-size: 1.125rem;
    }

}


/* ==================================================
   10. SIDEBAR
   ================================================== */

/* 10.1 — ESTRUCTURA GENERAL */

.sidebar {
    width: 100%;
    min-width: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
}

/* 10.2 — BLOQUES DE LA SIDEBAR */

.sidebar-widget {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* 10.3 — TÍTULOS DE LOS BLOQUES */

.sidebar-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

/* 10.4 — TEXTO Y DESCRIPCIONES */

.sidebar-widget p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* 10.5 — LISTAS */

.sidebar-widget ul,
.sidebar-widget ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* 10.6 — ENLACES */

.sidebar-widget a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-widget a:hover {
    color: var(--color-blue);
}

.sidebar-widget a:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

/* 10.7 — DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .sidebar-widget {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

}


/* =========================================
   11. FOOTER
   ========================================= */

.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.site-footer .container {
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-brand {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.footer-description {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: var(--spacing-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 768px) {
    .site-footer {
        padding-top: var(--spacing-lg);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-links {
        gap: var(--spacing-sm);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* =========================================
   12. FORMULARIOS
   ========================================= */

/* 12.1 — CAMPOS DE FORMULARIO */

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* 12.2 — ÁREA DE TEXTO */

textarea {
    min-height: 140px;
    resize: vertical;
}

/* 12.3 — LISTAS DESPLEGABLES */

select {
    cursor: pointer;
}

/* 12.4 — TEXTO DE REFERENCIA */

input::placeholder,
textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

/* 12.5 — ESTADOS DE INTERACCIÓN */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(16, 43, 89, 0.1);
}

/* 12.6 — ETIQUETAS */

label {
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-heading);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* 12.7 — CASILLAS Y OPCIONES */

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 6px;
    accent-color: var(--color-blue);
    cursor: pointer;
}

/* 12.8 — CAMPOS DESACTIVADOS */

input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--color-background-soft);
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 12.9 — DISEÑO RESPONSIVE */

@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}


/* =========================================
   13. RESPONSIVE
   ========================================= */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {

    .container,
    .container-wide {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* Móviles y tablets pequeñas */
@media (max-width: 768px) {

    .container,
    .container-narrow,
    .container-wide {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    iframe {
        max-width: 100%;
    }

}

/* Móviles pequeños */
@media (max-width: 480px) {

    .container,
    .container-narrow,
    .container-wide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

}


/* =========================================
   14. ACCESIBILIDAD
   ========================================= */


/* 14.1 — ENFOQUE VISIBLE CON TECLADO */

:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
}


/* 14.2 — EVITAR ANIMACIONES INNECESARIAS */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* 14.3 — TEXTO SELECCIONADO */

::selection {
    background-color: var(--color-blue);
    color: var(--color-white);
}


/* 14.4 — CONTENIDO OCULTO VISUALMENTE,
   PERO DISPONIBLE PARA LECTORES DE PANTALLA */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* 14.5 — RESTAURAR VISIBILIDAD AL RECIBIR FOCO */

.screen-reader-text:focus,
.screen-reader-text:active {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}




/* ==================================================
   API THEME — AGUSTÍN PIMENTEL
   BLOQUE 15: HERO PRINCIPAL DE LA PORTADA
   Función: crear la presentación visual principal
   de la página de inicio.
   ================================================== */


/* 15.1 — ESTRUCTURA GENERAL */

.hero-home {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 96px 0;
    background-color: var(--color-black);
    color: var(--color-white);
}


/* 15.2 — CONTENEDOR INTERIOR */

.hero-home__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}


/* 15.3 — CONTENIDO TEXTUAL */

.hero-home__content {
    max-width: 650px;
}


/* 15.4 — TEXTO SUPERIOR */

.hero-home__eyebrow {
    margin-bottom: var(--spacing-md);
    color: #A9BBD7;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* 15.5 — TÍTULO PRINCIPAL */

.hero-home__title {
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}


/* 15.6 — DESCRIPCIÓN */

.hero-home__description {
    max-width: 580px;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
    line-height: 1.8;
}


/* 15.7 — BOTONES */

.hero-home__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}


/* Botón secundario para fondo oscuro */

.hero-home__button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius-md);
    background-color: transparent;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.hero-home__button-secondary:hover {
    border-color: var(--color-white);
    background-color: var(--color-white);
    color: var(--color-black);
}

.hero-home__button-secondary:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 3px;
}


/* 15.8 — IMAGEN PRINCIPAL */

.hero-home__media {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background-color: #20232B;
}

.hero-home__media img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}


/* 15.9 — DISEÑO RESPONSIVE */

@media (max-width: 900px) {

    .hero-home {
        padding: 80px 0;
    }

    .hero-home__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-home__content {
        max-width: 750px;
    }

    .hero-home__media {
        max-width: 700px;
    }

}


@media (max-width: 768px) {

    .hero-home {
        padding: 64px 0;
    }

    .hero-home__container {
        gap: 32px;
    }

    .hero-home__title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-home__description {
        font-size: 1.05rem;
    }

}


@media (max-width: 480px) {

    .hero-home {
        padding: 52px 0;
    }

    .hero-home__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-home__actions .button,
    .hero-home__button-secondary {
        width: 100%;
    }

}



/* ==========================================================
   16. HERO VISUAL — ESCENA DE DESARROLLO CON IA
   ========================================================== */

.hero-home__visual {
    position: relative;
    width: 100%;
    min-width: 0;
    perspective: 1200px;
}

.dev-scene {
    position: relative;
    width: 100%;
    min-height: 480px;
    isolation: isolate;
}

/* Luz ambiental */

.dev-scene__glow {
    position: absolute;
    z-index: -1;
    top: 12%;
    right: 5%;
    width: 80%;
    height: 75%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(39, 91, 170, 0.24) 0%,
        rgba(62, 55, 145, 0.12) 42%,
        transparent 72%
    );
    filter: blur(35px);
}

/* Ventana principal de código */

.dev-window {
    position: absolute;
    top: 5%;
    right: 2%;
    width: 88%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: #171B24;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    transform: rotateY(-5deg) rotateX(2deg);
}

.dev-window__header,
.dev-terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #202530;
}

.dev-window__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-window__dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #657080;
}

.dev-window__dots span:first-child {
    background: #F07178;
}

.dev-window__dots span:nth-child(2) {
    background: #E5B567;
}

.dev-window__dots span:nth-child(3) {
    background: #71C99B;
}

.dev-window__filename {
    color: #AAB4C3;
    font-family: monospace;
    font-size: 11px;
}

.dev-window__status {
    color: #75CDA0;
    font-size: 10px;
}

.dev-window__body {
    padding: 25px 22px 28px;
    color: #C6D0DF;
    font-family: "Courier New", monospace;
    font-size: clamp(10px, 1vw, 13px);
    line-height: 2;
}

.dev-window__body p {
    margin: 0;
    white-space: nowrap;
}

.dev-window__body .code-muted {
    color: #68778C;
}

.dev-window__body .code-purple {
    color: #C4A5F5;
}

.dev-window__body .code-blue {
    color: #82B9F2;
}

.dev-window__body .code-yellow {
    color: #E8CB83;
}

.dev-window__body .code-green {
    color: #8DD5A9;
}

.dev-window__body .code-orange {
    color: #E9A879;
}

/* Terminal */

.dev-terminal {
    position: absolute;
    z-index: 2;
    bottom: 5%;
    left: -3%;
    width: 67%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: #0D1118;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.dev-terminal__header {
    min-height: 35px;
    padding: 0 13px;
    background: #171C25;
}

.dev-terminal__title {
    color: #9BA9BC;
    font-family: monospace;
    font-size: 10px;
}

.dev-terminal__body {
    padding: 17px 18px 20px;
    color: #A8B7C9;
    font-family: "Courier New", monospace;
    font-size: 11px;
    line-height: 1.9;
}

.dev-terminal__body p {
    margin: 0;
}

.dev-terminal__prompt {
    color: #82CDA1;
}

.dev-terminal__command {
    color: #E0E8F2;
}

.dev-terminal__success {
    color: #78C99B;
}

.dev-terminal__cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    margin-left: 4px;
    vertical-align: middle;
    background: #83B8F4;
    animation: dev-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes dev-cursor-blink {
    to {
        visibility: hidden;
    }
}

/* Panel del agente IA */

.dev-agent {
    position: absolute;
    z-index: 3;
    right: -1%;
    bottom: 17%;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 205px;
    padding: 14px 16px;
    border: 1px solid rgba(133, 174, 235, 0.25);
    border-radius: 10px;
    background: rgba(29, 39, 56, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.dev-agent__icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(135, 180, 245, 0.3);
    border-radius: 9px;
    background: rgba(78, 119, 190, 0.2);
    color: #A9C9FA;
    font-size: 17px;
}

.dev-agent__content {
    min-width: 0;
}

.dev-agent__title {
    display: block;
    margin-bottom: 3px;
    color: #EDF3FC;
    font-size: 11px;
    font-weight: 700;
}

.dev-agent__status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9DAEC5;
    font-size: 9px;
}

.dev-agent__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #70D39D;
    box-shadow: 0 0 9px rgba(112, 211, 157, 0.65);
}

/* Etiqueta inferior */

.dev-scene__label {
    position: absolute;
    right: 5%;
    bottom: -2%;
    color: rgba(207, 220, 240, 0.48);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Adaptación para pantallas medianas */

@media (max-width: 900px) {
    .dev-scene {
        min-height: 450px;
        max-width: 700px;
    }

    .dev-window {
        right: 4%;
        width: 85%;
    }

    .dev-terminal {
        left: 0;
        width: 65%;
    }

    .dev-agent {
        right: 0;
    }
}

/* Adaptación para móviles */

@media (max-width: 600px) {
    .dev-scene {
        min-height: 360px;
    }

    .dev-window {
        top: 4%;
        right: 0;
        width: 96%;
        transform: none;
    }

    .dev-window__body {
        padding: 17px 13px 20px;
        font-size: 10px;
        line-height: 1.8;
    }

    .dev-terminal {
        bottom: 3%;
        left: 0;
        width: 75%;
    }

    .dev-terminal__body {
        padding: 12px;
        font-size: 9px;
    }

    .dev-agent {
        right: 0;
        bottom: 18%;
        max-width: 175px;
        padding: 10px;
        gap: 8px;
    }

    .dev-agent__icon {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }

    .dev-agent__title {
        font-size: 10px;
    }

    .dev-scene__label {
        display: none;
    }
}

/* Accesibilidad: reducir movimiento */

@media (prefers-reduced-motion: reduce) {
    .dev-terminal__cursor {
        animation: none;
    }
}


/* ==================================================
   17. API THEME — PÁGINA INDIVIDUAL DE PROYECTOS
   Estilos para single-proyecto.php
   ================================================== */

.single-project {
    background-color: var(--color-white);
}

.project-header {
    padding-top: clamp(64px, 9vw, 112px);
    padding-bottom: clamp(40px, 6vw, 72px);
    text-align: center;
}

.project-header .container-narrow {
    max-width: 860px;
}

.project-back-link {
    display: inline-block;
    margin-bottom: 36px;
    color: var(--color-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.project-back-link:hover {
    color: var(--color-blue);
}

.project-back-link:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 4px;
}

.project-eyebrow {
    margin-bottom: 16px;
    color: var(--color-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-title {
    margin-bottom: 22px;
    color: var(--color-heading);
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.project-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.project-intro p:last-child {
    margin-bottom: 0;
}

.project-featured-image {
    max-width: 1120px;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.project-featured-image__img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
}

.project-content {
    padding-bottom: clamp(64px, 9vw, 112px);
}

.project-content .entry-content {
    max-width: 760px;
}

.project-navigation {
    max-width: 760px;
    margin: 56px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .project-header {
        padding-top: 56px;
        padding-bottom: 36px;
    }

    .project-back-link {
        margin-bottom: 28px;
    }

    .project-featured-image {
        margin-bottom: 40px;
    }

    .project-featured-image__img {
        border-radius: var(--border-radius-md);
    }

    .project-navigation {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .project-navigation .button {
        width: 100%;
    }
}


/* =========================================================
   18. API HOME — secciones inferiores de la portada
   ========================================================= */
.api-section { padding: 88px 0; }
.api-kicker { margin: 0 0 12px; color: #102B59; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.api-section h2, .api-about h2, .api-explore h2 { margin: 0; color: #111318; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.api-about { background: #F5F6F8; }
.api-about__grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.api-about__photo { max-width: 470px; overflow: hidden; border-radius: 4px; }
.api-about__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.api-about__copy p:not(.api-kicker) { max-width: 650px; color: #555D68; font-size: 16px; line-height: 1.85; }
.api-section-heading { margin-bottom: 32px; }
.api-section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.api-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.api-area-card { position: relative; display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; padding: 26px; color: #111318; text-decoration: none; background: #F5F6F8; border: 1px solid #E5E7EB; transition: transform .2s ease, border-color .2s ease; }
.api-area-card:hover { transform: translateY(-4px); border-color: #102B59; }
.api-area-card h3 { max-width: 230px; margin: 24px 0 10px; font-size: 20px; line-height: 1.25; }
.api-area-card p, .api-section-intro { margin: 0; color: #707782; font-size: 14px; line-height: 1.65; }
.api-area-card__arrow { align-self: flex-end; color: #102B59; font-size: 20px; }
.api-text-link { display: inline-block; color: #102B59; font-size: 13px; font-weight: 700; text-decoration: none; }
.api-text-link:hover { text-decoration: underline; }
/* Articulos de portada: tres tarjetas iguales y alineadas */
.api-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.api-post-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
}
.api-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F5F6F8;
}
.api-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}
.api-post-card__image:hover img { transform: scale(1.03); }
.api-post-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #707782;
}
.api-post-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}
.api-post-card__meta { margin: 0 0 9px; color: #707782; font-size: 12px; }
.api-post-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.api-post-card h3 a { color: #111318; text-decoration: none; }
.api-post-card__body > p:not(.api-post-card__meta) {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: #707782;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.api-post-card__body .api-text-link { margin-top: auto; padding-top: 6px; }
.api-project-card { min-width: 0; background: #fff; border: 1px solid #E5E7EB; }
.api-project-card__image { display: block; overflow: hidden; background: #F5F6F8; }
.api-project-card__image img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .3s ease; }
.api-project-card__image:hover img { transform: scale(1.03); }
.api-project-card__body { padding: 22px; }
.api-project-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.api-project-card h3 a { color: #111318; text-decoration: none; }
.api-project-card__body > p { color: #707782; font-size: 14px; line-height: 1.65; }
.api-project-card__body .api-text-link { margin-top: 8px; }
.api-projects { background: #F5F6F8; }
.api-section-intro { margin: -16px 0 28px; }
.api-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.api-empty-state { padding: 28px; color: #707782; background: #F5F6F8; border: 1px dashed #D5D9E0; }
.api-explore { padding: 64px 0; background: #fff; }
.api-explore__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.api-explore__inner > div { max-width: 720px; }
.api-explore h2 { font-size: clamp(26px, 3vw, 36px); }
.api-explore p { margin: 14px 0 0; color: #707782; line-height: 1.7; }
.api-explore__button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; color: #fff; background: #111318; text-decoration: none; font-size: 14px; font-weight: 700; }
.api-explore__button:hover { background: #102B59; }
@media (max-width: 900px) {
    .api-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .api-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .api-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .api-section { padding: 60px 0; }
    .api-about__grid { grid-template-columns: 1fr; gap: 28px; }
    .api-about__photo { max-width: 100%; }
    .api-section-heading--row, .api-explore__inner { align-items: flex-start; flex-direction: column; }
    .api-area-grid, .api-project-grid { grid-template-columns: 1fr; }
    .api-post-grid { grid-template-columns: 1fr; }
    .api-post-card__image { aspect-ratio: 16 / 9; }
    .api-post-card__body { padding: 20px; }
    .api-area-card { min-height: 170px; }
    .api-explore__button { width: 100%; }
}

/* =========================================================
   BLOQUE 18: ARTICULO INDIVIDUAL
   Recupera la maquetacion editorial de single.php
   ========================================================= */
.api-single-post {
    width: 100%;
    padding: 44px 24px 80px;
    background: #fff;
}

.api-reading-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.api-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 32px;
    color: #707782;
    font-size: 13px;
    line-height: 1.5;
}
.api-breadcrumb a { color: #102B59; text-decoration: none; }
.api-breadcrumb a:hover { text-decoration: underline; }

.api-article-header {
    max-width: 900px;
    margin: 0 0 28px;
}
.api-article-category {
    margin: 0 0 12px;
    color: #102B59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.api-article-header h1 {
    margin: 0 0 16px;
    color: #111318;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}
.api-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #707782;
    font-size: 13px;
}
.api-article-excerpt {
    max-width: 760px;
    margin: 18px 0 0;
    color: #525966;
    font-size: 18px;
    line-height: 1.65;
}

.api-article-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 0 42px;
}
.api-article-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.api-article-layout {
    width: 100%;
    max-width: 760px;
}
.api-article-content {
    color: #252830;
    font-size: 17px;
    line-height: 1.85;
}
.api-article-content > * { max-width: 100%; }
.api-article-content h2,
.api-article-content h3,
.api-article-content h4 {
    margin: 1.8em 0 .7em;
    color: #111318;
    line-height: 1.25;
}
.api-article-content p { margin: 0 0 1.25em; }
.api-article-content img { max-width: 100%; height: auto; }

.api-article-footer {
    max-width: 760px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}
.api-article-tags { margin-bottom: 24px; color: #707782; font-size: 13px; }
.api-post-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.api-post-navigation a { color: #102B59; text-decoration: none; font-weight: 600; }
.api-post-navigation a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .api-single-post { padding: 28px 20px 56px; }
    .api-breadcrumb { margin-bottom: 24px; font-size: 12px; }
    .api-article-header h1 { font-size: clamp(29px, 8vw, 38px); }
    .api-article-excerpt { font-size: 16px; }
    .api-article-featured-image { margin-bottom: 30px; }
    .api-article-content { font-size: 16px; }
}



/* ==========================================================
   BLOQUE 18: SISTEMA DE COMPONENTES EDITORIALES
   Función: definir los estilos visuales reutilizables
   de los artículos del blog.
   Ámbito: exclusivamente #api-articulo-ia.
   ========================================================== */


/* ----------------------------------------------------------
   18.1 VARIABLES Y CONFIGURACIÓN GENERAL
   ---------------------------------------------------------- */

#api-articulo-ia {
    --api-ink: #17212b;
    --api-muted: #637181;
    --api-accent: #8b6cf0;
    --api-accent-dark: #6044c7;
    --api-soft: #f4f1ff;
    --api-line: #e7e9ef;
    --api-card: #ffffff;

    color: var(--api-ink);
    font-family: inherit;
    font-size: 17px;
    line-height: 1.78;
    max-width: 900px;
    margin: 0 auto;
}

#api-articulo-ia * {
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   18.2 PÁRRAFOS Y TEXTO GENERAL
   ---------------------------------------------------------- */

#api-articulo-ia p {
    margin: 0 0 1.25em;
}

#api-articulo-ia .api-small {
    color: var(--api-muted);
    font-size: .88rem;
}


/* ----------------------------------------------------------
   18.3 ETIQUETA INTRODUCTORIA
   ---------------------------------------------------------- */

#api-articulo-ia .api-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--api-accent-dark);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#api-articulo-ia .api-kicker:before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 2px;
    background: var(--api-accent);
}


/* ----------------------------------------------------------
   18.4 INTRODUCCIÓN DESTACADA
   ---------------------------------------------------------- */

#api-articulo-ia .api-intro {
    max-width: 780px;
    margin: 0 0 1.8em;
    color: #344252;
    font-size: 1.18em;
    line-height: 1.75;
}


/* ----------------------------------------------------------
   18.5 ENCABEZADOS DEL ARTÍCULO
   ---------------------------------------------------------- */

#api-articulo-ia h2 {
    margin: 2.45em 0 .8em;
    color: var(--api-ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}

#api-articulo-ia h3 {
    margin: 1.6em 0 .55em;
    color: var(--api-ink);
    font-size: 1.15rem;
    line-height: 1.35;
}


/* ----------------------------------------------------------
   18.6 SEPARADOR EDITORIAL
   ---------------------------------------------------------- */

#api-articulo-ia .api-rule {
    height: 1px;
    margin: 2.5em 0;
    border: 0;
    background: linear-gradient(
        90deg,
        var(--api-accent),
        var(--api-line) 75%,
        transparent
    );
}


/* ----------------------------------------------------------
   18.7 CITAS DESTACADAS
   ---------------------------------------------------------- */

#api-articulo-ia .api-quote {
    margin: 2em 0;
    padding: 25px 28px;
    border-left: 4px solid var(--api-accent);
    border-radius: 0 14px 14px 0;
    background: var(--api-soft);
    color: #302650;
    font-size: 1.12em;
    line-height: 1.65;
}

#api-articulo-ia .api-quote strong {
    color: #241b43;
}


/* ----------------------------------------------------------
   18.8 NOTAS INFORMATIVAS
   ---------------------------------------------------------- */

#api-articulo-ia .api-note {
    margin: 2em 0;
    padding: 22px 24px;
    border: 1px solid var(--api-line);
    border-radius: 14px;
    background: #fafbfc;
}

#api-articulo-ia .api-note-label {
    display: block;
    margin-bottom: 7px;
    color: var(--api-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   18.9 LISTAS VISUALES
   ---------------------------------------------------------- */

#api-articulo-ia .api-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 1.2em 0 1.8em;
    padding: 0;
    list-style: none;
}

#api-articulo-ia .api-list li {
    position: relative;
    padding: 13px 15px 13px 39px;
    border: 1px solid var(--api-line);
    border-radius: 11px;
    background: var(--api-card);
    line-height: 1.5;
}

#api-articulo-ia .api-list li:before {
    content: "";
    position: absolute;
    top: 19px;
    left: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--api-accent);
    box-shadow: 0 0 0 4px var(--api-soft);
}


/* ----------------------------------------------------------
   18.10 DIAGRAMAS Y FLUJOS DE TRABAJO
   ---------------------------------------------------------- */

#api-articulo-ia .api-flow {
    margin: 2em 0;
    padding: 24px;
    border: 1px solid var(--api-line);
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfaff, #f7f9fc);
}

#api-articulo-ia .api-flow-title {
    margin: 0 0 18px;
    color: var(--api-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#api-articulo-ia .api-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#api-articulo-ia .api-flow-step {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e5defc;
    border-radius: 13px;
    background: #fff;
}

#api-articulo-ia .api-flow-step b {
    display: block;
    margin-bottom: 5px;
    color: var(--api-accent-dark);
    font-size: .76rem;
    letter-spacing: .08em;
}

#api-articulo-ia .api-flow-step span {
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.35;
}

#api-articulo-ia .api-flow-foot {
    margin: 15px 0 0 !important;
    color: var(--api-muted);
    font-size: .85rem;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   18.11 LÍNEAS DE TIEMPO
   ---------------------------------------------------------- */

#api-articulo-ia .api-timeline {
    margin: 1.8em 0;
    padding: 0;
    border-left: 2px solid #e5defc;
    list-style: none;
}

#api-articulo-ia .api-timeline li {
    position: relative;
    margin: 0 0 18px 20px;
    padding: 0 0 2px 8px;
}

#api-articulo-ia .api-timeline li:before {
    content: "";
    position: absolute;
    top: 8px;
    left: -29px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--api-accent);
    box-shadow: 0 0 0 1px #d8cff8;
}

#api-articulo-ia .api-timeline strong {
    display: block;
    margin-bottom: 3px;
}


/* ----------------------------------------------------------
   18.12 INDICADORES DE ESTADO
   ---------------------------------------------------------- */

#api-articulo-ia .api-status {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 1.7em 0;
    padding: 19px 21px;
    border: 1px solid #dcd5fa;
    border-radius: 14px;
    background: #f8f6ff;
}

#api-articulo-ia .api-status-mark {
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
    margin-top: 8px;
    border-radius: 50%;
    background: #8061e8;
    box-shadow: 0 0 0 5px #e9e3ff;
}

#api-articulo-ia .api-status p {
    margin: 0;
}


/* ----------------------------------------------------------
   18.13 BLOQUE DE CIERRE
   ---------------------------------------------------------- */

#api-articulo-ia .api-closing {
    margin: 2.3em 0 1em;
    padding: 28px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(
        130deg,
        #211a39,
        #40316e 72%,
        #6751a9
    );
}

#api-articulo-ia .api-closing p {
    color: #f0edfa;
}

#api-articulo-ia .api-closing p:last-child {
    margin-bottom: 0;
}

#api-articulo-ia .api-closing strong {
    color: #fff;
}


/* ----------------------------------------------------------
   18.14 ADAPTACIÓN PARA DISPOSITIVOS MÓVILES
   ---------------------------------------------------------- */

@media (max-width: 640px) {

    #api-articulo-ia {
        font-size: 16px;
    }

    #api-articulo-ia .api-intro {
        font-size: 1.08em;
    }

    #api-articulo-ia .api-list {
        grid-template-columns: 1fr;
    }

    #api-articulo-ia .api-flow {
        padding: 18px;
    }

    #api-articulo-ia .api-flow-grid {
        grid-template-columns: 1fr;
    }

    #api-articulo-ia .api-flow-step {
        min-height: 0;
    }

    #api-articulo-ia .api-quote {
        padding: 20px;
    }

    #api-articulo-ia .api-closing {
        padding: 23px;
    }

}

/* FIN DEL BLOQUE 18 */



/* =========================================================
   API THEME 1.0 — ajustes de lanzamiento
   ========================================================= */
.site-header__inner { min-height: 76px; }
.site-navigation__list { display:flex; align-items:center; gap:clamp(16px,2.4vw,32px); margin:0; padding:0; list-style:none; }
.site-navigation__list a { color:#252830; text-decoration:none; font-size:14px; font-weight:600; }
.site-navigation__list a:hover, .site-navigation__list a:focus-visible { color:#102B59; }
@media (max-width:760px) { .site-header__inner { min-height:64px; flex-wrap:wrap; gap:12px; padding-top:12px; padding-bottom:12px; } .site-navigation { width:100%; overflow-x:auto; } .site-navigation__list { width:max-content; gap:20px; } }

/* Presentación personal: fotografía más compacta y equilibrada. */
.api-about__grid { grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr); gap:clamp(32px,6vw,76px); }
.api-about__photo { width:100%; max-width:420px; }
.api-about__photo img { width:100%; height:260px; aspect-ratio:auto; object-fit:cover; object-position:center 42%; border-radius:6px; }
.api-about__copy { align-self:center; }
.api-about__copy p:not(.api-kicker) { margin:0 0 14px; line-height:1.75; }
@media (max-width:640px) { .api-about__photo { max-width:100%; } .api-about__photo img { height:260px; } }

/* Category Editorial Hub: destacado + cuadrícula editorial. */
.api-topic-hub { padding:76px 0 88px; }
.api-topic-header { max-width:820px; margin:0 0 42px; }
.api-topic-header h1 { margin:0 0 14px; color:#111318; font-size:clamp(36px,5vw,58px); line-height:1.05; letter-spacing:-.045em; }
.api-topic-description { max-width:700px; margin:0; color:#626b78; font-size:17px; line-height:1.7; }
.api-topic-featured { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); gap:clamp(26px,4vw,54px); align-items:center; margin:0 0 44px; padding:0 0 42px; border-bottom:1px solid #e5e7eb; }
.api-topic-featured__media { display:block; overflow:hidden; aspect-ratio:16/10; background:#f5f6f8; border-radius:6px; }
.api-topic-featured__media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.api-topic-featured__media:hover img { transform:scale(1.025); }
.api-topic-featured__body h2 { margin:10px 0 14px; font-size:clamp(26px,3.2vw,38px); line-height:1.16; letter-spacing:-.03em; }
.api-topic-featured__body h2 a,.api-topic-card h2 a { color:#111318; text-decoration:none; }
.api-topic-featured__body h2 a:hover,.api-topic-card h2 a:hover { color:#102B59; }
.api-topic-meta { margin:0 0 10px; color:#78808b; font-size:12px; }
.api-topic-excerpt { margin:0 0 18px; color:#626b78; font-size:15px; line-height:1.7; }
.api-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 22px; align-items:stretch; }
.api-topic-card { min-width:0; display:flex; flex-direction:column; overflow:hidden; background:#fff; border:1px solid #e5e7eb; border-radius:5px; }
.api-topic-card__media { display:block; aspect-ratio:16/10; overflow:hidden; background:#f5f6f8; }
.api-topic-card__media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.api-topic-card__media:hover img { transform:scale(1.035); }
.api-topic-card__body { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:20px; }
.api-topic-card h2 { margin:0 0 10px; font-size:19px; line-height:1.3; }
.api-topic-card__body > p:not(.api-topic-meta) { display:-webkit-box; margin:0 0 16px; overflow:hidden; color:#68717d; font-size:14px; line-height:1.6; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.api-topic-card .api-text-link { margin-top:auto; }
.api-topic-placeholder { display:grid; width:100%; height:100%; place-items:center; color:#102B59; font-size:34px; font-weight:800; letter-spacing:-.06em; background:linear-gradient(135deg,#f5f6f8,#e9edf3); }
.api-pagination { margin-top:48px; }
.api-pagination .nav-links { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.api-pagination .page-numbers { display:inline-flex; min-width:40px; min-height:40px; align-items:center; justify-content:center; padding:8px 12px; border:1px solid #e5e7eb; color:#252830; text-decoration:none; }
.api-pagination .page-numbers.current,.api-pagination .page-numbers:hover { color:#fff; background:#111318; border-color:#111318; }
@media (max-width:900px) { .api-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .api-topic-hub { padding:48px 0 60px; } .api-topic-header { margin-bottom:30px; } .api-topic-featured { grid-template-columns:1fr; gap:20px; margin-bottom:32px; padding-bottom:30px; } .api-topic-featured__body h2 { font-size:28px; } .api-topic-grid { grid-template-columns:1fr; gap:18px; } .api-topic-card__body { padding:18px; } }

/* Lectura: columna central, sin sidebar y con imagen editorial 16:9. */
.api-reading-container { max-width:900px; }
.api-article-header { max-width:820px; }
.api-article-featured-image { width:100%; max-width:900px; aspect-ratio:16/9; overflow:hidden; margin:0 0 38px; border-radius:6px; background:#f5f6f8; }
.api-article-featured-image img { display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; }
.api-article-featured-image img.api-image-contain { object-fit:contain; }
.api-article-layout,.api-article-footer { max-width:760px; margin-left:auto; margin-right:auto; }
.api-page-shell { padding:64px 24px 80px; }
.api-page-header { max-width:760px; margin:0 auto 28px; }
.api-page-header h1 { color:#111318; font-size:clamp(34px,4vw,48px); line-height:1.12; letter-spacing:-.035em; }
.api-page-featured-image { margin-left:auto; margin-right:auto; }
.api-404 { min-height:55vh; display:flex; align-items:center; padding:90px 0; }
.api-404 h1 { max-width:700px; font-size:clamp(36px,5vw,58px); line-height:1.08; letter-spacing:-.04em; }
.api-404 p:not(.api-kicker) { max-width:600px; color:#68717d; }
.site-footer { margin-top:0; }

/* API Theme 1.1 — Hero temático y archivo editorial de categorías. */
.api-topic-hub { padding:54px 0 88px; }
.api-topic-hero { position:relative; isolation:isolate; display:flex; min-height:260px; align-items:center; overflow:hidden; margin:0 0 52px; padding:clamp(34px,5vw,62px); border-radius:12px; color:#fff; background:linear-gradient(112deg,#101b31 0%,#102b59 56%,#174b7a 100%); }
.api-topic-hero:before { position:absolute; z-index:-1; inset:0; content:""; opacity:.28; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:38px 38px; mask-image:linear-gradient(90deg,transparent,#000 60%); }
.api-topic-hero__content { position:relative; z-index:2; width:min(100%,690px); }
.api-topic-hero__eyebrow,.api-topic-section-heading__eyebrow { margin:0 0 12px; color:#9fc7ff; font-size:11px; font-weight:800; letter-spacing:.16em; line-height:1.4; text-transform:uppercase; }
.api-topic-hero h1 { max-width:700px; margin:0 0 14px; color:#fff; font-size:clamp(36px,5vw,58px); font-weight:750; letter-spacing:-.045em; line-height:1.04; }
.api-topic-hero__description { max-width:610px; color:rgba(255,255,255,.82); font-size:clamp(15px,1.5vw,18px); line-height:1.7; }
.api-topic-hero__description p { margin:0; }
.api-topic-hero__art { position:absolute; z-index:1; top:0; right:0; width:43%; height:100%; overflow:hidden; pointer-events:none; }
.api-topic-hero__orb { position:absolute; display:block; border:1px solid rgba(180,216,255,.3); border-radius:50%; box-shadow:inset 0 0 45px rgba(90,170,255,.13),0 0 55px rgba(66,153,225,.12); }
.api-topic-hero__orb--one { top:8%; right:8%; width:245px; height:245px; }
.api-topic-hero__orb--two { top:23%; right:23%; width:155px; height:155px; border-color:rgba(180,216,255,.45); }
.api-topic-hero__grid { position:absolute; top:50%; right:13%; width:190px; height:120px; transform:translateY(-50%) rotate(-18deg); border:1px solid rgba(180,216,255,.25); border-radius:14px; background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.015)); box-shadow:0 18px 55px rgba(0,0,0,.18); }
.api-topic-hero__symbol { position:absolute; top:50%; right:calc(13% + 52px); transform:translateY(-50%); color:rgba(255,255,255,.88); font-family:ui-monospace,monospace; font-size:64px; font-weight:700; letter-spacing:-.12em; text-shadow:0 0 28px rgba(119,190,255,.55); }
.api-topic-hub--inteligencia-artificial .api-topic-hero { background:linear-gradient(112deg,#11172b,#172d63 58%,#245b91); }
.api-topic-hub--geo-y-seo .api-topic-hero,.api-topic-hub--seo .api-topic-hero { background:linear-gradient(112deg,#111a2a,#153b62 58%,#16708a); }
.api-topic-hub--desarrollo .api-topic-hero,.api-topic-hub--desarrollo-y-aplicaciones .api-topic-hero { background:linear-gradient(112deg,#111318,#202b40 58%,#244b68); }
.api-topic-hub--marketing-digital .api-topic-hero { background:linear-gradient(112deg,#17152d,#26366c 58%,#365c91); }
.api-topic-section-heading { display:flex; align-items:end; justify-content:space-between; margin:0 0 22px; }
.api-topic-section-heading__eyebrow { margin-bottom:6px; color:#58749a; }
.api-topic-section-heading h2 { margin:0; color:#111318; font-size:clamp(23px,2.5vw,30px); letter-spacing:-.035em; line-height:1.2; }
.api-topic-featured-section { margin-bottom:54px; }
.api-topic-featured-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.api-topic-featured-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; border:1px solid #e6e9ee; border-radius:9px; background:#fff; transition:box-shadow .25s ease,transform .25s ease; }
.api-topic-featured-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(17,24,39,.08); }
.api-topic-featured-card__media { display:block; overflow:hidden; aspect-ratio:16/9; background:#f1f3f6; }
.api-topic-featured-card__media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.api-topic-featured-card:hover .api-topic-featured-card__media img { transform:scale(1.025); }
.api-topic-featured-card__body { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:22px 24px 24px; }
.api-topic-featured-card h3 { margin:0 0 10px; font-size:clamp(20px,2vw,25px); letter-spacing:-.025em; line-height:1.25; }
.api-topic-featured-card h3 a,.api-topic-card h3 a { color:#111318; text-decoration:none; }
.api-topic-featured-card h3 a:hover,.api-topic-card h3 a:hover { color:#174b7a; }
.api-topic-featured-card .api-topic-excerpt { display:-webkit-box; overflow:hidden; margin-bottom:18px; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.api-topic-featured-card .api-text-link,.api-topic-card .api-text-link { margin-top:auto; }
.api-topic-archive { padding-top:2px; }
.api-topic-section-heading--archive { margin-bottom:24px; }
.api-topic-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 22px; }
.api-topic-card { border:1px solid #e8ebef; border-radius:8px; transition:box-shadow .22s ease,transform .22s ease; }
.api-topic-card:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(17,24,39,.065); }
.api-topic-card__media { aspect-ratio:16/10; }
.api-topic-card__body { padding:19px 20px 21px; }
.api-topic-card h3 { margin:0 0 9px; font-size:18px; line-height:1.32; }
.api-topic-card__body > p:not(.api-topic-meta) { -webkit-line-clamp:3; }
.api-topic-meta { font-variant-numeric:tabular-nums; }
.api-topic-placeholder { min-height:100%; }
@media (max-width:900px) { .api-topic-hero { min-height:235px; } .api-topic-hero__art { width:38%; opacity:.8; } .api-topic-featured-grid { gap:18px; } .api-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .api-topic-hub { padding:34px 0 58px; } .api-topic-hero { min-height:230px; margin-bottom:38px; padding:30px 24px; border-radius:9px; } .api-topic-hero__content { width:100%; } .api-topic-hero h1 { max-width:85%; font-size:36px; } .api-topic-hero__description { max-width:88%; font-size:15px; } .api-topic-hero__art { right:-14%; width:62%; opacity:.48; } .api-topic-hero__orb--one { width:190px; height:190px; } .api-topic-hero__orb--two { width:120px; height:120px; } .api-topic-hero__symbol { right:calc(13% + 34px); font-size:48px; } .api-topic-featured-section { margin-bottom:42px; } .api-topic-featured-grid,.api-topic-grid { grid-template-columns:1fr; gap:18px; } .api-topic-featured-card__body { padding:19px; } .api-topic-featured-card h3 { font-size:22px; } .api-topic-section-heading { margin-bottom:18px; } .api-topic-section-heading h2 { font-size:23px; } .api-topic-card__body { padding:18px; } .api-pagination { margin-top:34px; } .api-pagination .page-numbers { min-width:36px; min-height:36px; padding:6px 9px; font-size:13px; } }
