/* ==========================================================================
   ON THE COURT (OTC) - VISTA INICIO & ESCALERA DE RENDIMIENTO ACADÉMICO
   Estética de Profundidad, Glassmorphism, Suspensión 3D y Metodología Oficial
   ========================================================================== */

#view-inicio {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 20px 24px 80px 24px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main, #0f172a);
    background: transparent;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ambient Deep Lighting */
#view-inicio .otc-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    animation: otcPulseGlow 10s ease-in-out infinite alternate;
}

#view-inicio .otc-glow-1 {
    top: 50px;
    left: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(43, 67, 241, 0.28) 0%, rgba(43, 67, 241, 0) 70%);
}

#view-inicio .otc-glow-2 {
    top: 40%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, rgba(234, 88, 12, 0) 70%);
    animation-delay: -4s;
}

#view-inicio .otc-glow-3 {
    bottom: 10%;
    left: 8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
    animation-delay: -7s;
}

[data-theme="light"] #view-inicio .otc-glow-1 { background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 70%); }
[data-theme="light"] #view-inicio .otc-glow-2 { background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0) 70%); }
[data-theme="light"] #view-inicio .otc-glow-3 { background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%); }

/* Subtle Tennis Court Grid Pattern */
#view-inicio .otc-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] #view-inicio .otc-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
}

/* Internal Quick Nav Pills */
.otc-inicio-subnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 5;
}

[data-theme="dark"] .otc-inicio-subnav {
    background: rgba(18, 22, 34, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.otc-subnav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.otc-subnav-link:hover {
    color: var(--color-electric-blue, #2B43F1);
    background: rgba(43, 67, 241, 0.08);
}

.otc-subnav-link.active {
    color: var(--text-main, #0f172a);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .otc-subnav-link:hover {
    color: #93c5fd;
    background: rgba(43, 67, 241, 0.2);
}

[data-theme="dark"] .otc-subnav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   SIDEBAR ESCALERA DE RENDIMIENTO BUTTON (ACENTO TEAL)
   ========================================================================== */
#btn-side-inicio {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.65px !important;
    background: #ccfbf1 !important;
    border: 1.5px solid #5eead4 !important;
    color: #115e59 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#btn-side-inicio svg {
    color: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

#btn-side-inicio:not(.active):hover {
    transform: scale(1.02) !important;
    filter: brightness(0.97) !important;
    background: #ccfbf1 !important;
    border-color: #5eead4 !important;
    color: #115e59 !important;
}

#btn-side-inicio.active {
    background: #99f6e4 !important;
    border: 1.5px solid #0d9488 !important;
    color: #134e4a !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22) !important;
}

[data-theme="dark"] #btn-side-inicio {
    background: #0d2a29 !important;
    border: 1.5px solid rgba(45, 212, 191, 0.42) !important;
    color: #99f6e4 !important;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.16) !important;
}

[data-theme="dark"] #btn-side-inicio:not(.active):hover {
    filter: brightness(1.12) !important;
    background: #0d2a29 !important;
    border-color: rgba(45, 212, 191, 0.52) !important;
    color: #ffffff !important;
}

[data-theme="dark"] #btn-side-inicio.active {
    background: #113b39 !important;
    border: 1.5px solid #2dd4bf !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.36) !important;
}

/* ==========================================================================
   HERO SECTION - 3D DEPTH & SUSPENSION
   ========================================================================== */
.otc-hero-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 36px auto;
    padding: 10px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.otc-hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.2px;
    max-width: 900px;
    margin: 0 auto 16px auto;
    text-wrap: balance;
}

.otc-gradient-text {
    background: linear-gradient(135deg, #1e293b 0%, #2B43F1 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[data-theme="dark"] .otc-gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #93c5fd 55%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.otc-hero-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-muted, #64748b);
    max-width: 820px;
    margin: 0 auto 28px auto;
    font-weight: 400;
}

/* Suspended 3D Floating Feature Badges (Safe Dock - Zero Collisions) */
.otc-floating-badges-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 28px auto;
    position: relative;
    z-index: 3;
}

.otc-suspension-badge {
    position: relative;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(43, 67, 241, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    pointer-events: auto;
    cursor: default;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

[data-theme="dark"] .otc-suspension-badge {
    background: rgba(20, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    color: #ffffff;
}

.otc-suspension-badge:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 18px 35px rgba(43, 67, 241, 0.18), 0 0 20px rgba(43, 67, 241, 0.1) !important;
    border-color: rgba(43, 67, 241, 0.4);
}

.otc-badge-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.badge-blue { background: rgba(43, 67, 241, 0.15); color: #2B43F1; }
.badge-orange { background: rgba(234, 88, 12, 0.15); color: #ea580c; }
.badge-green { background: rgba(22, 163, 74, 0.15); color: #16a34a; }
.badge-purple { background: rgba(147, 51, 234, 0.15); color: #9333ea; }

[data-theme="dark"] .badge-blue { background: rgba(43, 67, 241, 0.3); color: #93c5fd; }
[data-theme="dark"] .badge-orange { background: rgba(234, 88, 12, 0.3); color: #fdba74; }
[data-theme="dark"] .badge-green { background: rgba(22, 163, 74, 0.3); color: #86efac; }
[data-theme="dark"] .badge-purple { background: rgba(147, 51, 234, 0.3); color: #d8b4fe; }

.otc-badge-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.otc-badge-title {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .otc-badge-title {
    color: #f1f5f9;
}

.otc-badge-sub {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Staggered Floating Keyframes for 3D Suspension */
.badge-pos-1 { animation: otcFloat 5.5s ease-in-out infinite; }
.badge-pos-2 { animation: otcFloatReverse 6s ease-in-out infinite -1.2s; }
.badge-pos-3 { animation: otcFloat 5.8s ease-in-out infinite -2.4s; }
.badge-pos-4 { animation: otcFloatReverse 6.4s ease-in-out infinite -3.6s; }

/* Key Metrics Counter Strip */
.otc-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 15px auto 0 auto;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .otc-metrics-strip {
    background: rgba(18, 21, 32, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.otc-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.otc-metric-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .otc-metric-item:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.08);
}

.otc-metric-number {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    font-family: 'Space Mono', monospace;
    color: var(--color-electric-blue, #2B43F1);
}

[data-theme="dark"] .otc-metric-number {
    color: #93c5fd;
}

.otc-metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #64748b);
    margin-top: 4px;
}

/* ==========================================================================
   THE 3 PILLARS SECTION (METODOLOGÍA OTC)
   ========================================================================== */
.otc-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.otc-section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 45px auto;
}

.otc-section-tag {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-electric-blue, #2B43F1);
    display: inline-block;
    margin-bottom: 12px;
}

[data-theme="dark"] .otc-section-tag {
    color: #93c5fd;
}

.otc-section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.18;
    margin-bottom: 14px;
}

.otc-section-desc {
    font-size: 1.02rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
}

.otc-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.otc-pillar-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .otc-pillar-card {
    background: rgba(18, 22, 34, 0.65);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.otc-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2B43F1, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.otc-pillar-card:nth-child(2)::before {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.otc-pillar-card:nth-child(3)::before {
    background: linear-gradient(90deg, #16a34a, #10b981);
}

.otc-pillar-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 65px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .otc-pillar-card:hover {
    box-shadow: 0 32px 65px rgba(0, 0, 0, 0.65), 0 0 25px rgba(43, 67, 241, 0.15);
}

.otc-pillar-card:hover::before {
    opacity: 1;
}

.otc-pillar-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.otc-pillar-card:hover .otc-pillar-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.otc-pillar-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.otc-pillar-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.otc-pillar-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
    margin-bottom: 22px;
    flex-grow: 1;
}

.otc-pillar-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otc-pillar-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main, #334155);
}

[data-theme="dark"] .otc-pillar-feature-item {
    color: #cbd5e1;
}

.otc-feature-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ==========================================================================
   INTERACTIVE ESCALERA DE RENDIMIENTO (7ma - 4ta CATEGORÍA)
   ========================================================================== */
.otc-escalera-wrapper {
    position: relative;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
    margin-top: 28px;
    overflow: visible !important;
}

[data-theme="dark"] .otc-escalera-wrapper {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   ESCALERA CATEGORY PICKER & CUSTOM DROPDOWN (BASE & RESPONSIVE)
   -------------------------------------------------------------------------- */
.otc-mobile-cat-picker-wrap {
    display: none; /* Oculto en escritorio por defecto */
    position: sticky;
    top: 10px;
    z-index: 9999 !important;
    margin-bottom: 22px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible !important;
}

.otc-mobile-cat-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(43, 67, 241, 0.35);
    border-radius: 999px;
    padding: 6px 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(43, 67, 241, 0.15);
    position: relative;
    overflow: visible !important;
    z-index: 10000 !important;
}

[data-theme="dark"] .otc-mobile-cat-picker {
    background: rgba(18, 22, 35, 0.95);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(43, 67, 241, 0.3);
}

.otc-picker-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(43, 67, 241, 0.08);
    color: var(--color-electric-blue, #2B43F1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .otc-picker-nav-btn {
    background: rgba(43, 67, 241, 0.22);
    color: #93c5fd;
}

.otc-picker-nav-btn:active {
    transform: scale(0.92);
    background: rgba(43, 67, 241, 0.2);
}

/* CUSTOM CATEGORY DROPDOWN */
.otc-custom-cat-dropdown {
    position: static;
    flex-grow: 1;
    min-width: 0;
    overflow: visible !important;
}

.otc-cat-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.otc-cat-dropdown-trigger:hover,
.otc-cat-dropdown-trigger:active {
    background: rgba(43, 67, 241, 0.05);
}

.otc-cat-dropdown-trigger * {
    pointer-events: none;
}

.otc-cat-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: left;
}

.otc-cat-badge-mini {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    flex-shrink: 0;
}

.otc-cat-trigger-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.otc-cat-trigger-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

[data-theme="dark"] .otc-cat-trigger-title {
    color: #ffffff;
}

.otc-cat-trigger-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
}

.otc-cat-chevron {
    color: var(--color-electric-blue, #2B43F1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 4px;
}

[data-theme="dark"] .otc-cat-chevron {
    color: #93c5fd;
}

.otc-custom-cat-dropdown.open .otc-cat-chevron,
.otc-mobile-cat-picker.open .otc-cat-chevron {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu (Glassmorphic List Box spanning the full picker) */
.otc-cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1.5px solid rgba(43, 67, 241, 0.25);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(43, 67, 241, 0.12);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100000 !important;
    animation: otcDropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .otc-cat-dropdown-menu {
    background: rgba(18, 22, 36, 0.98);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(43, 67, 241, 0.3);
}

.otc-custom-cat-dropdown.open .otc-cat-dropdown-menu,
.otc-mobile-cat-picker.open .otc-cat-dropdown-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@keyframes otcDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.otc-cat-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.otc-cat-menu-item * {
    pointer-events: none;
}

.otc-cat-menu-item:hover,
.otc-cat-menu-item:focus {
    background: rgba(43, 67, 241, 0.08);
    border-color: rgba(43, 67, 241, 0.15);
}

.otc-cat-menu-item.active {
    background: linear-gradient(135deg, rgba(43, 67, 241, 0.14) 0%, rgba(43, 67, 241, 0.04) 100%);
    border-color: rgba(43, 67, 241, 0.35);
}

[data-theme="dark"] .otc-cat-menu-item:hover {
    background: rgba(43, 67, 241, 0.22);
}

[data-theme="dark"] .otc-cat-menu-item.active {
    background: linear-gradient(135deg, rgba(43, 67, 241, 0.32) 0%, rgba(43, 67, 241, 0.12) 100%);
    border-color: #60a5fa;
}

.otc-cat-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.otc-cat-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.otc-cat-item-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.25;
}

[data-theme="dark"] .otc-cat-item-title {
    color: #ffffff;
}

.otc-cat-item-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    line-height: 1.2;
    margin-top: 2px;
}

.otc-cat-check {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-electric-blue, #2B43F1);
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.otc-cat-menu-item.active .otc-cat-check {
    opacity: 1;
}

[data-theme="dark"] .otc-cat-check {
    color: #60a5fa;
}

/* Stepper Tabs Navigation */
.otc-escalera-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 35px;
    position: relative;
}

.otc-step-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(163, 177, 198, 0.16);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .otc-step-tab {
    background: rgba(26, 30, 44, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.otc-step-tab:hover {
    transform: translateY(-3px);
    background: #ffffff;
}

[data-theme="dark"] .otc-step-tab:hover {
    background: rgba(34, 40, 58, 0.95);
}

.otc-step-tab.active {
    background: linear-gradient(135deg, rgba(43, 67, 241, 0.12) 0%, rgba(43, 67, 241, 0.04) 100%);
    border-color: var(--color-electric-blue, #2B43F1);
    box-shadow: 0 10px 25px rgba(43, 67, 241, 0.18);
    transform: translateY(-4px);
}

[data-theme="dark"] .otc-step-tab.active {
    background: linear-gradient(135deg, rgba(43, 67, 241, 0.25) 0%, rgba(43, 67, 241, 0.08) 100%);
    border-color: #60a5fa;
    box-shadow: 0 12px 30px rgba(43, 67, 241, 0.35);
}

.otc-step-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}

.otc-step-tab.active .otc-step-badge {
    background: var(--color-electric-blue, #2B43F1);
    color: #ffffff;
}

.otc-step-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.3px;
}

[data-theme="dark"] .otc-step-title {
    color: #ffffff;
}

.otc-step-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

/* Category Detail View Card */
.otc-category-view {
    display: none;
    animation: otcCatFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.otc-category-view.active {
    display: block;
}

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

.otc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

[data-theme="dark"] .otc-cat-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.otc-cat-focus-box {
    max-width: 680px;
}

.otc-cat-focus-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-electric-blue, #2B43F1);
    margin-bottom: 6px;
}

[data-theme="dark"] .otc-cat-focus-label {
    color: #93c5fd;
}

.otc-cat-focus-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.otc-cat-focus-desc {
    font-size: 1rem;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
}

.otc-cat-quote-box {
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(43, 67, 241, 0.06);
    border-left: 4px solid var(--color-electric-blue, #2B43F1);
    max-width: 420px;
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main, #334155);
}

[data-theme="dark"] .otc-cat-quote-box {
    background: rgba(43, 67, 241, 0.14);
    border-left-color: #60a5fa;
    color: #e2e8f0;
}

/* 2-Column Split */
.otc-cat-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.otc-breakdown-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.otc-breakdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.otc-breakdown-header h4 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.otc-skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.otc-skill-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow:
        8px 12px 28px rgba(163, 177, 198, 0.24),
        -8px -12px 28px rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

[data-theme="dark"] .otc-skill-card {
    background: #242735;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 8px 12px 28px rgba(0, 0, 0, 0.36);
}

.otc-skill-card:hover {
    transform: translateX(4px);
    border-color: rgba(43, 67, 241, 0.3);
    box-shadow: 0 8px 22px rgba(43, 67, 241, 0.12);
}

.otc-skill-name {
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.otc-skill-desc {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted, #64748b);
}

/* ==========================================================================
   MATRIZ COMPARATIVA RESUMEN (PÁGINA 16 DEL PDF)
   ========================================================================== */
.otc-matrix-container {
    width: 100%;
    margin-top: 28px;
    overflow-x: auto;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

[data-theme="dark"] .otc-matrix-container {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.otc-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.otc-matrix-table th {
    padding: 18px 22px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.09);
    color: var(--text-main, #0f172a);
}

[data-theme="dark"] .otc-matrix-table th {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.otc-matrix-table td {
    padding: 22px 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
}

[data-theme="dark"] .otc-matrix-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.otc-matrix-table tr:last-child td {
    border-bottom: none;
}

.otc-matrix-cat-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: -0.2px;
}

.cat-badge-7ma { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.cat-badge-6ta { background: rgba(16, 185, 129, 0.15); color: #059669; }
.cat-badge-5ta { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.cat-badge-4ta { background: rgba(234, 88, 12, 0.15); color: #c2410c; }

[data-theme="dark"] .cat-badge-7ma { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
[data-theme="dark"] .cat-badge-6ta { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; }
[data-theme="dark"] .cat-badge-5ta { background: rgba(245, 158, 11, 0.25); color: #fde047; }
[data-theme="dark"] .cat-badge-4ta { background: rgba(234, 88, 12, 0.25); color: #fdba74; }

/* ==========================================================================
   SEDES OFICIALES OTC SECTION
   ========================================================================== */
.otc-sedes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 35px;
}

.otc-sede-card {
    padding: 30px 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .otc-sede-card {
    background: rgba(18, 22, 34, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.otc-sede-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.1);
}

.otc-sede-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sede-vat { color: #2B43F1; background: rgba(43, 67, 241, 0.12); }
.sede-ctc { color: #ea580c; background: rgba(234, 88, 12, 0.12); }
.sede-bru { color: #16a34a; background: rgba(22, 163, 74, 0.12); }

[data-theme="dark"] .sede-vat { color: #93c5fd; background: rgba(43, 67, 241, 0.25); }
[data-theme="dark"] .sede-ctc { color: #fdba74; background: rgba(234, 88, 12, 0.25); }
[data-theme="dark"] .sede-bru { color: #86efac; background: rgba(22, 163, 74, 0.25); }

.otc-sede-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.otc-sede-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
}


/* Keyframe Animations */
@keyframes otcFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.4deg); }
}

@keyframes otcFloatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(-0.4deg); }
}

@keyframes otcPulseGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.06); }
}

@keyframes otcBadgeLevitate {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

/* ==========================================================================
/* ==========================================================================
   MOBILE SELECTOR & MATRIX CARDS (ESTILOS BASE / ESCRITORIO)
   ========================================================================== */
.otc-mobile-cat-picker-wrap {
    display: none;
}

.otc-matrix-mobile-cards {
    display: none;
}

/* Base Styles for Mobile Matrix Cards */
.otc-matrix-card {
    border-radius: 22px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

[data-theme="dark"] .otc-matrix-card {
    background: rgba(20, 24, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.otc-matrix-card.border-7ma { border-left: 5px solid #2563eb; }
.otc-matrix-card.border-6ta { border-left: 5px solid #059669; }
.otc-matrix-card.border-5ta { border-left: 5px solid #d97706; }
.otc-matrix-card.border-4ta { border-left: 5px solid #c2410c; }

[data-theme="dark"] .otc-matrix-card.border-7ma { border-left-color: #60a5fa; }
[data-theme="dark"] .otc-matrix-card.border-6ta { border-left-color: #34d399; }
[data-theme="dark"] .otc-matrix-card.border-5ta { border-left-color: #fbbf24; }
[data-theme="dark"] .otc-matrix-card.border-4ta { border-left-color: #fb923c; }

.otc-matrix-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .otc-matrix-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.otc-matrix-card-phase {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
}

.otc-matrix-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.otc-matrix-prop {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.otc-matrix-prop-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.otc-matrix-prop-icon {
    font-size: 1rem;
}

.otc-matrix-prop-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.2px;
}

[data-theme="dark"] .otc-matrix-prop-label {
    color: #f1f5f9;
}

.otc-matrix-prop-val {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted, #64748b);
    margin: 0;
    padding-left: 26px;
}

[data-theme="dark"] .otc-matrix-prop-val {
    color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .otc-pillars-grid,
    .otc-sedes-grid {
        grid-template-columns: 1fr;
    }

    .otc-cat-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .otc-floating-badges-wrap {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
    }

    .otc-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .otc-metric-item:nth-child(2)::after {
        display: none;
    }

    .otc-escalera-stepper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #view-inicio {
        padding: 10px 14px 60px 14px;
    }

    /* Subnav horizontal touch-scroll on mobile */
    .otc-inicio-subnav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 6px 12px;
        gap: 8px;
        border-radius: 999px;
        max-width: 100%;
        margin-bottom: 24px;
        scrollbar-width: none;
    }
    .otc-inicio-subnav::-webkit-scrollbar {
        display: none;
    }
    .otc-subnav-link {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* Hero section adjustments */
    .otc-hero-section {
        padding: 15px 8px 24px 8px;
    }
    .otc-hero-title {
        font-size: 1.95rem;
        letter-spacing: -0.8px;
    }
    .otc-hero-subtitle {
        font-size: 0.94rem;
        line-height: 1.55;
    }
    .otc-floating-badges-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Section titles responsive so nothing gets cut off */
    .otc-section {
        margin: 45px auto;
        padding: 0 4px;
    }
    .otc-section-header {
        margin-bottom: 28px;
        padding: 0 4px;
    }
    .otc-section-title {
        font-size: 1.55rem;
        letter-spacing: -0.5px;
        word-break: break-word;
        line-height: 1.25;
    }
    .otc-section-desc {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    /* 1. UN SOLO FONDO LIMPIO (ELIMINAR DOBLE FONDO) */
    .otc-escalera-wrapper {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 15px !important;
    }

    /* Hide bulky 4-button stepper on mobile */
    .otc-escalera-stepper {
        display: none !important;
    }

    /* 2. SELECTOR DE CATEGORÍA MÓVIL (STICKY FLOTANTE CON DESPLEGABLE) */
    .otc-mobile-cat-picker-wrap {
        display: block !important;
    }

    .otc-picker-nav-btn {
        width: 34px;
        height: 34px;
    }

    /* Floating Cards inside Category View (Un solo fondo limpio) */
    .otc-cat-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-bottom: 0;
        margin-bottom: 22px;
        border-bottom: none;
    }

    .otc-cat-focus-box {
        padding: 20px 18px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    }

    [data-theme="dark"] .otc-cat-focus-box {
        background: rgba(22, 26, 40, 0.85);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }

    .otc-cat-quote-box {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
        padding: 18px 20px;
        box-shadow: 0 8px 24px rgba(43, 67, 241, 0.08);
    }

    .otc-skill-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
        padding: 16px;
        border-radius: 18px;
    }

    [data-theme="dark"] .otc-skill-card {
        background: rgba(22, 26, 40, 0.85);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    /* 3. CUADRO PROGRESIVO EN MÓVIL (TARJETAS EN LUGAR DE TABLA APLASTADA) */
    .otc-matrix-container {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 15px !important;
    }

    .otc-matrix-table {
        display: none !important;
    }

    .otc-matrix-mobile-cards {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .otc-metrics-strip {
        grid-template-columns: 1fr 1fr;
        padding: 16px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otc-ambient-glow,
    .otc-suspension-badge,
    .pulse-dot,
    .pulse-dot::after,
    .pulse-dot-purple,
    .pulse-dot-purple::after,
    .pulse-dot-green,
    .pulse-dot-green::after,
    .pulse-dot-cyan,
    .pulse-dot-cyan::after,
    .pulse-dot-orange,
    .pulse-dot-orange::after,
    .pulse-dot-indigo,
    .pulse-dot-indigo::after {
        animation: none !important;
    }
}


