
html{
    scroll-behavior: smooth;
    overflow-x: hidden; /* Deshabilita el desplazamiento horizontal */
    width: 100%;
    box-sizing: border-box;
}

 *{
    box-sizing: inherit;
}

/* Estilos para el botón de scroll down */
.scroll-down , .scroll-down-servicios {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down svg {
    width: 40px;
    height: 40px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Animación de rebote */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


body {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    width: 100%;
    z-index: 2;
    position: relative;
    height: 100vh;
}

.contenido-header {
    width: 100%;
}
.logo {
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: auto;
    margin-top: 15px; 
}

/* Navegacion del navbar */
.navegacion-principal {
    display: flex;
    justify-content: flex-end; /* Los elementos de navegación se alinean a la derecha */
    align-items: center;
    height: 80px;
    padding-right: 20px; /* Espacio a la derecha */
}

.navegacion-principal a {
    padding: 10px 15px; /* Espaciado más uniforme */
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff; /* Asegura que los enlaces tengan un color definido */
    font-weight: 500;
    transition: transform 0.2s;
}
.navegacion-principal a:hover{
    transform: scale(1.1);

/* Boton del navbar*/
}
.button {
    height: 30px;
    width: 120px;
    position: relative;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid red;
    overflow: hidden;
    border-radius: 30px;
    color: red;
    transition: all 0.5s ease-in-out;

}

.btn-txt {
    z-index: 1;
    font-weight: 800;
    font-size: 15px;

}

.type1::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s ease-in-out;
    background-color: red;
    border-radius: 30px;
    visibility: hidden;
    height: 10px;
    width: 10px;
    z-index: -1;
}

.button:hover {
    box-shadow: 1px 1px 200px #252525;
    color: #fff;
    border: none;
}

.type1:hover::after {
    visibility: visible;
    transform: scale(100) translateX(2px);
}

.header-titulo {
    width: 70%;
    margin: 250px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-titulo h1 {
    margin: 0;
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    animation: slideUp 2s ease forwards; /* Animación para el título */
}

.header-titulo p {
    margin: 10px 0;
    font-size: 30px;
    color: #fff;
    opacity: 0;
    animation: slideUp 2s ease forwards; /* Animación para el párrafo */
    animation-delay: 1s; /* Retraso de 1 segundo para el párrafo */
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 20px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}
.menu-icon.active span:nth-child(1) {
    transform: rotate(40deg) translate(10px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -4px);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 300px;
}

.nav-links.active {
    max-height: 300px; /* Altura máxima cuando está activo */
    opacity: 1; /* Se hace visible */
}
@media (max-width: 488px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
    .header{
        display: flex;
        flex-direction: column;
        margin: 0;
    }
    .navegacion-principal{
        display: flex;
        flex-direction: column;
        padding-top: 150px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }
    .navegacion-principal a , .btn-txt {
        font-size: 20px;

    }
    .navegacion-principal img{
        width: 180px;
        margin: 0 auto;
    }

    .header-titulo{
        margin-top: 300px;
    }
    
    .header-titulo h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 600;
        color: #fff;
        opacity: 0;
        animation: slideUp 2s ease forwards; /* Animación para el título */
    }
    .header-titulo p{

        margin: 10px 0;
        font-size: 20px;
        color: #fff;
        opacity: 0;
        animation: slideUp 2s ease forwards; /* Animación para el párrafo */
        animation-delay: 1s; /* Retraso de 1 segundo para el párrafo */

    }

}
/* Carrusel de imagenes */
.contenido-imagen-portada {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0 auto;
}
.carousel{
    width: 100%;
}
.carousel img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Mantiene la proporción de la imagen mientras cubre todo el contenedor */
    opacity: 1; /* Ajusta la opacidad al formato decimal */
    display: block;
}
@media (max-width: 800px) {
    .carousel{
        width: 100vh;
    }
}



/*servicios nuevo/*/
.services {
    text-align: center;
    padding: 50px;
}

.service svg {
    width: 60px;
    height: 50px;
}

.services h2 {
    font-size: 50px;
    margin-bottom: 30px;
    color: transparent; 
    background-image: linear-gradient(90deg, #ff0000, #ff4d4d, #ff9999); 
    background-clip: text;  
    -webkit-background-clip: text;  
}

.services h3 {
    font-size: 30px;
    color: #666;
    margin-bottom: 70px;
}

.container-s {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 30px;
    border-radius: 20px;
    background-color: #ffffff;
}

.container-s .card {
    position: relative;
    max-width: 300px;
    height: 350px;
    background-color: #fff;
    margin: 30px 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: 0.3s ease-in-out;
    border-radius: 15px;
}

.container-s .card .image {
    position: relative;
    width: 100%;
    height: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 15px;
}

.container-s .card .image img {
    max-width: 100%;
    height: 200px;
    border-radius: 15px;
    background-size: cover;
}

.container-s .card .content {
    position: relative;
    top: 10px;
    padding: 10px 15px;
    color: #111;
    text-align: center;
    height: auto;
}


.container-s .card .content h3 {
    font-size: 17px;
    margin: 10px 0;
    color: #111;
    visibility: visible; /* El título siempre es visible */
    opacity: 1; /* El título siempre es visible */
}

.container-s .card .content p {
    margin: 0; /* Elimina el margen para evitar espacios innecesarios */
    padding: 0; /* Elimina el padding para evitar espacios innecesarios */
}

.container-s .card .content li {
    font-size: 14px;
    color: #333;
    line-height: 18px;
    text-align: left;
    visibility: hidden; /* Oculta los elementos adicionales inicialmente */
    opacity: 0; /* Oculta los elementos adicionales inicialmente */
    transition: 0.3s ease-in-out;
}

.container-s .card:hover {
    height: 450px;
}
.container-s .card:hover:nth-child(3){
    height: auto;
}
.container-s .card:hover:nth-child(4){
    height: auto;
}
.container-s .card:hover .content li {
    visibility: visible; /* Muestra los elementos adicionales al hacer hover */
    opacity: 1; /* Muestra los elementos adicionales al hacer hover */
    transition-delay: 0.4s; /* Añade un pequeño retraso para la animación */
}
/* Seccion Nosotros */
.nosotros {
    background-color: #ffffff;
}

.contenedor-nosotros {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se ajusta automáticamente */
    gap: 20px;
    align-items: center;
    gap: 20px;    
    margin-bottom: 40px;
}

.texto-nosotros {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
    position: relative;
}

.texto-nosotros h2 {
    font-size: 50px;
    margin-bottom: 10px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-family: "Raleway", sans-serif;
}

.texto-nosotros h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background-color: #ff0000; 
    position: absolute;
    bottom: 0;
    left: 0;
}

.texto-nosotros p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #000000;
    width: 100%;
    font-family: "Raleway", sans-serif;
}
.imagen-nosotros {
    width: 100%; /* Mantén un ancho adecuado sin que se reduzca demasiado */
    max-width: 100%; /* Establece un tamaño máximo para la imagen */
    min-width: 400px; /* Establece un tamaño mínimo para la imagen */
    margin-bottom: 20px;
}
.imagen-nosotros img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.estadisticas-nosotros {
    display: flex;
    width: 400px;
    justify-content: space-around;
    background-color: red;
    padding: 1px 15px;
    border-radius: 50px 0px 152px 0px;
    -moz-border-radius: 50px 0px 152px 0px;
    -webkit-border-radius: 50px 0px 152px 0px;
    border: 0px solid #000000;
}
.estadistica {
    text-align: center;
    flex: 1;
    padding-left: 10px;
    transition: transform 0.2s;
}
.estadistica:hover {
    transform: scale(1.05);
}
.estadistica h3 {
    font-size: 30px;
    margin: 0;
    color: #fff;
}
.estadistica p {
    margin-top: 10px;
    font-size: 15px;
    color: #fff;
}
/* Media Query para pantallas de 488px o menos */

@media (max-width: 1000px) {
    .contenedor-nosotros {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 200px;
    }
    .imagen-nosotros {
        width: 100%; /* Mantén un ancho adecuado sin que se reduzca demasiado */
        max-width: 400px; /* Establece un tamaño máximo para la imagen */
        min-width: 250px; /* Establece un tamaño mínimo para la imagen */
        margin-bottom: 20px;
    }

}
@media (max-width: 488px) {
    .contenedor-nosotros {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 200px;
    }
    .texto-nosotros {
        max-width: 100%;
        padding: 0;
        text-align: center;
    }
    .texto-nosotros h2 {
        font-size: 35px;
    }
    .texto-nosotros p {
        font-size: 16px;
        line-height: 1.4;
    }
    .imagen-nosotros {
        width: 90%; /* Mantén un ancho adecuado sin que se reduzca demasiado */
        max-width: 400px; /* Establece un tamaño máximo para la imagen */
        min-width: 250px; /* Establece un tamaño mínimo para la imagen */
        margin-bottom: 20px;
    }
    .estadisticas-nosotros {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        margin: 0 auto;
        padding: 5px 0;
    }
    .estadistica h3 {
        font-size: 15px;
    }
    .estadistica p {
        font-size: 15px;
    }

    .texto-nosotros h2::after {
        content: '';
        display: block;
        width: 100px;
        height: 4px;
        background-color: #ff0000; 
        position: absolute;
        bottom: 0;
        left: 50px;
    }
}
/* Tarjetas Proyectos */
.tarjetas {
    padding-top: 100px;
    background-color: #f9f9f9;
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.tarjetas h2 {
    font-size: 50px;
    margin-bottom: 20px;
    color: red;
     color: transparent; /* Hace el texto transparente */
    background-image: linear-gradient(90deg, #ff0000, #ff4d4d, #ff9999); /* Gradiente de colores rojos */
    background-clip: text; /* Aplica el gradiente solo al texto */
    -webkit-background-clip: text; /* Requerido para compatibilidad en algunos navegadores */
}
.tarjetas h3 {
    font-size: 30px;
    color: #666;
    margin-bottom: 30px;
}

.tarjetas-contenedor {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.tarjeta {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.tarjeta:hover {
    transform: scale(1.05);
}
.tarjeta img {
    width: 100%;
    height: auto;
}
.tarjeta-contenido {
    padding: 15px;
}
.tarjeta h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #000;
}
.tarjeta p {
    color: #666;
}
.btn-ver-proyectos {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 0 auto;
}
.btn-ver-proyectos:hover {
    background-color: rgb(153, 24, 24);
}
/*   Formulario de Contacto  */
.main-container {
    background: linear-gradient(135deg, #000000, rgb(252, 252, 252));
    padding: 2rem 0;
}

/* Form and Map Container */
.form-map-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 4rem;
    border-radius: 14px;
    background-color: #8b8b8b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1400px;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
}

/* Form Container */
.form-container {
    flex: 1;
    max-width: 500px; /* Aumenta el ancho máximo del formulario */
}

/* Map Container */
.map-container {
    flex: 1;
    max-width: 700px; /* Aumenta el ancho máximo del mapa */
    height: 500px; /* Aumenta la altura del mapa */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#contact-form {
    background: rgb(210, 206, 206);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-bottom: 2rem;
}/* Main Container */
.main-container {
    background: linear-gradient(135deg, #000000, rgb(252, 252, 252));
    padding: 2rem 0;
}

/* Form and Map Container */
.form-map-container {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: flex-start;
    gap: 1rem; /* Reduce el espacio entre los elementos */
    padding: 4rem; /* Aumenta el padding para agrandar el área roja */
    border-radius: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto; /* Centra el contenedor en la página */
    max-width: 1400px; /* Aumenta el ancho máximo del contenedor */
}

/* Form Container */
.form-container {
    flex: 1;
    max-width: 500px; /* Aumenta el ancho máximo del formulario */
}

/* Map Container */
.map-container {
    flex: 1;
    max-width: 700px; /* Aumenta el ancho máximo del mapa */
    height: auto; /* Aumenta la altura del mapa */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.map-container iframe{
    height: 550px;
}

#contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-bottom: 2rem;
}
#contact-form h2 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #6e8efb;
    outline: none;
}
button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: #111213;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #eb2207;
}

@media (max-width: 488px) {

    .form-map-container{
        display: flex;
        flex-direction: column;
    }
    .map-container iframe{
        height: 300px;

    }
}

/*    Footer  */
footer {
    background: #111213;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #bbb;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fa8d7f;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #fa8d7f;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #bbb;
}

/* FontAwesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* animacion de carga imagenes */
@keyframes show {
    0% {
        opacity: 0.3; scale: 70%;
    }
    to {
        opacity: 1; scale: 100%;
    }
}
.services,.nosotros ,.tarjetas,.footer {
    view-timeline-name: --reveal ;
    animation-name: show;
    animation-fill-mode: forwards;
    animation-timeline: --reveal;
    animation-range: entry 25% cover 75%;

}




.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
}

.whatsapp-logo {
    width: 100%;
    height: 100%;
    fill: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Efecto de ondas */
.whatsapp-btn::before, .whatsapp-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.6);
    animation: ripple 1.5s infinite;
    z-index: -1;
}

.whatsapp-btn::after {
    animation-delay: 0.75s;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}