@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ==========================================================================
   ALL COMPUTERS - ULTRA-MINIMALIST DARK TECH DESIGN SYSTEM
   Palette: Obsidian Dark (#06090e) + Electric Cyan / Turquoise (#00f0ff)
   ========================================================================== */

:root {
    /* Strict 2-Color Master Palette */
    --color-dark-bg: #06090e;
    --color-dark-surface: #0a1120;
    --color-dark-card: #0d1627;
    --color-dark-card-hover: #121e35;
    --color-dark-border: rgba(0, 240, 255, 0.12);
    --color-dark-border-hover: rgba(0, 240, 255, 0.45);
    
    /* Light Accent: High-Tech Cyber Turquoise / Cyan */
    --color-cyan: #00f0ff;
    --color-cyan-dim: #00d2ff;
    --color-cyan-glow: rgba(0, 240, 255, 0.28);
    --color-cyan-glow-strong: rgba(0, 240, 255, 0.6);
    --color-cyan-subtle: rgba(0, 240, 255, 0.08);

    /* High Contrast Typography */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #ffffff;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-dark-bg);
}

body {
    font-family: var(--font-main);
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--color-dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Selection & Scrollbar */
::selection {
    background: var(--color-cyan);
    color: var(--color-dark-bg);
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* ==========================================================================
   Typography & Structure
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-padding { padding: 110px 0; position: relative; }

.section-title {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Cyber Kicker / Badge */
.seo-kicker, .tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-cyan-subtle);
    color: var(--color-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-dark-border);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

/* ==========================================================================
   Buttons (Minimalist High-Contrast Tech CTAs)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

/* Primary Button: Electric Cyan Glow */
.btn-primary {
    background: var(--color-cyan);
    color: var(--color-dark-bg);
    box-shadow: 0 4px 20px var(--color-cyan-glow);
    font-weight: 800;
}
.btn-primary:hover {
    background: #fff;
    color: var(--color-dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--color-cyan-glow-strong);
}

/* Outline Button: Sleek Cyber Wireframe */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: var(--color-cyan-subtle);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--color-cyan-glow);
}

/* ==========================================================================
   Header & Nav (Dark Glassmorphism)
   ========================================================================== */
.site-header {
    background: rgba(6, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-dark-border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}
.site-header.scrolled {
    padding: 12px 0;
    background: rgba(6, 9, 14, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(0, 240, 255, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: var(--transition-smooth);
}
.logo-img:hover {
    transform: translateY(-2px) scale(1.03);
}
.logo-img img {
    height: 130px;
    width: auto;
    max-width: 460px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.35));
    transition: var(--transition-smooth);
}
.site-header.scrolled .logo-img img {
    height: 90px;
}
.logo-img:hover img {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.75));
}

.site-footer .logo-img img {
    height: 170px;
    max-width: 550px;
}

@media (max-width: 768px) {
    .logo-img img {
        height: 90px;
        max-width: 300px;
    }
    .site-footer .logo-img img {
        height: 120px;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.92rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--color-cyan);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-social {
    display: flex;
    gap: 10px;
}
.header-social a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.header-social a:hover {
    color: var(--color-cyan);
    background: var(--color-cyan-subtle);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

/* ==========================================================================
   Compact Circular WhatsApp Button (Bottom-Right)
   ========================================================================== */
.btn-whatsapp-circular {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 17, 32, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-dark-border);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
    transition: var(--transition-smooth);
}
.btn-whatsapp-circular svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
.btn-whatsapp-circular:hover {
    border-color: var(--color-cyan);
    color: #fff;
    background: var(--color-cyan);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 35px var(--color-cyan-glow-strong);
}
.btn-whatsapp-circular:hover svg {
    fill: var(--color-dark-bg);
    transform: scale(1.1);
}

/* Subtle Radar Pulse on WhatsApp */
.btn-whatsapp-circular::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--color-cyan);
    opacity: 0;
    animation: radar-pulse 2.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}
@keyframes radar-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* ==========================================================================
   Cinematic Hero Section
   ========================================================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--color-dark-bg);
}

/* Cinematic Background Slider with Ken Burns & Light Sweep */
.hero-slider.background-mode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider.background-mode .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(6, 9, 14, 0.70) 0%, rgba(6, 9, 14, 0.95) 75%),
                linear-gradient(180deg, rgba(6, 9, 14, 0.2) 0%, rgba(6, 9, 14, 1) 100%);
    z-index: 2;
}

/* Cinematic Anamorphic Light Beam */
.hero-slider.background-mode::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
    z-index: 3;
    pointer-events: none;
    animation: cinematic-light-sweep 12s infinite alternate ease-in-out;
}
@keyframes cinematic-light-sweep {
    0% { transform: translate(-5%, -5%) rotate(0deg); opacity: 0.6; }
    50% { transform: translate(5%, 3%) rotate(2deg); opacity: 0.9; }
    100% { transform: translate(-3%, 6%) rotate(-1deg); opacity: 0.7; }
}

.hero-slider.background-mode img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    filter: brightness(0.65) contrast(1.15) saturate(1.1);
    transform: scale(1);
}
.hero-slider.background-mode img.slide.active {
    opacity: 1;
    animation: cinematic-ken-burns 16s infinite alternate ease-in-out;
}

@keyframes cinematic-ken-burns {
    0% { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1.5%); }
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    padding: 70px 0;
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.hero h1 span {
    color: var(--color-cyan);
    text-shadow: 0 0 30px var(--color-cyan-glow);
}
.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Multi-Layer Parallax & Cyber Mesh
   ========================================================================== */
.cyber-grid-bg {
    position: relative;
    background-color: var(--color-dark-surface);
    overflow: hidden;
}
.cyber-grid-bg::before {
    content: '';
    position: absolute;
    inset: -50px;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    will-change: transform;
}

.glow-ambient-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-cyan-glow) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

/* 3D Tilt Parallax Card */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

/* Parallax Media Container */
.parallax-img-wrap {
    overflow: hidden;
    position: relative;
}
.parallax-img-wrap img {
    transition: transform 0.4s ease-out;
    will-change: transform;
}

/* ==========================================================================
   Video / Demo Hook Section (Parallax Banner)
   ========================================================================== */
.video-section {
    position: relative;
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 14, 0.92);
    backdrop-filter: blur(5px);
}
.video-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.play-btn {
    width: 84px;
    height: 84px;
    background: var(--color-cyan);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-bg);
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(0, 240, 255, 0.25);
    transition: var(--transition-smooth);
    margin: 20px auto;
}
.play-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px;
}
.play-btn:hover {
    transform: scale(1.12);
    background: #fff;
    box-shadow: 0 0 0 20px rgba(0, 240, 255, 0.35);
}

.rating-box {
    margin-top: 35px;
    display: inline-block;
    background: rgba(13, 22, 39, 0.95);
    border: 1px solid var(--color-dark-border);
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}
.rating-box h3 {
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.rating-box .stars {
    color: var(--color-cyan);
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

/* ==========================================================================
   Software & Systems Grid (Dark Cards)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.feature-box {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.feature-box:hover {
    border-color: var(--color-cyan);
    background: var(--color-dark-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px var(--color-cyan-glow);
}
.feature-box h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.feature-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ==========================================================================
   Footer (Minimalist Dark)
   ========================================================================== */
.site-footer {
    background: #030508;
    border-top: 1px solid var(--color-dark-border);
    color: var(--text-secondary);
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}
@media (max-width: 850px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.footer-col h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.footer-col ul a:hover {
    color: var(--color-cyan);
    padding-left: 6px;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Page Headers (Nosotros, Servicios, Contacto)
   ========================================================================== */
.page-header {
    padding: 130px 0 80px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(13, 22, 39, 0.9) 0%, var(--color-dark-bg) 100%);
    border-bottom: 1px solid var(--color-dark-border);
}
.page-header h1 {
    font-size: 3.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Forms (Contacto)
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-form-container {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(6, 9, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 18px var(--color-cyan-glow);
    background: rgba(6, 9, 14, 0.95);
}
textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--color-cyan); }
    50% { opacity: 0.4; transform: scale(1.3); box-shadow: 0 0 20px var(--color-cyan); }
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .nav-links { display: none; }
}
