:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #00bcd4; /* Cyan */
    --accent-color: #2196f3; /* Light Blue */
    --dark-bg: #0a0f18; /* Very dark slate */
    --light-bg: #f5f7fa;
    --text-dark: #2c3e50;
    --text-light: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* Typography & Utilities */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-white { color: #ffffff !important; }
.text-light { color: var(--text-light) !important; }
.accent-color { color: var(--secondary-color) !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

.section {
    padding: 5rem 0;
}

.bg-light { background-color: var(--light-bg); }
.dark-section { 
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(224, 242, 254, 0.4); /* Incrementada la transparencia */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

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

.nav-logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

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

.nav-links a {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

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

.nav-links a.btn-outline {
    padding: 0.5rem 1.25rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    background: rgba(224, 242, 254, 0.15); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(224, 242, 254, 0.35);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 240px;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #334155;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

/* Section Titles */
.section-heading {
    font-size: 1.65rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card, .glass-panel, .glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.glass-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.dark-section .glass-panel {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* Tech Stats (Nosotros) */
.tech-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h4 {
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Service Cards */
.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    gap: 5px;
}

/* Detailed Cards (Servicios) */
.detailed-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.detailed-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.custom-list {
    margin-top: 1rem;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.custom-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Feature List (Por que elegirnos) */
.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: grid;
    grid-template-columns: 40px 180px 1fr;
    align-items: start;
    gap: 15px;
}

.feature-list i {
    color: var(--secondary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-top: 2px;
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .feature-list li {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }
    .feature-title {
        grid-column: 2 / -1;
    }
    .feature-desc {
        grid-column: 2 / -1;
    }
}

/* Clientes */
.clients-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contacto */
.contact-methods .method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-methods i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Formulario */
.glass-form {
    background: #fff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    background: #fff;
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #050a12;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a:hover {
    color: var(--secondary-color);
}

.footer .footer-col p {
    margin-bottom: 0.5rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Classes */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(224, 242, 254, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .hero-content {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
}
