/*
 * PuroIA Master Design System
 * Version: 4.0.0
 * Theme: Cyber-Obsidian / Neon Glassmorphism
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-obsidian: #080a10;
    --bg-nebula: #0b0d19;
    --violet-accent: #8b5cf6;
    --magenta-accent: #ec4899;
    --cyan-accent: #06b6d4;
    --cyan-glow: #00f0ff;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(139, 92, 246, 0.15);
    
    /* Layout Tokens */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px; /* Space for fixed header */
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--violet-accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

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

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

.section-3d {
    perspective: 1200px;
}

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

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glass-glow);
    transform: translateY(-5px);
}

/* 3D Card System */
.card-3d-wrapper {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.card-3d-content {
    transform: translateZ(50px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet-accent) 0%, var(--magenta-accent) 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5), 0 0 20px rgba(236, 72, 153, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan-accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
    transform: translateY(-3px);
}

/* Background Effects */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nebula-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    animation: nebulaMove 20s infinite alternate ease-in-out;
}

.glow-violet {
    background: var(--violet-accent);
    top: -100px;
    right: -100px;
}

.glow-magenta {
    background: var(--magenta-accent);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.glow-cyan {
    background: var(--cyan-accent);
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    opacity: 0.08;
    animation-delay: -10s;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(8, 10, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(8, 10, 16, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--cyan-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid transparent;
}

.btn-login:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    z-index: 1100;
    padding: 8px;
}

.hamburger svg {
    width: 28px;
    height: 28px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan-glow);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulseGlow 3s infinite alternate;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-val {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Chat Simulator (Hero Right) */
.chat-simulator-card {
    height: 480px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-color: rgba(6, 182, 212, 0.15);
}

.chat-sim-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 10, 16, 0.3);
}

.chat-sim-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-sim-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan-glow);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.chat-sim-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-sim-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 4px;
    color: var(--cyan-accent);
}

.chat-sim-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.92rem;
    line-height: 1.5;
    animation: floatUp 0.6s ease-out;
}

.chat-bubble.user {
    align-self: flex-end;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: var(--text-secondary);
}

.chat-sim-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    background: rgba(8, 10, 16, 0.3);
}

.chat-sim-input {
    flex: 1;
    background: rgba(8, 10, 16, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.chat-sim-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-accent), var(--magenta-accent));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Common Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
    z-index: 1;
}

.section-subtitle-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* Features (Propuesta de Valor) */
.feature-card {
    text-align: center;
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--cyan-accent);
    font-size: 1.8rem;
    margin: 0 auto 24px auto;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--violet-accent), var(--magenta-accent));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: rotate(360deg);
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Catalog Showcase (Plataformas) */
.suite-grid {
    gap: 24px;
}

.suite-card {
    padding: 36px;
    border-color: rgba(255, 255, 255, 0.05);
}

.suite-card-icon {
    font-size: 2rem;
    color: var(--violet-accent);
    margin-bottom: 20px;
}

.suite-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.suite-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.suite-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cyan-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.suite-card-link:hover {
    color: var(--text-primary);
}

/* Stepper Steeps (Cómo Funciona) */
.steps-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-flow::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    width: 25%;
    text-align: center;
}

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-nebula);
    border: 2px solid var(--glass-border);
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--violet-accent);
    margin: 0 auto 24px auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.step-item:hover .step-num {
    border-color: var(--cyan-accent);
    color: var(--cyan-accent);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Pricing Section */
.pricing-grid {
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    border-color: rgba(255,255,255,0.04);
}

.pricing-card.highlight {
    border-color: var(--violet-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--violet-accent);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pricing-card.highlight .pricing-badge {
    background: var(--violet-accent);
    color: white;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-tag {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.pricing-tag span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-usd {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pricing-body {
    margin-bottom: 32px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-item svg {
    color: var(--cyan-accent);
    width: 16px;
    height: 16px;
}

.pricing-footer .btn {
    width: 100%;
}

.pricing-extra-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyan-accent);
}

.pricing-extra-link:hover {
    color: var(--text-primary);
}

/* Testimoniales Carousel */
.testimonials-wrapper {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    height: 280px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.testimonial-quote {
    font-size: 1.35rem;
    font-family: var(--font-headings);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cyan-accent);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--cyan-accent);
    width: 24px;
    border-radius: 4px;
}

/* News Teaser Grid (Noticias Preview) */
.news-teaser-grid {
    gap: 24px;
    margin-bottom: 48px;
}

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

.news-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.news-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg-obsidian);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyan-glow);
    text-transform: uppercase;
}

.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-teaser-footer {
    text-align: center;
}

/* Call to Action Final (CTA) */
.cta-section {
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-nebula) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.cta-glass-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(139,92,246,0.05);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-benefit-item {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-benefit-item svg {
    color: var(--cyan-glow);
}

.form-box {
    padding: 32px;
    background: rgba(8, 10, 16, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(8, 10, 16, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-box button.btn {
    width: 100%;
    margin-top: 12px;
}

/* Footer */
.site-footer {
    background: #040509;
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--cyan-accent);
    border-color: var(--cyan-accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links-list a:hover {
    color: var(--cyan-accent);
    padding-left: 4px;
}

.footer-newsletter-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding-left: 20px;
}

.newsletter-form .btn {
    padding: 10px 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sello-soberania {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan-accent);
    font-weight: 600;
    background: rgba(6,182,212,0.06);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(6,182,212,0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.2);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5), 0 0 25px rgba(37, 211, 102, 0.3);
}

/* Reading Progress Bar (Pages) */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1010;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cyan-accent), var(--violet-accent), var(--magenta-accent));
    box-shadow: 0 0 8px var(--cyan-glow);
}

/* Platform Page Specifics */
.platform-grid {
    gap: 32px;
}

.platform-module-card {
    display: flex;
    flex-direction: column;
}

.platform-img-box {
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
    background: rgba(0,0,0,0.2);
}

.platform-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.platform-module-card:hover .platform-img-box img {
    transform: scale(1.03);
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 3px 8px;
    border-radius: 4px;
}

.platform-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.platform-replacement {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: auto;
}

.platform-replacement span {
    color: var(--magenta-accent);
}

/* Platform Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--glass-bg);
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.comparison-table th {
    font-family: var(--font-headings);
    font-weight: 700;
    background: rgba(8, 10, 16, 0.4);
    color: var(--text-primary);
}

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

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.icon-check {
    color: var(--cyan-glow);
}

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

/* Timeline (Quienes Somos) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--violet-accent);
    position: absolute;
    top: 8px;
    z-index: 2;
    box-shadow: 0 0 10px var(--violet-accent);
    transition: var(--transition-fast);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    background: var(--cyan-glow);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cyan-accent);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Keyframes Animations */
@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nebulaMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(6, 182, 212, 0.1);
        border-color: rgba(6, 182, 212, 0.1);
    }
    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
        border-color: rgba(6, 182, 212, 0.5);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo SVG Refinements */
.logo-svg polygon {
    fill: none !important;
}

@media (min-width: 1201px) {
    .site-header .logo-svg polygon {
        animation: rotateLogo 8s infinite linear;
        transform-origin: 50px 50px;
    }
}

.logo-wrapper:hover .logo-svg {
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

/* ============================================
   RESPONSIVE: Tablets & Mobile (≤1200px)
   ============================================ */
@media (max-width: 1200px) {
    body {
        padding-top: 72px;
    }

    .site-header {
        height: 72px;
        background: rgba(8, 10, 16, 0.95);
    }

    /* Make nav wrapper invisible as a box, but keep children renderable */
    .site-navigation {
        display: contents;
    }

    .header-actions {
        display: none;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
    }

    .hamburger svg {
        width: 28px;
        height: 28px;
    }

    /* Fullscreen overlay menu — HIDDEN by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 10, 16, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 10000;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Menu VISIBLE when active */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        list-style: none;
        text-align: center;
    }

    .nav-menu .nav-link {
        font-size: 1.4rem;
        color: var(--text-secondary);
        padding: 12px 32px;
        display: inline-block;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--cyan-glow);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    /* Content grids */
    .hero-title {
        font-size: 2.8rem;
    }

    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}

/* ============================================
   RESPONSIVE: Notebook (1201px – 1366px)
   ============================================ */
@media (min-width: 1201px) and (max-width: 1366px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .container {
        max-width: 1100px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .btn-login {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

/* ============================================
   RESPONSIVE: Mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

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

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

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .chat-simulator-card {
        height: 360px;
    }

    .section {
        padding: 60px 0;
    }

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

    .cta-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .steps-flow {
        flex-direction: column;
        gap: 40px;
    }

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

    .step-item {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE: Small Mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
    }
}
