/* ==========================================================================
   CSS Variables - Theme Configuration
   ========================================================================== */
   :root {
    /* 
      Paleta de colores fácilmente configurable para cada cliente 
      El azul marino es el color base por defecto.
    */
    --primary-color: #0A192F; /* Azul corporativo oscuro */
    --secondary-color: #172A45; /* Azul ligeramente más claro */
    --accent-color: #FF6B35; /* Naranja vibrante para llamadas a la acción */
    --accent-hover: #E85A2A;

    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F3F4F6;
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;

    /* Tipografías modernas */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sombras premium */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height); /* Compensa el navbar fijo */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    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: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.text-accent {
    color: var(--accent-color);
}

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

/* ==========================================================================
   Typography & Titles
   ========================================================================== */
.section-title {
    margin-bottom: 50px;
}

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

.title-underline {
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto;
}

.subtitle {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

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

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

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.logo-icon {
    color: var(--accent-color);
    font-size: 1.6rem;
}

.logo-accent {
    font-weight: 400;
}

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

.nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--primary-color);
}

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

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

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height); /* Offset for nav */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient premium oscuro */
    background: linear-gradient(to right, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 50%, rgba(10, 25, 47, 0.3) 100%);
}

.hero-content {
    color: var(--text-light);
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

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

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

.empresa-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.empresa-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.features-list i {
    font-size: 1.2rem;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper img {
    transition: transform 0.5s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--glass-border);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

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

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

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

.service-card:hover::before {
    width: 100%;
    opacity: 0.03; /* Muy sutil fondo en hover */
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card .icon-box i {
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
}

.service-card:hover .icon-box i {
    color: #fff;
}

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

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

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contacto-info {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-text h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-text p {
    color: rgba(255,255,255,0.8);
}

.info-text a {
    color: rgba(255,255,255,0.8);
}

.info-text a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

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

.contacto-map {
    min-height: 400px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050d1a;
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.float-wpp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.float-wpp:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Animations (Intersection Observer Classes)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .empresa-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .experience-badge { left: 20px; }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--primary-color);
        transition: var(--transition);
        padding: 40px 20px;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-link::after { display: none; }

    .header { background: var(--primary-color); }
    .logo, .mobile-toggle { color: #fff !important; }

    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}
