/* Estilos adicionales para el navbar */

/* Contenedor del navbar para centrar y dejar espacio a los lados */
.navbar-container {
    display: flex;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: white;
    margin: 0;
    padding: 0;
    transition: opacity 0.5s ease; /* Transición de opacidad */
}

/* Ocultar las secciones por defecto */
.section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Mostrar la sección activa */
.section.active {
    display: block;
    opacity: 1;
}


/* Espaciado para evitar que el contenido se superponga al navbar */
.body-padding {
    padding-top: 100px;
}

.navbar {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: -0.6rem;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    width: 100%;
    border-top: 1px solid #000;
    padding-top: 0.5rem;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: #434242;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    display: inline-block;
}

.nav-link:hover {
    color: #fff;
    transform: scale(1.1);
}

.logo-img {
    max-width: 100%;
    height: auto;
    width: 200px;
}

@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link:hover {
        transform: none;
    }
}

/* Fin diseño Navbar */





/* Diseño Texto "Imagina y Creamos" */
/* Estilos del contenedor */
.nosotros-container {
    width: 80%; /* Ancho del contenedor */
    max-width: 900px; /* Máximo ancho para pantallas grandes */
    padding: 30px; /* Separación en los bordes laterales e internos */
    text-align: justify; /* Justificar el texto */
    align-items: center;
    line-height: 1.6; /* Espaciado entre líneas para mejor legibilidad */
    margin: 0 auto; /* Asegura centrado horizontal en caso de no usar flex */
    animation: fadeIn 1s ease-in-out forwards; /* Cambié el nombre de la animación */
}

/* Definición de la animación (solo desvanecimiento, sin deslizamiento) */
@keyframes fadeIn {
    0% {
        opacity: 0; /* Comienza invisible */
    }
    100% {
        opacity: 1; /* Termina completamente visible */
    }
}
/* Estilos para los títulos */
.nosotros-container h1 {
    color: #333;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 35px;
    text-align: center; /* Centrar el título */
}

/* Estilos para los párrafos */
.nosotros-container p {
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    margin-bottom: 40px; /* Espaciado entre párrafos */
}
/* Fin del Diseño Texto "Imagina y Creamos" */



/* Carrusel home */
#carouselArquitectos.carousel {
    max-height: 450px !important;
    margin-top: 3px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px !important;
}

#carouselArquitectos .carousel-item img {
    object-fit: cover !important;
    height: 450px !important;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#carouselArquitectos .overlay {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 28px !important;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    max-width: 70% !important;
    word-wrap: break-word !important;
}

.carousel-caption {
    display: none !important;
}

@media (max-width: 1200px) {
    #carouselArquitectos.carousel {
        width: 90%;
    }

    #carouselArquitectos .overlay {
        font-size: 24px !important;
        padding: 12px 18px !important;
        bottom: 15px !important;
        text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    }
}

@media (max-width: 992px) {
    #carouselArquitectos.carousel {
        width: 85%;
        max-height: 350px !important;
    }

    #carouselArquitectos .carousel-item img {
        height: 350px !important;
    }

    #carouselArquitectos .overlay {
        font-size: 20px !important;
        padding: 10px 15px !important;
        bottom: 12px !important;
        text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    }
}

@media (max-width: 768px) {
    #carouselArquitectos.carousel {
        max-height: 260px !important;
        margin-top: 60px;
        width: 90%;
        margin-bottom: 30px !important;
    }

    #carouselArquitectos .carousel-item img {
        height: 260px !important;
    }

    #carouselArquitectos .overlay {
        font-size: 18px !important;
        padding: 8px 12px !important;
        bottom: 10px !important;
        max-width: 60% !important;
        text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    }
}

@media (max-width: 576px) {
    #carouselArquitectos.carousel {
        max-height: 220px !important;
        width: 100%;
        margin-bottom: 20px !important;
    }

    #carouselArquitectos .carousel-item img {
        height: 220px !important;
    }

    #carouselArquitectos .overlay {
        font-size: 16px !important;
        padding: 6px 10px !important;
        bottom: 8px !important;
        max-width: 50% !important;
        text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    }
}

.carousel-caption .btn-primary {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.carousel-caption .btn-primary:hover {
    background-color: #FFFFFF;
    color: #1E3A8A;
    border-color: #1E3A8A;
}

.display-5 {
    font-family: 'Montserrat', sans-serif;
}

.btn-outline-primary {
    border-color: #1E3A8A;
    color: #1E3A8A;
}

.btn-outline-primary:hover {
    background-color: #1E3A8A;
    color: #FFFFFF;
}

.btn-primary {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.btn-primary:hover {
    background-color: #FFFFFF;
    color: #1E3A8A;
    border-color: #1E3A8A;
}

/* Frase Impactante Home */
.border-top-bottom {
    margin-top: 8.5rem;
    margin-bottom: 2.5rem;
}

.border-top-bottom.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

@media (max-width: 768px) {
    .border-top-bottom {
        margin-top: 2rem;
    }
}

/* Fin de Frase Impactante */






/* Diseño Servicios Home */

/* Estilo para los títulos h1 y h2 en Servicios, sin afectar otras secciones */
/* Animación específica para los títulos */
.titulo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    color: #4a2c2a;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    opacity: 0; /* Inicialmente invisible */
    animation: fadeInText 1.1s ease-out forwards; /* Aparece con la animación */
}

.titulo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #4a2c2a;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0; /* Inicialmente invisible */
    animation: fadeInText 1s ease-out forwards; /* Aparece con la animación */
    animation-delay: .2s; /* Retraso para que aparezca después del h1 */
}

/* Animación de desvanecimiento */
@keyframes fadeInText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Inicialmente invisible */
.services-title-container {
    opacity: 0;
    transform: translateY(30px); /* Desplazamiento inicial */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Cuando se hace visible */
.services-title-container.visible {
    opacity: 1;
    transform: translateY(0); /* Vuelve a su posición original */
}

/* Asegurar que las fuentes sean coherentes en otros estilos si es necesario */
body {
    font-family: 'Raleway', sans-serif; /* Fuente general ligera y moderna */
}

/* El resto del CSS para .service-card, .container.bg-light, etc., permanece sin cambios */
.service-card {
    width: 400px;
    height: 608px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.service-card .service-image-container {
    width: 100%;
    height: 55%;
    background-color: #ccc;
}

.service-card .service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .service-text {
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #371b1b39;
    text-align: center;
    padding: 10px;
}

.service-card .service-text .service-title {
    font-size: 28px;
    font-weight: bold;
    color: #373535;
    transition: font-size 0.3s ease;
    margin-top: -9%;
}

.service-card .service-text .service-subtitle {
    font-size: 16px;
    color: #6f6f6f;
    margin-top: 15px;
}

.service-card .service-text .service-title.hidden,
.service-card .service-text .service-subtitle.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.service-card .service-text .service-title.visible,
.service-card .service-text .service-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.container .row .col a {
    text-decoration: none;
    color: inherit;
}

.container.bg-light {
    background-color: #ffffff !important;
    padding: 0px 0 !important;
    min-height: 760px !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 30px !important;
}

.container .row {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 760px !important;
}

.container .row .col {
    flex: 0 0 auto !important;
    width: 400px !important;
    max-width: 400px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 25px !important;
    padding: 0 !important;
}

/* Fin de Diseño Servicios Home */





/* Diseño frase motivadora */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container-frase-motivadora {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    background-color: #371b1b39;
    padding: 20px 0;
}

.image-container {
    position: relative;
    max-width: 62%;
    width: 100%;
    box-shadow: 0 4px 8px rgba(100, 100, 100, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.quote {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 22px 32px;
    border-radius: 5px;
    max-width: 420px;
    width: 100%;
}

.quote p {
    margin: 0;
    font-size: 24px;
}

.quote p:last-child {
    font-size: 20px;
    text-align: right;
    font-style: italic;
}

/* Media Queries para responsividad */
@media (max-width: 1200px) {
    .container-frase-motivadora {
        min-height: 45vh;
    }
    .image-container {
        max-width: 67%;
    }
    .quote {
        bottom: 15px;
        right: 15px;
        padding: 16px 26px;
        max-width: 360px;
        font-size: 20px;
    }
    .quote p:last-child {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .container-frase-motivadora {
        min-height: 40vh;
    }
    .image-container {
        max-width: 72%;
    }
    .quote {
        bottom: 10px;
        right: 10px;
        padding: 14px 22px;
        max-width: 320px;
        font-size: 18px;
    }
    .quote p:last-child {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container-frase-motivadora {
        min-height: 40vh;
        flex-direction: column;
        padding: 8px 0;
    }
    .image-container {
        max-width: 80%;
        margin-bottom: 10px;
    }
    .quote {
        position: static;
        background-color: rgba(0, 0, 0, 0.5) !important;
        color: white !important;
        padding: 6px 12px !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 14px !important; /* Agrandar la frase principal de 10px a 12px */
    }
    .quote p {
        font-size: 14px !important; /* Asegurar que el primer <p> se agrande */
    }
    .quote p:last-child {
        font-size: 12px !important; /* Mantener "Frank Gehry" */
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .container-frase-motivadora {
        min-height: 30vh;
    }
    .image-container {
        max-width: 55%;
    }
    .quote {
        font-size: 12px !important; /* Agrandar la frase principal de 8px a 10px */
    }
    .quote p {
        font-size: 12px !important;
    }
    .quote p:last-child {
        font-size: 10px !important; /* Mantener "Frank Gehry" */
    }
}

/* Fin del diseño frase motivadora */





/* Diseño del formulario de contacto */
section.py-5 {
    background-color: transparent !important;
}

.contact-container {
    display: flex;
    flex-direction: row; /* Disposición horizontal */
    justify-content: space-between; /* Separar texto y formulario */
    align-items: flex-start; /* Alineación vertical en la parte superior */
    padding: 30px !important;
    min-height: 600px !important;
    width: 95vw !important;
    max-width: 1300px;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    background-color: #371b1b39;
    border-radius: 1.4rem;
    gap: 40px; /* Espaciado entre la columna izquierda y el formulario */
}

/* Estilo para la columna izquierda */
.contact-container .col-md-5:first-child {
    flex: 1; /* Tamaño proporcional automático */
    max-width: 38%; /* Reducir ancho máximo al 38% */
}

/* Estilo para la columna derecha (formulario) */
.contact-container .col-md-5:nth-child(2) {
    flex: 1; /* Tamaño proporcional automático */
    max-width: 58%; /* Ajustar el ancho máximo */
    opacity: 1; /* Siempre visible */
    transform: none; /* Sin transformaciones */
    transition: none; /* Sin animación ni efectos */
    margin-right: 10px; /* Agregar separación del borde derecho */
}

/* Efecto de desvanecimiento en la columna izquierda */
.contact-container .col-md-5:first-child > * {
    opacity: 0; /* Ocultar inicialmente */
    transform: translateY(20px); /* Ligeramente desplazado hacia abajo */
    transition: opacity 1s ease, transform 1s ease; /* Transición rápida */
}

/* Mostrar título */
.contact-container .col-md-5:first-child > *:nth-child(1).visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Título sin retraso */
}

/* Mostrar el resto del contenido como un bloque */
.contact-container .col-md-5:first-child > *:not(:nth-child(1)).visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* Resto aparece después de 0.3 segundos */
}

/* Estilo del texto en la columna izquierda */
.contact-container .text-dark {
    color: #4a2c2a;
    font-size: 30px;
    text-align: left;
}

.contact-container .text-muted {
    font-size: 16px;
    margin-top: 2rem;
    text-align: left;
}

.contact-container .text-dark.mb-2 {
    font-size: 15px;
    margin-top: 4rem;
    text-align: left;
}

/* Estilo personalizado para las etiquetas */
.contact-container .form-label {
    text-align: left;
    font-size: 16px;
    margin-bottom: 4px;
}

/* Estilo por defecto de los campos */
.custom-input {
    border: none;
    border-bottom: 1px solid #4a2c2a;
    background-color: transparent;
    width: 100%;
    height: 60px;
    padding: 0;
    text-align: justify;
    color: #4a2c2a;
    font-size: 16px;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.custom-input:hover {
    border: 1px solid #4a2c2a
}

/* Fondo rojo para errores */
.custom-input.error,
.custom-textarea.error {
    background-color: #9f848933;
    border: 1px solid #e63946;
}

/* Restaurar el borde cuando se enfoca */
.custom-input:focus,
.custom-textarea:focus {
    outline: none;
    border: 2px solid #4a2c2a;
}

/* Estilo del placeholder */
.custom-input::placeholder,
.custom-textarea::placeholder {
    color: #6c757d;
    opacity: 1;
    font-size: 15px;
    text-align: left;
}

.custom-input:focus {
    outline: none;
    border-bottom: 2px solid #4a2c2a;
    text-align: left;
}

/* Estilo personalizado para la textarea */
.custom-textarea {
    border: none;
    border-bottom: 1px solid #4a2c2a;
    background: transparent;
    width: 100%;
    height: 100px;
    padding: 5px 10px;
    text-align: left;
    color: #4a2c2a;
    font-size: 15px;
    resize: none;
    transition: border 0.3s ease;
}

.custom-textarea:hover {
    border: 1px solid #4a2c2a;
}

.custom-textarea:focus {
    outline: none;
    border: 2px solid #4a2c2a;
}

/* Botón personalizado con tono marrón rojizo/vino */
.btn-custom {
    background-color: #4a2c2a !important;
    color: white !important;
    border: none;
    padding: 8px 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.btn-custom:hover {
    background-color: #3a221f;
}

/* Texto inferior */
.contact-container .text-center.text-muted {
    font-size: 12px;
}

/* Ajustes responsivos */
@media (max-width: 767.98px) {
    .contact-container {
        flex-direction: column; /* Cambiar a disposición vertical en pantallas pequeñas */
        gap: 20px; /* Espaciado menor entre columnas */
    }
    .contact-container .col-md-5 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 15px;
    }
    .custom-input, .custom-textarea {
        width: 100%;
    }
}

/* Fin del Diseño Formulario */







/* Extras */
.boton-ovalado {
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 25px;
    padding: 8px 55px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.boton-ovalado:hover {
    background-color: black;
    color: white;
}

.boton-ovaladoSelect {
    background-color: black;
    color: white;
    border: 1px solid white;
    border-radius: 25px;
    padding: 8px 55px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.boton-ovaladoSelect:hover {
    background-color: white;
    color: rgb(0, 0, 0);
}

.hidden {
    display: none;
}

/* Diseño Chat bot */
#chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#chat-container.hidden {
    display: none;
}

#chat-header {
    background: linear-gradient(135deg, #00b0ff, #007bff);
    color: white;
    padding: 12px 25px;
    text-align: center;
    font-weight: bold;
    position: relative;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-header span {
    font-size: 18px;
    margin-right: auto;
}

#close-chat {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff4081;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-chat:hover {
    color: #ff80ab;
}

#chat-header:hover {
    background: linear-gradient(135deg, #0091ea, #005cb2);
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
}

#user-input-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#user-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #7c7c7d;
    border-radius: 100px;
    font-size: 14px;
    outline: none;
}

#user-input:focus {
    border-color: #0056b3;
}

#send-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

#send-btn:hover {
    background: #0056b3;
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 40%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#chat-toggle:hover {
    background: #0056b3;
}

#card-justify {
    text-align: justify;
}

