@media (max-width: 768px) {
    .mission-vision {
        display: none !important;
    }
}
@media (max-width: 768px) {
    #about {
        padding-top: 4rem !important;
    }
}
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Asegurar Montserrat en todos los elementos de texto */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, select, label {
    font-family: 'Montserrat', sans-serif;
}

/* Header y navegación */
header {
    background: #1050AA;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

header.scrolled {
    padding: 0.5rem 0;
}

.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4299e1;
    transition: width 0.3s ease;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: #4299e1;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #a0aec0;
    display: block;
    margin-top: -5px;
}

/* Logo header reducido a la mitad */
.logo-image {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

/* Estilos base del menú hamburguesa (oculto en desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: white;
    transform: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: white;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Main content */
main {
    margin-top: 100px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

section {
    background: white;
    margin: 0;
    padding: 4rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

section:nth-child(even) {
    background: #f7fafc;
}

h2 {
    color: #1a365d;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
}

h2 i {
    color: #4299e1;
    margin-right: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(26, 54, 93, 0.7) 0%, rgba(45, 90, 135, 0.7) 100%),
        url('hero-background.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 8rem 2rem 8rem;
    margin-top: -100px;
    padding-top: 12rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.6) 0%, rgba(45, 90, 135, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.stat h3 {
    font-size: 2.5rem;
    color: #4299e1;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cbd5e0;
    font-size: 1rem;
}

/* Botones */
.cta-button, #quoteBtn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0rem; /* Sin margen superior - pegado a las estadísticas */
}

.cta-button:hover, #quoteBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.cta-button i, #quoteBtn i {
    margin-right: 0.5rem;
}

/* Services Introduction */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
}

.services-intro h3 {
    color: #1a365d;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-intro p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 100%;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #4299e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-icon {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    color: #1a365d;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
    width: 100%;
    text-align: left;
}

.service-card ul li {
    padding: 0.3rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* Ocultar segundo párrafo en las cards */
.service-detail-hidden {
    display: none;
}

/* Service Process Section */
.service-process {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e2e8f0;
}

.service-process h4 {
    color: #1a365d;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.service-process ul {
    list-style: none;
    margin: 0;
}

.service-process ul li {
    padding: 0.3rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Service Button */
.service-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    width: 100%;
}

.service-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
}

.service-card {
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.close {
    color: #718096;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #4299e1;
}

.modal-body {
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-process {
    margin-top: 1.5rem;
}

.modal-process h4 {
    color: #1a365d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-process ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-process ul li {
    padding: 0.8rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f7fafc;
}

.modal-process ul li:last-child {
    border-bottom: none;
}

.modal-process ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mensaje */
#message {
    margin-top: 1rem;
    font-weight: bold;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#message.show {
    opacity: 1;
}

/* About Section */
.about-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

/* About Section - Más espacio para que tarde en aparecer */
#about {
    padding-top: 6rem !important; /* Menos espacio superior tras eliminar hero-stats */
    background: #1050AA !important;
}

/* Info blocks */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.info-block {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 3px solid #4299e1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-block h4 {
    color: #1a365d;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.info-block h4 i {
    color: #4299e1;
    margin-right: 0.4rem;
    font-size: 1rem;
}

.info-block p {
    margin-bottom: 0.6rem;
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.mission, .vision {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mission h4, .vision h4 {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mission h4 i, .vision h4 i {
    color: #4299e1;
    margin-right: 0.5rem;
}

/* Advantages header */
.advantages-header {
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.advantages-header h2 {
    font-size: 2rem;
    color: #1a365d;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.advantages-intro {
    margin-top: 0.6rem;
    color: #4a5568;
    font-size: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.advantage {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advantage:hover {
    transform: translateY(-5px);
}

.advantage i {
    font-size: 3rem;
    color: #4299e1;
    margin-bottom: 1rem;
}

.advantage h3 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Contact Section */
.contact-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.contact-info h3 {
    color: #1a365d;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4a5568;
}

.contact-item i {
    color: #4299e1;
    margin-right: 1rem;
    width: 20px;
}

/* Formulario */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #1a365d;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form div {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a365d;
}

input, textarea, select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4299e1;
}

button[type="submit"] {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Footer */
footer {
    background: #1a202c;
    color: white;
    margin-top: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #4299e1;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Logo footer reducido a la mitad */
/* Logo footer agrandado para mejor visibilidad */
.footer-logo-image {
    height: 70px;
    width: auto;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

.footer-section h4 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4299e1;
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #a0aec0;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4299e1;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 1.5rem;
    text-align: center;
    color: #718096;
}

.legal-link {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #63b3ed;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.legal-content .highlight {
    color: #4299e1;
    font-weight: 600;
}

/* Estilos para el modal de agradecimiento */
.thank-you-modal {
    max-width: 700px;
    border: 3px solid #4299e1;
}

.thank-you-header {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

.thank-you-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.thank-you-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.thank-you-body {
    padding: 2rem;
}

.thank-you-content h4 {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.thank-you-details {
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.detail-item i {
    font-size: 1.5rem;
    color: #4299e1;
    margin-top: 0.2rem;
}

.detail-item strong {
    display: block;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.detail-item p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.detail-item .highlight {
    color: #4299e1;
    font-weight: 700;
}

.next-steps {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
}

.next-steps h5 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.next-steps li i {
    color: #4299e1;
    font-size: 1rem;
    width: 20px;
}

.thank-you-message {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    border-radius: 10px;
    border: 2px solid rgba(66, 153, 225, 0.2);
}

.thank-you-message strong {
    color: #1a365d;
    font-size: 1.1rem;
}

/* Animación para el ícono de éxito */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive para el modal de agradecimiento */
@media (max-width: 768px) {
    .thank-you-modal {
        max-width: 95% !important;
        width: 95% !important;
        margin: 5% auto;
    }
    
    .thank-you-header {
        padding: 1.5rem;
    }
    
    .thank-you-header h3 {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .thank-you-body {
        padding: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Asegurar que el modal sea visible en móvil */
    .modal {
        z-index: 10000 !important;
        position: fixed !important;
        overflow-y: auto !important;
    }
    
    .modal-content,
    .thank-you-modal {
        position: relative;
        z-index: 10001 !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Responsive - COMPLETAMENTE OPTIMIZADO PARA MÓVILES */
@media (max-width: 768px) {
    /* RESET Y OPTIMIZACIONES GENERALES */
    * {
        -webkit-overflow-scrolling: touch;
        -webkit-tap-highlight-color: transparent;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* HEADER Y NAVEGACIÓN MÓVIL */
    header {
        background: #1050AA !important;
        padding: 0.5rem 0;
        position: fixed;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    nav {
        padding: 0 1rem;
        height: 55px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row !important;
    }
    
    .logo-image {
        height: 55px !important;
        width: auto;
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .logo-image:hover {
        transform: none !important;
    }
    
    /* Menú hamburguesa */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Menú de navegación móvil */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 0;
        margin: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        list-style: none;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-menu a {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 0.8rem 2rem;
        border-radius: 8px;
        display: block;
    }
    
    /* MAIN Y SECCIONES */
    main {
        margin-top: 55px !important;
        width: 100%;
        overflow-x: hidden;
    }
    
    section {
        padding: 2rem 1rem !important;
        margin: 0 !important;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* HERO OPTIMIZADO */
    .hero {
        padding: 3rem 1rem 3rem !important;
        margin-top: 0 !important;
        background-attachment: scroll !important;
        min-height: auto !important;
        overflow: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .stat {
        width: 100%;
        padding: 1rem;
        margin: 0;
    }
    
    .stat h3 {
        font-size: 1.8rem !important;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    /* ABOUT SECTION */
    #about {
        padding-top: 3rem !important;
        margin-top: 0 !important;
    }
    
    .about-content {
        width: 100%;
    }
    
    h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    /* INFO BLOCKS */
    .info-blocks {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1rem 0;
        width: 100%;
    }
    
    .info-block {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-block h4 {
        font-size: 1.1rem;
    }
    
    .info-block p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* MISSION VISION */
    .mission-vision {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .mission, .vision {
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ADVANTAGES */
    .advantages-header {
        padding: 0;
        width: 100%;
    }
    
    .advantages-intro {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .advantage {
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .advantage i {
        font-size: 2rem;
    }
    
    .advantage h3 {
        font-size: 1.1rem;
    }
    
    .advantage p {
        font-size: 0.9rem;
    }
    
    /* SERVICES */
    .services-intro {
        padding: 0;
        margin: 1rem auto;
        width: 100%;
    }
    
    .services-intro h3 {
        font-size: 1.3rem;
    }
    
    .services-intro p {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        margin-top: 1.5rem;
        width: 100%;
        padding: 0;
    }
    
    .service-card {
        padding: 1.5rem 1.25rem;
        width: 100%;
        box-sizing: border-box;
        min-width: auto !important;
        max-width: 100%;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin: 1rem 0 0.75rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .service-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        margin-top: auto;
        width: 100%;
        max-width: 250px;
    }
    
    /* CONTACT */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100%;
    }
    
    .contact-info {
        width: 100%;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    input, textarea, select {
        font-size: 16px !important; /* Evita zoom en iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    button[type="submit"],
    .cta-button {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        margin-top: 0.5rem;
    }
    
    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
        width: 100%;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-logo-image {
        height: 70px;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* MODALES */
    .modal-content {
        width: 95% !important;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* DESACTIVAR ANIMACIONES PESADAS */
    .service-card:hover,
    .advantage:hover,
    .info-block:hover,
    .stat:hover {
        transform: none !important;
        box-shadow: 0 3px 15px rgba(0,0,0,0.08) !important;
    }
    
    /* OPTIMIZACIONES DE RENDIMIENTO */
    *:not(.logo-image):not(.logo):not(header) {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Asegurar que el logo no tenga animaciones */
    .logo-image,
    .logo {
        animation: none !important;
        transition: none !important;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ocultar elementos innecesarios */
    .floating-particles {
        display: none !important;
    }
    
    .scroll-indicator {
        height: 2px !important;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Efectos adicionales */
.service-card, .advantage, .mission, .vision {
    animation: fadeInUp 0.8s ease-out;
}

.hero-stats .stat {
    animation: fadeInUp 1s ease-out;
}

.hero-stats .stat:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-stats .stat:nth-child(3) {
    animation-delay: 0.4s;
}

/* Hover effects profesionales */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Indicador de scroll */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Animaciones dinámicas adicionales */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Efectos hover más dinámicos */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(66, 153, 225, 0.4);
}

/* Animaciones para tarjetas de servicio */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card .service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
    color: #4299e1;
}

/* Animaciones para las estadísticas */
.hero-stats .stat {
    transition: all 0.3s ease;
}

.hero-stats .stat:hover {
    transform: scale(1.1);
}

/* Animaciones para elementos de ventajas */
.advantage {
    transition: all 0.3s ease;
}

.advantage:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.advantage:hover i {
    transform: rotate(360deg);
    color: #4299e1;
}

/* Parallax suave para el hero */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Efectos de typing para títulos */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #4299e1;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #4299e1; }
}

/* Efectos de carga */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Efectos de partículas flotantes */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Animaciones de entrada por secciones */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* OPTIMIZACIONES ADICIONALES PARA MÓVILES MUY PEQUEÑOS */
@media (max-width: 480px) {
    /* Reducir aún más el tamaño del header */
    header {
        background: #1050AA !important;
        padding: 0.3rem 0;
    }
    
    nav {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .logo-image {
        height: 50px !important;
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .logo-image:hover {
        transform: none !important;
    }
    
    main {
        margin-top: 50px !important;
    }
    
    /* Hero más compacto */
    .hero {
        padding: 2rem 0.5rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.85rem !important;
    }
    
    /* Secciones más compactas */
    section {
        padding: 1.5rem 0.75rem !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
    }
    
    /* Services extra compactos */
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .service-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    /* Formulario optimizado */
    input, textarea, select {
        padding: 0.7rem;
        font-size: 16px !important;
    }
    
    button[type="submit"],
    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Footer compacto */
    .footer-logo-image {
        height: 60px;
    }
    
    .footer-bottom {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Modales */
    .modal-content {
        width: 98% !important;
        margin: 2% auto;
        padding: 0;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    /* Optimizar performance */
    *:not(.logo-image):not(.logo):not(header) {
        animation-duration: 0.15s !important;
        transition-duration: 0.15s !important;
    }
    
    /* Asegurar que el logo no tenga animaciones en móviles pequeños */
    .logo-image,
    .logo {
        animation: none !important;
        transition: none !important;
    }
}

/* Banner de Bienvenida Lateral */
.welcome-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #1050AA 0%, #0d3d85 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 300px;
    animation: slideInRight 0.5s ease-out;
}

.welcome-banner.hidden {
    animation: slideOutRight 0.5s ease-out;
    opacity: 0;
    pointer-events: none;
}

.close-welcome {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-welcome:hover {
    background: rgba(255,255,255,0.2);
}

.welcome-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: white;
}

.welcome-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.welcome-cta {
    background: white;
    color: #1050AA;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.welcome-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.welcome-cta i {
    margin-right: 0.5rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Ocultar en móviles */
@media (max-width: 768px) {
    .welcome-banner {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        padding: 1rem;
    }
    
    .welcome-content h3 {
        font-size: 1.1rem;
    }
    
    .welcome-content p {
        font-size: 0.85rem;
    }
}
