/* CSS Específico para el Index Octubre 2026 (Grilla, Hero, Modales y utilidades) */

.ipax-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2rem;
}

.ipax-tools-container--hero {
    padding-bottom: 0;
}

.ipax-hero-title {
    max-width: 1200px;
    line-height: 120%;
    font-family: var(--font-headings);
    font-size: 36pt;
    margin-top: 1rem;
}

.article-layout--hero {
    margin-bottom: 0;
    padding: 0;
}

.ipax-hero-section2 {
    margin-bottom: 0;
    padding: 2rem 0 0 1.5rem;
    margin-left: 0;
}

.ipax-hero-text {
    margin-bottom: 0;
}

.ipax-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ipax-tool-card {
    display: flex;
    flex-direction: column;
    background: var(--ipax-L100);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipax-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--border-moderate);
}

.ipax-tool-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--ipax-L080);
    border-bottom: 1px solid var(--border-subtle);
	max-height: 200px;
	overflow: hidden;
}

.ipax-tool-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ipax-tool-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: var(--ipax-pt-14);
    color: var(--ipax-L010);
    margin: 0 0 0.5rem 0;
}

.ipax-tool-desc {
    font-family: var(--font-body);
    font-size: var(--ipax-pt-10);
    color: color-mix(in srgb, var(--ipax-L010) 70%, transparent);
    line-height: 1.5;
    margin: 0;
}

/* ── FAJA DESTACADA DE ARTÍCULOS E INVESTIGACIÓN (TINTED SECTION) ── */
.ipax-tinted-section {
    background: var(--ipax-L080);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    margin: 2rem 0;
}

.ipax-tinted-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ipax-tinted-header {
    margin-bottom: 2rem;
}

.ipax-tinted-kicker {
    font-family: var(--font-sans);
    font-size: var(--ipax-pt-8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ipax-L050);
    display: block;
    margin-bottom: 0.4em;
}

.ipax-tinted-title {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: var(--ipax-pt-21);
    color: var(--ipax-L010);
    margin: 0 0 0.5em 0;
    line-height: 1.2;
}

.ipax-tinted-desc {
    font-family: var(--font-body);
    font-size: var(--ipax-pt-12);
    color: color-mix(in srgb, var(--ipax-L010) 80%, transparent);
    max-width: 820px;
    line-height: 1.6;
    margin: 0;
}

.ipax-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.ipax-article-card {
    background: var(--ipax-L090);
    border: 1px solid var(--border-moderate);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ipax-article-card:hover {
    transform: translateY(-3px);
    border-color: var(--ipax-L050);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.ipax-article-badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ipax-L050);
    margin-bottom: 0.8rem;
}

.ipax-article-card-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: var(--ipax-pt-14);
    color: var(--ipax-L010);
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.ipax-article-card-desc {
    font-family: var(--font-body);
    font-size: var(--ipax-pt-10);
    color: color-mix(in srgb, var(--ipax-L010) 75%, transparent);
    line-height: 1.6;
    /* margin: 0 0 1.5rem 0; */
	margin: 0 0 0.5rem 0;
    /* flex: 1; */
	flex: 0 0 auto;
}

.ipax-article-link-cta {
    font-family: var(--font-sans);
    font-size: var(--ipax-pt-9);
    font-weight: 700;
    color: var(--ipax-L050);
    display: inline-flex;
    align-items: center;
    gap: 2em;
	margin-top: auto;
	padding-top:1em;
}

.article-wrapper--main {
    margin-bottom: 0;
    padding: 0;
    margin-left: 0;
}

.ipax-score-heading {
    margin-top: 0;
}

.ipax-sidebar-section-title {
    margin-top: 1.5rem;
}

/* Modal Dashboard (macOS Widget Style) */
.ipax-iframe-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    padding: 30px;
    align-items: center;
    justify-content: center;
}

.ipax-iframe-layout {
    position: relative;
    width: 100%;
    height: 100%;
    /* max-width: 1400px; */
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ipax-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--ipax-L090);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
	border:1px solid var(--ipax-L060);;
}


/* Spinner de carga centrado en el fondo del modal */
.ipax-iframe-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    border: 3px solid color-mix(in srgb, var(--ipax-L010) 20%, transparent);
    border-top-color: var(--ipax-L050);
    border-radius: 50%;
    animation: ipax-spinner 0.8s linear infinite;
    z-index: 1;
}

@keyframes ipax-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ipax-iframe-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #000;
    color: #FFF;
    border: 2px solid #FFF;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 100000;
    padding: 0;
    transition: transform 0.1s ease;
}

.ipax-iframe-close:hover {
    transform: scale(1.1);
}

.ipax-iframe-wrapper iframe {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}




.ipax-score-badge-cell {
    width: 1%;
    white-space: nowrap;
    padding-right: 0.5rem;
}

.ipax-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    font-weight: 900;
}


HTML .ipax .grade-table thead th{
	background-color: transparent;
	color:inherit;
	border-bottom:1px solid var(--ipax-L050);
}

.article-layout > .article-sidebar {
    flex: 0 1 clamp(240px, 26vw, 340px);
}


.nobr{
	white-space: nowrap;
}

@media (max-width: 900px) {
    .article-layout > .article-wrapper {
        flex: 1 1 auto;
    }
    .article-layout > .article-sidebar {
        flex: 0 0 auto;
    }
}




/* Desktop: sidebar angosta, la cover sangra a los bordes del .sidebar-box */
.ipax-tool-cover {
    width: calc(100% + 3rem);   /* 100% + 2 × 1.5rem (padding lateral del sidebar-box) */
    margin: 0 -1.5rem;          /* la desplaza para que el borde coincida con el de la caja */
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ipax-tool-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile/tablet: sin sangrado, ancho normal */
@media (max-width: 900px) {
    .ipax-tool-cover {
        width: 100%;
        margin: 0;
        aspect-ratio: 16 / 9;
    }
}



/* Links dentro del tools-container (hero, intro, fuera de .article-wrapper) */
.ipax .ipax-tools-container a:not(.ui-btn) {
    color: var(--ipax-L050);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.ipax .ipax-tools-container a:not(.ui-btn):hover {
    color: var(--ipax-L060);
    text-decoration-thickness: 2px;
}


.article-layout > .section-full {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--ipax-L000);
    font-size: var(--ipax-pt-32);
    letter-spacing: -0.025em;
    font-weight: 800;
    border-bottom: none;
}

.ipax-tinted-section > #ipax-score {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
    box-sizing: border-box;

	margin-top:0;
		color: var(--ipax-L030);

		font-size:var(--ipax-pt-28);
		letter-spacing:-.025em;
		font-weight:700;
		margin-bottom:0;
		border-bottom:none;
		font-family: var(--font-headings);
}



.ipax a:where(:not(.ui-btn, .app-brand, .ipax-card-link)) {
    color: var(--ipax-L050);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
}

.ipax a:where(:not(.ui-btn, .app-brand, .ipax-card-link)):hover {
    color: var(--ipax-L060);
    text-decoration-thickness: 2px;
}

.ipax-tabs-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
	
}

.ipax-tab-item {
    font-family: var(--font-sans);
    font-size: var(--ipax-pt-10);
    font-weight: 700;
    color: var(--ipax-L050);
    cursor: pointer;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    user-select: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.ipax-tab-item:hover {
    color: var(--ipax-L010);
}

.ipax-tab-item.j0ui-active,
.ipax-tab-item.is-active {
    color: var(--ipax-L010);
    border-bottom-color: var(--ipax-L010);
}

.ipax-tab-pane {
    display: none;
}

.ipax-tab-pane.j0ui-active,
.ipax-tab-pane.is-active {
    display: block;

	font-family: var(--font-sans);
	font-size:var(--ipax-pt-11);
	line-height: 170%;
	opacity: .75;
}



.mdi-2010-vivo{
	max-width: 100%; height: auto; border-radius: 6px;
	filter:brightness(1.15) contrast(80%) saturate(80%) sepia(40%);
}
.night-mode .mdi-2010-vivo{

  filter: brightness(90%) contrast(60%) saturate(0%) sepia(50%) hue-rotate(170deg);

}