/* Hero Section */
.hero {
    background: linear-gradient(to right, #a1c8f1, #56a4f3);
    color: white;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero .btn {
    background: white;
    color: #004080;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.hero .btn:hover {
    background: #ff6600;
    color: white;
}

/* Sección de Introducción sin Fondo */
.intro {
    text-align: center;
    padding: 80px 20px;
    background: none; /* Eliminamos el fondo */
    position: relative;
    overflow: hidden;
}

/* Estilos del Título */
.intro h2 {
    font-size: 3em;
    color: white;/* Color fuerte y moderno */
    margin-bottom: 20px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease-in-out forwards;
}

/* Estilos del Texto */
.intro p {
    font-size: 1.3em;
    color:  white;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards 0.5s;
}

/* Botón con Estilo Moderno */
.intro .btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: #007bff;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s ease-in-out forwards 1s;
}

.intro .btn:hover {
    background: #ff6600;
    color: white;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}




/* 🔹 Animación de Aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* 🔹 Estilos Mejorados para el Modal */



/* 🔹 Estilos Mejorados para el Modal */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Asegúrate de que el modal esté por encima de otros elementos */
}

/* 🔹 Contenedor del Modal */
.modal-content {
    background: var(--header-background);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto; /* Permite el desplazamiento si el contenido es demasiado largo */
    max-height: 90vh; /* Limita la altura del modal */
    z-index: 1001; /* Asegúrate de que el contenido del modal esté por encima del fondo */
}

/* 🔹 Botón de Cierre (X) */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--menu-link-color);
    transition: color 0.3s ease-in-out;
    z-index: 1002; /* Asegúrate de que el botón de cierre esté por encima del contenido */
}

.close:hover {
    color: var(--btn-hover-bg);
}

/* 🔹 Título del Modal */
.modal-content h2 {
    margin-top: 20px; /* Ajusta el margen superior */
    color: var(--h2-color);
    font-size: 1.5em; /* Reduce el tamaño de la fuente */
    margin-bottom: 15px;
}

.modal-content p {
    margin-top: 10px; /* Ajusta el margen superior */
    font-size: 1em; /* Reduce el tamaño de la fuente */
}

/* 🔹 Inputs del Formulario */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 2px solid var(--btn-bg);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    color: var(--body-text-color);
    outline: none;
    transition: border 0.3s ease-in-out;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--btn-hover-bg);
}

/* 🔹 Botón de Enviar */
.modal-content button {
    background: var(--btn-bg);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1em; /* Reduce el tamaño de la fuente */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}

.modal-content button:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-color);
}

/* 🔹 Animación de Aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        max-width: 350px;
    }

    .modal-content h2 {
        font-size: 1.3em; /* Reduce el tamaño de la fuente en móviles */
    }

    .modal-content p {
        font-size: 0.9em; /* Reduce el tamaño de la fuente en móviles */
    }

    .modal-content button {
        font-size: 0.9em; /* Reduce el tamaño de la fuente en móviles */
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        width: 90%;
        max-width: 300px;
    }

    .modal-content h2 {
        font-size: 1.2em; /* Reduce el tamaño de la fuente en móviles */
    }

    .modal-content p {
        font-size: 0.8em; /* Reduce el tamaño de la fuente en móviles */
    }

    .modal-content button {
        font-size: 0.8em; /* Reduce el tamaño de la fuente en móviles */
        padding: 8px 12px;
    }
}







/* Animaciones 
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
*/

/* Ajustes responsivos */
@media (max-width: 768px) {
    .intro {
        padding: 60px 20px;
    }

    .intro h2 {
        font-size: 2.5em;
    }

    .intro p {
        font-size: 1.1em;
    }

    .intro .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}

.contact {
    text-align: center;
    padding: 60px 20px;
}

.contact h2 {
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2em;
    color: #555;
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact label {
    font-size: 1.1em;
    color: #333;
    display: block;
    margin-top: 10px;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 1.2em;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.contact button:hover {
    background: #ff6600;
}





/* Animaciones */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .intro {
        padding: 60px 20px;
    }

    .intro h2 {
        font-size: 2.5em;
    }

    .intro p {
        font-size: 1.1em;
    }

    .intro .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}





/* Ajustes responsivos */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .preview-services {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
    }
}
