/* ===== INDEX — PRO DASHBOARD + HERO ===== */

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #ff9a5a);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ===== NAVBAR AUTO-OCULTABLE (solo en el index) =====
   Oculto nada m&aacute;s entrar (arriba del todo) y aparece al empezar a bajar. */
.navbar.nav-autohide {
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.navbar.nav-autohide.nav-visible {
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .navbar.nav-autohide { transition: none; }
}

/* ===== HERO SCROLL STORYTELLING ===== */
.hero {
    position: relative;
    width: 100%;
    height: 260vh; /* intro revelada por scroll + carrusel fijo (se pasa con flechas) */
}

/* Contenedor sticky: se queda fijo mientras el hero scrollea */
.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 55% at 50% 50%, rgba(255,107,53,0.18) 0%, rgba(255,107,53,0.04) 45%, transparent 75%),
        radial-gradient(ellipse 80% 70% at 50% 60%, rgba(255,107,53,0.06) 0%, transparent 70%);
}

/* ===== INTRO / OVERVIEW (antes del carrusel) ===== */
.hero-intro {
    position: absolute;
    inset: 0;
    z-index: 5;            /* por encima del track de slides durante la intro */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px;
    pointer-events: none;  /* JS lo activa cuando la intro esta visible */
    will-change: opacity;
}

.hero-intro-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

/* Scrim para que el texto se lea sobre la esfera */
.hero-intro-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -60px -60px;
    background: radial-gradient(ellipse 75% 75% at 50% 45%,
        rgba(18,18,18,0.82) 0%,
        rgba(18,18,18,0.60) 48%,
        rgba(18,18,18,0.22) 72%,
        transparent 86%);
    filter: blur(36px);
    pointer-events: none;
}

.intro-eyebrow {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,148,92,0.95);
    margin: 0;
    text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}

.intro-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    max-width: 760px;
    text-shadow: 0 2px 22px rgba(0,0,0,0.78), 0 0 40px rgba(0,0,0,0.5);
}
.intro-title span {
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), #ff9a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin: 0 0 8px;
    max-width: 520px;
    text-shadow: 0 1px 16px rgba(0,0,0,0.8);
}

/* Lista numerada con divisores horizontales (estilo "servicios/trabajo") */
.intro-features {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 940px;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.intro-feature {
    display: grid;
    grid-template-columns: 46px minmax(130px, 0.85fr) minmax(0, 1.7fr) 24px;
    align-items: center;
    gap: 22px;
    padding: 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    text-align: left;
    /* La transicion NO incluye transform: el scroll-reveal lo escribe por frame */
    transition: background 0.3s cubic-bezier(0.16,1,0.3,1),
                padding-left 0.3s cubic-bezier(0.16,1,0.3,1);
    /* estado inicial controlado por JS (scroll-driven reveal) */
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}
.intro-feature:hover {
    background: linear-gradient(90deg, rgba(255,107,53,0.10), rgba(255,107,53,0) 80%);
    padding-left: 26px;
}

.intro-feature-num {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff6b35;
    letter-spacing: 0.05em;
}

.intro-feature-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.25s;
    white-space: nowrap;
}
.intro-feature:hover .intro-feature-title { color: #ff6b35; }
/* Caracteres aleatorios del efecto scramble */
.scr-char {
    color: #ff9a5a;
    opacity: 0.85;
}

.intro-feature-desc {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.45;
    min-width: 0;
}

.intro-feature-arrow {
    font-size: 0.9rem;
    color: #ff6b35;
    justify-self: end;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s, transform 0.25s;
}
.intro-feature:hover .intro-feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

.intro-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.intro-scroll-hint i {
    animation: introBounce 1.8s ease-in-out infinite;
}
@keyframes introBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* Tablet: la descripcion pasa debajo del titulo */
@media (max-width: 760px) {
    .intro-feature {
        grid-template-columns: 38px 1fr 20px;
        grid-template-areas:
            "num title arrow"
            "num desc  arrow";
        gap: 4px 16px;
        padding: 15px 12px;
    }
    .intro-feature-num   { grid-area: num; align-self: start; }
    .intro-feature-title { grid-area: title; white-space: normal; }
    .intro-feature-desc  { grid-area: desc; }
    .intro-feature-arrow { grid-area: arrow; align-self: center; }
    .intro-feature:hover { padding-left: 18px; }
}

/* ===== SLIDES DEL CARRUSEL — horizontal scroll-driven ===== */

/* Track: fila horizontal con un slide por carril */
.hero-slides-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(4 * 100vw); /* un carril de 100vw por cada slide */
    display: flex;
    z-index: 3;
    will-change: transform, opacity;
    opacity: 0; /* oculto hasta que termina la intro (lo controla el JS) */
}

.hero-slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: opacity;       /* promueve a capa: opacidad composited, sin repaint */
    backface-visibility: hidden;
}

.hero-slide.active {
    pointer-events: auto;
}

/* Slides 1-3: sus hijos no necesitan la animacion de entrada (solo slide 0) */
.hero-slide:not([data-slide="0"]) .hero-side-left > *,
.hero-slide:not([data-slide="0"]) .hero-side-right > * {
    opacity: 1 !important;
    animation: none !important;
}

/* ===== ICONO GRANDE (slides sin buscador) ===== */
.hero-slide-icon {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
}

.hero-slide-icon i {
    font-size: clamp(3rem, 8vw, 5.5rem);
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), #ff9a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 6px 28px rgba(255,107,53,0.4));
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); filter: drop-shadow(0 6px 28px rgba(255,107,53,0.3)); }
    50%       { transform: translateY(-10px) rotate(2deg); filter: drop-shadow(0 16px 40px rgba(255,107,53,0.6)); }
}

/* ===== DOTS DE NAVEGACION ===== */
.hero-dots {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    background: transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    padding: 0;
    display: block;
}

.hero-dot.active {
    background: var(--primary-color, #ff6b35);
    border-color: var(--primary-color, #ff6b35);
    transform: scale(1.45);
    box-shadow: 0 0 12px rgba(255,107,53,0.55);
}

.hero-dot:hover:not(.active) {
    border-color: rgba(255,255,255,0.75);
    transform: scale(1.2);
}

/* Light theme dots */
.light-theme .hero-dot {
    border-color: rgba(0,0,0,0.25);
}

/* Mobile: dots al centro-inferior */
@media (max-width: 768px) {
    .hero-dots {
        right: auto;
        top: auto;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.25) 55%,
        rgba(14,14,14,0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Circuit board pattern overlay */
.hero-circuit {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    background-image:
        linear-gradient(rgba(255,107,53,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,53,0.3) 1px, transparent 1px),
        radial-gradient(circle 2px, rgba(255,107,53,0.5) 1px, transparent 1px);
    background-size:
        60px 60px,
        60px 60px,
        60px 60px;
    background-position: center center;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding: 100px 24px 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    will-change: transform;     /* la escala por-frame se hace composited */
}

/* ===== HERO SPLIT (left / right) ===== */
.hero-content-split {
    max-width: 1700px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 72px 90px;
    text-align: left;
}

.hero-side {
    flex: 0 1 420px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 440px;
}

.hero-side-left {
    align-items: flex-start;
    text-align: left;
    position: relative;
}

.hero-side-right {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    position: relative;
}

/* Scrim suave (sin caja ni bordes): oscurece y difumina el fondo detras del
   texto para que se lea sobre la esfera. Cubre toda la altura del lado. */
.hero-side-right::before,
.hero-side-left::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -44px -40px -36px -60px;
    background: radial-gradient(ellipse 82% 104% at 70% 50%,
        rgba(18,18,18,0.82) 0%,
        rgba(18,18,18,0.62) 40%,
        rgba(18,18,18,0.28) 66%,
        transparent 84%);
    filter: blur(28px);
    pointer-events: none;
}

/* El lado izquierdo es espejo: el foco oscuro va a la izquierda */
.hero-side-left::before {
    inset: -44px -60px -36px -40px;
    background: radial-gradient(ellipse 82% 104% at 30% 50%,
        rgba(18,18,18,0.82) 0%,
        rgba(18,18,18,0.62) 40%,
        rgba(18,18,18,0.28) 66%,
        transparent 84%);
}

.hero-side-left .hero-badges,
.hero-side-left .hero-actions {
    justify-content: flex-start;
}

.hero-side-right .search-section,
.hero-side-right .search-box {
    width: 100%;
    max-width: 100%;
}

/* eyebrow / código pequeño superior derecha */
.hero-eyebrow {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,148,92,0.95);
    margin: 0;
    text-shadow: 0 1px 14px rgba(0,0,0,0.7), 0 0 28px rgba(0,0,0,0.45);
    animation: fadeInUp 0.8s ease both;
}

/* stats numéricas decorativas */
.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    margin-top: 6px;
    width: 100%;
    animation: fadeInUp 0.8s 0.7s ease both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.hero-stat strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #ff9a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* En split, alineamos badges y CTAs a la izquierda y subtítulo a la derecha */
.hero-side-left .hero-title { text-align: left; }
.hero-side-right .hero-subtitle {
    margin: 0;
    max-width: 100%;
}

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes heroFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-side-left > * {
    opacity: 0;
    animation: heroFadeInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-side-right > * {
    opacity: 0;
    animation: heroFadeInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-side-left  .hero-badges  { animation-delay: 0.15s; }
.hero-side-left  .hero-title   { animation-delay: 0.30s; animation-name: heroFadeInUp; }
.hero-side-left  .hero-actions { animation-delay: 0.55s; }

.hero-side-right .hero-eyebrow   { animation-delay: 0.20s; }
.hero-side-right .hero-subtitle  { animation-delay: 0.40s; }
.hero-side-right .search-section { animation-delay: 0.60s; }
.hero-side-right .hero-stats     { animation-delay: 0.80s; animation-name: heroFadeInUp; }

/* botones individuales con un pequeño escalonado */
.hero-side-left .hero-actions .hero-cta,
.hero-side-left .hero-actions .hero-cta-secondary {
    opacity: 0;
    animation: heroFadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-side-left .hero-actions .hero-cta            { animation-delay: 0.65s; }
.hero-side-left .hero-actions .hero-cta-secondary  { animation-delay: 0.80s; }

@media (prefers-reduced-motion: reduce) {
    .hero-side-left > *,
    .hero-side-right > *,
    .hero-side-left .hero-actions .hero-cta,
    .hero-side-left .hero-actions .hero-cta-secondary {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Responsive: en pantallas pequeñas vuelve a una columna */
@media (max-width: 900px) {
    .hero-content-split {
        flex-direction: column;
        text-align: center;
        gap: 36px;
        padding: 80px 24px 60px;
    }
    .hero-side {
        max-width: 640px;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-side-right { margin-left: 0; }
    .hero-side-left .hero-badges,
    .hero-side-left .hero-actions,
    .hero-stats { justify-content: center; }
    .hero-stat { align-items: center; }
    .hero-side-left .hero-title { text-align: center; }
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,107,53,0.12);
    border: 1px solid rgba(255,107,53,0.2);
    color: #ff9a5a;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge i {
    font-size: 0.7rem;
}

/* Title */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 22px rgba(0,0,0,0.78), 0 0 40px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), #ff9a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 1px 16px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.55);
    animation: fadeInUp 0.8s 0.3s ease both;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), #e85d2a);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(255,107,53,0.3);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(255,107,53,0.45);
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,107,53,0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Search inside hero */
.hero-content .search-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-content .search-box {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.3);
    font-size: 1.1rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

/* ===== FLECHAS DEL CARRUSEL (sustituyen al scroll para cambiar de slide) ===== */
.hero-arrows {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;              /* el JS lo revela junto con el carrusel */
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.1);
    color: #ff9a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.hero-arrow:hover {
    background: rgba(255,107,53,0.22);
    border-color: #ff6b35;
    color: #fff;
    transform: scale(1.08);
}
.hero-arrow:active { transform: scale(0.95); }

.hero-arrow-count {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.6);
    min-width: 58px;
    text-align: center;
}
.hero-arrow-count b { color: #ff9a5a; font-weight: 700; }

.light-theme .hero-arrow {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.12);
    color: #d4592a;
}
.light-theme .hero-arrow:hover { color: #fff; background: rgba(255,107,53,0.3); }
.light-theme .hero-arrow-count { color: rgba(0,0,0,0.55); }

@media (max-width: 768px) {
    .hero-arrows { bottom: 20px; gap: 12px; }
    .hero-arrow { width: 42px; height: 42px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DASHBOARD MAIN ===== */
.app-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    position: relative;
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary, rgba(255,255,255,0.45));
    margin-bottom: 16px;
    padding-left: 4px;
}

.light-theme .section-label {
    color: rgba(0,0,0,0.4);
}

/* ===== TOOL CARDS — ASYMMETRIC GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

/* Configurador spans full width = hero card */
.tool-card-hero {
    grid-column: 1 / -1;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 28px;
    padding: 36px 40px !important;
    min-height: 160px;
}

.tool-card-hero .tool-card-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
}

.tool-card-hero .tool-card-icon dotlottie-player {
    width: 76px;
    height: 76px;
}

.tool-card-hero .tool-card-body h2 {
    font-size: 1.5rem;
}

.tool-card-hero .tool-card-body p {
    font-size: 0.9rem;
    max-width: 420px;
}

.tool-card-hero .tool-card-action {
    margin-left: auto;
    margin-top: 0;
    font-size: 0.9rem;
    opacity: 1;
    transform: none;
    padding: 10px 20px;
    background: rgba(255,107,53,0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.tool-card-hero:hover .tool-card-action {
    background: rgba(255,107,53,0.22);
}

/* Secondary cards */
.tool-card-secondary {
    padding: 28px 28px 24px;
}

/* Small card (Builds) — spans full width but compact */
.tool-card-small {
    grid-column: 1 / -1;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 20px;
    padding: 18px 28px !important;
}

.tool-card-small .tool-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.tool-card-small .tool-card-icon dotlottie-player {
    width: 36px;
    height: 36px;
}

.tool-card-small .tool-card-body h2 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.tool-card-small .tool-card-body p {
    font-size: 0.8rem;
}

.tool-card-small .tool-card-action {
    margin-left: auto;
    margin-top: 0;
    opacity: 1;
    transform: none;
}

/* Base tool card */
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 28px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    /* Scroll reveal */
    opacity: 0;
    transform: translateY(24px);
}

.tool-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Glow effect on hover */
.tool-card-glow {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at center, rgba(255,107,53,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.tool-card:hover .tool-card-glow {
    opacity: 1;
}

.tool-card:hover {
    border-color: rgba(255,107,53,0.3);
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 32px rgba(255,107,53,0.08), 0 0 0 1px rgba(255,107,53,0.1);
}

.tool-card.revealed:hover {
    transform: translateY(-3px) scale(1.01);
}

.tool-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,53,0.10);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    background: rgba(255,107,53,0.16);
}

.tool-card-icon dotlottie-player {
    width: 56px;
    height: 56px;
}

.tool-card-body {
    position: relative;
    z-index: 1;
}

.tool-card-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.tool-card:hover .tool-card-body h2 {
    color: #fff;
}

.tool-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    line-height: 1.5;
}

.tool-card-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #ff6b35);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-card-action i {
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-action {
    opacity: 1;
    transform: translateX(0);
}

.tool-card:hover .tool-card-action i {
    transform: translateX(3px);
}

/* Light theme cards */
.light-theme .tool-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}

.light-theme .tool-card:hover {
    background: rgba(0,0,0,0.035);
    border-color: rgba(255,107,53,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,107,53,0.15);
}

.light-theme .tool-card-body h2 {
    color: #1a1a1a;
}

.light-theme .tool-card:hover .tool-card-body h2 {
    color: #111;
}

.light-theme .tool-card-body p {
    color: rgba(0,0,0,0.5);
}

/* ===== QUICK ACCESS SECTION ===== */
.quick-access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    opacity: 0;
    transform: translateY(24px);
}

.quick-access.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.quick-access-col {
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.quick-access-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.quick-access-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,107,53,0.1);
    color: var(--primary-color, #ff6b35);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-access-icon-compare {
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
}

.quick-access-header h3 {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text-primary, #fff);
    margin: 0;
    line-height: 1.2;
}

.quick-access-header p {
    font-size: 0.72rem;
    color: var(--text-secondary, rgba(255,255,255,0.35));
    margin: 2px 0 0;
}

.quick-access-links {
    display: flex;
    flex-direction: column;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s ease;
    position: relative;
}

.quick-link:last-child {
    border-bottom: none;
}

.quick-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,107,53,0.04), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-link-compare::before {
    background: linear-gradient(90deg, rgba(139,92,246,0.04), transparent);
}

.quick-link:hover::before {
    opacity: 1;
}

.quick-link:hover {
    background: rgba(255,255,255,0.015);
}

.quick-link-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--primary-color, #ff6b35);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.quick-link-compare .quick-link-icon {
    color: #a78bfa;
}

.quick-link:hover .quick-link-icon {
    background: rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.2);
    transform: scale(1.05);
}

.quick-link-compare:hover .quick-link-icon {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.2);
}

.quick-link-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.quick-link-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--text-primary, #fff);
    transition: color 0.2s ease;
}

.quick-link:hover .quick-link-text span {
    color: #fff;
}

.quick-link-text small {
    font-size: 0.7rem;
    color: var(--text-secondary, rgba(255,255,255,0.3));
    font-weight: 500;
}

.quick-link-arrow {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.15);
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.quick-link:hover .quick-link-arrow {
    color: var(--primary-color, #ff6b35);
    transform: translateX(3px);
}

.quick-link-compare:hover .quick-link-arrow {
    color: #a78bfa;
}

/* Light theme quick access */
.light-theme .quick-access-col {
    background: rgba(0,0,0,0.015);
    border-color: rgba(0,0,0,0.06);
}

.light-theme .quick-access-header {
    border-color: rgba(0,0,0,0.05);
}

.light-theme .quick-access-header h3 {
    color: #1a1a1a;
}

.light-theme .quick-access-header p {
    color: rgba(0,0,0,0.4);
}

.light-theme .quick-link {
    border-color: rgba(0,0,0,0.03);
}

.light-theme .quick-link:hover {
    background: rgba(0,0,0,0.01);
}

.light-theme .quick-link-icon {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
}

.light-theme .quick-link:hover .quick-link-icon {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.15);
}

.light-theme .quick-link-compare:hover .quick-link-icon {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.15);
}

.light-theme .quick-link-text span {
    color: #1a1a1a;
}

.light-theme .quick-link:hover .quick-link-text span {
    color: #111;
}

.light-theme .quick-link-text small {
    color: rgba(0,0,0,0.35);
}

.light-theme .quick-link-arrow {
    color: rgba(0,0,0,0.12);
}

/* ===== SEARCH BAR ===== */
.search-section {
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
}

.search-box:focus-within {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}

.search-icon {
    color: var(--text-secondary, rgba(255,255,255,0.35));
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-box:focus-within .search-icon {
    color: var(--primary-color, #ff6b35);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary, #fff);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-secondary, rgba(255,255,255,0.3));
    font-weight: 400;
}

.search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary, rgba(255,255,255,0.35));
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    flex-shrink: 0;
    pointer-events: none;
}

.search-filters {
    display: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgb(30, 30, 30);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-primary, #fff);
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    user-select: none;
}

.search-result-item:last-of-type {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255,107,53,0.08);
}

.search-result-item.expanded {
    background: rgba(255,107,53,0.06);
    border-bottom-color: transparent;
}

.search-result-item i:first-child {
    color: var(--primary-color, #ff6b35);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.search-result-arrow {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    margin-left: 8px;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.search-result-item.expanded .search-result-arrow {
    transform: rotate(180deg);
    color: var(--primary-color, #ff6b35);
}

/* Action submenu */
.search-result-actions {
    display: none;
    padding: 0 18px 10px;
    gap: 8px;
    background: rgba(255,107,53,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-result-actions.open {
    display: flex;
    animation: actionsSlide 0.2s ease;
}

@keyframes actionsSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-action i {
    font-size: 0.72rem;
    color: var(--primary-color, #ff6b35);
}

.search-action:hover {
    background: rgba(255,107,53,0.2);
    border-color: rgba(255,107,53,0.3);
    color: #fff;
    transform: translateY(-1px);
}

.search-result-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.search-result-type {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    margin-left: auto;
    flex-shrink: 0;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    font-size: 0.85rem;
}

/* Light theme search */
.light-theme .search-box {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

.light-theme .search-box:focus-within {
    background: rgba(0,0,0,0.02);
    border-color: rgba(255,107,53,0.4);
}

.light-theme .search-input {
    color: #1a1a1a;
}

.light-theme .search-input::placeholder {
    color: rgba(0,0,0,0.35);
}

.light-theme .search-kbd {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.35);
}

.light-theme .search-results {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.light-theme .search-result-item {
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.05);
}

.light-theme .search-result-item:hover {
    background: rgba(255,107,53,0.06);
}

.light-theme .search-result-item.expanded {
    background: rgba(255,107,53,0.04);
}

.light-theme .search-result-arrow {
    color: rgba(0,0,0,0.2);
}

.light-theme .search-result-actions {
    background: rgba(255,107,53,0.02);
    border-color: rgba(0,0,0,0.05);
}

.light-theme .search-action {
    background: rgba(255,107,53,0.06);
    border-color: rgba(255,107,53,0.12);
    color: rgba(0,0,0,0.6);
}

.light-theme .search-action:hover {
    background: rgba(255,107,53,0.14);
    color: #1a1a1a;
}

/* ===== SLIDE 0: SEARCH CATEGORIES ===== */
.search-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}
.search-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255,107,53,0.05);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    letter-spacing: 0.03em;
}
.search-cat:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255,107,53,0.12);
}
.search-cat-all {
    border-style: dashed;
    color: rgba(255,255,255,0.35);
}
.search-cat-all:hover { color: #ff6b35; }

/* ===== SLIDE 1: BUILD PREVIEW ===== */
.cfg-build-preview {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin-top: 6px;
}
.cfg-slot {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.22);
}
.cfg-slot > i:first-child {
    width: 18px;
    text-align: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}
.cfg-filled { border-color: rgba(255,107,53,0.22); background: rgba(255,107,53,0.05); }
.cfg-filled > i:first-child { color: #ff6b35; }
.cfg-active {
    border-color: #ff6b35;
    background: rgba(255,107,53,0.1);
    animation: cfgPulse 2.2s ease-in-out infinite;
}
.cfg-active > i:first-child { color: #ff6b35; }
.cfg-empty > i:first-child { color: rgba(255,255,255,0.18); }
@keyframes cfgPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255,107,53,0); }
    50%       { box-shadow: 0 0 16px rgba(255,107,53,0.22); }
}
.cfg-slot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.cfg-slot-type {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
}
.cfg-slot-val {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.82);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cfg-empty .cfg-slot-val { color: rgba(255,255,255,0.22); }
.cfg-ok  { color: #4caf82; font-size: 0.85rem; }
.cfg-add { color: #ff6b35; font-size: 0.85rem; }

/* ===== SLIDE 2: COMPARATOR WIDGET ===== */
.cmp-widget {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}
.cmp-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}
.cmp-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}
.cmp-intel { background: rgba(0,130,220,0.2); color: #6bbfff; border: 1px solid rgba(0,130,220,0.35); }
.cmp-amd   { background: rgba(237,40,40,0.2);  color: #ff7f7f; border: 1px solid rgba(237,40,40,0.35); }
.cmp-name {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    font-family: 'Courier New', monospace;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cmp-bars { display: flex; flex-direction: column; gap: 6px; }
.cmp-bar-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.67rem;
}
.cmp-bar-row > span { color: rgba(255,255,255,0.35); width: 38px; flex-shrink: 0; }
.cmp-bar-row > b    { color: #ff6b35; width: 20px; text-align: right; flex-shrink: 0; font-size: 0.67rem; }
.cmp-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.cmp-fill   { height: 100%; background: linear-gradient(90deg,#c0410a,#ff6b35); border-radius: 2px; }
.cmp-fill-b { background: linear-gradient(90deg,#ff3f5f,#ff6b35); }
.cmp-vs {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,107,53,0.12);
    border: 1.5px solid rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 900;
    color: #ff6b35;
    letter-spacing: 0.03em;
    align-self: center;
    margin-top: 26px;
    flex-shrink: 0;
}

/* ===== SLIDE 3: CATALOG GRID ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 6px;
    border-radius: 11px;
    border: 1px solid rgba(255,107,53,0.14);
    background: rgba(0,0,0,0.18);
    text-decoration: none;
    transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.cat-card:hover {
    border-color: rgba(255,107,53,0.55);
    background: rgba(255,107,53,0.1);
    transform: translateY(-3px);
}
.cat-card i    { font-size: 1.25rem; color: #ff6b35; }
.cat-card span { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; }
.cat-card small{ font-size: 0.62rem; color: rgba(255,107,53,0.65); font-family: 'Courier New', monospace; }
.cat-card-more { border-style: dashed; }
.cat-card-more i { color: rgba(255,255,255,0.22); }

/* ===== FOOTER ===== */
.site-footer {
    background: rgb(30, 30, 30);
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.footer-logo i {
    color: var(--primary-color, #ff6b35);
    font-size: 1.2rem;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--primary-color, #ff6b35);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer-bottom strong {
    color: rgba(255,255,255,0.45);
}

/* Light theme footer */
.light-theme .site-footer {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.06);
}

.light-theme .footer-logo {
    color: #1a1a1a;
}

.light-theme .footer-tagline {
    color: rgba(0,0,0,0.45);
}

.light-theme .footer-top {
    border-color: rgba(0,0,0,0.08);
}

.light-theme .footer-col h4 {
    color: rgba(0,0,0,0.45);
}

.light-theme .footer-col a {
    color: rgba(0,0,0,0.4);
}

.light-theme .footer-bottom span {
    color: rgba(0,0,0,0.3);
}

.light-theme .footer-bottom strong {
    color: rgba(0,0,0,0.5);
}

/* Light theme hero */
.light-theme .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(245,245,245,0.97) 100%
    );
}

.light-theme .hero-title {
    color: #1a1a1a;
}

.light-theme .hero-subtitle {
    color: rgba(0,0,0,0.5);
}

.light-theme .hero-badge {
    background: rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.2);
    color: #d4592a;
}

.light-theme .hero-cta-secondary {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.7);
}

.light-theme .hero-cta-secondary:hover {
    background: rgba(0,0,0,0.06);
    color: #1a1a1a;
}

.light-theme .hero-scroll-indicator {
    color: rgba(0,0,0,0.2);
}

.light-theme .hero-stat span {
    color: rgba(0,0,0,0.4);
}

.light-theme .hero-content .search-box {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.1);
    backdrop-filter: blur(12px);
}

/* ===== Intro (scroll storytelling) — la parte con la esfera y el
   texto de bienvenida tiene su propio scrim, separado de .hero-overlay
   de arriba. En oscuro los dos son oscuros y se confunden; en claro el
   de arriba se aclara pero este se quedaba fijo en negro, y esa mancha
   oscura desenfocada es la "niebla gris" sobre fondo claro. ===== */
.light-theme .hero-intro-inner::before {
    background: radial-gradient(ellipse 75% 75% at 50% 45%,
        rgba(255,255,255,0.88) 0%,
        rgba(255,255,255,0.65) 48%,
        rgba(255,255,255,0.25) 72%,
        transparent 86%);
}
.light-theme .intro-title {
    color: #1a1a1a;
    text-shadow: 0 2px 22px rgba(255,255,255,0.7), 0 0 40px rgba(255,255,255,0.5);
}
.light-theme .intro-tagline {
    color: rgba(0,0,0,0.65);
    text-shadow: 0 1px 16px rgba(255,255,255,0.7);
}
.light-theme .intro-eyebrow {
    text-shadow: 0 1px 14px rgba(255,255,255,0.75);
}
.light-theme .intro-features,
.light-theme .intro-feature {
    border-color: rgba(0,0,0,0.12);
}
.light-theme .intro-feature-title {
    color: #1a1a1a;
}

/* Mismo scrim oscuro fijo en los slides del carrusel (.hero-side-*::before):
   misma mancha en claro si no se aclara igual que el de la intro. */
.light-theme .hero-side-right::before {
    background: radial-gradient(ellipse 82% 104% at 70% 50%,
        rgba(255,255,255,0.85) 0%,
        rgba(255,255,255,0.65) 40%,
        rgba(255,255,255,0.3) 66%,
        transparent 84%);
}
.light-theme .hero-side-left::before {
    background: radial-gradient(ellipse 82% 104% at 30% 50%,
        rgba(255,255,255,0.85) 0%,
        rgba(255,255,255,0.65) 40%,
        rgba(255,255,255,0.3) 66%,
        transparent 84%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-badges {
        gap: 6px;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .app-dashboard {
        padding: 48px 16px 32px;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card-hero {
        flex-direction: column !important;
        align-items: flex-start;
        padding: 24px !important;
    }

    .tool-card-hero .tool-card-action {
        margin-left: 0;
        margin-top: 8px;
    }

    .tool-card-small {
        padding: 16px 20px !important;
    }

    .tool-card {
        padding: 22px;
    }

    .tool-card-action {
        opacity: 1;
        transform: none;
    }

    .tool-card,
    .quick-access {
        opacity: 1;
        transform: none;
    }

    .catalog-grid {
        gap: 8px;
    }

    .catalog-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .search-kbd {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        gap: 12px;
    }

    .tool-card {
        padding: 18px;
    }

    .tool-card-body h2 {
        font-size: 1.05rem;
    }

    .tool-card-hero .tool-card-body h2 {
        font-size: 1.2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .search-box {
        padding: 12px 16px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .hero-cta-secondary {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
}
