/* Estilos completos para la SPA */

:root {

    --primary-blue: #2563eb;

    --dark-blue: #1e40af;

    --green: #10b981;

    --gray-800: #1f2937;

    --gray-600: #4b5563;

    --gray-300: #d1d5db;

    --white: #ffffff;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    line-height: 1.6;

    color: var(--gray-800);

    overflow-x: hidden;

}



/* Header */

.header {

    position: fixed;

    top: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    padding: 1rem 2rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

    z-index: 1000;

    transition: all 0.3s ease;

}



.logo {

    font-size: 1.8rem;

    font-weight: bold;

    color: var(--primary-blue);

}



.nav a {

    margin-left: 2rem;

    text-decoration: none;

    color: var(--gray-800);

    font-weight: 500;

    transition: color 0.3s;

    position: relative;

}



.nav a:hover {

    color: var(--primary-blue);

}



.nav a::after {

    content: '';

    position: absolute;

    bottom: -5px;

    left: 0;

    width: 0;

    height: 2px;

    background: var(--primary-blue);

    transition: width 0.3s;

}



.nav a:hover::after {

    width: 100%;

}



/* Hero Section */

.hero {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 2rem;

    /*background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);*/

        /* Fondo: Imagen + Overlay azul semitransparente */

    background: 

        linear-gradient(135deg, 

            rgba(37, 99, 235, 0.85) 0%, 

            rgba(30, 64, 175, 0.7) 100%),  /* 70% opacidad */

        url('../images/slider1.avif') center/cover no-repeat;

    color: var(--white);

    position: relative;

}



.hero h1 {

    font-size: 3.5rem;

    margin-bottom: 1rem;

    font-weight: 700;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

    animation: fadeInUp 1s ease;

}



.hero-subtitle {

    font-size: 1.5rem;

    margin-bottom: 2rem;

    opacity: 0.9;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

    animation: fadeInUp 1s ease 0.2s both;

}



.cta-button {

    background: var(--green);

    color: var(--white);

    border: none;

    padding: 1rem 2rem;

    font-size: 1.1rem;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.3s;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    animation: fadeInUp 1s ease 0.4s both;

}



.cta-button:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);

}



/* Sections */

.section {

    padding: 5rem 2rem;

}



.container {

    max-width: 1200px;

    margin: 0 auto;

}



.section h2 {

    text-align: center;

    font-size: 2.5rem;

    margin-bottom: 3rem;

    color: var(--gray-800);

}



/* Service Cards */

.service-card {

    background: var(--white);

    padding: 3rem;

    margin: 2rem 0;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s, box-shadow 0.3s;

    border-left: 4px solid var(--primary-blue);

}



.service-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);

}



/* Reemplaza el icono de emoji por imagen interactiva */

.service-icon {

    width: 80px;

    height: 80px;

    margin-bottom: 1rem;

    border-radius: 12px;

    object-fit: cover;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}



.service-icon:hover {

    transform: scale(1.05);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);

}



/* Modal para imagen agrandada */

.image-modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    z-index: 10000;

    justify-content: center;

    align-items: center;

}



.image-modal.active {

    display: flex;

    animation: fadeIn 0.3s ease;

}



.modal-content {

    max-width: 90%;

    max-height: 90%;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

}



.close-modal {

    position: absolute;

    top: 20px;

    right: 30px;

    color: white;

    font-size: 2rem;

    cursor: pointer;

    background: rgba(0, 0, 0, 0.5);

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: background 0.3s;

}



.close-modal:hover {

    background: rgba(0, 0, 0, 0.8);

}



@keyframes fadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

}



.service-card h3 {

    font-size: 1.8rem;

    margin-bottom: 0.5rem;

    color: var(--gray-800);

}



.service-phrase {

    font-style: italic;

    color: var(--primary-blue);

    margin-bottom: 1rem;

    font-weight: 500;

}



.service-list {

    list-style: none;

    margin: 1.5rem 0;

}



.service-list li {

    padding: 0.5rem 0;

    padding-left: 1.5rem;

    position: relative;

}



.service-list li::before {

    content: '✓';

    position: absolute;

    left: 0;

    color: var(--green);

    font-weight: bold;

}



.service-button {

    background: var(--primary-blue);

    color: var(--white);

    border: none;

    padding: 0.8rem 1.5rem;

    border-radius: 6px;

    cursor: pointer;

    transition: background 0.3s;

}



.service-button:hover {

    background: var(--dark-blue);

}



/* About Section */

.about-content {

    max-width: 800px;

    margin: 0 auto;

}



.vision-quote {

    font-size: 1.5rem;

    font-style: italic;

    text-align: center;

    margin: 2rem 0;

    padding: 2rem;

    background: #f8fafc;

    border-radius: 8px;

    border-left: 4px solid var(--green);

}



.about-section {

    margin: 3rem 0;

}



.about-section h3 {

    color: var(--primary-blue);

    margin-bottom: 1rem;

    font-size: 1.5rem;

}



.highlight {

    background: linear-gradient(120deg, #fef3c7 0%, #fef3c7 100%);

    padding: 1rem;

    border-radius: 6px;

    border-left: 4px solid #f59e0b;

    font-weight: 500;

}



/* Contact Section */

.contact-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: start;

}



.contact-info h3 {

    color: var(--primary-blue);

    margin-bottom: 1rem;

    font-size: 1.5rem;

}



.contact-details {

    margin-top: 2rem;

}



.contact-item {

    margin: 1rem 0;

    padding: 1rem;

    background: #f8fafc;

    border-radius: 6px;

}



.contact-form {

    background: var(--white);

    padding: 2rem;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

}



.form-group {

    margin-bottom: 1.5rem;

}



.form-group label {

    display: block;

    margin-bottom: 0.5rem;

    font-weight: 500;

    color: var(--gray-800);

}



.form-group input,

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 0.8rem;

    border: 2px solid var(--gray-300);

    border-radius: 6px;

    font-size: 1rem;

    transition: border-color 0.3s;

}



.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

    outline: none;

    border-color: var(--primary-blue);

}



.submit-button {

    width: 100%;

    background: var(--primary-blue);

    color: var(--white);

    border: none;

    padding: 1rem;

    font-size: 1.1rem;

    border-radius: 6px;

    cursor: pointer;

    transition: background 0.3s;

}



.submit-button:hover {

    background: var(--dark-blue);

}



/* Animations */

        @keyframes fadeInUp {

            from {

                opacity: 0;

                transform: translateY(30px);

            }

            to {

                opacity: 1;

                transform: translateY(0);

            }

        }



        .fade-in {

            opacity: 0;

            transform: translateY(30px);

            transition: opacity 0.6s ease, transform 0.6s ease;

        }



        .fade-in.visible {

            opacity: 1;

            transform: translateY(0);

        }

/* Responsive */

        @media (max-width: 768px) {

            .nav {

                display: none;

            }

            .hero {

            background-attachment: scroll; /* Mejor performance en móvil */

            background: 

                linear-gradient(135deg, 

                    rgba(37, 99, 235, 0.9) 0%, 

                    rgba(30, 64, 175, 0.7) 100%),  /* 70% opacidad */

                url('../images/slider1.avif') center/cover no-repeat;

             }

            .hero h1 {

                font-size: 2.5rem;

            }

            

            .hero-subtitle {

                font-size: 1.2rem;

            }

            

            .contact-grid {

                grid-template-columns: 1fr;

                gap: 2rem;

            }

            

            .service-card {

                padding: 2rem;

                margin: 1rem 0;

            }

            

            .section {

                padding: 3rem 1rem;

            }

            

            .header {

                padding: 1rem;

            }

            

            .nav a {

                margin-left: 1rem;

            }

        }





/* Loading */

#initialLoad {

    display: none;

}

  .notification {

            position: fixed;

            top: 100px;

            right: 20px;

            padding: 1rem 2rem;

            background: #10b981;

            color: white;

            border-radius: 8px;

            z-index: 10000;

            animation: slideInRight 0.3s ease;

        }



        @keyframes slideInRight {

            from {

                transform: translateX(100%);

                opacity: 0;

            }

            to {

                transform: translateX(0);

                opacity: 1;

            }

        }

/* Utility Classes */

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

.mt-2 { margin-top: 2rem; }

.mb-2 { margin-bottom: 2rem; }

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

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Estilo para inputs inválidos */
input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

