         /* ===== ESTILOS ADICIONALES PARA HEADER FIJO CON OCULTAMIENTO ===== */
         .fixed-header-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
            transform: translateY(0);
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            will-change: transform;
        }
        
        .fixed-header-wrapper.header-hidden {
            transform: translateY(-100%);
        }
        
        body {
            padding-top: 0; /* Se calculará dinámicamente con JS */
        }
        
        /* Ajuste para que el contenido no quede cubierto mientras se calcula */
        .main-header, .header-top {
            position: relative;
            z-index: 2;
        }
        
        /* Transición suave para el padding-top del body */
        body {
            transition: padding-top 0.2s ease;
        }
        
        /* ===== ESTILOS SECCIÓN MISIÓN Y VISIÓN ===== */
        .mision-vision {
            padding: 80px 0;
            background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .mision-vision::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.03) 0%, transparent 80%);
            pointer-events: none;
        }
        
        .mv-container {
            display: flex;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }
        
        .mv-card {
            flex: 1;
            background: white;
            border-radius: 32px;
            padding: 40px 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            border: 1px solid rgba(0, 102, 255, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .mv-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 45px -12px rgba(0, 51, 128, 0.2);
            border-color: rgba(0, 102, 255, 0.3);
        }
        
        .mv-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #0066ff 0%, #0099ff 100%);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 28px;
            box-shadow: 0 12px 20px -8px rgba(0, 102, 255, 0.3);
        }
        
        .mv-icon i {
            font-size: 32px;
            color: white;
        }
        
        .mv-card h3 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #1a2a4f, #0066ff);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }
        
        .mv-card p {
            font-size: 1.05rem;
            line-height: 1.6;
            color: #2c3e50;
            font-weight: 400;
            margin-bottom: 0;
        }
        
        .mv-decoration {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(0,102,255,0.03) 0%, transparent 70%);
            pointer-events: none;
            border-radius: 50%;
        }
        
        @media (max-width: 768px) {
            .mv-container {
                flex-direction: column;
                gap: 30px;
            }
            
            .mv-card {
                padding: 32px 24px;
            }
            
            .mv-card h3 {
                font-size: 26px;
            }
            
            .mision-vision {
                padding: 60px 0;
            }
        }
        
        /* Ajuste para que el header no tape el contenido en móviles */
        @media (max-width: 992px) {
            .fixed-header-wrapper {
                position: fixed;
            }
        }
        
        /* Mejora en el z-index de elementos flotantes */
        .floating-contact {
            z-index: 1001;
        }
        
        .gallery-lightbox {
            z-index: 2000;
        }
/* ===== ESTILOS ADICIONALES PARA HEADER FIJO CON OCULTAMIENTO ===== */
 .fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    will-change: transform;
}

.fixed-header-wrapper.header-hidden {
    transform: translateY(-100%);
}

body {
    padding-top: 0; /* Se calculará dinámicamente con JS */
}

/* Ajuste para que el contenido no quede cubierto mientras se calcula */
.main-header, .header-top {
    position: relative;
    z-index: 2;
}

/* Transición suave para el padding-top del body */
body {
    transition: padding-top 0.2s ease;
}

/* ===== ESTILOS SECCIÓN MISIÓN Y VISIÓN ===== */
.mision-vision {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.mision-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.03) 0%, transparent 80%);
    pointer-events: none;
}

.mv-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.mv-card {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px -12px rgba(0, 51, 128, 0.2);
    border-color: rgba(0, 102, 255, 0.3);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0066ff 0%, #0099ff 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 12px 20px -8px rgba(0, 102, 255, 0.3);
}

.mv-icon i {
    font-size: 32px;
    color: white;
}

.mv-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a2a4f, #0066ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.mv-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 0;
}

.mv-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,102,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .mv-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .mv-card {
        padding: 32px 24px;
    }
    
    .mv-card h3 {
        font-size: 26px;
    }
    
    .mision-vision {
        padding: 60px 0;
    }
}

/* Ajuste para que el header no tape el contenido en móviles */
@media (max-width: 992px) {
    .fixed-header-wrapper {
        position: fixed;
    }
}

/* Mejora en el z-index de elementos flotantes */
.floating-contact {
    z-index: 1001;
}

.gallery-lightbox {
    z-index: 2000;
}
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d47a1;
    --secondary: #00a8ff;
    --accent: #ff9800;
    --dark: #1a237e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: var(--light);
    opacity: 0;
    animation: fadeInBody 1s ease forwards;
}

html {
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInBody {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(13, 71, 161, 0.15),
                    0 0 0 0 rgba(0, 168, 255, 0.1);
    }
    50% {
        box-shadow: 0 25px 50px rgba(13, 71, 161, 0.15),
                    0 0 20px 5px rgba(0, 168, 255, 0.1);
    }
}

@keyframes pulseWhatsApp {
    0% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: inline-block;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== HEADER ===== */
.header-top {
    background: var(--dark);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-top {
    display: flex;
    gap: 15px;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-item {
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.social-top a {
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.social-top a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 90px;
}

/* FIX: Logo responsivo — el !important original se mantiene en desktop */
.logo-img {
    height: 140px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.logo:hover .logo-img {
    transform: rotate(-5deg);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--dark);
}

.logo-text span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.header-cta .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.5), rgba(0, 168, 255, 0.4)), url('../img/diseño2.png');
    /* FIX: cover en lugar de 100% para que funcione bien en todos los tamaños */
    background-size: cover;
    background-position: center 0%;
    background-attachment: fixed;
    /* FIX: padding para que no colapse en móvil */
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.7rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* ===== ABOUT ===== */
.about {
    background: white;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding-right: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-text h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== SERVICES SECTION - VERSIÓN MEJORADA ===== */
.services {
    background: var(--light);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 71, 161, 0.4);
    border-color: var(--secondary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 85%
    );
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(13, 71, 161, 0.95) 0%,
        rgba(0, 168, 255, 0.8) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 90%
    );
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 35px 30px 30px 30px;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-content {
    transform: translateY(-5px);
}

.service-card-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.service-card-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, var(--secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.service-card:hover .service-card-content h3::after {
    width: 100px;
}

.service-card-content p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    max-width: 95%;
    font-weight: 400;
}

.service-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: white;
}

.service-link:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
    transform: translateY(-3px);
    gap: 15px;
    border-color: transparent;
}

.service-link:hover i {
    transform: translateX(8px);
}

.service-card .service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 215, 0, 0.9);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    color: #1a237e;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-badge {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: cardAppear 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== STATS ===== */
.stats {
    background: linear-gradient(rgba(13, 71, 161, 0.95), rgba(0, 168, 255, 0.9)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }
.stat-item:nth-child(4) { animation-delay: 0.6s; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== PROJECTS ===== */
.projects {
    background: var(--light);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: white;
    border: 2px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 300px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, 
        rgba(13, 71, 161, 0.9) 0%, 
        rgba(13, 71, 161, 0.7) 50%, 
        transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    opacity: 1;
    transform: translateY(0);
}

.project-card.visible {
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ===== PROJECTS CAROUSEL ===== */
.projects-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0 30px;
}

.projects-carousel {
    display: none;
    width: 100%;
}

.projects-carousel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    padding: 15px 5px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
    will-change: transform;
}

.carousel-track .project-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 260px;
    height: 320px;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.carousel-track .project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.25);
}

/* ===== BOTONES NAV ===== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(13, 71, 161, 0.1);
}

.carousel-nav:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
    border-color: transparent;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.carousel-prev:hover i {
    transform: translateX(-2px);
}

.carousel-next:hover i {
    transform: translateX(2px);
}

/* ===== INDICADORES ===== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d7e3;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.indicator:hover {
    background: var(--secondary);
    transform: scale(1.3);
}

.indicator.active {
    width: 28px;
    border-radius: 4px;
    background: var(--gradient);
    transform: scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .carousel-track .project-card {
        flex: 0 0 calc(50% - 12px);
    }

    .carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .carousel-track .project-card {
        flex: 0 0 calc(100% - 0px);
        height: 280px;
    }

    .carousel-wrapper {
        padding: 0 44px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
    }

    .carousel-nav i {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 36px;
    }

    .carousel-track {
        gap: 16px;
    }
}

/* ===== GALLERY LIGHTBOX CARRUSEL ===== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.2);
}

.lightbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-nav {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10002;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: var(--gradient);
    transform: scale(1.1);
    border-color: transparent;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-image-wrapper {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
    animation: scaleImage 0.3s ease;
}

@keyframes scaleImage {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.lightbox-counter {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(13, 71, 161, 0.03) 0%, 
        rgba(0, 168, 255, 0.03) 100%);
    z-index: 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.testimonial-card::after {
    content: '❝';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.1;
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 71, 161, 0.15);
    border-color: var(--secondary);
    animation: borderGlow 2s ease-in-out infinite;
}

.testimonial-card:hover::before {
    opacity: 0.05;
}

.testimonial-card:hover::after {
    opacity: 0.2;
    transform: scale(1.2) rotate(5deg);
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.testimonial-content i {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.testimonial-card:hover .testimonial-content i {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary);
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid transparent;
    transition: all 0.5s ease;
}

.testimonial-card:hover .testimonial-content p {
    border-left-color: var(--secondary);
    padding-left: 25px;
    color: #444;
}

.testimonial-author {
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.5s ease;
}

.testimonial-card:hover .testimonial-author {
    border-top-color: rgba(13, 71, 161, 0.1);
    padding-top: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.5s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.author-info {
    flex: 1;
}

.author-info strong {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-info strong {
    color: var(--primary);
}

.author-info span {
    color: var(--gray);
    font-size: 0.95rem;
    display: block;
}

/* ===== CLIENTS ===== */
.clients-slider {
    padding: 40px 0;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.client-logo {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== BLOG ===== */
.blog {
    background: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0a1931 0%, #1a237e 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path fill="rgba(255,255,255,0.02)" d="M0,0V100H1000V0C900,30 800,40 700,45 600,50 500,45 400,40 300,35 200,25 100,15Z"/></svg>');
    background-size: 100% 100px;
    background-repeat: repeat-x;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-col:first-child {
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: rotate(-5deg) scale(1.1);
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
}

.footer-logo-text span {
    color: var(--secondary);
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-top: -5px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.certification-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.certification-badge i {
    color: var(--secondary);
}

.social-footer {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--gradient);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3);
}

.social-icon.whatsapp-icon:hover {
    background: #25D366;
}

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.footer-col h3 i {
    color: var(--secondary);
}

.schedule-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-days {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-days i {
    color: var(--secondary);
    width: 20px;
}

.schedule-days strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.schedule-hours {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.schedule-item .closed {
    color: #ff6b6b;
    font-weight: 600;
}

.schedule-item.emergency {
    background: rgba(255, 107, 107, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border: none;
}

.schedule-item.emergency .schedule-days i {
    color: #ff6b6b;
}

.schedule-item.emergency .schedule-hours {
    color: #ff6b6b;
    font-weight: 600;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    text-align: center;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.4);
    letter-spacing: 1px;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item.whatsapp-item:hover {
    background: rgba(37, 211, 102, 0.2);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item.whatsapp-item .contact-icon {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details p {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-details p {
    opacity: 1;
}

.contact-action {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--secondary);
}

.contact-item:hover .contact-action {
    opacity: 1;
    transform: translateX(0);
}

.newsletter {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--secondary);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 30px;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.copyright-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copyright-text i {
    color: var(--secondary);
    font-size: 0.85rem;
}

.copyright-text strong {
    color: white;
    font-weight: 700;
}

.copyright-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copyright-info i {
    font-size: 0.75rem;
    color: var(--accent);
}

.legal-navigation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 5px;
}

.legal-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.legal-link i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.secondary-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.secondary-links a:hover {
    color: var(--secondary);
}

.secondary-links a i {
    font-size: 0.75rem;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 300;
}

.credits-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.certifications {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cert-badge i {
    color: var(--accent);
    font-size: 0.7rem;
}

.design-credits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.credits-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.credits-text i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.credits-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.credits-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.version-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-info i {
    color: #ff6b6b;
    font-size: 0.7rem;
}

.back-to-top {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(13, 71, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.back-to-top:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 71, 255, 0.4);
    gap: 15px;
}

.back-text {
    transition: all 0.3s ease;
}

.back-to-top:hover .back-text {
    letter-spacing: 1px;
}

.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.floating-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseWhatsApp 2s infinite;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

.floating-text {
    font-size: 0.9rem;
}

/* =============================================================
   ===== RESPONSIVE DESIGN — BREAKPOINTS CORREGIDOS Y COMPLETOS
   ============================================================= */

/* ===== 1280px — Tablets grandes / laptops pequeñas ===== */
@media (max-width: 1280px) {
    .footer-bottom-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* ===== 1100px — Tablets grandes ===== */
@media (max-width: 1100px) {
    .footer-bottom-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .legal-navigation {
        grid-column: span 2;
        order: 3;
    }

    .credits-section {
        align-items: flex-start;
        grid-column: 2;
        grid-row: 1;
    }

    .copyright-section {
        grid-column: 1;
        grid-row: 1;
    }
}

/* ===== 992px — Tablets medianas / menú mobile ===== */
@media (max-width: 992px) {

    /* HEADER: menú hamburguesa */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1100;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* OVERLAY oscuro detrás del drawer */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* FIX: Logo más pequeño en tablets — sin romper el !important del desktop */
    .logo-img {
        height: 80px !important;
    }

    /* FIX: Texto del hero proporcional en tablets */
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    /* About: una columna */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
    }

    /* Footer: 2 columnas */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Carousel: 2 cards */
    .carousel-track .project-card {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ===== 768px — Móviles grandes / tablets pequeñas ===== */
@media (max-width: 768px) {

    /* FIX: Deshabilitar parallax en móvil — bugea en iOS Safari */
    .hero,
    .stats {
        background-attachment: scroll;
    }

    /* FIX: Logo aún más pequeño en móvil */
    .logo-img {
        height: 65px !important;
    }

    /* FIX: Header más compacto */
    .main-header .container {
        min-height: 70px;
        padding: 10px 20px;
    }

    /* Hero */
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Header top */
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* About image: altura reducida */
    .about-image {
        height: 320px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .service-card {
        min-height: 400px;
    }

    .service-card-content h3 {
        font-size: 1.8rem;
    }

    .service-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Projects filter */
    .projects-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .filter-btn span {
        display: none; /* Solo iconos en móvil para ahorrar espacio */
    }

    /* Carousel: 1 card */
    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-track .project-card {
        flex: 0 0 100%;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav i {
        font-size: 1rem;
    }

    /* Footer */
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .copyright-section,
    .legal-navigation,
    .credits-section {
        align-items: center;
        text-align: center;
        grid-column: 1 !important;
        grid-row: unset !important;
    }

    .certifications {
        justify-content: center;
    }

    .legal-links,
    .secondary-links {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-col:first-child {
        padding-right: 0;
    }

    /* Back to top */
    .back-to-top {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .back-text {
        display: none;
    }

    /* Floating WhatsApp */
    .floating-contact {
        bottom: 80px;
        right: 20px;
    }

    .floating-whatsapp .floating-text {
        display: none;
    }

    .floating-whatsapp {
        width: 60px;
        height: 60px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* ===== 480px — Móviles pequeños ===== */
@media (max-width: 480px) {

    /* FIX: Logo mínimo en móviles chicos */
    .logo-img {
        height: 55px !important;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        min-height: 380px;
    }

    .service-card-content {
        padding: 25px 20px;
    }

    .service-card-content h3 {
        font-size: 1.6rem;
    }

    .service-card-content p {
        font-size: 0.95rem;
    }

    .service-card .service-badge {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    /* About image */
    .about-image {
        height: 260px;
    }

    /* Features grid: 1 columna */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Carousel */
    .carousel-wrapper {
        padding: 0 30px;
    }

    /* Footer */
    .legal-links,
    .secondary-links {
        flex-direction: column;
        gap: 8px;
    }

    .separator {
        display: none;
    }

    .certifications {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        padding-top: 30px;
        margin-top: 20px;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-certifications {
        flex-direction: column;
    }
}

.social-icon.tiktok-icon:hover {
    background: #000000; /* O el color característico de TikTok */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Si quieres el gradiente característico de TikTok */
.social-icon.tiktok-icon:hover {
    background: linear-gradient(45deg, #25F4EE, #FE2C55, #000000);
}
