/* RedAI-Web – Index page */

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay2 {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    70% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1.2s ease-out;
}

.animate-fade-in-delay-2 {
    animation: fadeInDelay2 1.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Efectos hover mejorados */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ——— Home re-diseño (hero + actividad + tendencias) ——— */
/* Evita recortar halos y gradientes del hero (html/body ya limitan overflow-x) */
main.main-content.page-home {
    overflow-x: visible !important;
}

.home-hero.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 3rem;
    overflow-x: visible;
    overflow-y: visible;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(244, 63, 94, 0.12), transparent 45%),
        linear-gradient(180deg, #070a12 0%, #0b0f19 40%, #0b0f19 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-mode="light"] .home-hero.hero {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
        linear-gradient(180deg, #e8edf5 0%, #dce4f0 100%);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.home-hero__glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 88%;
    background: radial-gradient(ellipse 95% 70% at 50% 18%, rgba(244, 63, 94, 0.18), transparent 62%),
        radial-gradient(ellipse 80% 55% at 80% 60%, rgba(124, 58, 237, 0.12), transparent 55%);
    pointer-events: none;
}

.home-hero__avatars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-hero__inner {
    position: relative;
    z-index: 2;
}

.home-hero__content {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
}

.home-hero__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(244, 114, 182, 0.95);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.home-hero__title {
    font-size: clamp(1.85rem, 5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 0;
    color: var(--neo-text, #f1f5f9);
    text-wrap: balance;
}

.home-hero__sub {
    margin: 1.1rem auto 0;
    font-size: clamp(0.95rem, 2.4vw, 1.125rem);
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.82);
    max-width: 38rem;
}

html[data-mode="light"] .home-hero__title {
    color: var(--neo-text, #111827);
}

html[data-mode="light"] .home-hero__sub {
    color: rgba(30, 41, 59, 0.82);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.btn-home-primary {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 32px rgba(244, 63, 94, 0.35);
}

.btn-home-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 40px rgba(244, 63, 94, 0.45);
}

.btn-home-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--neo-text, #e2e8f0) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    font-weight: 600 !important;
    padding: 0.9rem 1.35rem !important;
}

html[data-mode="light"] .btn-home-secondary {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #1e293b !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.home-hero-orbit-avatar {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0.88;
    animation: homeOrbitFloat 9s ease-in-out infinite;
}

.home-hero-orbit-nsfw {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0.88;
    animation: homeOrbitFloat 9s ease-in-out infinite;
}

.home-hero-orbit-nsfw img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero-orbit-nsfw[data-censored="1"] img {
    filter: blur(18px);
    transform: scale(1.08);
}

.home-hero-orbit-nsfw .nsfw-reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 2;
    padding: 3px 5px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
}

@keyframes homeOrbitFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, -10px) scale(1.04); }
}

.home-live-stats {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--neo-border, rgba(255, 255, 255, 0.08));
    padding: 0.65rem 0;
}

html[data-mode="light"] .home-live-stats {
    background: rgba(255, 255, 255, 0.55);
}

.home-live-stats__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

@media (min-width: 768px) {
    .home-live-stats__row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
}

@media (min-width: 1100px) {
    .home-live-stats__row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.home-live-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.25rem;
    min-height: 3rem;
}

.home-live-stat__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--neo-primary, #7c3aed) 22%, transparent);
    color: #fda4af;
    font-size: 1rem;
}

.home-live-stat__value {
    display: block;
    font-weight: 800;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--neo-text, #f8fafc);
}

.home-live-stat__label {
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--neo-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-head {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.section-title--sm {
    font-size: 1.15rem;
}

.section-lead {
    margin: 0;
    color: var(--neo-muted);
    font-size: 0.95rem;
    max-width: 40rem;
}

.section-lead--tight {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.home-card-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    /* No scroll-snap-type aquí: el auto-scroll JS (home-card-scroller--auto) pelea
       con el snap obligatorio y la cinta se queda clavada en las tarjetas. */
    min-height: 1px;
}

.home-card-scroller--auto {
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-card-scroller--auto::-webkit-scrollbar {
    display: none;
}

.home-card-scroller__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-bottom: 0.25rem;
}

.home-char-card {
    flex: 0 0 min(280px, 82vw);
    scroll-snap-align: start;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--neo-surface);
    border: 1px solid var(--neo-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.home-char-card__banner {
    height: 72px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.home-char-card__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}

.home-char-card__avatar {
    position: absolute;
    left: 1rem;
    bottom: -28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--neo-surface);
    object-fit: cover;
    z-index: 2;
}

/* NSFW en home: mismo patrón que explorer (blur + botón por wrap) */
.home-char-card__banner--nsfw {
    background: linear-gradient(135deg, #1a1620, #2d2836);
}

.home-char-card__nsfw-banner-slot {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-char-card__nsfw-banner-slot--empty {
    background: linear-gradient(135deg, #1a1620, #2d2836);
}

.home-char-card .home-char-card__nsfw-banner-slot .nsfw-card-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-char-card .home-char-card__fullbanner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-char-card .home-char-card__nsfw-banner-slot .nsfw-card-wrap[data-censored="1"] .home-char-card__fullbanner-img {
    filter: blur(24px);
    transform: scale(1.05);
}

.home-char-card__nsfw-avatar-wrap {
    position: absolute;
    left: 1rem;
    bottom: -28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--neo-surface);
    z-index: 3;
    overflow: hidden;
    box-sizing: border-box;
}

.home-char-card__nsfw-avatar-wrap .home-char-card__avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.home-char-card .home-char-card__nsfw-avatar-wrap[data-censored="1"] .home-char-card__avatar {
    filter: blur(24px);
    transform: scale(1.05);
}

.home-char-card .nsfw-reveal-btn {
    position: absolute;
    z-index: 4;
    padding: 6px 10px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.home-char-card .nsfw-reveal-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: #fff;
}

.home-char-card__nsfw-banner-slot .nsfw-reveal-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home-char-card__nsfw-avatar-wrap .nsfw-reveal-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.72);
    padding: 4px 6px;
    font-size: 0;
    gap: 0;
}

.home-char-card__nsfw-avatar-wrap .nsfw-reveal-label-reveal,
.home-char-card__nsfw-avatar-wrap .nsfw-reveal-label-censor {
    display: none !important;
}

.home-char-card .nsfw-card-wrap[data-censored="1"] .nsfw-reveal-label-censor,
.home-char-card .nsfw-card-wrap[data-censored="1"] .nsfw-reveal-icon-censor,
.home-mini-row .nsfw-card-wrap[data-censored="1"] .nsfw-reveal-label-censor,
.home-mini-row .nsfw-card-wrap[data-censored="1"] .nsfw-reveal-icon-censor,
.home-hero-orbit-nsfw[data-censored="1"] .nsfw-reveal-icon-censor {
    display: none;
}

/* Badge de cuenta suspendida en home */
.cc-suspended-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.home-char-card .nsfw-card-wrap[data-censored="0"] .nsfw-reveal-label-reveal,
.home-char-card .nsfw-card-wrap[data-censored="0"] .nsfw-reveal-icon-reveal,
.home-mini-row .nsfw-card-wrap[data-censored="0"] .nsfw-reveal-label-reveal,
.home-mini-row .nsfw-card-wrap[data-censored="0"] .nsfw-reveal-icon-reveal,
.home-hero-orbit-nsfw[data-censored="0"] .nsfw-reveal-icon-reveal {
    display: none;
}

.home-char-card__meta .chip.nsfw {
    margin-right: 0.25rem;
}

.home-char-card__body {
    padding: 2.1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-char-card__name {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
}

.home-char-card__creator {
    font-size: 0.8rem;
    color: var(--neo-muted);
    margin: 0;
}

.home-char-card__creator a {
    color: #fda4af;
    text-decoration: none;
}

.home-char-card__snippet {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--neo-text);
    opacity: 0.92;
    margin: 0;
    flex: 1;
}

.home-char-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--neo-muted);
}

.home-char-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.home-char-card__actions .btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
}

.home-empty-hint {
    text-align: center;
    color: var(--neo-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.home-trending-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.home-why-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    grid-template-columns: 1fr;
}

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

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

.home-why-card {
    border-radius: 1rem;
    padding: 1.25rem 1.1rem;
    background: var(--neo-surface);
    border: 1px solid var(--neo-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}

.home-why-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(124, 58, 237, 0.25));
    color: #fda4af;
}

.home-why-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.home-why-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--neo-muted);
}

.home-community__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .home-community__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.home-mini-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-mini-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    background: var(--neo-surface);
    border: 1px solid var(--neo-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.home-mini-row:hover {
    background: color-mix(in srgb, var(--neo-primary) 8%, var(--neo-surface));
}

.home-mini-row__img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.home-mini-row__img-wrap.nsfw-card-wrap {
    border-radius: 50%;
    overflow: hidden;
}

.home-mini-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.home-mini-row .home-mini-row__img-wrap.nsfw-card-wrap[data-censored="1"] img {
    filter: blur(22px);
    transform: scale(1.06);
}

.home-mini-row .home-mini-row__img-wrap .nsfw-reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    z-index: 2;
    padding: 4px 5px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
}

.home-mini-row .home-mini-row__img-wrap .nsfw-reveal-label-reveal,
.home-mini-row .home-mini-row__img-wrap .nsfw-reveal-label-censor {
    display: none !important;
}

.home-mini-row__text {
    flex: 1;
    min-width: 0;
}

.home-mini-row__name {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-mini-row__sub {
    font-size: 0.75rem;
    color: var(--neo-muted);
}

.home-final-cta .cta-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.home-final-cta .cta-btn {
    font-size: 1.05rem;
    padding: 1rem 1.75rem;
}

.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.btn-animate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-animate:hover::before {
    left: 100%;
}

.cta-card {
    text-align: center;
    background: linear-gradient(135deg, var(--neo-surface) 0%, color-mix(in srgb, var(--neo-primary) 8%, var(--neo-surface)) 100%);
    border: 1px solid var(--neo-border);
    color: var(--neo-text);
    transition: all 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
}

.cta-actions {
    margin-top: 1.5rem;
}

.cta-btn {
    animation: pulse 2.5s ease-in-out infinite;
    will-change: transform;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-btn:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
}

/* Estilos para el título dinámico */
.cta-title {
    transition: all 0.5s ease;
}

.cta-subtitle {
    transition: all 0.5s ease;
}

/* Animación de eliminación de la sección CTA */
.cta-card {
    transition: all 0.3s ease;
}

/* Sección de estadísticas (siempre según tema actual) */
.stats-section {
    background: var(--neo-bg);
    border-top: 1px solid var(--neo-border);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--neo-surface) !important;
    border: 1px solid var(--neo-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--neo-text) !important;
}
html[data-mode="dark"] .stat-card {
    background: var(--neo-surface) !important;
    border-color: var(--neo-border);
    color: var(--neo-text) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--neo-primary);
}

.stat-icon {
    font-size: 3rem;
    color: var(--neo-primary, #7c3aed) !important; /* Fallback crítico */
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neo-text, #e6e9f2) !important; /* Fallback crítico */
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--neo-muted, #9aa6bf) !important; /* Fallback crítico */
    margin: 0;
    font-weight: 500;
}

/* Soporte para modo claro */
html[data-mode="light"] .stat-card {
    background: var(--neo-surface, #c5cfde) !important;
    border: 1px solid var(--neo-border, rgba(0,0,0,.08));
    color: var(--neo-text) !important;
}

html[data-mode="light"] .stat-icon {
    color: var(--neo-primary);
}

html[data-mode="light"] .stat-number {
    color: #111827;
}

html[data-mode="light"] .stat-label {
    color: #6b7280;
}

/* Animación para los números */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.loading {
    opacity: 0.5;
}

/* ===== RESPONSIVE INDEX ===== */

/* Móvil (max-width: 1023px) */
@media (max-width: 1023px) {
    .home-hero.hero {
        min-height: 72vh;
        padding: 2.5rem 0 2rem;
    }

    .home-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .home-hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .home-hero-orbit-avatar {
        width: 40px;
        height: 40px;
        opacity: 0.55;
    }

    .home-hero-orbit-nsfw {
        width: 40px;
        height: 40px;
        opacity: 0.55;
    }

    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-sub {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .hero-actions .btn i {
        margin-right: 8px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card:hover {
        transform: translateY(-3px);
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9375rem;
    }
    
    .cta-card {
        padding: 1.5rem;
        margin: 2rem 0.75rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.9375rem;
    }
    
    .cta-actions {
        margin-top: 1.25rem;
    }
    
    .cta-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Reducir animaciones en móvil para mejor rendimiento */
    .btn-animate::before {
        display: none;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
}

/* === Continuar tus chats (home, usuarios logueados) === */
.home-continue__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.home-continue__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--neo-card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--neo-border, rgba(255, 255, 255, 0.08));
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.home-continue__card:hover {
    transform: translateY(-3px);
    border-color: var(--neo-accent, rgba(124, 58, 237, 0.6));
}

.home-continue__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--neo-bg, #0b0f19);
}

.home-continue__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-continue__name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-continue__preview {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}}