/* =========================================================================
   SISTEMA DE DISEÑO: RED CIBERNETICA (DARK LUXURY / CREATIVE)
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0d;
    --bg-tertiary: #121216;

    /* ACENTO PRIMARIO (Verde) */
    --primary-50:  #e6ffeb;
    --primary-100: #bdfcc8;
    --primary-200: #88fabd;
    --primary-300: #4af5a6;
    --primary-400: #20e88c;
    --primary-500: #00CC66; /* Base verde principal */
    --primary-600: #00ab55;
    --primary-700: #008f4b;
    --primary-800: #00703f;
    --primary-900: #005c36;

    /* ACENTO SECUNDARIO (Rojo) */
    --secondary-500: #FF3333;

    --primary-rgb: 0, 204, 102;
    --secondary-rgb: 255, 51, 51;

    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-font { font-family: 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

@keyframes fade-in-up { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes scale-in { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-20px) rotate(2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } 75% { transform: translateY(-30px) rotate(1deg); } }
@keyframes float-particle { 0%, 100% { transform: translate(0, 0); opacity: 0.4; } 25% { transform: translate(100px, -100px); opacity: 0.8; } 50% { transform: translate(-50px, -200px); opacity: 0.6; } 75% { transform: translate(-100px, -100px); opacity: 0.8; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--primary-rgb), 0.3); } 50% { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6), 0 0 80px rgba(var(--primary-rgb), 0.5); } }
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.animate-in { animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }

#particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--primary-500); border-radius: 50%; box-shadow: 0 0 10px var(--primary-500); opacity: 0; animation: float-particle 20s infinite ease-in-out; }
.particle.red { background: var(--secondary-500); box-shadow: 0 0 10px var(--secondary-500); }

.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 24px 2%; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; }
.navbar.scrolled { padding: 16px 2%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(var(--primary-rgb), 0.1); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 80px; border-radius: 8px; }
.nav-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; background: linear-gradient(90deg, #00FF41 0%, #FF3333 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 15px rgba(0, 255, 65, 0.3); letter-spacing: 1px; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 16px; font-weight: 500; color: var(--text-secondary); position: relative; transition: color 0.3s ease; }
.nav-link:hover { color: var(--text-primary); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary-500); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.mobile-menu-toggle span { width: 30px; height: 2px; background: var(--text-primary); transition: 0.3s; }

.btn-primary { display: inline-flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%); background-size: 200% 200%; animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite; color: var(--bg-primary); font-weight: 700; padding: 16px 32px; border-radius: 12px; border: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: 'Inter', sans-serif; font-size: 16px; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6); }
.btn-secondary { display: inline-flex; justify-content: center; align-items: center; background: transparent; color: var(--text-primary); font-weight: 600; padding: 16px 32px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; font-size: 16px; }
.btn-secondary:hover { border-color: var(--secondary-500); color: var(--secondary-500); box-shadow: 0 0 20px rgba(var(--secondary-rgb), 0.3); }

.glass-card { background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--secondary-rgb), 0.04) 50%, rgba(var(--primary-rgb), 0.08) 100%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(var(--primary-rgb), 0.15); border-radius: 24px; padding: 32px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.05); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
/* Only animate standalone glass-cards, not the ones inside flip cards */
.glass-card:not(.service-card-back):hover { border-color: rgba(var(--primary-rgb), 0.35); box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.35); transform: translateY(-4px); }

section { position: relative; z-index: 10; padding: 100px 5%; }
.container { max-width: 1280px; margin: 0 auto; }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%); }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; width: 100%; }
.terminal-wrap { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; margin-bottom: 2rem; max-width: 500px; opacity: 0; animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.term-head { display: flex; gap: 6px; margin-bottom: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.term-body { color: #00FF41; }
.hero .term-body p { font-size: 0.85rem; color: #00FF41; margin-bottom: 5px; animation: none; opacity: 1; margin-top: 0; line-height: 1.4; }
.hero-label { display: inline-block; padding: 8px 16px; background: rgba(var(--secondary-rgb), 0.1); color: var(--secondary-500); border: 1px solid rgba(var(--secondary-rgb), 0.3); border-radius: 100px; font-size: 14px; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.05em; opacity: 0; animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero h1 { font-size: 64px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; opacity: 0; animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; background: linear-gradient(135deg, #FFF 0%, var(--text-tertiary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 span.glow-text { background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4); }
.hero h1 span.glow-text-alt { background: linear-gradient(135deg, var(--secondary-500) 0%, #ff8080 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.4); }
.hero p { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; opacity: 0; animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.hero-cta { display: flex; gap: 20px; opacity: 0; animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards; }
.hero-visual-wrapper { position: relative; opacity: 0; animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.hero-image-container { animation: float 6s ease-in-out infinite; position: relative; }
.hero-visual { width: 100%; height: auto; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.2); border: 1px solid rgba(var(--primary-rgb), 0.2); filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.3)); }
.hero-glow-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.05) 30%, transparent 60%); z-index: -1; }

.social-proof { padding: 40px 5%; background: var(--bg-secondary); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.social-proof p { color: var(--text-tertiary); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.stats-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item h3 { font-size: 40px; color: var(--primary-500); margin-bottom: 4px; text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4); font-weight: 800; }
.stat-item p { font-size: 16px; color: var(--text-secondary); margin: 0; }

/* ═══════════════ MARQUEE (Social Proof) ═══════════════ */
.marquee { background: var(--bg-secondary); padding: 3rem 0; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.marquee-content { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-item { display: inline-block; margin: 0 3rem; font-size: 1.2rem; font-weight: 700; color: var(--text-tertiary); opacity: 0.5; transition: 0.3s; }
.marquee-item:hover { opacity: 1; color: var(--primary-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-header { text-align: center; margin-bottom: 60px; opacity: 0; }
.section-label { display: inline-block; color: var(--secondary-500); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; padding: 6px 12px; background: rgba(var(--secondary-rgb), 0.1); border-radius: 100px; }
.section-title { font-size: 48px; margin-bottom: 20px; line-height: 1.2; }
.section-subtitle { color: var(--text-tertiary); font-size: 18px; max-width: 600px; margin: 0 auto; }

.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.service-card-flip { width: calc(33.3333% - 26.6667px); perspective: 1000px; height: 480px; cursor: pointer; opacity: 0; }
.service-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.service-card-flip:hover .service-card-inner, .service-card-flip.is-flipped .service-card-inner { transform: rotateY(180deg); }
.service-card-front, .service-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 24px; overflow: hidden; }
.service-card-front { background: var(--bg-tertiary); border: 1px solid rgba(255, 51, 51, 0.6); box-shadow: 0 0 20px rgba(255, 51, 51, 0.4), inset 0 0 10px rgba(255, 51, 51, 0.2); }
.service-card-front img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service-card-flip:hover .service-card-front img, .service-card-flip.is-flipped .service-card-front img { transform: scale(1.05); }
.service-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 32px 32px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); display: flex; justify-content: center; text-align: center; }
.service-title-front { font-size: 24px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.service-card-back { background: linear-gradient(135deg, #121216 0%, #0a0a0d 100%); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px; border: 1px solid rgba(var(--primary-rgb), 0.3); box-shadow: inset 0 0 60px rgba(var(--primary-rgb), 0.08), 0 4px 24px rgba(0,0,0,0.6); }
.service-icon { font-size: 40px; margin-bottom: 20px; color: var(--primary-500); display: block; }
.service-title-back { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--primary-500) !important; line-height: 1.3; -webkit-text-fill-color: var(--primary-500) !important; }
.service-description { color: #E4E4E7 !important; margin-bottom: 24px; font-size: 15px; line-height: 1.6; opacity: 1 !important; text-align: justify; }
.service-features { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.feature-tag { font-size: 12px; padding: 6px 12px; background: rgba(var(--primary-rgb), 0.12); color: #00CC66 !important; border-radius: 100px; border: 1px solid rgba(var(--primary-rgb), 0.25); font-weight: 600; opacity: 1 !important; }

.about-section { position: relative; padding: 100px 5%; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; opacity: 0; }
.about-image-wrapper { position: relative; border-radius: 24px; padding: 2px; background: linear-gradient(135deg, var(--primary-500), var(--secondary-500)); box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.2); }
.about-visual img { width: 100%; border-radius: 22px; display: block; filter: grayscale(20%) contrast(1.1); }
.about-content { opacity: 0; }
.about-content h2 { font-size: 48px; margin-bottom: 24px; }
.about-content p { color: var(--text-secondary); font-size: 18px; margin-bottom: 24px; }

.cta-section { text-align: center; padding: 120px 5%; background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.05) 60%, transparent 100%); border-top: 1px solid rgba(var(--primary-rgb), 0.1); border-bottom: 1px solid rgba(255,255,255,0.05); }
.cta-content { opacity: 0; }
.cta-section h2 { font-size: 56px; margin-bottom: 24px; }
.cta-section p { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; }
.contact-form-wrapper { max-width: 600px; margin: 0 auto; text-align: left; background: rgba(18, 18, 22, 0.6); padding: 40px; }
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.05em; font-family: 'Plus Jakarta Sans', sans-serif; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 16px; transition: all 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.2); background: rgba(0, 0, 0, 0.6); }
.w-100 { width: 100%; margin-top: 16px; }
.form-status { margin-top: 24px; font-size: 16px; font-weight: 500; text-align: center; }
.form-status.success { color: var(--primary-500); }
.form-status.error { color: var(--secondary-500); }

.footer { background: var(--bg-secondary); padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand img { height: 40px; margin-bottom: 24px; border-radius: 4px; }
.footer-brand p { color: var(--text-tertiary); margin-bottom: 24px; }
.social-links { display: flex; gap: 16px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; color: var(--text-secondary); transition: all 0.3s ease; }
.social-link:hover { background: var(--secondary-500); color: var(--bg-primary); transform: translateY(-4px); }
.footer-title { color: var(--primary-500); font-size: 18px; margin-bottom: 24px; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-tertiary); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-500); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-quaternary); font-size: 14px; }

@media (min-width: 1440px) { .container { max-width: 1400px; } }
@media (min-width: 1024px) and (max-width: 1439px) { .hero h1 { font-size: 56px; } .hero-content { gap: 40px; } .services-grid { gap: 24px; } .service-card-flip { width: calc(33.3333% - 16px); height: 420px; } }
@media (min-width: 768px) and (max-width: 1023px) { .service-card-flip { width: calc(50% - 20px); } .hero-content { grid-template-columns: 1fr; text-align: center; margin-top: 40px; } .hero-text { margin: 0 auto; } .hero-cta { justify-content: center; } .hero-visual-wrapper { max-width: 600px; margin: 0 auto; } .about-grid { grid-template-columns: 1fr; text-align: center; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-secondary); flex-direction: column; padding: 24px; text-align: center; border-bottom: 1px solid rgba(var(--primary-rgb), 0.2); } .nav-links.active { display: flex; } .mobile-menu-toggle { display: flex; } .hero h1 { font-size: 40px; } .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; } .hero-text { margin: 0 auto; } .hero-cta { justify-content: center; flex-direction: column; } .service-card-flip { width: 100%; } .about-grid { grid-template-columns: 1fr; text-align: center; } .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } .section-title { font-size: 32px; } .cta-section h2 { font-size: 36px; } }
