:root {
    --bg-color: #050914; /* Deep Space Blue */
    --accent-primary: #00f0ff;
    --accent-secondary: #0055ff;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --glass-bg: rgba(10, 15, 30, 0.6); /* Más sólido */
    --glass-border: rgba(0, 240, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); /* Sombra más oscura para dar profundidad corporativa */
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

h1, h2, h3, .nav-brand, .hero-title, .footer-logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow);
    border-radius: 12px; /* Menos redondo, más industrial */
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 5, 10, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn-outline {
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--accent-primary) !important;
    text-decoration: none !important;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-color) !important;
    box-shadow: 0 0 15px var(--accent-primary);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 85, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover, .glow-effect:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 85, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.8);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

/* Animated Logo */
.animated-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nodes-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 160px;
}

.node-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.node-dot {
    width: 6px;
    height: 10px;
    border-radius: 4px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    opacity: 0;
    transform: scale(0);
}

.node-dot.large {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--accent-primary);
    background: #fff;
}

.node-dot.dash {
    height: 28px;
    border-radius: 4px;
}

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

.hero-logo-text {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 12px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-logo-subtitle {
    font-size: 1.5rem;
    letter-spacing: 16px;
    display: block;
    margin-top: -5px;
}

.hero-slogan-text {
    font-size: 1.1rem;
    color: var(--accent-primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 10px;
}

.fade-in-text {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Hero Title adjustments since we moved it */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-only { display: none; }
.desktop-only { display: flex; }

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.swipe-icon {
    animation: swipeUp 1.5s infinite;
}

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

@keyframes swipeUp {
    0% { transform: translateY(10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0; }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.about-text, .about-stats {
    padding: 3rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.stat-item {
    margin-bottom: 2rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
    border-color: var(--accent-primary);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(0, 85, 255, 0.05);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-form {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255,255,255,0.1);
}

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

.form-group select option {
    background: var(--bg-color);
    color: var(--text-main);
}

.contact-form button {
    margin-top: 1rem;
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    text-align: center;
    background: rgba(3, 5, 10, 0.8);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
}

/* Botón secundario outline */
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.04);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0,240,255,0.05);
    box-shadow: 0 0 15px rgba(0,240,255,0.15);
}

@media (max-width: 768px) {
    .mobile-only { display: flex; flex-direction: column; align-items: center; }
    .desktop-only { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-logo-text { font-size: 2.5rem; }
    .hero-logo-subtitle { font-size: 1.2rem; letter-spacing: 10px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 1rem auto 0 auto; }
    .hero-buttons a { width: 100%; }
    .contact-info, .contact-form { padding: 2rem 1.5rem; }
    .container { padding: 0 1.5rem; }
    .contact-wrapper { margin-bottom: 2rem; }
    .floating-cta { bottom: 20px; right: 20px; padding: 0.8rem 1.2rem; }
    .floating-cta span { display: none; } /* Ocultar texto en móvil, solo icono */
    
    /* Responsive helpers for construction.html */
    .problema-flex { flex-direction: column !important; gap: 2rem; }
    .mockup-panel { min-width: 100% !important; border-radius: 12px; }
    .mockup-interior { flex-direction: column !important; padding: 1rem !important; gap: 1rem; }
    .mockup-interior > div { width: 100% !important; }
    /* Flecha vertical en móvil: texto arriba, flecha hacia abajo */
    .mockup-arrow-container { flex-direction: column !important; margin: 0.5rem 0 !important; align-items: center; }
    .mockup-arrow-label { white-space: nowrap !important; margin-bottom: 8px !important; }
    .mockup-arrow-line { transform: rotate(90deg); width: 30px !important; }
    .mod-flex-reverse { flex-direction: column !important; gap: 2rem !important; }
    .calendly-split { grid-template-columns: 1fr !important; }
    .calendly-steps { padding: 2rem 1.5rem !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(3, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-primary);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 999;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.floating-cta:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-5px);
}

.floating-cta svg {
    transition: stroke 0.3s ease;
}

.floating-cta:hover svg {
    stroke: var(--bg-color);
}

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--accent-primary);
}

.lang-btn.active {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}

