
:root {
    color-scheme: dark;
    --background: #09090b;
    --foreground: #fafafa;
    --surface: #111217;
    --surface-secondary: #18181d;
    --surface-tertiary: #202127;
    --primary: #f97316;
    --primary-hover: #fb923c;
    --secondary: #06b6d4;
    --border: #2a2b31;
    --border-hover: #41424c;
    --muted: #a1a1aa;
    --muted-foreground: #71717a;
    --success: #22c55e;
    --danger: #ef4444;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scrollbar-color: #41414a var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 15% -10%, #f9731610, transparent 34rem),
        radial-gradient(ellipse at 100% 45%, #06b6d408, transparent 32rem),
        var(--background);
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.65;
}

body,
button,
input,
textarea,
select {
    font-family: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

::selection {
    background: #f9731640;
    color: white;
}

/* Navegación */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid #ffffff0c;
    background: #09090bef;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    width: min(100% - 48px, 1240px);
    min-height: 76px;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: 1.3px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #fb923c65;
    border-radius: 12px;
    background: linear-gradient(145deg, #fb923c, #ea580c);
    box-shadow: 0 4px 24px #f9731625;
    color: #17100b;
    font-size: 23px;
    font-weight: 950;
}

.brand-accent,
.accent {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.main-nav a {
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
    border-color: #f9731622;
    background: #f973160d;
    color: var(--primary-hover);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    cursor: pointer;
    font-size: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Botones */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: #1b0c03;
    box-shadow: 0 5px 22px #f9731620;
}

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

.button-outline {
    border-color: var(--border-hover);
    background: #ffffff04;
    color: var(--foreground);
}

.button-outline:hover {
    border-color: var(--primary);
    background: #f973160b;
}

.button-quiet {
    background: transparent;
    color: var(--muted);
}

.button-quiet:hover {
    color: var(--foreground);
}

.button-full {
    width: 100%;
    margin-top: 12px;
}

.button-large {
    min-height: 50px;
    padding: 13px 21px;
}

button:disabled,
input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.inline-form {
    display: inline-flex;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.logout-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Elementos compartidos */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px #22c55e70;
}

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

/* Portada */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: center;
    gap: 40px;
    width: min(100% - 48px, 1180px);
    min-height: 470px;
    margin: 30px auto 0;
    padding: 65px 0 76px;
}

.hero-glow {
    position: absolute;
    top: 8%;
    left: -12%;
    z-index: -1;
    width: 380px;
    height: 300px;
    border-radius: 50%;
    background: #f973160b;
    filter: blur(70px);
    pointer-events: none;
}

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

.hero h1 {
    max-width: 700px;
    margin: 18px 0;
    font-size: clamp(38px, 5.3vw, 65px);
    font-weight: 900;
    letter-spacing: -2.9px;
    line-height: 1.08;
}

.hero h1 .accent {
    text-shadow: 0 0 42px #f9731625;
}

.hero p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
    padding-top: 23px;
    border-top: 1px solid var(--border);
}

.hero-stats > div {
    display: grid;
    gap: 2px;
}

.hero-stats strong {
    font-size: 19px;
    font-weight: 850;
}

.hero-stats span {
    color: var(--muted-foreground);
    font-size: 11px;
}

.hero-art {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
    isolation: isolate;
}

.hero-art::before {
    position: absolute;
    z-index: -1;
    width: min(100%, 330px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #f9731618 0, #06b6d40a 45%, transparent 72%);
    content: "";
}

.art-orbit {
    position: absolute;
    width: min(90%, 310px);
    aspect-ratio: 1;
    border: 1px solid #f9731634;
    border-radius: 50%;
    transform: rotate(-24deg) scaleY(.72);
}

.art-orbit::before,
.art-orbit::after {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--background);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px #f9731670;
    content: "";
}

.art-orbit::before {
    top: 18%;
    left: 13%;
}

.art-orbit::after {
    right: 7%;
    bottom: 24%;
    background: var(--secondary);
    box-shadow: 0 0 20px #06b6d470;
}

.orbit-two {
    width: min(76%, 255px);
    border-color: #06b6d42b;
    transform: rotate(42deg) scaleY(.72);
}

.art-core {
    display: grid;
    width: 145px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #fb923c70;
    border-radius: 35px;
    background: linear-gradient(145deg, #27201d, #121318 75%);
    box-shadow: 0 0 70px #f973161c, inset 0 0 35px #f973160c;
    color: var(--primary-hover);
    font-size: 76px;
    font-weight: 950;
    transform: rotate(-8deg);
}

.art-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #111217ef;
    box-shadow: 0 12px 35px #0005;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 750;
}

.art-chip::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    content: "";
}

.chip-one {
    top: 17%;
    right: 0;
}

.chip-two {
    bottom: 18%;
    left: 0;
}

.chip-two::before {
    background: var(--primary);
}

.chip-three {
    right: 0;
    bottom: 18%;
}

/* Secciones */

.section {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 44px 0 52px;
}

.section + .section {
    border-top: 1px solid #ffffff08;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 850;
    letter-spacing: -.9px;
    line-height: 1.25;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-link {
    flex-shrink: 0;
    color: var(--primary-hover);
    font-size: 12px;
    font-weight: 800;
}

.section-link:hover {
    color: white;
}

/* Categorías */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 105px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(140deg, #17181e, #101115);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 120px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(140deg, #17181e, #101115);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #f973166b;
    background: linear-gradient(140deg, #211a17, #111217);
}

.category-icon {
    display: grid;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    place-items: center;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
}

.category-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-copy {
    min-width: 0;
}

.category-copy h3,
.category-copy strong {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.category-copy p,
.category-copy small {
    display: block;
    margin: 4px 0 0;
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.5;
}

.category-arrow {
    margin-left: auto;
    color: var(--muted-foreground);
    transition: color .2s ease, transform .2s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(3px);
    color: var(--primary);
}



/* ========================================
   CARDS DE CONTENIDO
======================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.content-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.content-card-link {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

/* Imagen */

.content-image {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #121318;
}

/* Imagen ampliada y desenfocada detrás */

.content-image-background {
    position: absolute;
    z-index: -2;
    inset: -18px;
    width: calc(100% + 36px);
    height: calc(100% + 36px);
    object-fit: cover;
    filter: blur(18px) brightness(.55);
    transform: scale(1.05);
    pointer-events: none;
}

/* Imagen principal: centrada y nítida */

.content-image-main {
    position: relative;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.image-placeholder,
.content-image-placeholder {
    color: #f973166b;
    font-size: 42px;
    font-weight: 900;
}

/* Información superpuesta */

.content-image-overlay {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 30px 13px 12px;
    background: linear-gradient(
        to bottom,
        transparent,
        #000b
    );
    pointer-events: none;
}

.content-image-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.content-image-labels span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .45px;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease,
                box-shadow .2s ease, transform .2s ease;
}

.content-image-labels span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #f9731650;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        #f973162b,
        #f973160d
    );
    color: #ffb477;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 #ffffff0d;
    transition: background .2s ease,
                border-color .2s ease,
                box-shadow .2s ease;
}

.content-card:hover .content-image-labels span {
    border-color: #f9731690;
    background: linear-gradient(
        135deg,
        #f9731640,
        #f973161c
    );
    box-shadow:
        inset 0 1px 0 #ffffff15,
        0 0 12px #f9731625;
}

.content-image-downloads {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Texto */

.content-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 15px 16px 17px;
}

.content-info h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    color: var(--foreground);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.content-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Acción de favoritos en las cards */

.content-card-favorite {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
}

.content-card-favorite .button {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff35;
    border-radius: 7px;
    background: #09090bd9;
    color: #fff;
}

/* Estado vacío */

.empty-state {
    display: grid;
    min-height: 180px;
    padding: 32px 20px;
    place-items: center;
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius);
    background: #ffffff02;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.empty-state p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Cabecera de listados */

.page-banner {
    position: relative;
    padding: 60px 24px 48px;
    border-bottom: 1px solid #ffffff0a;
    background: radial-gradient(ellipse at 50% 0, #f9731610, transparent 70%);
    text-align: center;
}

.page-banner h1 {
    margin: 10px 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1.8px;
}

.page-banner p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
}

.listing-section {
    min-height: 360px;
}

/* Formularios y cuenta */

.auth-section {
    display: grid;
    min-height: 65vh;
    padding: 55px 20px;
    place-items: center;
    background: radial-gradient(ellipse at 50% 30%, #f973160b, transparent 55%);
}

.auth-card {
    width: min(100%, 440px);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #111217ef;
    box-shadow: 0 24px 80px #0003;
}

.auth-card h1 {
    margin: 8px 0;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.auth-card > p {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-form label,
.form-label {
    display: grid;
    gap: 7px;
    color: #e4e4e7;
    font-size: 12px;
    font-weight: 750;
}

.auth-form input,
.auth-form textarea,
.auth-form select,
.auth-card input,
.auth-card textarea,
.auth-card select {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    background: #0c0d11;
    color: var(--foreground);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form textarea,
.auth-card textarea {
    min-height: 100px;
    resize: vertical;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #f9731618;
}

.auth-form input::placeholder,
.auth-card input::placeholder {
    color: #656570;
}

.auth-form .submit-button,
.submit-button {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
}

.form-hint {
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.6;
}

/* ========================================
   AUTENTICACIÓN Y AVISOS
======================================== */

.auth-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: var(--primary-hover);
    font-weight: 800;
}

.notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #ef44444a;
    border-radius: 10px;
    background: #ef44440d;
    color: #fca5a5;
    font-size: 12px;
}

.notice-success {
    border-color: #22c55e4a;
    background: #22c55e0c;
    color: #86efac;
}

/* ========================================
   ESTILO GLOBAL DE BOTONES
======================================== */

.button,
button.button,
input[type="submit"].button,
input[type="button"].button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: #1b0c03;
    box-shadow: 0 5px 22px #f9731620;
}

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

.button-outline {
    border-color: var(--border-hover);
    background: #ffffff04;
    color: var(--foreground);
}

.button-outline:hover {
    border-color: var(--primary);
    background: #f973160b;
}

.button-quiet {
    background: transparent;
    color: var(--muted);
}

.button-quiet:hover {
    color: var(--foreground);
}

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

.button:disabled,
button:disabled,
input:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* Botones de formularios sin clase button */

.auth-form button:not(.button),
.profile-edit-section button:not(.button) {
    font-family: inherit;
    border-radius: 11px;
    font-weight: 800;
}


/* ========================================
   CAMPO DE CONTRASEÑA
======================================== */

.password-field {
    position: relative;
    width: 100%;
}

.auth-card .password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777781;
    cursor: pointer;
    transition: color .18s ease;
}

.password-toggle:hover {
    color: var(--foreground);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   BUSCADOR Y FILTROS
======================================== */

.search-section {
    padding-top: 28px;
    padding-bottom: 32px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.search-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #09090b;
    color: var(--foreground);
    font: inherit;
    font-size: 13px;
    transition: border-color .18s ease;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--primary);
}

.search-field select {
    cursor: pointer;
}

.search-field select option {
    background: #09090b;
    color: var(--foreground);
}

.search-actions {
    display: flex;
    gap: 8px;
}

.search-actions .button {
    min-height: 44px;
    white-space: nowrap;
}


/* ========================================
   BUSCADOR EXCLUSIVO DE EXPLORER
======================================== */

.explorer-search {
    padding-top: 34px;
    padding-bottom: 28px;
}

.explorer-search .search-form {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
    gap: 16px;
    padding: 26px;
    border-color: #f9731630;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 0% 0%, #f9731610, transparent 55%),
        #111217;
    box-shadow: 0 14px 45px #0002;
}

.explorer-search .search-field {
    gap: 10px;
}

.explorer-search .search-field label {
    color: #b5b5bd;
    font-size: 10px;
    letter-spacing: .8px;
}

.explorer-search .search-field input,
.explorer-search .search-field select {
    min-height: 48px;
    border-radius: 11px;
    background-color: #09090b;
}

.explorer-search .search-field input:focus,
.explorer-search .search-field select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px #f9731618;
}

.explorer-search .search-actions {
    align-items: stretch;
}

.explorer-search .search-actions .button {
    min-height: 48px;
    border-radius: 11px;
}


/* ========================================
   PERFIL BÁSICO
======================================== */

.profile-card {
    width: min(100% - 40px, 760px);
    margin: 48px auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.profile-card h1 {
    margin-top: 0;
}


/* ========================================
   RECORTADOR DE AVATAR
======================================== */

/* Visibilidad */

.avatar-cropper[hidden],
.avatar-cropper [hidden] {
    display: none !important;
}

/* Ventana principal */

.avatar-cropper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
}

.avatar-cropper-panel {
    width: min(100%, 520px);
    max-height: 95vh;
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: #111114;
    box-shadow: 0 25px 100px rgba(0,0,0,.6);
}

/* Encabezado */

.avatar-cropper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-cropper-header h2 {
    margin: 8px 0;
    color: #fff;
    font-size: 23px;
}

.avatar-cropper-header p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

/* Botón de cierre */

.avatar-cropper-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid #333;
    border-radius: 50%;
    background: #1d1d22;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

/* Área de recorte */

.avatar-cropper-workspace {
    display: flex;
    justify-content: center;
    padding: 8px 0 20px;
}

.avatar-cropper-stage {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.avatar-cropper-stage:active {
    cursor: grabbing;
}

.avatar-cropper-stage > img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    pointer-events: none;
    user-select: none;
}

/* Máscara circular */

.avatar-cropper-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(0,0,0,.48);
}

.avatar-cropper-circle {
    position: absolute;
    width: 86%;
    height: 86%;
    left: 7%;
    top: 7%;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(0,0,0,.15);
}

/* Carga y animación */

.avatar-cropper-loading {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: #ddd;
}

.avatar-cropper-loading p {
    margin: 0;
    font-size: 14px;
}

.avatar-cropper-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #393939;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: avatar-spin .8s linear infinite;
}

@keyframes avatar-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Controles de zoom */

.avatar-cropper-controls {
    margin-top: 8px;
}

.avatar-cropper-controls label {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.avatar-zoom-control {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #aaa;
}

.avatar-zoom-control input {
    flex: 1;
    accent-color: #f97316;
    cursor: pointer;
}

.avatar-cropper-controls > small {
    display: block;
    margin-top: 10px;
    color: #888;
}

/* Acciones */

.avatar-cropper-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}


/* ========================================
   PERFIL SOCIAL
======================================== */

.profile-page {
    width: min(1100px, calc(100% - 40px));
    margin: 50px auto 90px;
}

.profile-header {
    padding: 32px;
    background: linear-gradient(135deg, #18191e, #101115);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid var(--primary);
    border-radius: 50%;
    background: var(--surface-tertiary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.profile-heading h1 {
    margin: 5px 0;
    font-size: clamp(26px, 4vw, 36px);
}

.profile-username {
    color: var(--muted);
    font-size: 14px;
}

.profile-description {
    margin-top: 22px;
    max-width: 650px;
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.profile-description p {
    margin: 0;
}

.profile-description a {
    display: inline-block;
    margin-top: 8px;
    color: var(--secondary);
    text-decoration: none;
}

.profile-description a:hover {
    text-decoration: underline;
}

.profile-empty {
    color: var(--muted-foreground);
}

.profile-actions {
    margin-top: 22px;
}

.profile-activity {
    margin-top: 32px;
}


/* ========================================
   ESTADÍSTICAS SOCIALES
======================================== */

.profile-social-stats button {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}


/* ========================================
   PESTAÑAS DEL PERFIL
======================================== */

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 45px;
    border-bottom: 1px solid var(--border);
}

.profile-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 17px 5px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.profile-tab:hover,
.profile-tab.active {
    color: var(--foreground);
}

.profile-tab.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    content: "";
}

.profile-tab > span {
    font-size: 19px;
}

.profile-tab small {
    color: var(--muted-foreground);
    font-size: 12px;
}

.profile-tab-content {
    padding-top: 28px;
}

.profile-tab-content .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ========================================
   VENTANA DE SEGUIDORES Y SEGUIDOS
======================================== */

.profile-social-dialog {
    width: min(440px, calc(100% - 32px));
    max-width: 440px;
    max-height: min(620px, 80vh);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #111114;
    color: var(--foreground);
    box-shadow: 0 24px 80px #00000080;
}

.profile-social-dialog::backdrop {
    background: #000000b8;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Encabezado */

.profile-social-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #111114;
}

.profile-social-dialog-header h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.4px;
}

/* Botón de cierre */

.profile-social-dialog-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff06;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: .18s ease;
}

.profile-social-dialog-header button:hover {
    border-color: var(--primary);
    background: #f9731610;
    color: var(--primary);
}

/* Contenido */

.profile-social-dialog-content {
    max-height: calc(min(620px, 80vh) - 69px);
    padding: 10px 12px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.profile-social-dialog-content [hidden] {
    display: none !important;
}

.profile-social-dialog-content ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Usuarios */

.profile-social-dialog-content li {
    margin: 0;
    padding: 0;
}

.profile-social-dialog-content li a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--foreground);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.profile-social-dialog-content li a:hover {
    border-color: var(--border);
    background: #ffffff08;
}

/* Avatar */

.profile-social-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #ffffff08;
}

.profile-social-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-social-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Nombre y usuario */

.profile-social-user-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.profile-social-user-info strong {
    overflow: hidden;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-social-user-info small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lista vacía */

.profile-social-dialog-content .profile-empty {
    margin: 0;
    padding: 35px 15px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}


/* ========================================
   EDITOR DE PERFIL FOXCRAFT
======================================== */

.profile-edit-page {
    width: min(1050px, calc(100% - 40px));
    margin: 55px auto 100px;
}

/* Encabezado */

.profile-edit-heading {
    margin-bottom: 35px;
}

.profile-edit-heading h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1.8px;
}

.profile-edit-heading h1 span {
    color: var(--primary);
}

.profile-edit-heading p {
    color: var(--muted);
    font-size: 14px;
}

/* Distribución */

.profile-edit-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.profile-edit-sidebar,
.profile-edit-main {
    min-width: 0;
}

.profile-edit-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tarjetas y secciones */

.profile-edit-avatar-card,
.profile-edit-section,
.profile-edit-tip {
    background: var(--surface, #111216);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-edit-avatar-card {
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-edit-section {
    padding: 28px;
}

/* Etiquetas y encabezados */

.profile-edit-section-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.profile-edit-section-heading {
    margin-bottom: 26px;
}

.profile-edit-section-heading h2 {
    margin: 9px 0 5px;
    font-size: 20px;
}

.profile-edit-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* Vista previa del avatar */

.profile-edit-preview {
    width: 132px;
    height: 132px;
    margin: 25px 0 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid var(--primary);
    border-radius: 50%;
    background: var(--surface-tertiary, #202127);
    box-shadow: 0 0 35px rgba(249, 115, 22, .12);
}

.profile-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-preview img[hidden],
.profile-edit-preview span[hidden] {
    display: none;
}

.profile-edit-preview span {
    color: var(--primary);
    font-size: 48px;
    font-weight: 800;
}

.profile-edit-avatar-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.profile-edit-avatar-username {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

/* Subida de imagen */

.profile-edit-upload {
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-secondary, #191a20);
    color: var(--foreground);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.profile-edit-upload:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-edit-upload span {
    font-size: 19px;
}

.profile-edit-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.profile-edit-avatar-card > small {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
}

/* Consejo lateral */

.profile-edit-tip {
    margin-top: 16px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-edit-tip > span {
    color: var(--primary);
    font-size: 20px;
}

.profile-edit-tip p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

/* Campos del formulario */

.profile-edit-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 22px;
}

.profile-edit-field label {
    font-size: 12px;
    font-weight: 700;
}

.profile-edit-field input,
.profile-edit-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--background, #09090b);
    color: var(--foreground);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .10);
}

.profile-edit-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

.profile-edit-field input::placeholder,
.profile-edit-field textarea::placeholder {
    color: var(--muted);
}

.profile-edit-field small {
    color: var(--muted);
    font-size: 10px;
}

/* Acciones y errores */

.profile-edit-actions {
    padding: 20px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.profile-edit-actions .button {
    min-height: 44px;
}

.profile-edit-error {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface, #111216);
    color: var(--muted);
}


/* ========================================
   DETALLE DE PUBLICACIONES
======================================== */

/* Estructura principal */

.content-detail-layout {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    padding: 52px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 48px;
}

.content-detail-main {
    min-width: 0;
}

/* Imagen principal */

.content-detail-media {
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.content-detail-image {
    display: block;
    width: 100%;
    max-width: 900px;
    max-height: 520px;
    margin: 24px auto;
    object-fit: contain;
}

/* Título y descripción */

.content-detail-heading {
    margin-top: 25px;
}

.content-detail-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.content-detail-description {
    margin-top: 15px;
}

.content-detail-description p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* Botón para volver */

.content-detail-back {
    display: inline-block;
    margin-top: 32px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.content-detail-back:hover {
    color: var(--primary);
}


/* ========================================
   DETALLE - BARRA LATERAL
======================================== */

.content-detail-sidebar {
    position: relative;
    min-width: 0;
    padding: 12px 0;
}

.content-detail-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -24px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        var(--border) 0%,
        var(--border) 23%,
        transparent 23%,
        transparent 38%,
        var(--border) 38%,
        var(--border) 62%,
        transparent 62%,
        transparent 77%,
        var(--border) 77%,
        var(--border) 100%
    );
}


/* ========================================
   DETALLE - BOTONES Y ACCIONES
======================================== */

.content-detail-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.content-detail-actions > .button-primary {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
}

.content-detail-actions .detail-action-form {
    flex: 0 0 44px;
    width: 44px;
    margin: 0;
}

/* Botones con iconos */

.detail-icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.detail-icon-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.detail-icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-icon-button.is-active svg,
.detail-icon-button:hover svg {
    fill: currentColor;
}

.detail-icon-button.is-active {
    color: var(--primary);
    border-color: var(--primary);
}

.detail-icon-button.is-active:hover {
    color: var(--primary);
}

/* Descargas deshabilitadas */

.content-detail-download-disabled {
    flex: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}


/* ========================================
   DETALLE - INFORMACIÓN Y ESTADÍSTICAS
======================================== */

.content-detail-information {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.content-detail-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.content-detail-stat-label {
    color: var(--muted);
    font-size: 12px;
}

.content-detail-stat strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

/* Versiones */

.content-detail-version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.content-detail-version-list span {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
}


/* ========================================
   PAGINACIÓN
======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, background .2s, color .2s;
}

.pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-link.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    cursor: default;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: var(--muted);
}


/* ========================================
   CONSENTIMIENTO DE COOKIES
======================================== */

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-content h2 {
    margin: 8px 0;
    font-size: 20px;
}

.cookie-consent-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-actions .button {
    min-width: 180px;
    white-space: nowrap;
}


/* ========================================
   PÁGINAS LEGALES
======================================== */

.legal-content {
    width: min(100% - 48px, 900px);
    margin: 0 auto;
    padding-top: 42px;
}

.legal-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
}

.legal-section p {
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.legal-section code {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--surface);
    color: var(--primary-hover);
    font-size: 12px;
}

.legal-updated {
    margin: 22px 0;
    color: var(--muted);
    font-size: 12px;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    padding: 28px max(24px, calc((100% - 1180px) / 2));
    border-top: 1px solid var(--border);
    background: #09090bcc;
}

.site-footer > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--muted);
    font-size: 11px;
}

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

.cookie-settings-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.cookie-settings-button:hover {
    color: var(--primary-hover);
}


/* ========================================
   MENÚ LATERAL MÓVIL
======================================== */

.mobile-account,
.mobile-menu-backdrop {
    display: none;
}

.menu-toggle {
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff04;
    cursor: pointer;
}

.menu-toggle:hover {
    border-color: var(--primary);
}

/* ========================================
   RESPONSIVE GENERAL
======================================== */

/* Pantallas grandes */
@media (min-width: 1500px) {
    .hero {
        min-height: 520px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 1000px) {
    .nav-wrap {
        width: min(100% - 36px, 1240px);
        gap: 14px;
    }

    .main-nav {
        gap: 1px;
    }

    .main-nav a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .hero {
        gap: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablets pequeñas */
@media (max-width: 900px) {
    .search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-actions {
        grid-column: 1 / -1;
    }

    .profile-tab-content .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================
   PC Y PANTALLAS GRANDES
======================================== */

@media (min-width: 761px) {

    /* Botones */

    .button {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Acciones del perfil */

    .profile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-actions > form {
        margin: 0;
    }
}

/* ========================================
   TABLETS Y MÓVILES
======================================== */

@media (max-width: 760px) {

    /* ========================================
       BOTONES GENERALES
    ======================================== */

    .button,
    button.button,
    input[type="submit"].button,
    input[type="button"].button {
        min-height: 42px;
        padding: 10px 13px;
        border-radius: 10px;
        font-size: 12px;
    }


    /* ========================================
       ENCABEZADO Y NAVEGACIÓN
    ======================================== */

    .site-header {
        z-index: 1000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #09090b;
    }

    .nav-wrap {
        position: relative;
        z-index: 1002;
        min-height: 68px;
        justify-content: space-between;
    }

    .nav-wrap > .brand {
        margin-right: auto;
    }

    .nav-wrap > .nav-actions {
        display: none;
    }

    /* Botón del menú */

    .menu-toggle {
        display: flex;
        z-index: 1004;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
    }

    .menu-toggle span {
        width: 19px;
        height: 2px;
        padding: 0;
        border-radius: 2px;
        background: var(--foreground);
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Menú lateral */

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        z-index: 1003;
        display: flex;
        width: 70%;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 90px 22px 25px;
        overflow-y: auto;
        border: 0;
        border-left: 1px solid var(--border);
        background: #101115;
        box-shadow: -20px 0 60px #0006;
        clip-path: inset(0 0 0 100%);
        visibility: hidden;
        overscroll-behavior: contain;
        touch-action: pan-y;
        transition: clip-path .28s ease, visibility .28s ease;
    }

    .main-nav.is-open {
        clip-path: inset(0);
        visibility: visible;
    }

    .main-nav > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 14px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: var(--foreground);
        font-size: 14px;
        font-weight: 700;
    }

    .main-nav > a:hover,
    .main-nav > a.active {
        border-color: #f973162b;
        background: #f9731610;
        color: var(--primary-hover);
    }

    /* Cuenta del usuario */

    .mobile-account {
        display: block;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .mobile-account-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 4px;
    }

    .mobile-account-avatar {
        display: grid;
        width: 43px;
        height: 43px;
        flex-shrink: 0;
        place-items: center;
        overflow: hidden;
        border: 1px solid #f9731645;
        border-radius: 50%;
        background: var(--surface-tertiary);
    }

    .mobile-account-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-account-avatar svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: var(--muted);
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-account-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-account-copy strong {
        overflow: hidden;
        color: var(--foreground);
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-account-copy small {
        color: var(--muted);
        font-size: 11px;
    }

    /* Fondo del menú */

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgb(0 0 0 / 65%);
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .site-header.menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Bloqueo del scroll */

    body.menu-locked {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }


    /* ========================================
       HERO
    ======================================== */

    .hero {
        grid-template-columns: 1fr;
        gap: 8px;
        width: min(100% - 40px, 600px);
        min-height: auto;
        margin-top: 8px;
        padding: 58px 0 35px;
    }

    .hero h1 {
        max-width: 600px;
        font-size: clamp(38px, 9vw, 57px);
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-art {
        min-height: 260px;
        margin-top: 5px;
    }

    .art-core {
        width: 112px;
        border-radius: 28px;
        font-size: 60px;
    }

    .art-orbit {
        width: 245px;
    }

    .orbit-two {
        width: 205px;
    }

    .chip-one {
        right: 7%;
    }

    .chip-two {
        bottom: 12%;
        left: 7%;
    }


    /* ========================================
       SECCIONES Y CATEGORÍAS
    ======================================== */

    .section {
        width: min(100% - 40px, 600px);
        padding: 34px 0 40px;
    }

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

    .category-card {
        min-height: 100px;
        gap: 12px;
        padding: 12px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-copy h3,
    .category-copy strong {
        font-size: 12px;
    }

    .category-copy p,
    .category-copy small {
        font-size: 10px;
    }

    .category-arrow {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 24px;
    }


    /* ========================================
       PÁGINAS Y AUTENTICACIÓN
    ======================================== */

    .page-banner {
        padding: 45px 20px 35px;
    }

    .auth-card {
        padding: 25px 21px;
    }


    /* ========================================
       FOOTER Y PÁGINAS LEGALES
    ======================================== */

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 20px;
    }

    .legal-content {
        width: min(100% - 36px, 900px);
        padding-top: 28px;
    }


    /* ========================================
       CONSENTIMIENTO DE COOKIES
    ======================================== */

    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 18px;
    }

    .cookie-consent-content {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .cookie-consent-actions {
        flex-direction: row;
    }

    .cookie-consent-actions .button {
        min-width: 0;
        flex: 1;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }


    /* ========================================
       PERFIL SOCIAL
    ======================================== */

    .profile-page {
        width: calc(100% - 28px);
        margin-top: 25px;
    }

    .profile-header {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .profile-identity {
        align-items: center;
        gap: 18px;
    }

    .profile-avatar {
        width: 86px;
        height: 86px;
    }

    .profile-avatar svg {
        width: 36px;
        height: 36px;
    }

    .profile-heading {
        min-width: 0;
    }

    .profile-heading .eyebrow {
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .profile-heading h1 {
        margin: 2px 0;
        font-size: clamp(26px, 4vw, 36px);
        line-height: 1.2;
    }

    .profile-username {
        display: block;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.3;
    }

    .profile-description {
        margin-top: 16px;
        max-width: 650px;
        color: var(--muted);
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .profile-social-stats {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-top: 14px;
    }

    .profile-social-stats button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--muted);
        font: inherit;
        cursor: pointer;
    }

    .profile-social-stats button strong {
        color: var(--foreground);
        font-size: 14px;
        line-height: 1.2;
    }

    .profile-social-stats button span {
        font-size: 12px;
        line-height: 1.3;
    }

    /* Acciones del perfil */

    .profile-actions {
        display: flex;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .profile-actions > form {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    .profile-actions > form button,
    .profile-actions > a {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
        text-align: center;
    }

    /* Pestañas */

    .profile-tabs {
        justify-content: space-between;
        gap: 8px;
    }

    .profile-tab {
        justify-content: center;
        gap: 5px;
        padding: 15px 2px;
        font-size: 12px;
    }

    .profile-tab > span {
        font-size: 16px;
    }

    .profile-tab small {
        font-size: 10px;
    }

    .profile-tab-content .content-grid {
        grid-template-columns: 1fr;
    }


    /* ========================================
       DIÁLOGO DE SEGUIDORES Y SEGUIDOS
    ======================================== */

    .profile-social-dialog {
        width: calc(100% - 28px);
        max-height: 78vh;
        border-radius: 16px;
    }

    .profile-social-dialog-header {
        min-height: 62px;
        padding: 13px 16px;
    }

    .profile-social-dialog-header h2 {
        font-size: 16px;
    }

    .profile-social-dialog-content {
        max-height: calc(78vh - 63px);
        padding: 8px;
    }

    .profile-social-dialog-content li a {
        gap: 11px;
        padding: 10px 8px;
    }

    .profile-social-avatar {
        width: 43px;
        height: 43px;
    }

    .profile-social-user-info strong {
        font-size: 13px;
    }

    .profile-social-user-info small {
        font-size: 11px;
    }


    /* ========================================
       EDITOR DE PERFIL
    ======================================== */

    .profile-edit-page {
        width: calc(100% - 28px);
        margin-top: 30px;
    }

    .profile-edit-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-edit-avatar-card {
        padding: 22px;
    }

    .profile-edit-preview {
        width: 110px;
        height: 110px;
        margin-top: 18px;
    }

    .profile-edit-section {
        padding: 22px 18px;
    }

    .profile-edit-actions {
        flex-direction: column-reverse;
    }

    .profile-edit-actions .button {
        width: 100%;
        justify-content: center;
    }


    /* ========================================
       DETALLE DE PUBLICACIONES
    ======================================== */

    .content-detail-layout {
        display: flex;
        flex-direction: column;
        width: calc(100% - 32px);
        max-width: 600px;
        min-width: 0;
        gap: 20px;
        padding: 20px 0 32px;
        overflow: hidden;
    }

    .content-detail-main,
    .content-detail-sidebar {
        width: 100%;
        min-width: 0;
    }

    /* Imagen y fondo desenfocado */

    .content-detail-media {
        position: relative;
        isolation: isolate;
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #121318;
    }

    .content-detail-image-background {
        display: block;
        position: absolute;
        z-index: 0;
        inset: -15px;
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        max-width: none;
        max-height: none;
        margin: 0;
        object-fit: cover;
        filter: blur(22px) brightness(.55);
        transform: scale(1.08);
        pointer-events: none;
    }

    .content-detail-image {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: center;
    }

    /* Título y descripción */

    .content-detail-heading {
        margin-top: 16px;
    }

    .content-detail-heading h1 {
        font-size: clamp(23px, 6vw, 29px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .content-detail-description {
        margin-top: 10px;
    }

    .content-detail-description p {
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .content-detail-back {
        margin-top: 18px;
    }

    /* Barra lateral */

    .content-detail-sidebar {
        padding: 0;
    }

    .content-detail-sidebar::before {
        display: none;
    }

    /* Acciones */

    .content-detail-actions {
        width: 100%;
        gap: 8px;
    }

    .content-detail-actions > .button-primary {
        min-width: 0;
        flex: 1;
        font-size: 12px;
    }

    .content-detail-actions .detail-action-form {
        flex: 0 0 42px;
        width: 42px;
    }

    .detail-icon-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

    /* Información y versiones */

    .content-detail-information {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 20px;
    }

    .content-detail-stat {
        min-width: 0;
        gap: 4px;
    }

    .content-detail-versions {
        grid-column: 1 / -1;
    }

    .content-detail-version-list {
        gap: 6px;
    }


    /* ========================================
       TARJETAS DE CONTENIDO
    ======================================== */

    .content-image {
        aspect-ratio: 16 / 9;
        isolation: isolate;
        overflow: hidden;
        background: #121318;
    }

    .content-image-background {
        z-index: 0;
        inset: -15px;
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        filter: blur(22px) brightness(.55);
        transform: scale(1.08);
    }

    .content-image-main {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .content-image-overlay {
        z-index: 2;
        padding: 28px 12px 11px;
    }

    .content-image-labels span {
        padding: 6px 9px;
        font-size: 10px;
    }

    .content-card-favorite {
        z-index: 3;
    }


    /* ========================================
       BOTONES AUXILIARES
    ======================================== */

    .logout-button {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
    }
}

@media (max-width: 600px) {

    /* Contenedor del perfil */
    .profile-page {
        width: calc(100% - 28px);
        margin-top: 25px;
    }

    /* Encabezado sin tarjeta */
    .profile-header {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    /* Identidad y avatar */
    .profile-identity {
        align-items: center;
        gap: 18px;
    }

    .profile-avatar {
        width: 86px;
        height: 86px;
    }

    .profile-avatar svg {
        width: 36px;
        height: 36px;
    }

    /* Nombre y usuario más compactos */
    .profile-heading {
        min-width: 0;
    }

    .profile-heading .eyebrow {
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .profile-heading h1 {
        margin: 2px 0;
        font-size: clamp(26px, 4vw, 36px);
        line-height: 1.2;
    }

    .profile-username {
        display: block;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.3;
    }

    /* Estadísticas sociales */
    .profile-social-stats {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-top: 14px;
    }

    .profile-social-stats button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--muted);
        font: inherit;
        cursor: pointer;
    }

    .profile-social-stats button strong {
        color: var(--foreground);
        font-size: 14px;
        line-height: 1.2;
    }

    .profile-social-stats button span {
        font-size: 12px;
        line-height: 1.3;
    }

    /* Descripción */
    .profile-description {
        margin-top: 16px;
        max-width: 650px;
        color: var(--muted);
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    /* Botones en una misma fila */
    .profile-actions {
        display: flex;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .profile-actions > form {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    .profile-actions > form button,
    .profile-actions > a {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 10px 8px;
    }

    /* Pestañas */
    .profile-tabs {
        justify-content: space-between;
        gap: 8px;
    }

    .profile-tab {
        justify-content: center;
        gap: 5px;
        padding: 15px 2px;
        font-size: 12px;
    }

    .profile-tab > span {
        font-size: 16px;
    }

    .profile-tab small {
        font-size: 10px;
    }

    .profile-tab-content .content-grid {
        grid-template-columns: 1fr;
    }

    /* Diálogo de seguidores y seguidos */
    .profile-social-dialog {
        width: calc(100% - 28px);
        max-height: 78vh;
        border-radius: 16px;
    }

    .profile-social-dialog-header {
        min-height: 62px;
        padding: 13px 16px;
    }

    .profile-social-dialog-header h2 {
        font-size: 16px;
    }

    .profile-social-dialog-content {
        max-height: calc(78vh - 63px);
        padding: 8px;
    }

    .profile-social-dialog-content li a {
        gap: 11px;
        padding: 10px 8px;
    }

    .profile-social-avatar {
        width: 43px;
        height: 43px;
    }

    .profile-social-user-info strong {
        font-size: 13px;
    }

    .profile-social-user-info small {
        font-size: 11px;
    }
}

/* Responsive del recortador */
@media (max-width: 560px) {
    .avatar-cropper {
        padding: 10px;
    }

    .avatar-cropper-panel {
        padding: 20px 16px;
    }

    .avatar-cropper-stage {
        width: 100%;
    }

    .avatar-cropper-actions > button {
        flex: 1;
    }
}

/* ========================================
   RESPONSIVE BUSCADOR Y PAGINACIÓN
======================================== */

@media (max-width: 520px) {

    /* Buscador general */
    .search-form {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 16px;
    }

    /* Explorer: distribución del buscador en móviles */
    .explorer-search .search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explorer-search .search-field:nth-of-type(1),
    .explorer-search .search-field:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    .explorer-search .search-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .explorer-search .search-actions .button {
        width: 100%;
        min-width: 0;
    }

    /* Botones de búsqueda */
    .search-actions {
        grid-column: auto;
    }

    .search-actions .button {
        flex: 1;
    }

    /* Paginación */
    .pagination {
        gap: 6px;
        margin-top: 26px;
    }

    .pagination-link {
        min-width: 38px;
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   RESPONSIVE MÓVILES PEQUEÑOS
======================================== */

@media (max-width: 430px) {

    /* Marca y navegación */
    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .main-nav {
        width: 70%;
        padding-right: 17px;
        padding-left: 17px;
    }

    /* Hero */
    .hero h1 {
        font-size: 37px;
    }

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

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

    .hero-stats {
        gap: 20px;
    }

    /* Categorías y contenido */
    .category-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 76px;
    }

    /* Encabezados */
    .section-heading {
        gap: 10px;
    }

    .section-link {
        padding-top: 8px;
        font-size: 11px;
    }

    /* Autenticación */
    .auth-section {
        padding-inline: 14px;
    }

    .auth-card {
        padding: 22px 17px;
    }

    .button,
    button.button {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }

    .profile-actions {
        gap: 8px;
    }

    .profile-actions > form button,
    .profile-actions > a {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 11px;
    }
}

/* ========================================
   RESPONSIVE - DETALLE EN PANTALLAS PEQUEÑAS
======================================== */

@media (max-width: 380px) {
    .content-detail-layout {
        width: calc(100% - 24px);
    }

    .content-detail-actions {
        gap: 6px;
    }

    .content-detail-actions .detail-action-form {
        flex-basis: 38px;
        width: 38px;
    }

    .detail-icon-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

/* ========================================
   ACCESIBILIDAD - MOVIMIENTO REDUCIDO
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
