/*
Theme Name: ControlStack
Theme URI: https://controlstack.tech
Author: ControlStack Team
Author URI: https://controlstack.tech
Description: Tema oficial de ControlStack – Suite empresarial de paneles de administración para infraestructura DevOps. Diseñado para comunicar potencia, control y confianza. Altamente configurable desde el Personalizador de WordPress.
Version: 1.0.0
License: Proprietary
License URI: https://controlstack.tech/license
Text Domain: controlstack
Tags: dark, tech, enterprise, devops, configurable, one-page
*/

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

/* ============================================================
   CSS CUSTOM PROPERTIES (sobrescritas por el Personalizador)
   ============================================================ */
:root {
    --cs-primary:        #2563eb;
    --cs-primary-rgb:    37, 99, 235;
    --cs-secondary:      #06b6d4;
    --cs-secondary-rgb:  6, 182, 212;
    --cs-accent:         #8b5cf6;
    --cs-accent-rgb:     139, 92, 246;
    --cs-success:        #10b981;
    --cs-warning:        #f59e0b;
    --cs-danger:         #ef4444;

    --cs-bg:             #070d1f;
    --cs-bg-secondary:   #0d1630;
    --cs-bg-card:        rgba(255, 255, 255, 0.03);
    --cs-bg-card-hover:  rgba(255, 255, 255, 0.06);
    --cs-border:         rgba(255, 255, 255, 0.08);
    --cs-border-hover:   rgba(37, 99, 235, 0.4);

    --cs-text:           #f1f5f9;
    --cs-text-secondary: #94a3b8;
    --cs-text-muted:     #475569;

    --cs-gradient:       linear-gradient(135deg, var(--cs-primary), var(--cs-secondary));
    --cs-gradient-soft:  linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.15));
    --cs-gradient-hero:  radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
                         radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.12) 0%, transparent 50%),
                         radial-gradient(ellipse at 60% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);

    --cs-radius-sm:      0.375rem;
    --cs-radius:         0.75rem;
    --cs-radius-lg:      1.25rem;
    --cs-radius-xl:      2rem;

    --cs-shadow:         0 4px 24px rgba(0,0,0,0.4);
    --cs-shadow-glow:    0 0 40px rgba(var(--cs-primary-rgb), 0.25);
    --cs-shadow-card:    0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--cs-border);

    --cs-font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cs-font-heading:   'Space Grotesk', var(--cs-font-sans);
    --cs-font-mono:      'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --cs-transition:     all 0.2s ease;
    --cs-transition-slow: all 0.4s ease;
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--cs-font-sans);
    background-color: var(--cs-bg);
    color: var(--cs-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cs-font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cs-text);
}

a { color: var(--cs-primary); text-decoration: none; transition: var(--cs-transition); }
a:hover { color: var(--cs-secondary); }

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

::selection { background: rgba(var(--cs-primary-rgb), 0.3); color: var(--cs-text); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }
.section-padding-lg { padding: 7rem 0; }

.text-center { text-align: center; }
.text-gradient {
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-pulse {
    background: rgba(var(--cs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--cs-primary-rgb), 0.25);
    color: var(--cs-secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cs-success);
    animation: pulse-dot 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--cs-radius);
    font-family: var(--cs-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    transition: var(--cs-transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--cs-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--cs-primary-rgb), 0.35);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--cs-primary-rgb), 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--cs-text);
    border: 1px solid var(--cs-border);
}

.btn-ghost:hover {
    color: var(--cs-text);
    border-color: var(--cs-border-hover);
    background: rgba(var(--cs-primary-rgb), 0.06);
}

.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, var(--cs-primary), var(--cs-accent), var(--cs-secondary));
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

.announcement-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--cs-transition-slow);
}

.site-header.has-announcement { top: 0; }

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-glass {
    background: rgba(7, 13, 31, 0);
    border-bottom: 1px solid transparent;
    transition: var(--cs-transition-slow);
}

.nav-glass.scrolled {
    background: rgba(7, 13, 31, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--cs-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--cs-gradient);
    border-radius: var(--cs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    font-family: var(--cs-font-heading);
    flex-shrink: 0;
}

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

/* Logo SVG del tema */
.cs-logo-full-img {
    height: 40px;
    width: auto;
    display: block;
}

.cs-logo-icon-img {
    height: 34px;
    width: auto;
    display: block;
}

.cs-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-logo-text {
    font-family: var(--cs-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cs-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--cs-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--cs-transition);
}

.nav-links a:hover { color: var(--cs-text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cs-text);
    border-radius: 2px;
    transition: var(--cs-transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--cs-bg);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cs-gradient-hero);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(var(--cs-primary-rgb), 0.12);
    top: -10%;
    left: -10%;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(var(--cs-accent-rgb), 0.1);
    top: 20%;
    right: -5%;
}

.hero-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(var(--cs-secondary-rgb), 0.08);
    bottom: 0;
    left: 40%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text { max-width: 600px; }

.hero-badge {
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--cs-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--cs-text-muted);
}

.hero-social-proof-avatars {
    display: flex;
}

.hero-social-proof-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--cs-bg);
    background: var(--cs-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}

.hero-social-proof-avatars span:first-child { margin-left: 0; }

/* ============================================================
   HERO TERMINAL MOCKUP
   ============================================================ */
.hero-visual {
    position: relative;
}

.terminal-window {
    background: #0d1117;
    border-radius: var(--cs-radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: var(--cs-shadow), 0 0 60px rgba(var(--cs-primary-rgb), 0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    font-family: var(--cs-font-mono);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--cs-font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
}

.terminal-line { display: flex; gap: 0.5rem; }
.terminal-prompt { color: var(--cs-success); flex-shrink: 0; }
.terminal-cmd { color: #e2e8f0; }
.terminal-output { color: var(--cs-text-muted); }
.terminal-highlight { color: var(--cs-secondary); }
.terminal-success { color: var(--cs-success); }
.terminal-warning { color: var(--cs-warning); }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--cs-primary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-floating {
    position: absolute;
    background: var(--cs-bg-secondary);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--cs-shadow);
    animation: float 3s ease-in-out infinite;
}

.terminal-floating-1 { top: -1rem; right: -1.5rem; animation-delay: 0s; }
.terminal-floating-2 { bottom: 2rem; left: -2rem; animation-delay: 1.5s; }

.terminal-floating-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--cs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

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

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
    background: rgba(255,255,255,0.01);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: var(--cs-font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.375rem;
}

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

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cs-primary);
    margin-bottom: 0.875rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--cs-text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { position: relative; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-lg);
    padding: 2rem;
    transition: var(--cs-transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cs-gradient-soft);
    opacity: 0;
    transition: var(--cs-transition-slow);
    border-radius: inherit;
}

.product-card:hover {
    background: var(--cs-bg-card-hover);
    border-color: rgba(var(--cs-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: var(--cs-shadow-card), var(--cs-shadow-glow);
}

.product-card:hover::before { opacity: 1; }

.product-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cs-gradient);
    border-radius: var(--cs-radius-lg) var(--cs-radius-lg) 0 0;
}

.product-card.color-cyan .product-card-accent {
    background: linear-gradient(90deg, var(--cs-secondary), var(--cs-primary));
}
.product-card.color-purple .product-card-accent {
    background: linear-gradient(90deg, var(--cs-accent), var(--cs-primary));
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--cs-radius);
    background: rgba(var(--cs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--cs-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-card.color-cyan .product-icon {
    background: rgba(var(--cs-secondary-rgb), 0.12);
    border-color: rgba(var(--cs-secondary-rgb), 0.2);
}
.product-card.color-purple .product-icon {
    background: rgba(var(--cs-accent-rgb), 0.12);
    border-color: rgba(var(--cs-accent-rgb), 0.2);
}

.product-badge-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(var(--cs-primary-rgb), 0.15);
    color: var(--cs-secondary);
    border: 1px solid rgba(var(--cs-secondary-rgb), 0.25);
}

.product-name {
    font-size: 1.3125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.product-tagline {
    font-size: 0.875rem;
    color: var(--cs-text-secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.product-description {
    font-size: 0.9375rem;
    color: var(--cs-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--cs-text-secondary);
}

.product-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(var(--cs-success-rgb, 16, 185, 129), 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.product-footer {
    position: relative;
    z-index: 1;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cs-primary);
    transition: var(--cs-transition);
}

.product-link:hover {
    gap: 0.75rem;
    color: var(--cs-secondary);
}

.product-link svg { transition: var(--cs-transition); }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-lg);
    transition: var(--cs-transition-slow);
}

.feature-card:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.25);
    background: var(--cs-bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cs-radius);
    background: rgba(var(--cs-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--cs-text-secondary);
    line-height: 1.65;
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security-section {
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(var(--cs-accent-rgb), 0.06), transparent 70%);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-visual {
    position: relative;
}

.security-shield {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.security-shield::before, .security-shield::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--cs-accent-rgb), 0.15);
    animation: ring-pulse 3s ease infinite;
}

.security-shield::before {
    width: 115%;
    height: 115%;
    animation-delay: 0s;
}

.security-shield::after {
    width: 130%;
    height: 130%;
    animation-delay: 1.5s;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.02); }
}

.shield-svg {
    width: 72%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 32px rgba(var(--cs-primary-rgb), 0.45));
    animation: shield-float 4s ease-in-out infinite;
}

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

.security-layers {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 2rem;
}

.security-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    font-size: 0.9375rem;
}

.security-layer-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.security-layer-text { font-weight: 500; }
.security-layer-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cs-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   CTA / WAITLIST SECTION
   ============================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cs-gradient-hero);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: 1.0625rem;
    color: var(--cs-text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto 1.25rem;
}

.waitlist-input {
    flex: 1;
    padding: 0.8125rem 1.125rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    color: var(--cs-text);
    font-family: var(--cs-font-sans);
    font-size: 0.9375rem;
    outline: none;
    transition: var(--cs-transition);
}

.waitlist-input::placeholder { color: var(--cs-text-muted); }
.waitlist-input:focus {
    border-color: rgba(var(--cs-primary-rgb), 0.5);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(var(--cs-primary-rgb), 0.12);
}

.waitlist-note {
    font-size: 0.8125rem;
    color: var(--cs-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--cs-bg-secondary);
    border-top: 1px solid var(--cs-border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--cs-gradient);
    border-radius: var(--cs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    color: #fff;
    font-family: var(--cs-font-heading);
}

.footer-logo-text {
    font-family: var(--cs-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cs-text);
}

.footer-description {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--cs-radius-sm);
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-text-muted);
    transition: var(--cs-transition);
    font-size: 0.9375rem;
}

.footer-social-link:hover {
    color: var(--cs-text);
    border-color: var(--cs-border-hover);
    background: rgba(var(--cs-primary-rgb), 0.08);
}

.footer-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cs-text);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    transition: var(--cs-transition);
}

.footer-links a:hover { color: var(--cs-text); }

.footer-bottom {
    border-top: 1px solid var(--cs-border);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--cs-text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--cs-text-muted);
}

.footer-legal a:hover { color: var(--cs-text); }

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.divider {
    width: 100%;
    height: 1px;
    background: var(--cs-border);
}

/* ============================================================
   ANIMATIONS (scroll-driven)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
    padding: 8rem 0 4rem;
    background: var(--cs-bg-secondary);
    border-bottom: 1px solid var(--cs-border);
}

.page-content {
    padding: 4rem 0;
}

.content-area h1, .content-area h2, .content-area h3 { margin-bottom: 1rem; }
.content-area p { color: var(--cs-text-secondary); line-height: 1.75; margin-bottom: 1.25rem; }
.content-area ul, .content-area ol { color: var(--cs-text-secondary); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content-area li { margin-bottom: 0.5rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .waitlist-form { flex-direction: column; }
    .hero-ctas { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 13, 31, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cs-text);
    font-family: var(--cs-font-heading);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--cs-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cs-bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--cs-primary-rgb), 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--cs-primary-rgb), 0.7); }

/* ============================================================
   MODAL DE CONTACTO
   ============================================================ */
.cs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: overlay-in 0.2s ease;
}

.cs-modal-overlay[hidden] { display: none; }

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cs-modal {
    background: var(--cs-bg-secondary);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,99,235,0.15);
    animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cs-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--cs-border);
}

.cs-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}

.cs-modal-subtitle {
    font-size: 0.9rem;
    color: var(--cs-text-secondary);
}

.cs-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--cs-transition);
}

.cs-modal-close:hover {
    color: var(--cs-text);
    border-color: var(--cs-border-hover);
    background: rgba(255,255,255,0.1);
}

.cs-modal-form {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.cs-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cs-text-secondary);
}

.cs-required { color: var(--cs-primary); }

.cs-form-group input,
.cs-form-group select,
.cs-form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    color: var(--cs-text);
    font-family: var(--cs-font-sans);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: var(--cs-transition);
    width: 100%;
}

.cs-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.cs-form-group select option { background: #0d1630; }

.cs-form-group input::placeholder,
.cs-form-group textarea::placeholder { color: var(--cs-text-muted); }

.cs-form-group input:focus,
.cs-form-group select:focus,
.cs-form-group textarea:focus {
    border-color: rgba(var(--cs-primary-rgb), 0.5);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(var(--cs-primary-rgb), 0.12);
}

.cs-form-group input.error,
.cs-form-group textarea.error {
    border-color: var(--cs-danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.cs-form-group textarea { resize: vertical; min-height: 110px; }

.cs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

@media (max-width: 560px) {
    .cs-form-row { grid-template-columns: 1fr; }
    .cs-modal-header, .cs-modal-form { padding-left: 1.25rem; padding-right: 1.25rem; }
    .cs-modal-footer { flex-direction: column-reverse; }
}

/* ============================================================
   SELECTOR DE IDIOMA ES / EN
   ============================================================ */

/* Por defecto se muestra español, se oculta inglés */
.cs-en { display: none; }
span.cs-en { display: none; }

/* Cuando el html tiene lang="en" se invierte */
html[lang="en"] .cs-es { display: none; }
html[lang="en"] span.cs-es { display: none; }
html[lang="en"] .cs-en { display: block; }
html[lang="en"] span.cs-en { display: inline; }

/* Botón toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--cs-font-sans);
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--cs-transition);
    text-transform: uppercase;
    flex-shrink: 0;
}
.lang-toggle:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.4);
    color: var(--cs-text);
    background: rgba(var(--cs-primary-rgb), 0.08);
}
.lang-toggle .flag { font-size: 0.875rem; }

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
