/* ===== TECH STARTUP VARIABLES & THEME ===== */
:root {
    --bg-black: #060f1c;     /* Deep Tech Void */
    --bg-dark: #0A192F;      /* Deep Tech Blue */
    --bg-panel: rgba(10, 25, 47, 0.4); /* Glass Panel Base */
    
    --text-white: #ffffff;
    --text-light: #f8fafc;
    --text-gray-light: #8892b0; /* Crisp slate for Deep Tech */
    
    --brand-primary: #10b981;  /* Digital Emerald Green */
    --brand-primary-hover: #059669;
    --brand-accent: #34d399;   /* Bright Emerald Green */
    --brand-glow: rgba(16, 185, 129, 0.5); /* For blur shadows */
    
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 10px 40px var(--brand-glow);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 120px 0;
}

.center { text-align: center; }
.text-left { text-align: left; }

.bg-black { background-color: var(--bg-black); }
.bg-dark { background-color: var(--bg-dark); }

.text-accent { color: var(--brand-accent); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray-light); }

.flex-row {
    display: flex;
    flex-wrap: wrap;
}
.align-center { align-items: center; }
.gap-large { gap: 60px; }
.flex-half { flex: 1 1 45%; }
.gap-small { gap: 15px; }

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.1); /* Emerald subtle border */
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--text-white);
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff, #8892b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.h2-giant { font-size: 3rem; }

h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    color: var(--text-gray-light);
}

.subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray-light);
}

.text-left .subtitle {
    margin: 0 0 30px 0;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-primary-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-outline {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-primary-outline:hover {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-giant {
    padding: 18px 42px;
    font-size: 1.15rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

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

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

.logo img {
    height: 55px; /* Base height */
    transform: scale(1.8); /* Significantly scale it up visually to match the CTA button */
    transform-origin: left center; /* Scale it towards the right, keeping left alignment */
    border-radius: 4px;
    filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.4));
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.85); /* Slightly larger on hover */
    filter: drop-shadow(0 4px 15px rgba(16, 185, 129, 0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary-outline) {
    color: var(--text-gray-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--brand-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-black);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Even darker abstract integration */
    filter: saturate(0) contrast(1.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-black) 100%), linear-gradient(to bottom, rgba(6, 15, 28, 0.6) 0%, rgba(6, 15, 28, 1) 90%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-area {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 5%;
}

.hero-title {
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.tech-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--brand-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.hero-mockup-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin-bottom: -40px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    z-index: 5;
}

.hero-mockup-wrapper::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50%;
    background: var(--brand-primary);
    filter: blur(140px);
    opacity: 0.25;
    z-index: -1;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.8);
}

/* ===== TECH MODULES (Módulos de Inteligencia) ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.icon-glow {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--brand-accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.icon-glow svg {
    width: 28px;
    height: 28px;
}

.tech-list {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.tech-list li {
    font-size: 1.05rem;
    color: var(--text-gray-light);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.tech-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--brand-accent);
    font-size: 1.5rem;
    line-height: 1;
}

/* ===== R&D VALIDATION (Social Proof) ===== */
.validation-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(10, 25, 47, 0.5));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 50px;
    margin-top: 60px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 40px;
}

.validation-content {
    flex: 1;
}

.validation-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-black);
    border: 1px solid var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.validation-icon svg {
    width: 40px;
    height: 40px;
}

/* ===== ARCHITECTURE SHOWCASE ===== */
.arch-list {
    margin-top: 30px;
}

.arch-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.arch-icon {
    width: 24px;
    height: 24px;
    color: var(--brand-accent);
}

.perspective-wrapper {
    position: relative;
    perspective: 1000px;
}

.perspective-img {
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-glow);
}

.perspective-wrapper:hover .perspective-img {
    transform: rotateY(0) rotateX(0);
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
    border-radius: 4px;
    filter: brightness(0.8);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray-light);
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--brand-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links a:not(.btn-primary-outline) { display: none; }
    .nav-links a.btn-primary-outline { padding: 8px 16px; font-size: 0.85rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .h2-giant { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; margin-bottom: 20px; }
    .hero { padding-top: 120px; }
    .section-padding { padding: 60px 0; }
    .gap-large { gap: 40px; }
    
    /* Layout Fixes */
    .flex-row { flex-direction: column; align-items: stretch; }
    .flex-half { flex: 1 1 100%; min-width: 100%; width: 100%; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .validation-card { flex-direction: column; text-align: center; padding: 25px; gap: 20px; }
    .logo img { height: 40px; transform: scale(1.4); } /* Evita que el logo estallé el navbar arriba */
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.dashboard-glow {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
