/* ==========================================================================
   ROCKET TECH - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* 1. CONFIGURACIÓN BASE Y VARIABLES (TEMA OSCURO PREVIO POR DEFECTO) */
:root {
    --bg-primary: #070b19; /* Azul obsidiana muy oscuro */
    --bg-secondary: #0f1626; /* Azul profundo */
    --bg-tertiary: #1b263b; /* Azul grisáceo tech */
    --color-accent-1: #45f3ff; /* Cian Neón */
    --color-accent-2: #0066ff; /* Azul Eléctrico */
    --color-text-main: #cbd5e1; /* Plata suave / slate */
    --color-text-highlight: #ffffff;
    --color-border: rgba(69, 243, 255, 0.2);
    --color-border-glow: rgba(0, 102, 255, 0.45);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-background: rgba(19, 25, 33, 0.7);
    --glass-blur: blur(12px);
    --max-width: 1200px;
}

/* TEMA CLARO ADAPTATIVO (TODO LO CONTRARIO) */
body.light-theme {
    --bg-primary: #ffffff; 
    --bg-secondary: #f8fafc; /* Slate 50 */
    --bg-tertiary: #e2e8f0; /* Slate 200 */
    --color-accent-1: #0055ff; /* Azul Royal para alto contraste */
    --color-accent-2: #00b4ff; /* Celeste / Cian vibrante en light theme */
    --color-text-main: #334155; /* Slate 700 */
    --color-text-highlight: #0f172a; /* Slate 900 */
    --color-border: rgba(0, 85, 255, 0.15);
    --color-border-glow: rgba(0, 85, 255, 0.35);
    --glass-background: rgba(255, 255, 255, 0.78);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    background: radial-gradient(circle at 50% 50%, #0c1830 0%, #050814 100%);
    background-attachment: fixed;
    color: var(--color-text-main);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

html.light-theme {
    background:
        radial-gradient(circle at 35% 35%, rgba(0, 85, 255, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 65% 30%, rgba(0, 180, 255, 0.05) 0%, transparent 38%),
        radial-gradient(circle at 50% 65%, rgba(0, 85, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #ffffff 0%, #eaeef5 100%);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: var(--font-title);
    letter-spacing: -0.025em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* 2. CANVASES DE FONDO ANIMADO DUAL */
#binary-canvas, #fiber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#binary-canvas {
    opacity: 0.35; /* Incrementado para mayor visibilidad */
}

#fiber-canvas {
    opacity: 0.65; /* Incrementado para mayor visibilidad */
}

/* 3. CLASES DE UTILERÍA Y DISEÑO SYSTEM */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--color-accent-1);
    text-shadow: 0 0 10px rgba(69, 243, 255, 0.4);
}

.glass-card {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: inset 0 0 0 1px var(--color-border-glow), 0 15px 35px rgba(0, 102, 255, 0.25), 0 0 15px rgba(69, 243, 255, 0.05);
    transform: translateY(-5px);
}

.glass-card:hover::before {
    transform: translateX(100%);
    transition: all 0.8s ease;
}

/* 4. BOTONES Y COMPONENTES INTERACTIVOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, #0044cc 100%);
    color: var(--color-text-highlight);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69, 243, 255, 0.5);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-highlight);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent-1);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(69, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(69, 243, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 5. NAVBAR FLOTANTE INTELEGENSTE */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--color-text-highlight);
    letter-spacing: 1px;
    padding: 0;
}

.logo-svg {
    filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.45));
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: rotate(15deg) scale(1.08);
}

.logo-img {
    width: 98px;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: var(--transition-smooth);
    display: block;
}

body.light-theme .logo-img {
    width: 81px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent-1));
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-highlight);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: rgba(69, 243, 255, 0.08);
    color: var(--color-accent-1);
    border: 1px solid rgba(69, 243, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--color-accent-1);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(69, 243, 255, 0.4);
    transform: translateY(-1px);
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* BOTÓN DE CAMBIO DE TEMA */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-highlight);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001;
    outline: none;
}

.theme-toggle-btn:hover {
    background: rgba(69, 243, 255, 0.12);
    border-color: var(--color-accent-1);
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.25);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    transition: transform 0.4s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

/* Reglas de visibilidad del Sol / Luna según tema */
body.light-theme .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 85, 255, 0.08);
    border-color: var(--color-accent-1);
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.2);
}

body.light-theme .sun-icon {
    display: none !important;
}

body.light-theme .moon-icon {
    display: block !important;
}

body:not(.light-theme) .sun-icon {
    display: block !important;
}

body:not(.light-theme) .moon-icon {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-highlight);
    transition: var(--transition-smooth);
}

/* 6. HERO / INICIO */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(69, 243, 255, 0.08);
    border: 1px solid rgba(69, 243, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-1);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-1);
    box-shadow: 0 0 10px var(--color-accent-1);
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--color-text-highlight);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-text-highlight);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

/* Micro-animaciones de pulsos */
.fiber-pulse {
    animation: glow-pulse-cyan 2.5s infinite;
}

.blue-pulse {
    animation: glow-pulse-blue 2.5s infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse-icon {
    display: block;
    width: 26px;
    height: 44px;
    border-radius: 20px;
    border: 2px solid var(--color-text-main);
    position: relative;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.mouse-icon:hover {
    opacity: 1;
    border-color: var(--color-accent-1);
}

.mouse-wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--color-accent-1);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

/* 7. SECCIONES GENERALES */
section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 5rem;
    max-width: 700px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-1);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text-highlight);
    margin-bottom: 1.25rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent-1));
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.section-header.center .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

/* 8. DETALLE CATCHAI & SIMULADOR DE SEÑAS */
.catchai-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 2rem 0;
}

.tech-list li {
    display: flex;
    gap: 1.25rem;
}

.list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.list-content {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.list-content strong {
    display: block;
    color: var(--color-text-highlight);
    margin-bottom: 0.25rem;
}

.accent-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent-1);
    box-shadow: 0 0 8px var(--color-accent-1);
    margin-right: 0.75rem;
}

/* SIMULADOR WIDGET */
.catchai-simulator-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.simulator-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.live {
    background-color: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    animation: pulse 1.8s infinite;
}

.simulator-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-highlight);
}

.simulator-display {
    width: 100%;
    height: 480px;
    background: #030406;
    position: relative;
    overflow: hidden;
}

#avatar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.simulator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 6, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

.simulator-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(69, 243, 255, 0.1);
    border-top-color: var(--color-accent-1);
    border-bottom-color: var(--color-accent-2);
    border-radius: 50%;
    animation: rotate 1.2s infinite linear;
}

#overlay-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-accent-1);
    letter-spacing: 1px;
}

.simulator-translation-card {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    background: rgba(19, 25, 33, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    z-index: 5;
}

.translation-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-1);
    margin-bottom: 0.15rem;
}

.translation-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-highlight);
    margin-bottom: 0.15rem;
}

.translation-meaning {
    font-size: 0.8rem;
    color: var(--color-text-main);
}

.simulator-controls {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--color-border);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-select, .form-input, .form-control {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-highlight);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-select:focus, .form-input:focus, .form-control:focus {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 12px rgba(69, 243, 255, 0.25);
}

.form-select option, .form-control option {
    background-color: var(--bg-secondary);
    color: var(--color-text-highlight);
    padding: 0.5rem;
}

.form-select option:disabled, .form-control option:disabled {
    color: var(--color-text-main);
    opacity: 0.4;
}

::placeholder {
    color: var(--color-text-main);
    opacity: 0.5;
}


/* 9. CAPACIDADES DE CIENCIA DE DATOS */
.ds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.ds-card {
    padding: 3rem;
}

.ds-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(69, 243, 255, 0.05);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.ds-card:hover .ds-icon-wrapper {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
    box-shadow: 0 0 20px rgba(69, 243, 255, 0.5);
    transform: scale(1.05) rotate(5deg);
}

.ds-card:hover .ds-icon-wrapper svg {
    stroke: var(--bg-primary);
}

.ds-card:nth-child(even) .ds-icon-wrapper {
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.2);
}

.ds-card:nth-child(even):hover .ds-icon-wrapper {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.ds-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-highlight);
    margin-bottom: 1rem;
}

.ds-card-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.ds-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ds-tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.ds-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    border-color: var(--color-border-glow);
}

.ds-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-highlight);
    margin-bottom: 0.5rem;
}

.ds-cta-text {
    color: var(--color-text-main);
    max-width: 650px;
}

/* 10. SOLUCIONES POR INDUSTRIA */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.ind-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ind-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.ind-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ind-card:hover .ind-image {
    transform: scale(1.05);
}

.ind-content {
    padding: 3rem;
}

.ind-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-highlight);
    margin-bottom: 1.25rem;
}

.ind-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.ind-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ind-bullets li {
    font-size: 0.9rem;
    color: var(--color-text-highlight);
    position: relative;
    padding-left: 1.5rem;
}

.ind-bullets li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--color-accent-1);
    font-size: 0.8rem;
}

/* 11. EL EQUIPO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.team-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 2rem;
    gap: 1.75rem;
}

.team-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Foto real del miembro del equipo */
.team-avatar-photo {
    position: relative;
    z-index: 5;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--color-border-glow);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    transition: var(--transition-smooth);
    display: block;
}

.team-card:hover .team-avatar-photo {
    box-shadow: 0 0 30px rgba(69, 243, 255, 0.45);
    border-color: var(--color-accent-1);
    transform: scale(1.04);
}

.team-avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar-glow {
    opacity: 0.7;
    transform: scale(1.15);
}

.bg-blue {
    background: radial-gradient(circle, var(--color-accent-2) 0%, transparent 70%);
}

.bg-cyan {
    background: radial-gradient(circle, var(--color-accent-1) 0%, transparent 70%);
}

.bg-dual {
    background: radial-gradient(circle, var(--color-accent-2) 0%, var(--color-accent-1) 100%);
}

.team-avatar-initials {
    position: relative;
    z-index: 5;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.text-blue {
    color: var(--color-accent-2);
    border-color: var(--color-accent-2);
}

.text-cyan {
    color: var(--color-accent-1);
    border-color: var(--color-accent-1);
}

.text-dual {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-color: var(--color-accent-1);
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-highlight);
    margin-bottom: 0.5rem;
}

.member-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-1);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.member-bio {
    font-size: 0.88rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-highlight);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    align-self: flex-start;
}

.linkedin-link:hover {
    border-color: var(--color-accent-1);
    background: rgba(69, 243, 255, 0.05);
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.2);
}

/* 12. CONTACTO E INTEGRACIÓN DE CANALES */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-color: rgba(255, 255, 255, 0.05);
}

.method-card:hover {
    border-color: var(--color-accent-1);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(69, 243, 255, 0.05);
    border: 1px solid var(--color-border);
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
    opacity: 0.65;
}

.method-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-highlight);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-main);
    opacity: 0.75;
}

.contact-form-container {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-highlight);
}

.form-control {
    background: var(--bg-primary);
}

textarea.form-control {
    resize: none;
}

/* Estado del formulario */
.form-status-alert {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    font-family: var(--font-mono);
}

.form-status-alert.success {
    display: block;
    background: rgba(0, 255, 102, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #00ff66;
}

.form-status-alert.error {
    display: block;
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.3);
    color: #ff3333;
}

/* 13. FOOTER */
.main-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-main);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-system-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00ff66;
    display: inline-block;
    box-shadow: 0 0 6px #00ff66;
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-main);
    opacity: 0.6;
}

.footer-links a:hover {
    color: var(--color-accent-1);
    opacity: 1;
}

/* ==========================================================================
   14. ANIMACIONES KEYFRAMES
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(69, 243, 255, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(69, 243, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(69, 243, 255, 0);
    }
}

@keyframes glow-pulse-cyan {
    0% {
        box-shadow: 0 0 5px rgba(69, 243, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(69, 243, 255, 0.6);
        border-color: rgba(69, 243, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(69, 243, 255, 0.2);
    }
}

@keyframes glow-pulse-blue {
    0% {
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
        border-color: rgba(0, 102, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.2);
    }
}

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
        height: 4px;
    }
    50% {
        top: 14px;
        opacity: 0.5;
        height: 10px;
    }
    100% {
        top: 6px;
        opacity: 0;
        height: 4px;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes flow-glow {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(120px, 80px);
    }
    50% {
        transform: translate(60px, 150px);
    }
    75% {
        transform: translate(-50px, 90px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ==========================================================================
   15. DISEÑO RESPONSIVO (Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-stats {
        flex-direction: row;
        gap: 3rem;
    }
    .catchai-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ind-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ind-image-container {
        height: 320px;
    }
    .ds-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    .navbar {
        padding: 1rem 0;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 999;
        backdrop-filter: var(--glass-blur);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .ind-grid {
        grid-template-columns: 1fr;
    }
    .ind-image-container {
        height: 250px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team-info {
        align-items: center;
    }
    .linkedin-link {
        align-self: center;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .ds-cta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   16. ESTILOS ADICIONALES PARA TABS Y PIPELINE MULTIMEDIA
   ========================================================================== */
.simulator-tabs {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.sim-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    flex: 1;
    text-align: center;
}

.sim-tab-btn:hover {
    background: rgba(69, 243, 255, 0.06);
    border-color: rgba(69, 243, 255, 0.3);
    color: var(--color-accent-1);
}

.sim-tab-btn.active {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--color-accent-2);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.25);
}

.simulator-display-container {
    background: #030406;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Media Placeholder Styles */
.media-display-placeholder {
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #080f22 0%, #03050c 100%);
}

.placeholder-glow-mesh {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    animation: pulse 4s infinite ease-in-out;
}

.placeholder-icon {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(69, 243, 255, 0.3));
    animation: rotate 12s infinite linear;
}

.placeholder-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.placeholder-desc {
    font-size: 0.95rem;
    color: var(--color-text-main);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.placeholder-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-1);
    background: rgba(69, 243, 255, 0.08);
    border: 1px solid rgba(69, 243, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* Pipeline Flow Styles */
.pipeline-display {
    padding: 2rem 1.5rem;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #030406;
}

.pipeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pipeline-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
}

.flow-step {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 0.875rem !important;
    text-align: center;
    border-color: rgba(69, 243, 255, 0.15);
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.flow-step:hover {
    border-color: var(--color-accent-1);
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

.flow-step::before {
    display: none;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-accent-2);
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

.flow-step h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.flow-step p {
    font-size: 0.78rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.flow-arrow {
    font-size: 1.1rem;
    color: var(--color-accent-1);
    text-shadow: 0 0 8px rgba(69, 243, 255, 0.5);
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 900px) {
    .pipeline-display {
        height: auto;
        padding: 2rem;
    }
    .pipeline-flow {
        flex-direction: column;
        gap: 2rem;
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .media-display-placeholder {
        height: 420px;
        padding: 2rem;
    }
}

/* ==========================================================================
   17. COMPLEMENTOS Y OVERRIDES GENERALES PARA TEMA CLARO
   ========================================================================== */
/* Menú móvil adaptado a fondo claro */
@media (max-width: 768px) {
    body.light-theme .nav-menu {
        background: var(--bg-primary) !important;
        border-left: 1px solid var(--color-border) !important;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05) !important;
    }
}

/* Menú de escritorio adaptado a fondo claro (transparente e integrado) */
@media (min-width: 769px) {
    body.light-theme .nav-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Navbar Scrolled en Modo Claro (Frosted glass blanco premium) */
body.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.68) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid rgba(0, 85, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

/* Botones en Modo Claro - Garantía de legibilidad e hiper-contraste */
body.light-theme .btn-primary {
    background: linear-gradient(135deg, #0055ff 0%, #0033cc 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.3) !important;
}

body.light-theme .btn-primary:hover {
    background: linear-gradient(135deg, #0066ff 0%, #0044ee 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 85, 255, 0.45) !important;
}

body.light-theme .btn-secondary {
    background: rgba(0, 85, 255, 0.05) !important;
    color: #0055ff !important;
    border: 1px solid rgba(0, 85, 255, 0.18) !important;
    backdrop-filter: var(--glass-blur) !important;
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 85, 255, 0.1) !important;
    border-color: #0055ff !important;
}

body.light-theme .nav-btn {
    background: rgba(0, 85, 255, 0.06) !important;
    color: #0055ff !important;
    border: 1px solid rgba(0, 85, 255, 0.25) !important;
}

body.light-theme .nav-btn:hover {
    background: #0055ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.25) !important;
}

body.light-theme .simulator-display-container,
body.light-theme .simulator-display,
body.light-theme .pipeline-display {
    background: var(--bg-primary);
    border-color: var(--color-border);
}

body.light-theme .pipeline-title {
    color: #0f172a !important;
}

body.light-theme .flow-step {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 85, 255, 0.18) !important;
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.04) !important;
}

body.light-theme .flow-step:hover {
    border-color: #0055ff !important;
    box-shadow: 0 15px 35px rgba(0, 85, 255, 0.08) !important;
}

body.light-theme .flow-step h5 {
    color: #0f172a !important;
}

body.light-theme .flow-step p {
    color: #334155 !important;
}

body.light-theme .step-num {
    background: #0055ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.25) !important;
}

body.light-theme .flow-arrow {
    color: #0055ff !important;
}

body.light-theme .media-display-placeholder {
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%) !important;
}

body.light-theme .placeholder-title {
    color: #0f172a !important;
}

body.light-theme .placeholder-desc {
    color: #334155 !important;
}

body.light-theme .placeholder-badge {
    background: rgba(0, 85, 255, 0.08) !important;
    color: #0055ff !important;
    border-color: rgba(0, 85, 255, 0.25) !important;
}

body.light-theme .placeholder-glow-mesh {
    background: radial-gradient(circle, rgba(0, 85, 255, 0.15) 0%, transparent 70%) !important;
}

/* Simulator Card & Panels Overrides (No more gray/black) */
body.light-theme .catchai-simulator-card {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(0, 85, 255, 0.18) !important;
    box-shadow: 0 20px 45px rgba(0, 85, 255, 0.08) !important;
}

body.light-theme .simulator-header {
    background: rgba(255, 255, 255, 0.65) !important;
    border-bottom: 1px solid rgba(0, 85, 255, 0.12) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

body.light-theme .simulator-controls {
    background: rgba(255, 255, 255, 0.65) !important;
    border-top: 1px solid rgba(0, 85, 255, 0.12) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

body.light-theme .simulator-overlay {
    background: rgba(255, 255, 255, 0.88) !important;
}

body.light-theme #overlay-text {
    color: #0055ff !important;
    font-weight: 700;
}

body.light-theme .control-group label {
    color: #0f172a !important; /* Slate 900 */
    font-weight: 700;
}

body.light-theme .form-select,
body.light-theme .form-input,
body.light-theme .form-control {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 85, 255, 0.18) !important;
    color: #0f172a !important;
}

body.light-theme .form-select:focus,
body.light-theme .form-input:focus,
body.light-theme .form-control:focus {
    border-color: #0055ff !important;
    box-shadow: 0 0 12px rgba(0, 85, 255, 0.15) !important;
}

body.light-theme .form-select option,
body.light-theme .form-control option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-theme .form-select option:disabled,
body.light-theme .form-control option:disabled {
    color: rgba(15, 23, 42, 0.4) !important;
}

body.light-theme ::placeholder {
    color: rgba(15, 23, 42, 0.45) !important;
}


/* Tabs & Buttons Inside Simulator */
body.light-theme .sim-tab-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 85, 255, 0.15) !important;
    color: #334155 !important;
}

body.light-theme .sim-tab-btn:hover {
    background: rgba(0, 85, 255, 0.08) !important;
    border-color: rgba(0, 85, 255, 0.35) !important;
    color: #0055ff !important;
}

body.light-theme .sim-tab-btn.active {
    background: #0055ff !important;
    border-color: #0055ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.25) !important;
}

/* Simulator Translation Overlay Card */
body.light-theme .simulator-translation-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 85, 255, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.08) !important;
}

body.light-theme .translation-header {
    color: #0055ff !important;
    font-weight: 700;
}

body.light-theme .translation-text {
    color: #0f172a !important;
    font-weight: 800;
}

body.light-theme .translation-meaning {
    color: #475569 !important; /* Slate 600 */
}

/* Left Card (Catchai Info) High-Contrast Elements */
body.light-theme .catchai-info {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(0, 85, 255, 0.18) !important;
    box-shadow: 0 15px 35px rgba(0, 85, 255, 0.05) !important;
}

body.light-theme .catchai-info .card-title {
    color: #0f172a !important; /* Slate 900 */
    font-weight: 800;
}

body.light-theme .catchai-info .card-text {
    color: #334155 !important; /* Slate 700 */
    font-weight: 500;
}

body.light-theme .catchai-info .list-content {
    color: #334155 !important; /* Slate 700 */
}

body.light-theme .catchai-info .list-content strong {
    color: #0f172a !important; /* Slate 900 */
    font-weight: 700;
}

body.light-theme .catchai-info .list-icon {
    background: rgba(0, 85, 255, 0.05) !important;
    border-color: rgba(0, 85, 255, 0.18) !important;
}

body.light-theme .catchai-info .list-icon svg {
    stroke: #0055ff !important;
}

/* Science of Data Tag Overrides */
body.light-theme .ds-tech-tags span {
    color: #0055ff !important;
    background: rgba(0, 85, 255, 0.05) !important;
    border: 1px solid rgba(0, 85, 255, 0.18) !important;
}

/* Team Card LinkedIn Link Overrides */
body.light-theme .linkedin-link {
    color: #0055ff !important;
    background: rgba(0, 85, 255, 0.05) !important;
    border: 1px solid rgba(0, 85, 255, 0.18) !important;
}

body.light-theme .linkedin-link:hover {
    background: rgba(0, 85, 255, 0.1) !important;
    border-color: #0055ff !important;
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.15) !important;
}

/* Contact Channel Methods Overrides */
body.light-theme .method-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 85, 255, 0.12) !important;
}

body.light-theme .method-card:hover {
    border-color: #0055ff !important;
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.06) !important;
}

body.light-theme .method-label {
    color: rgba(0, 85, 255, 0.65) !important;
    font-weight: 600;
}

body.light-theme .method-value {
    color: #0f172a !important;
}

body.light-theme .method-icon {
    background: rgba(0, 85, 255, 0.05) !important;
    border-color: rgba(0, 85, 255, 0.18) !important;
}

body.light-theme .method-icon svg {
    stroke: #0055ff !important;
}

body.light-theme .contact-form label {
    color: #0f172a !important;
    font-weight: 600;
}

body.light-theme .contact-form-container {
    box-shadow: 0 20px 45px rgba(0, 85, 255, 0.06) !important;
}

body.light-theme .logo-svg {
    filter: drop-shadow(0 0 8px rgba(0, 85, 255, 0.25));
}

/* Footer Light Theme */
body.light-theme .main-footer {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 85, 255, 0.1) !important;
}

body.light-theme .copyright {
    color: #475569 !important;
    opacity: 1 !important;
}

body.light-theme .footer-links {
    color: #475569 !important;
    opacity: 1 !important;
}

body.light-theme .footer-links a:hover {
    color: #0055ff !important;
}

/* Location Badge Light Theme */
body.light-theme .location-badge {
    color: #475569 !important;
    opacity: 1 !important;
}

/* Hero Badge Light Theme */
body.light-theme .hero-badge {
    background: rgba(0, 85, 255, 0.06) !important;
    border-color: rgba(0, 85, 255, 0.2) !important;
    color: #0055ff !important;
}

body.light-theme .badge-dot {
    background-color: #0055ff !important;
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.4) !important;
}

/* Stat Cards Light Theme */
body.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.75) !important;
}

body.light-theme .stat-number {
    color: #0f172a !important;
}

body.light-theme .stat-icon {
    background: rgba(0, 85, 255, 0.04) !important;
    border-color: rgba(0, 85, 255, 0.1) !important;
}

/* Simulator Controls Background */
body.light-theme .simulator-controls {
    background: rgba(255, 255, 255, 0.7) !important;
    border-top: 1px solid rgba(0, 85, 255, 0.1) !important;
}

/* Industries Card Light Theme */
body.light-theme .ind-image-container {
    border-bottom: 1px solid rgba(0, 85, 255, 0.1) !important;
}

/* DS CTA Box Light Theme */
body.light-theme .ds-cta-box {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(0, 85, 255, 0.2) !important;
}

body.light-theme .ds-cta-title {
    color: #0f172a !important;
}

body.light-theme .ds-cta-text {
    color: #334155 !important;
}

/* Team Avatar Initials Light Theme */
body.light-theme .team-avatar-initials {
    background: #ffffff !important;
    border-color: rgba(0, 85, 255, 0.2) !important;
    box-shadow: inset 0 0 15px rgba(0, 85, 255, 0.04) !important;
}

/* Section Divider Light Theme */
body.light-theme .section-divider {
    background: linear-gradient(90deg, #0055ff, #00b4ff) !important;
}

/* Accent Dot Light Theme */
body.light-theme .accent-dot {
    background-color: #0055ff !important;
    box-shadow: 0 0 8px rgba(0, 85, 255, 0.4) !important;
}

/* Card Title and Text Generic Overrides */
body.light-theme .card-title,
body.light-theme .ind-title,
body.light-theme .ds-card-title,
body.light-theme .member-name {
    color: #0f172a !important;
}

body.light-theme .card-text,
body.light-theme .ind-text,
body.light-theme .ds-card-text,
body.light-theme .member-bio,
body.light-theme .contact-text {
    color: #334155 !important;
}

body.light-theme .member-role {
    color: #0055ff !important;
}

body.light-theme .ind-bullets li {
    color: #0f172a !important;
}

body.light-theme .ind-bullets li::before {
    color: #0055ff !important;
}

/* ==========================================================================
   CARRUSEL MULTIMEDIA (Tab Fotos y Videos)
   ========================================================================== */

.media-carousel {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: #040810;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    background: #040810;
    pointer-events: none; /* evita conflictos con los botones overlay */
}

.carousel-slide:hover img { transform: scale(1.02); }

/* Overlay de hover: aparece sobre la imagen */
.carousel-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 10, 40, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.carousel-slide:hover .carousel-hover { opacity: 1; }

/* Botón lupa central */
.carousel-magnify {
    background: rgba(0, 85, 255, 0.75);
    border: 2px solid rgba(69, 243, 255, 0.6);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 0 20px rgba(69, 243, 255, 0.35);
}

.carousel-magnify:hover {
    background: rgba(0, 85, 255, 1);
    transform: scale(1.12);
}

/* Etiqueta de slide */
.slide-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0 2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    margin: 0;
}

/* Botones prev / next */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 20;
    backdrop-filter: blur(6px);
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-btn:hover {
    background: rgba(0, 85, 255, 0.7);
    border-color: rgba(69, 243, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Dots indicadores */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.dot.active {
    background: #45f3ff;
    transform: scale(1.4);
    box-shadow: 0 0 6px rgba(69, 243, 255, 0.8);
}

/* Light theme */
body.light-theme .media-carousel   { background: #f0f4ff; }
body.light-theme .carousel-slide img { background: #f0f4ff; }
body.light-theme .carousel-hover   { background: rgba(0, 30, 120, 0.4); }
body.light-theme .carousel-btn     { background: rgba(255,255,255,0.75); border-color: rgba(0,85,255,0.3); color: #0055ff; }
body.light-theme .carousel-btn:hover { background: rgba(0,85,255,0.2); border-color: rgba(0,85,255,0.6); }
body.light-theme .dot              { background: rgba(0,0,0,0.25); }
body.light-theme .dot.active       { background: #0055ff; box-shadow: 0 0 6px rgba(0,85,255,0.5); }

/* Responsive */
@media (max-width: 600px) {
    .media-carousel { height: 260px; }
    .carousel-btn   { width: 36px; height: 36px; }
    .carousel-magnify { width: 48px; height: 48px; }
}

/* ==========================================================================
   MODAL CONFIRMACIÓN ENVÍO
   ========================================================================== */
.success-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.success-modal-overlay.open {
    display: flex;
}

.success-modal-box {
    text-align: center;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 90%;
    border-radius: 20px;
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-modal-icon {
    margin-bottom: 1.5rem;
}

.checkmark-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.5s 0.3s ease forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-highlight);
    margin-bottom: 0.75rem;
}

.success-modal-text {
    color: var(--color-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.lightbox.open { display: flex; }

/* Fondo oscuro clicable */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    z-index: 0;
    animation: fadeIn 0.2s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    cursor: default;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.25s ease;
}

.lightbox p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 80, 80, 0.5);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE GLOBAL — IMÁGENES Y CONTENEDORES FLUIDOS
   ========================================================================== */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Tablet grande (max 1024px) — logo ligeramente reducido */
@media (max-width: 1024px) {
    .logo-img {
        width: 86px;
        height: auto;
    }

    body.light-theme .logo-img {
        width: 71px;
    }
}

/* Móvil (max 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .logo-img {
        width: 68px;
        height: auto;
    }

    body.light-theme .logo-img {
        width: 56px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-card {
        width: 100%;
    }
}

/* Teléfonos pequeños (max 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .logo-img {
        width: 52px;
        height: auto;
    }

    body.light-theme .logo-img {
        width: 43px;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Teléfonos muy pequeños (max 380px) */
@media (max-width: 380px) {
    .logo-img {
        width: 42px;
        height: auto;
    }

    body.light-theme .logo-img {
        width: 35px;
    }

    .navbar-container {
        padding: 0 0.75rem;
    }
}
