/* ==========================================================================
   SISTEMA DE DISEÑO MATRIZ - PREMIUM DARK MODE & GLASSMORPHISM
   ========================================================================== */

:root {
    /* Paleta Oscura Profesional (Gris Antracita) */
    --bg-base: #0D0F12;
    --bg-surface: #15181C;
    --bg-surface-elevated: #1E2228;
    
    /* Acentos Neón (Verde Cian & Azul Cian) */
    --accent-cyan: #00F2FE;
    --accent-green: #00FFC6;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
    
    /* Textos */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Bordes y Glass */
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(0, 255, 198, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Variables de Transición */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & REGLAS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, .brand-name, .section-tag {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   EFECTOS DE FONDO PREMIUM
   ========================================================================== */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-top {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(0, 255, 198, 0.02) 70%, transparent 100%);
}

.glow-bottom {
    bottom: 20%;
    left: -200px;
    background: radial-gradient(circle, rgba(0, 255, 198, 0.08) 0%, transparent 70%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   UTILIDADES DE GLASSMORPHISM
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 255, 198, 0.07);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   COMPONENTES DE BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0D0F12;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 255, 198, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 28px rgba(0, 255, 198, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
}

.pulse-glow {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 198, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 198, 0); }
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: min(1200px, calc(100vw - 2rem));
    box-sizing: border-box;
    background: rgba(13, 15, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

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

.logo-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-logo {
    width: 100%;
    height: 100%;
    /* Rotación extremadamente suave y lenta que evoca precisión de ingeniería */
    animation: spin 30s linear infinite;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 198, 0.05);
    border: 1px solid rgba(0, 255, 198, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.highlight-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero-assurance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.bullet { color: var(--accent-cyan); }

/* Hero Visual / Simulación Artwork */
.hero-visual {
    position: relative;
}

.glass-artwork {
    background: rgba(21, 24, 28, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(13, 15, 18, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.circle.red { background: #FF5F56; }
.circle.yellow { background: #FFBD2E; }
.circle.green { background: #27C93F; }

.title-tab {
    margin-left: 1rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
}

.artwork-content {
    position: relative;
    height: 360px;
    background: var(--bg-surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mix-blend-mode: luminosity;
    transition: var(--transition);
}

.glass-artwork:hover .core-img {
    opacity: 0.85;
    mix-blend-mode: normal;
}

.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(180deg, rgba(13,15,18,0.7) 0%, rgba(13,15,18,0.2) 100%);
    pointer-events: none;
}

.code-overlay code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.keyword { color: #FF7B72; }
.variable { color: #79C0FF; }
.string { color: #A5D6FF; }
.comment { color: #8B949E; font-style: italic; }
.function { color: #D2A8FF; }
.method { color: var(--accent-cyan); }
.console { color: #FFA657; }

.floating-badge {
    position: absolute;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-hover);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.fb-1 {
    top: -20px;
    right: -20px;
}

.fb-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: -3s;
}

.stat {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-green);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

/* ==========================================================================
   SECCIONES GENERALES & DOLOR
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.pain-card {
    padding: 2.5rem 2rem;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pain-icon {
    background: rgba(255, 95, 86, 0.05);
    color: #FF5F56;
    border: 1px solid rgba(255, 95, 86, 0.15);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pain-solution {
    margin-top: 4rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 198, 0.05), transparent);
    padding: 1.5rem;
    border-radius: 8px;
}

.pain-solution strong {
    color: var(--accent-green);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.service-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    transition: var(--transition);
}

.service-icon {
    background: rgba(0, 255, 198, 0.05);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 198, 0.15);
    margin-bottom: 0;
}

.service-card:hover .service-num {
    color: var(--accent-cyan);
}

.service-features {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 800;
}

.services-cta {
    margin-top: 4rem;
}

/* ==========================================================================
   SOBRE NOSOTROS (EL ADN MATRIZ)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-paragraph {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-paragraph strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.dna-card {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.core-node-animation {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.node-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 198, 0.2);
}

.r1 { width: 160px; height: 160px; animation: pulse-ring 4s infinite linear; }
.r2 { width: 110px; height: 110px; border-style: dashed; animation: spin 20s linear infinite reverse; }
.r3 { width: 70px; height: 70px; border-color: rgba(0, 242, 254, 0.4); }

.node-center {
    width: 45px;
    height: 45px;
    z-index: 5;
}

.rotating-star-fast {
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.dna-quote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dna-quote span {
    font-size: 0.85rem;
    color: var(--accent-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   PRUEBA SOCIAL
   ========================================================================== */
.proof-card {
    padding: 4rem 3rem;
}

.proof-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.proof-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.trust-item {
    background: rgba(13, 15, 18, 0.5);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.trust-bar {
    height: 3px;
    background: var(--accent-gradient);
    width: 40px;
    border-radius: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0A0C0E;
    border-top: 1px solid var(--glass-border);
    padding-top: 5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.star-logo-spinning {
    width: 36px;
    height: 36px;
    animation: spin 25s linear infinite;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 320px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.wa-text-link {
    color: var(--accent-green) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-text-link::after {
    content: '↗';
}

.footer-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-signature span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (OMNIPRESENTE)
   ========================================================================== */
.floating-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.wa-icon {
    width: 36px;
    height: 36px;
}

.floating-wa-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
    background-color: #20BA5C;
}

.wa-tooltip {
    position: absolute;
    right: 80px;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-surface-elevated);
}

.floating-wa-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container, .about-grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero { padding-top: 8rem; padding-bottom: 4rem; }
    
    .hero-title { font-size: 2.8rem; }
    
    .floating-badge { display: none; } /* Ocultar en móvil para mayor limpieza */
    
    .section-container { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
    .header {
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
        top: 0.5rem;
    }
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-links { display: none; } /* Ocultar menú en móvil para simplificar conversión */
    
    .hero-title { font-size: 2.3rem; }
    
    .hero-subtitle { font-size: 1rem; }
    
    .section-title, .proof-title { font-size: 2rem; }
    
    .footer-top { gap: 2.5rem; }
    
    .footer-links-group { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .floating-wa-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .wa-icon { width: 30px; height: 30px; }
    
    .wa-tooltip { display: none; }
}
