/* ──────────────────────────────────────────
   IPAX ARTICLE LAYOUT & ANCHOR VARIABLES
   Depende de: c010-base.css (escala, reset)
   ────────────────────────────────────────── */

/* 1. IPAX COLOR ANCHORS (Ink & Paper + superficies) */
.ipax {
    /* Paper: blanco cálido, evita glare puro */
    --ipax-L100: #FFFFFF;
	--ipax-L090: #FCFCF9;
    /* Superficie sutil */
    --ipax-L080: #EDEAE5;
    /* Ink suavizado */
    --ipax-L060: oklch(0.75 0.2 66);
	--ipax-L050: oklch(40% 0.05 66);
	
	
    /* Ink profundo (no #000 puro → previene halation) */
    --ipax-L010: #1C1B18;
	--ipax-L000: #000000;

    /* Bordes sutiles construidos por mezcla */
    --border-subtle: color-mix(in srgb, var(--ipax-L010) 12%, transparent);
    --border-moderate: color-mix(in srgb, var(--ipax-L010) 25%, transparent);

	background-color:var(--ipax-L090);
	color:var(--ipax-L010);



}


HTML{
	scroll-behavior: smooth;
}

/* 2. CONTENEDOR EDITORIAL */
.ipax .article-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
		
}

/* 3. TIPOGRAFÍA DEL ARTÍCULO */
.ipax .article-wrapper h1 {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: var(--ipax-pt-28);
    letter-spacing: -0.02em;
    color: var(--ipax-L010);
    margin-bottom: 0.35em;
}

.ipax .article-wrapper h2 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: var(--ipax-pt-18);
    color: var(--ipax-L050);
    margin-top: 2.8em;
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--border-subtle);
}

.ipax .article-wrapper h3 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: var(--ipax-pt-14);
    color: var(--ipax-L010);
    margin-top: 1.8em;
    margin-bottom: 1em;
    letter-spacing: 0.01em;
}

.ipax .article-wrapper h4 {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: var(--ipax-pt-12);
    color: var(--ipax-L010);
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    letter-spacing: 0.01em;
}

.ipax .article-wrapper p,
.ipax .article-wrapper li {
    font-family: var(--font-body);
    font-size: var(--ipax-pt-12);
    line-height: 1.78;
    color: color-mix(in srgb, var(--ipax-L010) 88%, transparent);
    margin-bottom: 1.2em;
}


.ipax .article-wrapper .note{
	font-size:.757858em;
	color:var(--ipax-L050);
	font-style: italic;
	padding-left:1.5em;
	border-left:4px solid #888;
		border-color:var(--ipax-L080);
}

.ipax .article-wrapper strong {
    font-weight: 700;
    color: var(--ipax-L010);
}

/* 4. BLOQUE DE ABSTRACT */
.ipax .abstract-block {
    background: var(--ipax-L080);
    border-left: 4px solid var(--ipax-L050);
    padding: 1.5em 1.8em;
    margin: 2em 0 2.8em;
    border-radius: 0 6px 6px 0;
}
.ipax .abstract-block p {
    font-style: italic;
    color: color-mix(in srgb, var(--ipax-L010) 80%, transparent);
    margin: 0;
}
.ipax .abstract-block strong {
    font-style: normal;
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--ipax-pt-10);
    display: block;
    margin-bottom: 0.5em;
    color: var(--ipax-L050);
}

/* 5. TABLAS */
.ipax .comparison-table,
.ipax .grade-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0 2.4em;
    font-family: var(--font-headings);
    font-size: var(--ipax-pt-10);
}

.ipax .comparison-table thead th {
    background: var(--ipax-L050);
    color: var(--ipax-L090);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75em 0.9em;
    text-align: left;
    border: none;
    font-size: var(--ipax-pt-10);
}

.ipax .comparison-table tbody td {
    padding: 0.7em 0.9em;
    border-bottom: 1px solid var(--border-subtle);
    color: color-mix(in srgb, var(--ipax-L010) 85%, transparent);
    vertical-align: top;
    line-height: 1.5;
	color: var(--ipax-L010);
}

.ipax .comparison-table tbody tr:nth-child(even) td {
    background: var(--ipax-L080);
}
.ipax .comparison-table tbody tr:hover td {
    background: color-mix(in srgb, var(--ipax-L050) 6%, transparent);
}
.ipax .comparison-table tbody td:first-child {
    font-weight: 700;
    color: var(--ipax-L010);
    white-space: nowrap;
}

/* Tabla de grados IPAX */
.ipax .grade-table thead th {
    background: var(--ipax-L010);
    color: var(--ipax-L090);
    font-weight: 700;
    padding: 0.7em 0.7em;
    text-align: center;
    font-size: var(--ipax-pt-10);
    letter-spacing: 0.03em;
    border: none;
}
.ipax .grade-table tbody td {
    padding: 0.55em 0.5em;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--ipax-pt-10);
    line-height: 1.4;
}
.ipax .grade-table tbody tr:nth-child(odd) td {
    background: var(--ipax-L080);
}
.ipax .grade-table tbody td:first-child {
    font-weight: 800;
    font-size: var(--ipax-pt-10);
    color: var(--ipax-L010);
    letter-spacing: 0.02em;
}
.ipax .grade-table .fail-cell {
    color: #B3382C;
    font-weight: 700;
}

/* 6. LISTAS */
.ipax .article-wrapper ul[role="list"],
.ipax .article-wrapper ol {
    padding-left: 1.6em;
    margin-bottom: 1.6em;
}
.ipax .article-wrapper ul[role="list"] li {
    margin-bottom: 0.5em;
    list-style-type: disc;
}
.ipax .article-wrapper ol li::marker {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--ipax-L050);
    font-size: var(--ipax-pt-10);
}

/* 7. FOOTER */
.ipax .article-footer {
    margin-top: 4em;
    padding-top: 1.6em;
    border-top: 1px solid var(--border-moderate);
    font-family: var(--font-headings);
    font-size: var(--ipax-pt-10);
    color: color-mix(in srgb, var(--ipax-L010) 55%, transparent);
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em;
}
.ipax .article-footer strong {
    font-weight: 700;
    color: var(--ipax-L010);
}

/* 8. RESPONSIVE */
@media (max-width: 768px) {
	.if-not-mobile{
		display: none;
	}

    .ipax .article-wrapper {
        padding: 2rem 1rem 4rem;
    }
    .ipax .article-wrapper h1 {
        font-size: var(--ipax-pt-21);
    }
    .ipax .article-wrapper h2 {
        font-size: var(--ipax-pt-16);
    }
    .ipax .comparison-table,
    .ipax .grade-table {
        font-size: var(--ipax-pt-10);
    }
    .ipax .comparison-table thead th,
    .ipax .grade-table thead th {
        padding: 0.5em 0.4em;
        font-size: var(--ipax-pt-10);
    }
    .ipax .comparison-table tbody td,
    .ipax .grade-table tbody td {
        padding: 0.45em 0.35em;
    }
    .ipax .comparison-table tbody td:first-child {
        white-space: normal;
        min-width: 90px;
    }
}




/* ── LAYOUT CON SIDEBAR STICKY ── */
.article-layout {
    display: flex;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    align-items: flex-start; /* importante para sticky */
}

.article-wrapper {
    flex: 1 1 720px;  /* el artículo ocupa el espacio principal */
    min-width: 0;      /* evita desbordamiento */
}

/* Sidebar */
.article-sidebar {
    flex: 0 0 280px;   /* ancho fijo */
    position: relative; /* contexto para sticky */
    align-self: stretch;    /* ← clave: ocupa toda la altura del contenedor flex */

}

.sidebar-sticky {
    position: sticky;
    top: 6rem;
    
}
.sidebar-box{
	background: var(--ipax-L080);
    border-radius: 8px;
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
	margin-bottom: 1em;
}

.sidebar-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: var(--ipax-pt-12);
    color: var(--ipax-L010);
    margin-bottom: 0.8em;
    letter-spacing: 0.01em;
}

.sidebar-text {
    font-family: var(--font-body);
    font-size: var(--ipax-pt-10);
    line-height: 1.6;
    color: color-mix(in srgb, var(--ipax-L010) 78%, transparent);
    margin-bottom: 1.4em;
}

/* Botón usando la clase existente de c015-buttons.css */
.sidebar-cta {
    width: 100%;
    margin-bottom: 1.2em;
    gap: 0.6em;
    font-size: var(--ipax-pt-10);
    padding: 0.9em 1.2em;
}

.sidebar-cta i {
    font-size: 0.9em;
}

.sidebar-note {
    font-family: var(--font-headings);
    font-size: var(--ipax-pt-9);
    line-height: 1.5;
    color: color-mix(in srgb, var(--ipax-L010) 50%, transparent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75em;
}




.sidebar-note i {
    color: var(--ipax-L050);
}

/* ── RESPONSIVE: apila en móvil ── */
@media (max-width: 900px) {
    .article-layout {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1rem 4rem;
    }

    .article-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-width: 720px;  /* alinea con el ancho del artículo */
        margin: 0 auto;
    }

    .sidebar-sticky {
        position: static;  /* deja de ser sticky en pantallas pequeñas */
        box-shadow: none;
        background: var(--ipax-L080);
    }
}






/* ── SITE HEADER (STICKY SIEMPRE) ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ipax-L010);
    border-bottom: 1px solid var(--border-moderate);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sombra cuando está pegado (aparece al hacer scroll) */
.site-header.header-shadow {
	background-color: color-mix(in srgb, var(--ipax-L010) 90%, transparent);
	backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Oculto: se desliza hacia arriba y desaparece */
.site-header.header-hidden {
    transform: translateY(-100%);
}



.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
/* 
	text-shadow:
		0px 1px 4px var(--ipax-L010),
		0px 0px 1px var(--ipax-L000); */

}

/* Logo y nombre */
.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-transform: none;
    text-decoration: none;
    color: var(--ipax-L090);   /* texto blanco cálido */
}
A.app-brand{
	color: var(--ipax-L090); 
}

.app-brand-logo {
    width: 32px;
    height: 32px;
	color:orange;
}

.app-brand-name {
    font-family: var(--font-headings);
    font-weight: 300;
    font-size: var(--ipax-pt-16);
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: inherit;
}


.header-tagline {
    font-family: var(--font-headings);
    font-weight: 400;
    font-size: var(--ipax-pt-9);
    color: color-mix(in srgb, var(--ipax-L090) 60%, transparent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}





.ipax .article-footer A, .ipax .article-footer A strong{
color:var(--ipax-L060);
}


.yellow-example{
color:#000; background: #FFFF00;
border-radius: 12px;
padding:1.5em 2em;
font-family: var(--font-sans);
font-size: 15px;
line-height: 1.71em;

box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.yellow-example TABLE{
border-collapse: collapse;
}

.yellow-example TABLE TH,
.yellow-example TABLE TD{
	text-align: left;
	border-bottom:1px solid #00000066;
	border-top:1px solid #00000066;
	margin:0;
	padding:4pt 1em 4pt 4pt;
	vertical-align: top;
}

.yellow-example A{
text-decoration: underline; color: #00f;
}

.yellow-example
TABLE .tdnote{

	font-size:80%;
	font-family: var(--font-body);
	font-style: italic;
}