/* ==========================================================================
   Variables Globales y Configuración (Fácil Personalización)
   ========================================================================== */
   :root {
    /* Paleta de Colores Exacta del Logo Mudafex */
    --primary-color: #020c45; /* Azul Logo */
    --primary-light: #0d1e70;
    --primary-dark: #010626;
    
    --secondary-color: #fc0000; /* Rojo Logo */
    --secondary-hover: #cc0000;
    
    --accent-color: #fad02c; /* Amarillo Logo */
    
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

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

    /* Espaciado y otros */
    --container-width: 1200px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    /* Sombras Premium */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    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-dark);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ==========================================================================
   Elementos Flotantes (WhatsApp y Redes Sociales)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebe57;
}

.whatsapp-tooltip {
    position: absolute;
    left: 80px;
    background: #fff;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-social {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

.floating-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.floating-social a:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(-5px);
}

/* ==========================================================================
   Tipografía y Utilidades
   ========================================================================== */
.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; }
.section-header.left { text-align: left; }

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

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-header.left p { margin: 0; }

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-quote {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color); /* Usamos Rojo para llamadas a la acción principal */
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(252, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e6bd24;
    transform: translateY(-3px);
}

.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* ==========================================================================
   Navegación (Header) Blanca
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 15px 0;
    transition: var(--transition-slow);
    background: #ffffff; /* Siempre blanca según requisito */
    box-shadow: var(--shadow-sm);
}

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

/* Aumento de tamaño del logo (20% más) y efecto hover */
.logo img {
    height: 90px; 
    transition: var(--transition-slow);
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(2, 12, 69, 0.15));
}

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

.nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

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

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

.btn-nav {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
}

.btn-nav:hover { background-color: var(--primary-light); }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-dark);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding-top: 105px; /* Compensa la navbar blanca */
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 12, 69, 0.9) 0%, rgba(2, 12, 69, 0.4) 100%);
    z-index: 1;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

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

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

.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}

/* ==========================================================================
   Sección Somos
   ========================================================================== */
.somos-img { position: relative; width: 100%; height: 100%; min-height: 400px; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.somos-swiper { width: 100%; height: 100%; position: absolute; top: 0; left: 0;}
.somos-swiper img { width: 100%; height: 100%; object-fit: cover; }

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
}

.experience-badge .number { font-size: 3rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.experience-badge .text { font-size: 1rem; font-weight: 500; line-height: 1.2; color: #fff;}

.features-list { margin-top: 30px; }
.features-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; font-weight: 500; }
.features-list i { color: var(--secondary-color); font-size: 1.5rem; }

/* ==========================================================================
   Misión y Visión con Mini Sliders
   ========================================================================== */
.premium-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mini-slider {
    width: 100%;
    height: 250px;
}

.mini-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content-mv {
    padding: 40px;
    flex-grow: 1;
    position: relative;
}

.premium-card h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-color);}
.premium-card p { color: var(--text-light); font-size: 1.05rem; }

.premium-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--secondary-color); }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.service-img {
    position: relative;
    height: 200px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.service-icon-float {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid #fff;
    z-index: 2;
}

.service-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-details h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--primary-color); }
.service-details p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1;}

.btn-quote {
    background: transparent;
    color: #25D366;
    border: 2px solid #25D366;
    padding: 10px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-quote:hover {
    background: #25D366;
    color: #fff;
}

/* ==========================================================================
   Clientes
   ========================================================================== */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.cliente-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    overflow: hidden;
}

.cliente-item img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: grayscale(100%) opacity(0.7);
}

.cliente-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.cliente-item:hover img {
    transform: scale(1.15);
    filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   Banner CTA
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0;
    text-align: center;
    color: var(--text-white);
}

.cta-content h2 { color: var(--accent-color); font-size: 2.5rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-methods { margin-top: 40px; }
.method { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }

.method i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    background: rgba(252, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary-color);}
.method p { color: var(--text-light); line-height: 1.4;}

.premium-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 20px; }
.form-group.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.required { color: var(--secondary-color); }

.premium-form input, .premium-form select, .premium-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-light);
}

.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 12, 69, 0.1);
    background: var(--bg-white);
}

/* ==========================================================================
   Footer con Brillo Pasante en Logo
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

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

/* Brillo Pasante */
.footer-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    overflow: hidden;
}

.footer-logo {
    height: 120px; /* Tamaño mucho más grande */
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.social-links { display: flex; gap: 15px; margin-top: 20px;}
.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: var(--accent-color);
}
.social-links a:hover { background: var(--secondary-color); color: #fff; transform: translateY(-3px); }

.footer h4 { color: var(--text-white); font-size: 1.2rem; margin-bottom: 25px; position: relative; }
.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}
.footer ul li { margin-bottom: 12px; }
.footer ul li a:hover { color: var(--accent-color); padding-left: 5px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--accent-color); margin-top: 5px; }

.footer-bottom {
    background-color: rgba(0,0,0,0.4);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animaciones Reveal
   ========================================================================== */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale, .fade-in-up { opacity: 0; }
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.is-visible { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .clientes-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .grid-2-cols { grid-template-columns: 1fr; gap: 40px; }
    .experience-badge { right: 10px; bottom: 10px; padding: 20px; }
    .experience-badge .number { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .section-header h2 { font-size: 2rem; }
    .form-group.grid-2 { grid-template-columns: 1fr; }
    .somos-img { min-height: 300px; margin-bottom: 20px; }

    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 105px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 105px);
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition-slow);
    }
    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.2rem; }
    .btn-nav { margin-top: 20px; }
    
    .floating-social { display: none; } /* Ocultar en móviles por espacio */
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .clientes-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .premium-form { padding: 30px 20px; }
    .hero-content h1 { font-size: 2.2rem; }
}
