/* CSS Reset & General */
:root {
    --bg-dark: #0A1128;
    /* Navy Blue Deep Base */
    --text-main: #F8FAFC;
    --text-muted: #CBD5E1;
    --accent-blue: #CCA35E;
    /* Gold/Sand from logo */
    --accent-purple: #E8C37D;
    /* Lighter Gold */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(204, 163, 94, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

/* Background Animations */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Glassmorphism System */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography Enhancements */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 280px;
    /* <- MODIFICA ESTE NÚMERO (ej: 320px) PARA AGRANDAR O ACHICAR EL LOGO */
    height: auto;
    max-height: 120px;
    padding: 0;
    object-fit: contain;
    /* Elimina las barras y asteriscos de abajo si quieres un halo de luz */
    /* filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.4)); */
}

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

.nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.dropdown-toggle:hover {
    color: var(--accent-blue);
}

.dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropdown-toggle.active {
    color: var(--accent-blue);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 17, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--accent-blue);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 2000;
    flex-direction: column;
    margin-top: 15px;
}

/* Puente invisible para mantener el hover activo en el rango superior */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    height: 15px;
    width: 100%;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    padding: 12px 20px;
    color: var(--text-main);
    transition: background 0.3s, color 0.3s;
    width: 100%;
}

.dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    padding: 10px 24px;
    border-radius: 30px;
    color: #fff !important;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 180px 20px 60px;
    /* Increased top padding to accommodate bigger header */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #fff;
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup-card {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.w-3\/4 {
    width: 75%;
}

.w-full {
    width: 100%;
}

.w-5\/6 {
    width: 83%;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-top: 20px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
}

.bar.h-1 {
    height: 40%;
}

.bar.h-2 {
    height: 60%;
}

.bar.h-3 {
    height: 50%;
}

.bar.h-4 {
    height: 80%;
}

.bar.h-5 {
    height: 100%;
}

.glow-bar {
    background: linear-gradient(to top, var(--accent-purple), var(--accent-blue));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card.featured {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-link {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* Casos de Exito Section */
.casos-section {
    padding: 100px 0;
    position: relative;
}

.caso-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
    align-items: center;
}

.caso-content h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.caso-industry {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.caso-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.caso-description strong {
    color: var(--text-main);
}

.caso-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.metric-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.box-highlight {
    background: linear-gradient(135deg, rgba(204, 163, 94, 0.15), rgba(204, 163, 94, 0.05));
    border-color: rgba(204, 163, 94, 0.3);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Outfit', sans-serif;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.caso-gallery {
    display: flex;
    gap: 20px;
}

.caso-img-wrapper {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    height: 450px;
}

.caso-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.caso-img-wrapper:hover img {
    transform: scale(1.05);
}

.img-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-badge.highlight {
    background: rgba(204, 163, 94, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-purple);
}

@media (max-width: 900px) {
    .caso-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .caso-metrics {
        flex-direction: column;
    }

    .caso-gallery {
        flex-direction: column;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Footer */
.glass-footer {
    background: rgba(7, 11, 20, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 15px 0 20px;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.footer-links h3,
.footer-contact h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact p {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-contact i {
    width: 25px;
    color: var(--accent-purple);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Trigger - Added via JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Trust Section / Clients Bar */
.trust-section {
    padding: 100px 0;
    /* Más espacio vertical para que la sección destaque */
    background: rgba(255, 255, 255, 0.02);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.trust-section .container {
    text-align: center;
}

.trust-section p {
    font-size: 1.1rem;
    /* Texto más grande */
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-main);
    /* Color más brillante */
    margin-bottom: 60px;
    opacity: 1;
    /* Más visible */
}

.trust-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 70px;
    /* Aumentado para dar más aire a los logos grandes */
}

.client-logo {
    opacity: 0.8;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    filter: grayscale(0.2);
    /* Logo con un toque de color por defecto para mayor visibilidad */
}

.client-logo img {
    height: 130px;
    /* Tamaño mucho mayor para compensar márgenes transparentes */
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.client-logo i {
    font-size: 2.2rem;
    color: var(--accent-blue);
}

.client-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -0.5px;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    /* Cobra color al pasar el mouse */
    transform: translateY(-5px);
}

/* Specific Responsive Adjustments */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-toggle {
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        margin-top: 0;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Modern Header Enhancements */
.modern-nav {
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav.scrolled {
    background: rgba(10, 17, 40, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modern-nav .navbar {
    padding: 15px 30px;
}

.modern-nav .nav-links a.active {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Enhancing Footer */
.modern-footer {
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.5;
}

.modern-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modern-footer .social-links a:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 163, 94, 0.4);
}