/* ==========================================================================
   TASTYMEDIA - ESTILOS PREMIUM (TENDENCIAS 2026)
   ========================================================================== */

/* Variables y Paleta de Colores */
:root {
    /* Colores solicitados */
    --bg-charcoal: #0D0D0D;      /* Negro premium */
    --text-white: #FFFFFF;       /* Blanco puro */
    --accent-gold: #C6A667;      /* Oro mate (eco-luxe metallics) */
    --bg-sapphire: #0A1A3F;      /* Azul zafiro profundo */
    --accent-magenta: #D726FF;   /* Magenta de alta vibración (dopamine CTA) */
    --accent-green: #5E7F6B;     /* Verde neo-neutral */
    
    /* Variables de apoyo */
    --bg-card: rgba(20, 20, 20, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(198, 166, 103, 0.2);
    --text-gray: #A0A0A5;
    --text-dark: #121212;
    --text-dark-muted: #55555C;
    --gradient-twilight: linear-gradient(135deg, #0A1A3F 0%, #4A005C 100%);
    --gradient-gold: linear-gradient(135deg, #C6A667 0%, #A07F40 100%);
    --gradient-magenta: linear-gradient(135deg, #D726FF 0%, #9F00C5 100%);
    
    /* Tipografía */
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* Modo Claro (Redefinición de tokens base) */
body.light-mode {
    --bg-charcoal: #F5F5F7;      /* Pasa a ser fondo claro */
    --text-white: #121214;       /* Pasa a ser texto oscuro */
    --bg-sapphire: #EBF1FF;      /* Pasa a ser azul claro premium */
    --bg-card: rgba(255, 255, 255, 0.85); /* Tarjetas blancas semi-transparentes */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(198, 166, 103, 0.35);
    --text-gray: #55555C;        /* Texto secundario oscuro */
    --text-dark: #FFFFFF;        /* Para contrastar elementos invertidos */
    --text-dark-muted: #E2E2E9;
}

/* Reset y Estilos Globales */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-charcoal);
}
::-webkit-scrollbar-thumb {
    background: #252528;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Layout y Contenedores */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

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

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

/* Tipografía Escrita */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 800;
    line-height: 1.1;
}

.text-gold {
    color: var(--accent-gold);
}

.text-magenta {
    color: var(--accent-magenta);
}

.text-green {
    color: var(--accent-green);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-white);
}

.text-gray {
    color: var(--text-gray);
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Títulos de Sección */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

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

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-magenta);
    color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(215, 38, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(215, 38, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(13, 13, 13, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
}

.logo {
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

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

/* Navigation Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-white);
}

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

.nav-link-cta {
    background: var(--gradient-magenta);
    color: #FFFFFF !important;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(215, 38, 255, 0.3);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 38, 255, 0.5);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Active Nav Toggle Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: pulseOrbs 12s infinite alternate ease-in-out;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--accent-magenta);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--bg-sapphire);
    bottom: -150px;
    left: -150px;
    animation-delay: 3s;
}

@keyframes pulseOrbs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.15);
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 24px;
    margin-top: 40px;
}

.tagline-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.tag-dot {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.kinetic-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.w1 { animation-delay: 0.1s; }
.w2 { animation-delay: 0.25s; }
.w3 { animation-delay: 0.4s; }
.w4 { animation-delay: 0.55s; }

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 680px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite ease-in-out;
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

/* ==========================================================================
   Qué hacemos (Servicios)
   ========================================================================== */
.services-section {
    background-color: var(--bg-charcoal);
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    background: rgba(25, 25, 27, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(198, 166, 103, 0.05);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(198, 166, 103, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(198, 166, 103, 0.12);
    transform: rotate(5deg) scale(1.05);
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.service-card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.service-card:hover .service-tag {
    background: rgba(198, 166, 103, 0.08);
    border-color: rgba(198, 166, 103, 0.3);
    color: var(--accent-gold);
}

/* Wide Service Card variant */
.service-card-wide {
    grid-column: span 3;
    display: flex;
    gap: 40px;
    align-items: center;
}

.service-card-wide .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.service-card-wide .wide-card-content {
    flex-grow: 1;
}

.service-card-wide .service-card-desc {
    margin-bottom: 16px;
}

/* ==========================================================================
   Por qué nosotros (Pilares)
   ========================================================================== */
.why-section {
    background-color: var(--bg-sapphire);
    z-index: 1;
    overflow: hidden;
}

.why-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.why-header {
    margin-bottom: 60px;
    max-width: 650px;
}

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

.pillar-card {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.pillar-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.pillar-card:hover::after {
    width: 100%;
}

.pillar-card:hover {
    transform: translateY(-4px);
}

.pillar-number {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pillar-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.pillar-text {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   Casos de Éxito
   ========================================================================== */
.cases-section {
    background-color: var(--bg-charcoal);
}

/* Logo Marquee */
.logo-marquee-wrapper {
    overflow: hidden;
    padding: 40px 0;
    margin-bottom: 80px;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-charcoal) 0%, transparent 100%);
}

.logo-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-charcoal) 0%, transparent 100%);
}

.logo-marquee {
    display: flex;
    width: max-content;
    gap: 80px;
    animation: marqueeAnimation 25s linear infinite;
}

.logo-placeholder {
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
    cursor: default;
    display: flex;
    align-items: center;
}

.logo-placeholder:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(198, 166, 103, 0.2);
}

@keyframes marqueeAnimation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Grid de Casos */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.case-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.case-visual {
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.case-gradient-1 {
    background: linear-gradient(135deg, #101F4C 0%, #76008F 100%);
}

.case-gradient-2 {
    background: linear-gradient(135deg, #38423B 0%, #15222E 100%);
}

.case-chart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.case-card:hover .case-visual {
    transform: scale(1.05);
}

.case-metric-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--bg-charcoal);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.case-info {
    padding: 40px;
}

.case-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-green);
    display: block;
    margin-bottom: 12px;
}

.case-title {
    font-size: 1.7rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.case-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.case-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
}

.case-link:hover {
    color: var(--accent-magenta);
}

/* ==========================================================================
   Nuestro Proceso
   ========================================================================== */
.process-section {
    background-color: var(--bg-charcoal);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding: 20px 0;
}

/* Línea vertical de fondo */
.timeline-line {
    position: absolute;
    left: 31px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Progreso de la línea al hacer scroll */
#timeline-progress {
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-magenta));
    height: 0%; /* Controlado por JS */
    transition: height 0.1s linear;
}

.timeline-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #18181B;
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-gray);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.timeline-step.active .timeline-dot {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: var(--bg-sapphire);
    box-shadow: 0 0 20px rgba(198, 166, 103, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 32px 40px;
    border-radius: 24px;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.timeline-step.active .timeline-content {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(25, 25, 27, 0.9);
}

.step-duration {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-green);
    display: block;
    margin-bottom: 8px;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-text {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   Testimonios (Fondo Blanco)
   ========================================================================== */
.testimonials-section {
    background-color: var(--text-white);
    color: var(--text-dark);
}

.text-dark {
    color: var(--text-dark);
}

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

.text-dark-accent {
    color: var(--accent-gold);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: #F9F9FB;
    border: 1px solid #ECECF1;
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-family: var(--font-titles);
    font-size: 5rem;
    color: var(--accent-gold);
    line-height: 0.3;
    margin-bottom: 24px;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: #43434B;
    margin-bottom: 32px;
    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-sapphire);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-name {
    font-family: var(--font-titles);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-dark-muted);
}

/* ==========================================================================
   CTA Final (Digital Twilight)
   ========================================================================== */
.cta-final-section {
    background: var(--gradient-twilight);
    padding: 140px 0;
    overflow: hidden;
}

.cta-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(215, 38, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    display: block;
}

.cta-title {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 24px auto;
    letter-spacing: -1.5px;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.btn-magenta {
    background: var(--gradient-magenta);
    box-shadow: 0 4px 20px rgba(215, 38, 255, 0.4);
}

.btn-magenta:hover {
    box-shadow: 0 8px 30px rgba(215, 38, 255, 0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 40px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-tagline {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--text-white);
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 40px;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ==========================================================================
   Interactive Wizard Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    width: 100%;
    max-width: 600px;
    padding: 48px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-smooth);
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInModal 0.4s ease forwards;
}

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

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Tarjetas de Selección del Wizard */
.form-grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 80px;
    transition: var(--transition-fast);
}

.option-card:hover .option-label {
    border-color: rgba(198, 166, 103, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

/* Checked States */
.option-card input:checked + .option-label {
    background: rgba(215, 38, 255, 0.08);
    border-color: var(--accent-magenta);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(215, 38, 255, 0.15);
}

/* Campos de Formulario Tradicionales */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.04);
}

/* Modal Footer & Barra de Progreso */
.modal-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 33.3%;
    background: var(--gradient-magenta);
    transition: width 0.4s ease;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-buttons .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Pantalla de Éxito */
.modal-success-screen {
    text-align: center;
    padding: 20px 0;
    animation: fadeInModal 0.4s ease forwards;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(198, 166, 103, 0.06);
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px auto;
    box-shadow: 0 0 20px rgba(198, 166, 103, 0.1);
}

.calendly-button-wrapper {
    margin-top: 32px;
}

.calendly-button-wrapper .btn {
    width: 100%;
    max-width: 280px;
}

/* ==========================================================================
   Animaciones Scroll Reveal
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */

/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-wide {
        grid-column: span 2;
    }
    
    .pillars-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-wrapper {
        padding: 60px 40px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-group {
        gap: 40px;
        flex-wrap: wrap;
    }
}

/* Dispositivos Móviles */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

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

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

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    /* Menu de Navegación Móvil */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0F0F11;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding: 100px 40px 40px 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 8px 0;
    }

    .nav-link-cta {
        display: block;
        text-align: center;
        margin-top: 20px;
        padding: 14px;
    }

    /* Ajustes Grid Servicios */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-wide {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .service-card {
        padding: 30px;
    }

    /* Timeline Process Mobile */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .timeline-step {
        gap: 20px;
    }
    
    .timeline-content {
        padding: 24px;
    }

    /* Modal Mobile */
    .modal-container {
        padding: 30px 20px;
        border-radius: 24px;
        max-width: calc(100vw - 32px);
    }
    
    .form-grid-options {
        grid-template-columns: 1fr;
    }

    .option-label {
        min-height: 60px;
        padding: 14px;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Selector de Tema (Claro/Oscuro)
   ========================================================================== */
.theme-switch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    padding: 3px;
    width: 52px;
    height: 28px;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
    margin-right: 20px;
    z-index: 1001;
}

.theme-switch-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.theme-switch-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    color: #121212;
}

/* Control de iconos */
.theme-switch-thumb .sun-icon {
    display: block;
}
.theme-switch-thumb .moon-icon {
    display: none;
}

body.light-mode .theme-switch {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-switch-thumb {
    left: calc(100% - 20px);
    background: var(--accent-magenta);
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(215, 38, 255, 0.35);
}

body.light-mode .theme-switch-thumb .sun-icon {
    display: none;
}
body.light-mode .theme-switch-thumb .moon-icon {
    display: block;
}

/* Ajustes sutiles para el modo claro */
body.light-mode .header {
    background: rgba(245, 245, 247, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .header.scrolled {
    background: rgba(245, 245, 247, 0.9);
}

body.light-mode .nav-menu {
    background: #F5F5F7;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .glow-orb {
    opacity: 0.07;
    filter: blur(140px);
}

body.light-mode .logo-placeholder {
    color: rgba(0, 0, 0, 0.12);
}

body.light-mode .logo-placeholder:hover {
    color: var(--accent-gold);
}

body.light-mode .timeline-dot {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .timeline-step.active .timeline-dot {
    background: #E8EEFB;
    border-color: var(--accent-gold);
}

body.light-mode .timeline-line {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .timeline-content {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .timeline-step.active .timeline-content {
    background: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-mode .service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
                0 0 20px rgba(198, 166, 103, 0.08);
}

body.light-mode .testimonial-card {
    background: #FFFFFF;
    border-color: #ECECF1;
}

body.light-mode .modal-container {
    background: #FFFFFF;
}

body.light-mode .form-control {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #121214;
}

body.light-mode .form-control:focus {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.01);
}

body.light-mode .option-label {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .option-card:hover .option-label {
    border-color: rgba(198, 166, 103, 0.4);
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .option-card input:checked + .option-label {
    background: rgba(215, 38, 255, 0.05);
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
}

body.light-mode .form-progress {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .modal-close {
    color: #55555C;
}

body.light-mode .modal-close:hover {
    color: #121214;
}

/* Forzar que los testimonios sigan teniendo fondo blanco y texto oscuro en ambos modos */
.testimonials-section {
    background-color: #FFFFFF !important;
    color: #121212 !important;
}

.testimonials-section .section-title {
    color: #121212 !important;
}

.testimonials-section .section-desc {
    color: #55555C !important;
}

/* ==========================================================================
   Estilos de Páginas Legales
   ========================================================================== */
.legal-section {
    padding-top: 140px;
    padding-bottom: 100px;
}

.legal-text-content {
    max-width: 800px;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

body.light-mode .legal-text-content {
    color: #43434B;
}

.legal-text-content h2 {
    color: var(--text-white);
    margin: 40px 0 20px 0;
    font-size: 1.8rem;
    font-family: var(--font-titles);
    letter-spacing: -0.5px;
}

body.light-mode .legal-text-content h2 {
    color: #121214;
}

.legal-text-content p {
    margin-bottom: 24px;
}

.legal-text-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
    list-style-type: square;
    padding-left: 10px;
}

.legal-text-content ul li {
    margin-bottom: 12px;
}

/* ==========================================================================
   Estilos del Logo de Tablemind POS (HTML/SVG Widget)
   ========================================================================== */
.service-card-wide .tablemind-logo-icon {
    width: 230px !important;
    height: 76px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    border: none !important;
    flex-shrink: 0;
}

.tablemind-brand-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: var(--bg-charcoal) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

body.light-mode .tablemind-brand-widget {
    background: var(--bg-charcoal) !important;
    border-color: var(--border-light) !important;
}

.tablemind-brand-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tablemind-brand-icon svg {
    width: 100%;
    height: 100%;
}

.tablemind-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.tablemind-title {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0;
}

body.light-mode .tablemind-title {
    color: #121214;
}

.tablemind-divider {
    width: 100%;
    height: 1px;
    background: rgba(198, 166, 103, 0.4);
    margin: 4px 0;
}

.tablemind-subtitle {
    font-size: 0.48rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.8px;
    line-height: 1;
    margin: 0;
}

.service-card-wide:hover .tablemind-brand-widget {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 8px 25px rgba(198, 166, 103, 0.1);
    transform: translateY(-2px);
}
