/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Header y Nav */
nav {
    display: flex;
    justify-content: space-between;
    height: 5rem;
    align-items: center;
    padding: 0 .3rem;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo img {
    width: 230px;
    height: auto;
    max-height: 100%; /* Asegura que no se desborde */
}

nav .nav-links a {
    margin-left: 3rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #bf930d;
}

.btn-marketing {
    display: inline-block;
    margin: 1rem;
    padding: 1rem 1.5rem;
    background: #4e84a7;
    color: #f9f8f4;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: transform 0.5s;
}

.btn-marketing:hover {
    color: #333;
    transform: scale(1.03);
    text-shadow: 0 2px 10px rgba(202, 199, 199, 0.938);
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70vh;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-color: #4e84a7;
    opacity: 0.35; /* Ajusta la opacidad según lo que necesites */
    z-index: 0; /* Debe estar por encima de la imagen y por debajo del contenido */
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: cover;
    z-index: -1;
}

.hero-text {
    position: absolute;
    left: 5%; /* Ajusta la distancia desde el borde izquierdo */
    color: white;
    font-size: 3.5rem; /* Ajusta el tamaño del texto */
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Agrega sombra para mejor visibilidad */
}

.tarjetas {
    display: flex;
    justify-content: center;
    gap: 4rem;
    position: absolute;
    bottom: -40px;
    width: 100%;
    
}

.tarjeta {
    margin: 3rem 1rem;
    padding: 1.5rem 3.5rem;
    background: #4e84a7;
    color: #f9f8f4;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.5s, text-decoration 0.3s;
    
}

.tarjeta:hover {
    transform: scale(1.1);
    text-decoration: underline;
}


/* Nosotros */
.nosotros {
    padding: 2rem 2rem;
}

.nosotros h2 {
    text-align: left;
    font-size: 2.5rem;
    color: #22221c;
    margin-bottom: 2rem;
}

.contenido {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contenido img {
    width: 50%;
    border-radius: 12px;
}

.descripcion {
    width: 50%;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: #bf930d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn:hover {
    background: #4e84a7;
}



/* Procesos */
.procesos {
    padding: 4rem 2rem;
    text-align: center;
}

.procesos h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #22221c;
    margin-bottom: 2.5rem;
}

.procesos p {
    color: #4e84a7;
}

.grid-procesos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.proceso {
    padding: 2rem;
    background: none;
    border: 1px solid #4e84a7;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.proceso:hover {
    transform: translateY(-5px); /* Movimiento hacia arriba */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
}


/* Servicios */
.servicios {
    padding: 4rem 4rem;
    text-align: center;
}

.servicios h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #22221c;
    margin-bottom: 2.5rem;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Ajuste para que todas las imágenes tengan el mismo tamaño sin perder calidad */
.servicio {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px; /* Fijar altura igual para todas */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
}

.servicio-agencias {
    grid-column: span 2; /* Ocupa toda la fila */
    height: 270px; /* Mantiene la misma altura que las demás */
}


/* Capa oscura */
.servicio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Capa oscura */
}

/* Título centrado */
.servicio h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.7rem;
    margin: 0;
    border-radius: 5px;
    text-shadow: 0 3px 18px #bf930d;
    z-index: 2;
}


/* Flecha (CTA) centrada debajo del título */
.cta {
    position: absolute;
    bottom: 5%;
    left: 90%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border: 1px solid #bf930d;
    border-radius: 50%;
    box-shadow: 0 0 15px #bf930d;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    z-index: 2;
}

.cta i {
    display: inline-block;
    font-size: 1rem; /* Ajusta el tamaño de la flecha */
    transition: transform 0.3s ease, color 0.3s;
}

.cta:hover i {
    transform: scaleX(1.8); /* Alarga la flecha horizontalmente */
    color: #4e84a7; /* Cambia el color al pasar el cursor */
}

.faq-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    max-width: 1200px;
    margin: 50px auto;
}

.faq-image {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.faq-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform .9s ease-in-out;
}

.faq {
    flex: 1;
    background: none;
    padding: 20px;
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    color: #22221c;
    text-shadow: 0 0 2px #4e84a7;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    text-shadow: 0 0 18px #bf930d;
}

.faq-answer {
    padding: 0 15px;
    font-size: 16px;
    color: #555;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.toggle {
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 0 3px #4e84a7;
    transition: transform 0.3s;
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    transform: scaleY(1);
    padding: 15px;
}


.faq-item.active .toggle {
    transform: rotate(45deg);
}

/* Efecto de zoom cuando se despliega una pregunta */
.faq-container.active .faq-image img {
    transform: scale(1.3);
}


/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #22221c;
    color: #f9f8f4;
}

/* Estilo para la parte izquierda del footer */
.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 48%;
    position: relative;
}

.footer-left img {
    width: 260px;
    position: absolute;
    justify-content: flex-start;
    margin-top: -3rem;
    margin-left: -2.5rem;

}

.footer-left h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #f9f8f4;
    margin-top: 5rem;
    text-align: left;
}

.footer-contact {
    display: flex;
    justify-content: flex-start; /* Empuja los iconos a la derecha */
    gap: 2rem;
    width: 100%;
    margin-top: 3rem; /* Espaciado debajo del logo */
}

.footer-contact i {
    font-size: 1.5rem;
    color: #4e84a7;
    transition: .3s ease-in-out;
}

.footer-contact i:hover{
    color: #bf920d;
}

.contacto,
.redes {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

/* Estilo para la parte derecha del footer (formulario) */
.footer-right {
    width: 48%;
    padding-left: 2rem;
}

.footer-right form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-right h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f9f8f4;
    margin-bottom: .5rem;
}

/* Estilo para las filas dentro del formulario */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
}

.form-column {
    flex: 1;
}

/* Estilo para las etiquetas */
footer .footer-right label {
    font-weight: 400;
    color: #f9f8f4;
}

/* Estilo para los inputs y textarea */
footer .footer-right input,
footer .footer-right textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    width: 100%;
}

footer .footer-right textarea {
    resize: vertical;
}

/* Estilo para el botón de enviar */
footer .footer-right button {
    margin-top: .5rem;
    padding: 0.8rem 3rem;
    background-color: #bf920d;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end; /* Coloca el botón a la derecha */
    transition: .5s;
}

footer .footer-right button:hover {
    color: #22221c;
    background-color: #f5f4f0;
}

.footer-copy {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.9rem;
    color: #f9f8f4;
    text-align: left;
}

.footer-copy a {
    color: #bf930d;
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}


@media (max-width: 430px) {


    nav {
        flex-direction: row; /* Mantiene los elementos en línea */
        justify-content: space-between; /* Separa el logo y el menú */
        align-items: center;
        padding: 0 1rem; /* Añade espacio a los lados */
    }

    nav .logo img {
        margin: -35px; /* Elimina el margen negativo */
        width: 150px; /* Ajusta el tamaño si es necesario */
        height: auto;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto; /* Empuja el icono a la derecha */
    }

    .menu-toggle i {
        font-size: 1.7rem; /* Ajusta el tamaño del icono */
        color: #4e84a7; /* Color del icono */
        transition: transform 0.3s ease-in-out;
    }
    .menu-toggle i.fa-xmark {
        transform: rotate(90deg); /* Gira el icono al abrir */
    }
    
    .menu-toggle i.fa-bars-staggered {
        transform: rotate(0deg); /* Vuelve a su posición original */
    }

    .nav-links {
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        text-align: start;
        padding: 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        height: 0;
        transition: height 0.4s ease-in-out;
    }

    .nav-links a {
        margin: 1rem 0;
        display: block;
        padding: .3rem 0;
        border-bottom: 1px solid #0f0e0e21;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        height: 175px; /* Ajusta según la cantidad de enlaces */
        padding: 1rem 0;
    }

    

    .hero img {
    height: 65vh; /* Ajusta según tu diseño */
    overflow: hidden;
    }

    .hero h1 {
        left: 10px;
        top: 108px;
        text-align: start;
        font-size: 1.9rem;
    }

    .tarjetas,
    .btn-marketing {
        display: none;
    }

    .nosotros {
        padding: 0 1rem;
    }
    
    .nosotros h2 {
        text-align: center;
        font-size: 1.5rem;
        color: #4e84a7;
        margin: 1.5rem 0;
    }

    
    .contenido {
        flex-direction: column;
        text-align: start;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .nosotros .contenido img{
        width: 100%;
    }
    
    .nosotros .contenido .descripcion {
        text-align: start;
        width: 100%;
    }
    

    .procesos {
        padding: 3rem .8rem;
        text-align: center;
    }

    .grid-procesos {
        grid-template-columns: 1fr;
    }
    
    .procesos h2 {
        text-align: center;
        font-size: 2.5rem;
        color: #22221c;
        margin-bottom: 1rem;
    }
    
    .proceso {
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .servicios {
        padding: 0 1.2rem;
    }

    .grid-servicios {
        gap: .8rem;
    }
    
    .servicios h2 {
        font-size: 2rem;
        color: #22221c;
        margin-bottom: 1.5rem;
    }

    .servicio {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        height: 220px; /* Fijar altura igual para todas */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .servicio img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Recorta la imagen sin deformarla */
    }
    
    .servicio-agencias {
        grid-column: span 2; /* Ocupa toda la fila */
        height: 200px; /* Mantiene la misma altura que las demás */
    }
    
    /* Título centrado */
    .servicio h3 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 1.2rem;
        margin: 0;
        text-shadow: 0 3px 18px #bf930d;
        z-index: 2;
    }
    
    
    /* Flecha (CTA) centrada debajo del título */
    .cta {
        position: absolute;
        bottom: 1%;
        left: 80%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: #333;
        color: #fff;
        border: 1px solid #bf930d;
        border-radius: 50%;
        box-shadow: 0 0 15px #bf930d;
        text-decoration: none;
        z-index: 2;
    }


    .faq-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin: 20px auto;
    }

    .faq-image {
        order: 1; /* La imagen sigue después del título */
        width: 100%;
        overflow: hidden;
    }

    .faq-image img {
        width: 100%;
        height: auto;
        border-radius: 0; /* Para que ocupe todo el ancho sin bordes redondeados */
    }

    .faq {
        width: 100%;
        padding: 15px;
    }

    .faq h2 {
        order: -1; /* Se asegura de que el título aparezca primero */
        text-align: center;
        font-size: 1.8rem;
        color: #22221c;
        text-shadow: 0 0 2px #4e84a7;
        margin-bottom: 15px;
    }

    .faq-question {
        padding: 8px;
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

     /* Footer */
    footer {
        flex-direction: column; /* Cambiar a columna */
        padding: .7rem; /* Ajustar el padding para una mejor distribución */
        position: relative;
    }

    /* Estilo para la parte izquierda del footer (logo y título) */
    .footer-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        justify-content: flex-start;
        align-items: flex-start; 
        margin-bottom: 1rem; /* Espacio entre el logo/título y el formulario */
    }

    .footer-left img {
        width: 190px;
        position: absolute;
        top: 17px;
        left: 10px;
    }

    .footer-left .contacto {
        flex-direction: row;
        justify-content: flex-end;
    }

    .footer-contact {
        flex-direction: row; /* Mantiene los elementos en línea */
        justify-content: space-between; /* Separa el logo y el menú */
        align-items: center;
        padding: 0 1rem; /* Añade espacio a los lados */
    }

    .footer-contact .contacto i {
        font-size: 1.1rem;
        color: #4e84a7;
    }

    footer h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    /* Estilo para la parte derecha del footer (formulario) */
    .footer-right {
        order: 1;
        width: 100%;
        padding: 0; /* Eliminar padding izquierdo */
        margin-bottom: 1rem; /* Espacio entre el formulario y las columnas de contacto/redes */
    }

    .footer-right h3 {
        color: #4e84a7;
        font-size: 1.4rem;
    }

    /* Estilo para las filas dentro del formulario */
    .form-row {
        flex-direction: column; /* Cambiar la dirección a columna */
        gap: .3rem;
 
    }

    .form-column {
        flex: 1;
    }

    footer .footer-right textarea {
        resize: vertical;
    }

    footer .footer-right button:hover {
        color: #22221c;
        background-color: #f5f4f0;
    }

    /* Estilo para las columnas de contacto y redes */
    .contacto,
    .redes {
        display: flex;
        flex-direction: column; /* Cambiar a columna */
        gap: 1rem;
        width: 100%;
    }

    .contacto a,
    .redes a {
        align-items: flex-start;
        gap: 0.3rem;
        font-size: 1rem;
    }

    .contacto i,
    .redes i {
        font-size: 1rem;
    }

}



/* ====== ESTILOS PARA EL NAVEGADOR DE INSTAGRAM ====== */
@media screen and (max-width: 820px) and (min-width: 360px) {

    /* Asegurar que el nav no se corte */
    nav {
        height: auto;
        padding: 1rem;
    }

    nav .logo img {
        width: 200px;
        height: auto;
    }

    .hero {
        height: 60vh;
        text-align: center;
    }

    .hero-text {
        font-size: 2.5rem;
    }

    /* Ajustes para el footer */
    footer {
        padding: 1rem;
    }

    .footer-left {
        text-align: center;
    }

    .footer-left img {
        width: 200px;
    }

    .footer-contact {
        justify-content: center;
    }

    .footer-right form {
        width: 90%;
    }

    .footer-right input,
    .footer-right textarea {
        width: 100%;
    }

}

