/* layout.css */
/*
 * Roxty Framework — Layout CSS
 * Contenedores, grid, flex — sin framework externo
 * Mobile-first con min-width breakpoints
 *
 * Objetivo: < 4kb minificado
 */

/* ── BREAKPOINTS (para referencia en comentarios)
   xs:  < 480px   (mobile pequeño)
   sm:  480px+    (mobile grande)
   md:  768px+    (tablet)
   lg:  1024px+   (desktop pequeño)
   xl:  1200px+   (desktop)
   2xl: 1400px+   (desktop grande)
   ─────────────────────────────────────────────── */

/* ── CONTENEDOR PRINCIPAL ──────────────────────────────────────────────── */

.rxty-container {
    width: 100%;
    max-width: var(--rxty-container, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
    /* Contexto de container queries para grids hijos (Baseline 2023) */
    container-type: inline-size;
    container-name: rxty-c;
}

@media (min-width: 480px) {
    .rxty-container { padding-inline: 1.5rem; }
}

@media (min-width: 768px) {
    .rxty-container { padding-inline: 2rem; }
}

@media (min-width: 1200px) {
    .rxty-container { padding-inline: 2.5rem; }
}

.rxty-container-wide {
    max-width: var(--rxty-container-wide, 1400px);
}

.rxty-container-narrow {
    max-width: 800px;
}

.rxty-container-full {
    max-width: 100%;
    padding-inline: 0;
}

/* ── MAIN CONTENT ──────────────────────────────────────────────────────── */

.rxty-main {
    min-height: calc(100 * var(--rxty-vh, 1vh) - var(--rxty-header-height, 70px));
}

/* Páginas construidas con Elementor editor — sin restricción de ancho */
.rxty-main--elementor {
    min-height: 0;
    width: 100%;
}

/* ── GRID SYSTEM ───────────────────────────────────────────────────────── */

.rxty-grid {
    display: grid;
    gap: var(--rxty-gap, 1.5rem);
}

/* Columnas responsive automáticas */
.rxty-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Cada celda del grid es un contenedor para sus componentes hijos */
.rxty-grid > * {
    container-type: inline-size;
    container-name: rxty-card;
}

/* Columnas explícitas */
.rxty-grid-2  { grid-template-columns: 1fr; }
.rxty-grid-3  { grid-template-columns: 1fr; }
.rxty-grid-4  { grid-template-columns: 1fr; }

@media (min-width: 480px) {
    .rxty-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .rxty-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .rxty-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Container Queries — las columnas responden al CONTENEDOR, no al viewport.
   En navegadores sin soporte los @media de arriba sirven de fallback.
   Uso: <div class="rxty-container rxty-grid rxty-grid-3"> — si el contenedor
   es de 400px (ej. widget area), el grid se queda en 1 columna aunque el
   viewport sea 1400px. (Baseline 2023) */
@supports (container-type: inline-size) {
    .rxty-grid-2,
    .rxty-grid-3,
    .rxty-grid-4 { grid-template-columns: 1fr; }

    @container rxty-c (min-width: 480px) {
        .rxty-grid-2 { grid-template-columns: repeat(2, 1fr); }
    }

    @container rxty-c (min-width: 600px) {
        .rxty-grid-3 { grid-template-columns: repeat(3, 1fr); }
    }

    @container rxty-c (min-width: 800px) {
        .rxty-grid-4 { grid-template-columns: repeat(4, 1fr); }
    }
}

/* ── FLEXBOX UTILITIES ─────────────────────────────────────────────────── */

.rxty-flex        { display: flex; }
.rxty-flex-col    { display: flex; flex-direction: column; }
.rxty-flex-center { display: flex; align-items: center; justify-content: center; }
.rxty-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rxty-flex-wrap   { flex-wrap: wrap; }
.rxty-gap         { gap: var(--rxty-gap, 1.5rem); }
.rxty-gap-sm      { gap: calc(var(--rxty-gap, 1.5rem) / 2); }
.rxty-gap-lg      { gap: var(--rxty-gap-lg, 2.5rem); }

/* ── SECCIONES ─────────────────────────────────────────────────────────── */

.rxty-section {
    padding-block: clamp(3rem, 8vw, 6rem);
    container-type: inline-size;
}

.rxty-section-sm {
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.rxty-section-lg {
    padding-block: clamp(4rem, 10vw, 8rem);
}

/* ── HERO ──────────────────────────────────────────────────────────────── */

.rxty-hero {
    min-height: calc(100 * var(--rxty-vh, 1vh));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.rxty-hero-content {
    position: relative;
    z-index: 2;
}

.rxty-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── HEADER ────────────────────────────────────────────────────────────── */

.rxty-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--rxty-header-height, 70px);
    display: flex;
    align-items: center;
    transition: height var(--rxty-transition), background-color var(--rxty-transition);
}

.rxty-header-scrolled .rxty-header {
    height: var(--rxty-header-height-scrolled, 56px);
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */

.rxty-footer {
    padding-block: clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--rxty-border, rgba(0,0,0,0.08));
}

.rxty-footer__cols {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--rxty-gap, 1.5rem);
}

.rxty-footer__col {
    flex: 1 1 auto;
    min-width: 220px;
}

.rxty-footer__cols--3 .rxty-footer__col {
    flex-basis: calc(33.333% - var(--rxty-gap, 1.5rem));
}

.rxty-footer__col .rxty-widget {
    margin: 0;
}

.rxty-footer__col p {
    margin: 0;
    font-size: var(--rxty-text-sm);
    color: var(--rxty-text-muted);
}

.rxty-footer__col a {
    color: inherit;
}

/* ── VISIBILITY ────────────────────────────────────────────────────────── */

.rxty-hidden    { display: none !important; }
.rxty-visible   { display: block; }

/* Mobile only / Desktop only */
.rxty-mobile-only  { display: block; }
.rxty-desktop-only { display: none; }

@media (min-width: 768px) {
    .rxty-mobile-only  { display: none; }
    .rxty-desktop-only { display: block; }
}

/* ── POSITION ──────────────────────────────────────────────────────────── */

.rxty-relative { position: relative; }
.rxty-absolute { position: absolute; }
.rxty-sticky   { position: sticky; top: 0; }
.rxty-full-screen {
    width: 100%;
    min-height: calc(100 * var(--rxty-vh, 1vh));
}

/* ── CONTAINER QUERY UTILITY ───────────────────────────────────────────────── */

.rxty-cq {
    container-type: inline-size;
}

/* ── SUBGRID UTILITY (Baseline 2023) ───────────────────────────────────────── */

/* Convierte un grid item en un subgrid de 2 row tracks.
   Uso genérico: cualquier componente que necesite alinearse con el parent grid. */
@supports (grid-template-rows: subgrid) {
    .rxty-subgrid {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
    }
}

/* ── Z-INDEX SCALE ─────────────────────────────────────────────────────── */
/* Para no conflictuar con Elementor (usa z-index 9999+) y GSB widget      */
/*
   rxty-header: 1000
   rxty-modal:  1001
   rxty-sticky: 1002
   (plugins Zufukx usan 9000+, GSB widget usa 9999)
*/

/* typography.css */
/*
 * Roxty Framework — Typography CSS
 * Basado en Roboto + escala fluid con clamp()
 * Limpio y legible en todos los dispositivos
 *
 * Objetivo: < 2kb minificado
 */

/* ── BASE ──────────────────────────────────────────────────────────────── */

body {
    font-family: var(--rxty-font-main, 'Roboto', sans-serif);
    font-size: var(--rxty-text-base);
    font-weight: var(--rxty-font-weight-normal, 400);
    color: var(--rxty-text);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ── HEADINGS ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rxty-font-main, 'Roboto', sans-serif);
    font-weight: var(--rxty-heading-weight, 700);
    text-transform: var(--rxty-heading-transform, none);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--rxty-text);
}

h1 { font-size: var(--rxty-text-3xl); }
h2 { font-size: var(--rxty-text-2xl); }
h3 { font-size: var(--rxty-text-xl); }
h4 { font-size: var(--rxty-text-lg); }
h5 { font-size: var(--rxty-text-base); font-weight: var(--rxty-font-weight-medium, 500); }
h6 { font-size: var(--rxty-text-sm);  font-weight: var(--rxty-font-weight-medium, 500); }

/* ── PÁRRAFOS ──────────────────────────────────────────────────────────── */

p {
    margin-bottom: 1em;
    color: var(--rxty-text);
}

p:last-child { margin-bottom: 0; }

/* ── LINKS ─────────────────────────────────────────────────────────────── */

a {
    color: var(--rxty-accent);
    text-decoration: none;
    transition: color var(--rxty-transition-fast);
}

a:hover {
    color: var(--rxty-accent-hover, var(--rxty-accent));
}

/* ── ÉNFASIS ───────────────────────────────────────────────────────────── */

strong, b {
    font-weight: var(--rxty-font-weight-bold, 700);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--rxty-text-xs);
    color: var(--rxty-text-muted);
}

/* ── LISTAS CON CONTENIDO ──────────────────────────────────────────────── */

/* Solo dentro del contenido del editor, no en nav o footer */
.rxty-content ul,
.entry-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rxty-content ol,
.entry-content ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rxty-content li,
.entry-content li {
    margin-bottom: 0.3em;
}

/* ── BLOCKQUOTE ────────────────────────────────────────────────────────── */

blockquote {
    border-left: 3px solid var(--rxty-accent);
    padding-left: 1.5rem;
    margin-block: 1.5rem;
    font-style: italic;
    color: var(--rxty-text-muted);
    font-size: var(--rxty-text-lg);
}

/* ── CODE ──────────────────────────────────────────────────────────────── */

code, pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: var(--rxty-surface-alt, var(--rxty-surface));
    border-radius: var(--rxty-radius);
}

code {
    padding: 0.15em 0.4em;
}

pre {
    padding: 1rem 1.5rem;
    overflow-x: auto;
    margin-block: 1.5rem;
}

/* ── UTILIDADES DE TIPOGRAFÍA ──────────────────────────────────────────── */

.rxty-text-xs     { font-size: var(--rxty-text-xs); }
.rxty-text-sm     { font-size: var(--rxty-text-sm); }
.rxty-text-base   { font-size: var(--rxty-text-base); }
.rxty-text-lg     { font-size: var(--rxty-text-lg); }
.rxty-text-xl     { font-size: var(--rxty-text-xl); }
.rxty-text-2xl    { font-size: var(--rxty-text-2xl); }
.rxty-text-3xl    { font-size: var(--rxty-text-3xl); }

.rxty-text-muted  { color: var(--rxty-text-muted); }
.rxty-text-accent { color: var(--rxty-accent); }

.rxty-font-light  { font-weight: var(--rxty-font-weight-light, 300); }
.rxty-font-normal { font-weight: var(--rxty-font-weight-normal, 400); }
.rxty-font-medium { font-weight: var(--rxty-font-weight-medium, 500); }
.rxty-font-bold   { font-weight: var(--rxty-font-weight-bold, 700); }

.rxty-uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.rxty-center      { text-align: center; }
.rxty-right       { text-align: right; }
.rxty-left        { text-align: left; }

/* utilities.css */
/*
 * Roxty Framework — Utilities CSS
 * Clases de uso rápido para spacing, colores, bordes, sombras
 *
 * Objetivo: < 3kb minificado
 */

/* ── SPACING ───────────────────────────────────────────────────────────── */

/* Margin */
.rxty-m-0  { margin: 0; }
.rxty-mt-0 { margin-top: 0; }
.rxty-mb-0 { margin-bottom: 0; }
.rxty-mt-1 { margin-top: 0.5rem; }
.rxty-mb-1 { margin-bottom: 0.5rem; }
.rxty-mt-2 { margin-top: 1rem; }
.rxty-mb-2 { margin-bottom: 1rem; }
.rxty-mt-3 { margin-top: 1.5rem; }
.rxty-mb-3 { margin-bottom: 1.5rem; }
.rxty-mt-4 { margin-top: 2rem; }
.rxty-mb-4 { margin-bottom: 2rem; }
.rxty-mt-6 { margin-top: 3rem; }
.rxty-mb-6 { margin-bottom: 3rem; }
.rxty-mx-auto { margin-inline: auto; }

/* Padding */
.rxty-p-0  { padding: 0; }
.rxty-p-1  { padding: 0.5rem; }
.rxty-p-2  { padding: 1rem; }
.rxty-p-3  { padding: 1.5rem; }
.rxty-p-4  { padding: 2rem; }
.rxty-py-1 { padding-block: 0.5rem; }
.rxty-py-2 { padding-block: 1rem; }
.rxty-py-3 { padding-block: 1.5rem; }
.rxty-py-4 { padding-block: 2rem; }
.rxty-px-1 { padding-inline: 0.5rem; }
.rxty-px-2 { padding-inline: 1rem; }
.rxty-px-3 { padding-inline: 1.5rem; }
.rxty-px-4 { padding-inline: 2rem; }

/* ── COLORES DE FONDO ──────────────────────────────────────────────────── */

.rxty-bg-base       { background-color: var(--rxty-bg); }
.rxty-bg-surface    { background-color: var(--rxty-surface); }
.rxty-bg-surface-alt{ background-color: var(--rxty-surface-alt, var(--rxty-surface)); }
.rxty-bg-accent     { background-color: var(--rxty-accent); }
.rxty-bg-transparent{ background-color: transparent; }

/* ── BORDES Y RADIUS ───────────────────────────────────────────────────── */

.rxty-border        { border: 1px solid var(--rxty-border); }
.rxty-border-accent { border: 1px solid var(--rxty-accent); }
.rxty-rounded       { border-radius: var(--rxty-radius); }
.rxty-rounded-lg    { border-radius: var(--rxty-radius-lg); }
.rxty-rounded-full  { border-radius: 9999px; }
.rxty-no-radius     { border-radius: 0; }

/* ── SOMBRAS ───────────────────────────────────────────────────────────── */

.rxty-shadow        { box-shadow: var(--rxty-shadow); }
.rxty-shadow-none   { box-shadow: none; }

/* ── OVERFLOW ──────────────────────────────────────────────────────────── */

.rxty-overflow-hidden  { overflow: hidden; }
.rxty-overflow-x-hidden{ overflow-x: hidden; }

/* ── BOTONES ───────────────────────────────────────────────────────────── */

.rxty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65em 1.5em;
    font-family: var(--rxty-font-main);
    font-size: var(--rxty-text-sm);
    font-weight: var(--rxty-font-weight-medium, 500);
    line-height: 1;
    border-radius: var(--rxty-radius);
    cursor: pointer;
    transition:
        background-color var(--rxty-transition-fast),
        color var(--rxty-transition-fast),
        border-color var(--rxty-transition-fast),
        transform var(--rxty-transition-fast),
        box-shadow var(--rxty-transition-fast);
    text-decoration: none;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.rxty-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.rxty-btn-primary {
    background-color: var(--rxty-accent);
    color: #ffffff;
}

.rxty-btn-primary:hover {
    background-color: var(--rxty-accent-hover, var(--rxty-accent));
    color: #ffffff;
    box-shadow: var(--rxty-shadow);
}

.rxty-btn-outline {
    background-color: transparent;
    border: 2px solid var(--rxty-accent);
    color: var(--rxty-accent);
}

.rxty-btn-outline:hover {
    background-color: var(--rxty-accent);
    color: #ffffff;
}

.rxty-btn-ghost {
    background-color: transparent;
    color: var(--rxty-text);
}

.rxty-btn-ghost:hover {
    background-color: var(--rxty-surface);
}

/* Tamaños */
.rxty-btn-sm { padding: 0.45em 1em; font-size: var(--rxty-text-xs); }
.rxty-btn-lg { padding: 0.85em 2em; font-size: var(--rxty-text-lg); }

/* ── MARQUEE (Banda de texto horizontal continua) ──────────────────────── */

.rxty-marquee {
    overflow: hidden;
    display: flex;
    width: 100%;
    user-select: none;
}

.rxty-marquee-track {
    display: flex;
    gap: var(--rxty-marquee-gap, 2rem);
    animation: rxty-marquee-scroll var(--rxty-marquee-speed, 30s) linear infinite;
    will-change: transform;
    white-space: nowrap;
}

/* Se pausa si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .rxty-marquee-track { animation: none; }
}

.rxty-marquee:hover .rxty-marquee-track {
    animation-play-state: paused;
}

@keyframes rxty-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── ASPECTOS ──────────────────────────────────────────────────────────── */

.rxty-aspect-square { aspect-ratio: 1 / 1; }
.rxty-aspect-video  { aspect-ratio: 16 / 9; }
.rxty-aspect-4x3    { aspect-ratio: 4 / 3; }

/* Imagen que rellena su contenedor */
.rxty-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── OVERLAYS ──────────────────────────────────────────────────────────── */

.rxty-overlay-dark {
    background: linear-gradient(
        to bottom,
        rgba(18, 2, 3, 0.3) 0%,
        rgba(18, 2, 3, 0.7) 100%
    );
}

.rxty-overlay-color {
    background-color: rgba(18, 2, 3, 0.6);
    background-color: color-mix(in srgb, var(--rxty-bg) 60%, transparent);
}

/* ── GLOW / EFECTOS DE LUZ (estilo Roxty City) ─────────────────────────── */

.rxty-glow {
    filter: drop-shadow(0 0 20px rgba(235, 27, 27, 0.4));
    filter: drop-shadow(0 0 20px color-mix(in srgb, var(--rxty-accent) 40%, transparent));
}

.rxty-glow-text {
    text-shadow: 0 0 30px rgba(235, 27, 27, 0.5);
    text-shadow: 0 0 30px color-mix(in srgb, var(--rxty-accent) 50%, transparent);
}

/* ── REDUCCIÓN DE MOVIMIENTO ───────────────────────────────────────────── */

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

/* components.css */
/*
 * Roxty Framework — Components CSS
 * Post cards, paginación, badges, navegación, formularios, comentarios.
 * Se carga solo en páginas que no son canvas/plugin.
 *
 * Objetivo: < 4kb minificado
 */

/* ── POST CARD ─────────────────────────────────────────────────────────── */

.rxty-post-card {
    background: var(--rxty-surface);
    border-radius: var(--rxty-radius-lg);
    overflow: hidden;
    border: 1px solid var(--rxty-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--rxty-transition), box-shadow var(--rxty-transition);
}

.rxty-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rxty-shadow);
}

.rxty-post-card__thumb {
    display: block;
    overflow: hidden;
    background: var(--rxty-surface-alt, var(--rxty-surface));
}

.rxty-post-card__thumb img {
    transition: transform var(--rxty-transition-slow);
}

.rxty-post-card:hover .rxty-post-card__thumb img {
    transform: scale(1.04);
}

.rxty-post-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rxty-post-card__title {
    font-size: var(--rxty-text-lg);
    font-weight: var(--rxty-font-weight-bold, 700);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.rxty-post-card__title a {
    color: var(--rxty-text);
    transition: color var(--rxty-transition-fast);
}

.rxty-post-card__title a:hover {
    color: var(--rxty-accent);
}

.rxty-post-card__excerpt {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container Query: layout horizontal opt-in.
   Uso: agregar clase .rxty-post-card--auto al article.
   Cuando su celda de grid (rxty-card) sea >= 420px la card gira a horizontal.
   Útil en rxty-grid-2 o listas full-width; nunca se activa en grids de 3/4 col. */
@container rxty-card (min-width: 420px) {
    .rxty-post-card--auto {
        flex-direction: row;
    }
    .rxty-post-card--auto .rxty-post-card__thumb {
        width: 220px;
        flex-shrink: 0;
    }
}

/* ── BADGES (categorías, etiquetas) ────────────────────────────────────── */

.rxty-cat-badge,
.rxty-tag-badge {
    display: inline-block;
    padding: 0.2em 0.65em;
    font-size: var(--rxty-text-xs);
    font-weight: var(--rxty-font-weight-medium, 500);
    border-radius: var(--rxty-radius);
    transition: background-color var(--rxty-transition-fast), color var(--rxty-transition-fast);
    text-decoration: none;
}

.rxty-cat-badge {
    background: rgba(235, 27, 27, 0.15);
    background: color-mix(in srgb, var(--rxty-accent) 15%, transparent);
    color: var(--rxty-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rxty-cat-badge:hover {
    background: var(--rxty-accent);
    color: #fff;
}

.rxty-tag-badge {
    background: var(--rxty-surface);
    color: var(--rxty-text-muted);
    border: 1px solid var(--rxty-border);
}

.rxty-tag-badge:hover {
    border-color: var(--rxty-accent);
    color: var(--rxty-accent);
}

/* ── PAGINACIÓN ─────────────────────────────────────────────────────────── */

.rxty-pagination .nav-links,
.navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.rxty-pagination .page-numbers,
.navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--rxty-radius);
    font-size: var(--rxty-text-sm);
    font-weight: var(--rxty-font-weight-medium, 500);
    color: var(--rxty-text);
    border: 1px solid var(--rxty-border);
    background: var(--rxty-surface);
    transition: all var(--rxty-transition-fast);
    text-decoration: none;
}

.rxty-pagination .page-numbers:hover,
.navigation .page-numbers:hover {
    border-color: var(--rxty-accent);
    color: var(--rxty-accent);
}

.rxty-pagination .page-numbers.current,
.navigation .page-numbers.current {
    background: var(--rxty-accent);
    border-color: var(--rxty-accent);
    color: #fff;
}

.rxty-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

/* ── NAVEGACIÓN PREV/NEXT ──────────────────────────────────────────────── */

.rxty-post-nav .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rxty-post-nav .nav-previous,
.rxty-post-nav .nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rxty-post-nav .nav-next { text-align: right; }

.rxty-post-nav a {
    color: var(--rxty-text-muted);
    transition: color var(--rxty-transition-fast);
}

.rxty-post-nav a:hover { color: var(--rxty-accent); }

.rxty-nav-label {
    display: block;
    font-size: var(--rxty-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rxty-accent);
    font-weight: var(--rxty-font-weight-medium, 500);
}

.rxty-nav-title {
    font-size: var(--rxty-text-sm);
    font-weight: var(--rxty-font-weight-bold, 700);
}

/* ── FORMULARIO DE BÚSQUEDA ─────────────────────────────────────────────── */

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form label {
    display: none; /* La accesibilidad la da el placeholder */
}

.search-form .search-field {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--rxty-border);
    border-radius: var(--rxty-radius);
    background: var(--rxty-surface);
    color: var(--rxty-text);
    font-family: var(--rxty-font-main);
    font-size: var(--rxty-text-sm);
    transition: border-color var(--rxty-transition-fast);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--rxty-accent);
}

.search-form .search-submit {
    padding: 0.65rem 1.25rem;
    background: var(--rxty-accent);
    color: #fff;
    border: none;
    border-radius: var(--rxty-radius);
    font-family: var(--rxty-font-main);
    font-size: var(--rxty-text-sm);
    font-weight: var(--rxty-font-weight-medium, 500);
    cursor: pointer;
    transition: background-color var(--rxty-transition-fast);
    white-space: nowrap;
}

.search-form .search-submit:hover {
    background: var(--rxty-accent-hover, var(--rxty-accent));
}

/* ── COMENTARIOS ────────────────────────────────────────────────────────── */

.rxty-comments .comments-title {
    font-size: var(--rxty-text-xl);
    font-weight: var(--rxty-font-weight-bold, 700);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rxty-border);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.25rem;
    background: var(--rxty-surface);
    border-radius: var(--rxty-radius-lg);
    border: 1px solid var(--rxty-border);
    margin-bottom: 1rem;
}

.comment-author .fn {
    font-weight: var(--rxty-font-weight-bold, 700);
    font-style: normal;
}

.comment-meta {
    font-size: var(--rxty-text-xs);
    color: var(--rxty-text-muted);
    margin-bottom: 0.75rem;
}

.reply a {
    font-size: var(--rxty-text-xs);
    color: var(--rxty-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--rxty-font-weight-medium, 500);
}

#respond {
    background: var(--rxty-surface);
    border-radius: var(--rxty-radius-lg);
    border: 1px solid var(--rxty-border);
    padding: 1.5rem;
    margin-top: 2rem;
}

#respond .comment-reply-title {
    font-size: var(--rxty-text-lg);
    font-weight: var(--rxty-font-weight-bold, 700);
    margin-bottom: 1.25rem;
}

#respond .comment-form label {
    display: block;
    font-size: var(--rxty-text-sm);
    font-weight: var(--rxty-font-weight-medium, 500);
    margin-bottom: 0.35rem;
    color: var(--rxty-text);
}

#respond .comment-form input[type="text"],
#respond .comment-form input[type="email"],
#respond .comment-form input[type="url"],
#respond .comment-form textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--rxty-border);
    border-radius: var(--rxty-radius);
    background: var(--rxty-bg);
    color: var(--rxty-text);
    font-family: var(--rxty-font-main);
    font-size: var(--rxty-text-sm);
    transition: border-color var(--rxty-transition-fast);
    margin-bottom: 1rem;
}

#respond .comment-form input:focus,
#respond .comment-form textarea:focus {
    outline: none;
    border-color: var(--rxty-accent);
}

#respond .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

#respond .form-submit .submit {
    background: var(--rxty-accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: var(--rxty-radius);
    font-family: var(--rxty-font-main);
    font-weight: var(--rxty-font-weight-medium, 500);
    cursor: pointer;
    transition: background-color var(--rxty-transition-fast);
}

#respond .form-submit .submit:hover {
    background: var(--rxty-accent-hover, var(--rxty-accent));
}

/* ── WIDGETS ─────────────────────────────────────────────────────────────── */

.rxty-widget {
    margin-bottom: 2rem;
}

.rxty-widget-title {
    font-size: var(--rxty-text-base);
    font-weight: var(--rxty-font-weight-bold, 700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rxty-accent);
}

/* ── ARCHIVE HEADER ─────────────────────────────────────────────────────── */

.rxty-archive-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rxty-border);
}

.rxty-archive-title {
    font-size: var(--rxty-text-2xl);
    font-weight: var(--rxty-font-weight-bold, 700);
    margin-bottom: 0.5rem;
}

.rxty-archive-description p {
    margin: 0;
    font-size: var(--rxty-text-base);
}

/* ── NO RESULTS ─────────────────────────────────────────────────────────── */

.rxty-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--rxty-surface);
    border-radius: var(--rxty-radius-lg);
    border: 1px solid var(--rxty-border);
}

.rxty-no-results h2 {
    font-size: var(--rxty-text-xl);
    margin-bottom: 1rem;
}

/* ── POPOVER API + @starting-style (Baseline 2024) ─────────────────────── */

/* Popover genérico: añadir .rxty-popover a cualquier [popover] para obtener
   animación de entrada/salida sin JS. El Popover API maneja open/close. */
[popover].rxty-popover {
    position: fixed;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--rxty-border);
    border-radius: var(--rxty-radius-lg);
    background: var(--rxty-surface);
    color: var(--rxty-text);
    box-shadow: var(--rxty-shadow);
    width: max-content;
    max-width: min(90vw, 400px);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition:
        opacity   0.2s ease,
        transform 0.2s ease,
        display   0.2s allow-discrete,
        overlay   0.2s allow-discrete;
}

[popover].rxty-popover:popover-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@starting-style {
    [popover].rxty-popover:popover-open {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
}

/* Panel de navegación mobile — se desliza desde la derecha.
   pointer-events: none en el estado base asegura que en browsers sin Popover
   API (donde el UA no aplica display:none automáticamente) el panel off-screen
   no intercepte clicks aunque sea visible en el DOM. */
[popover].rxty-nav-popover {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    padding: 2rem 1.5rem;
    border: none;
    border-left: 1px solid var(--rxty-border);
    border-radius: 0;
    background: var(--rxty-surface);
    color: var(--rxty-text);
    width: min(320px, 85vw);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition:
        opacity   0.3s ease,
        transform 0.3s ease,
        display   0.3s allow-discrete,
        overlay   0.3s allow-discrete;
}

[popover].rxty-nav-popover:popover-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

@starting-style {
    [popover].rxty-nav-popover:popover-open {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Backdrop animado detrás del panel mobile */
[popover].rxty-nav-popover::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition:
        opacity 0.3s ease,
        display 0.3s allow-discrete,
        overlay 0.3s allow-discrete;
}

[popover].rxty-nav-popover:popover-open::backdrop {
    opacity: 1;
}

@starting-style {
    [popover].rxty-nav-popover:popover-open::backdrop {
        opacity: 0;
    }
}

/* Botón cerrar (×) dentro del panel */
.rxty-nav-popover__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--rxty-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    font-size: 1.5rem;
    transition: color var(--rxty-transition-fast);
}

.rxty-nav-popover__close:hover {
    color: var(--rxty-accent);
}

/* Lista de links dentro del panel */
.rxty-nav-popover .menu,
.rxty-nav-popover .rxty-nav-links {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rxty-nav-popover .menu a,
.rxty-nav-popover .rxty-nav-links a {
    display: block;
    padding: 0.8rem 0;
    color: var(--rxty-text);
    font-weight: var(--rxty-font-weight-medium, 500);
    border-bottom: 1px solid var(--rxty-border);
    text-decoration: none;
    transition: color var(--rxty-transition-fast);
}

.rxty-nav-popover .menu a:hover,
.rxty-nav-popover .rxty-nav-links a:hover {
    color: var(--rxty-accent);
}

/* ── HAMBURGER ──────────────────────────────────────────────────────────── */

.rxty-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.rxty-hamburger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--rxty-text);
    border-radius: 2px;
    transition: transform var(--rxty-transition), opacity var(--rxty-transition);
}

/* ── @starting-style REVEAL ─────────────────────────────────────────────── */

/* Añadir .rxty-reveal a cualquier elemento para animarlo en su primer render.
   Sin JS ni Intersection Observer. El navegador transiciona desde @starting-style
   al estado final en cuanto pinta el elemento. (Baseline 2024) */
.rxty-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@starting-style {
    .rxty-reveal {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Variante: solo fade (sin desplazamiento) */
.rxty-reveal-fade {
    opacity: 1;
    transition: opacity 0.4s ease;
}

@starting-style {
    .rxty-reveal-fade {
        opacity: 0;
    }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    [popover].rxty-popover,
    [popover].rxty-nav-popover,
    [popover].rxty-nav-popover::backdrop,
    .rxty-reveal,
    .rxty-reveal-fade {
        transition: none;
    }
}

