/* =========================================================================
   VARIABLES & DESIGN SYSTEM
========================================================================= */
:root {
    /* Colors (Basados en estilo Premium / GNP: Azul profundo y Naranja/Dorado) */
    --primary-color: #0d274d; /* Azul Profundo */
    --primary-light: #16407d;
    --secondary-color: #ea7a00; /* Naranja corporativo */
    --secondary-hover: #cc6a00;
    --accent-gold: #c59d5f; /* Dorado Premium */
    
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #f8fafc;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects & Spacing */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* =========================================================================
   RESET & FUNDAMENTALS
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, strong {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

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

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.text-gold { color: var(--accent-gold); }

/* =========================================================================
   BUTTONS
========================================================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(234, 122, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 122, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================================================
   HEADER & NAVIGATION 
========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Image Logo Configurations (Optimizadas con UX/UI Shrinking Header) */
.logo-img {
    height: 75px; /* Gran presencia de marca al abrir la página */
    width: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1); /* Fuerza el logotipo a blanco sobre el Hero transparente */
}

.navbar.scrolled .logo-img {
    height: 55px; /* Técnica UI: Reduce el logo al hacer scroll para que la navbar no estorbe */
    filter: none; /* Regresa a sus colores originales sobre el menú blanco */
}

@media (max-width: 992px) {
    .logo-img {
        height: 52px; /* Mayor legibilidad en móviles */
    }
    .navbar.scrolled .logo-img {
        height: 45px;
    }
}

.logo-img-footer {
    height: 95px; /* Tamaño masivo para anclar la marca al final */
    width: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Fuerza a blanco en fondo oscuro */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--bg-white);
    cursor: pointer;
}
.navbar.scrolled .menu-toggle { color: var(--primary-color); }

/* =========================================================================
   HERO SECTION
========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    /* Placeholder fallback bg */
    background-image: linear-gradient(135deg, rgba(13, 39, 77, 0.95), rgba(22, 64, 125, 0.85));
    /* Si hubiera imagen: background-image: ...url(), ...gradient */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax en CSS */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: var(--text-white);
}

.glass-hero-card {
    padding: 60px 0;
    max-width: 800px;
    text-align: left;
}

.glass-hero-card .badge {
    background: rgba(197, 157, 95, 0.25); 
    border-color: var(--accent-gold); 
    color: #FFF0C2; 
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: 0;
}

.glass-hero-card h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem); 
    line-height: 1.1; 
    margin-bottom: 20px;
    color: var(--bg-white);
}

.glass-hero-card h2 {
    font-family: var(--font-body); 
    font-size: clamp(1.3rem, 3vw, 1.7rem); 
    font-weight: 300; 
    color: #e2e8f0; 
    margin-bottom: 24px; 
    letter-spacing: -0.5px;
}

.glass-hero-card p {
    font-size: 1.15rem; 
    color: #cbd5e1; 
    margin-bottom: 40px; 
    line-height: 1.7;
}

.glass-hero-card .hero-cta {
    justify-content: flex-start;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--accent-gold);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--bg-white);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

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

/* =========================================================================
   SERVICES 
========================================================================= */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    width: calc(33.333% - 20px);
    min-width: 280px;
    background-color: var(--bg-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 420px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 39, 77, 0.9) 0%, rgba(13, 39, 77, 0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::after {
    background: linear-gradient(to top, rgba(13, 39, 77, 0.95) 0%, rgba(13, 39, 77, 0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 2px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-service {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary-color));
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 122, 0, 0.3);
    color: var(--bg-white);
}

.btn-service i {
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.btn-service:hover i {
    transform: translateX(4px);
}

/* =========================================================================
   ABOUT 
========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
}

.stat-item .stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
}

.image-glass-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 24px;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.image-glass-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 122, 0, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.glass-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 2;
}

.glass-content h3 { color: #fff;}

/* =========================================================================
   CONTACT
========================================================================= */
.contact-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 60px;
    position: relative;
}

.contact-info h2 {
    color: var(--bg-white);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.position-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 5px;
}

.contact-list strong {
    color: var(--bg-white);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-list p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    flex: 1;
    padding: 60px;
    background: var(--bg-white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(22, 64, 125, 0.1);
}

/* =========================================================================
   FOOTER
========================================================================= */
.footer {
    background: #08182E;
    color: var(--text-white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* =========================================================================
   FLOATING BUTTONS
========================================================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

/* =========================================================================
   ANIMATIONS & UTILS
========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal, .reveal-left, .reveal-right {
    opacity: 0;
}

.reveal { transform: translateY(40px); transition: all 0.8s ease; }
.reveal-left { transform: translateX(-40px); transition: all 0.8s ease; }
.reveal-right { transform: translateX(40px); transition: all 0.8s ease; }

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

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE)
========================================================================= */
@media (max-width: 992px) {
    .section-padding { padding: 80px 0; }
    
    .hero-title { font-size: 3rem; }
    
    .about-grid, .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-link {
        color: var(--primary-color) !important;
        font-size: 1.2rem;
    }
    
    .menu-toggle { display: block; }
    .nav-actions .btn { display: none; }
    
    .navbar.scrolled { padding: 15px 0;}

    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    
    .glass-hero-card {
        padding: 40px 25px;
        text-align: left;
        border-radius: 16px;
    }

    .glass-hero-card h1 {
        font-size: 2.5rem;
    }

    .image-glass-placeholder { height: 350px; }
    
    .contact-info, .contact-form { padding: 40px 30px; }

    /* UX/UI Mobile Optimizations */
    .service-card {
        width: 100%;
        min-width: 100%;
    }
    
    .section-title { font-size: 2rem !important; }
    
    .banner-marquee .marquee-content span { font-size: 1.1rem !important; }
    .banner-marquee .marquee-content i { font-size: 0.75rem !important; }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p { margin: 10px auto; }
    .social-links { justify-content: center; }
}
