/* === ESTILOS GENERALES === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    background-color: white;
}
button {
    border: initial;
    background: initial;
    color: initial;
    padding: initial;
    margin: initial;
    text-decoration: initial;
}
a:link {
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}
a button{
    margin: 0;
    padding: 0;
    display: inline;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
}
textarea {
    resize: none;
}
a:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: auto;
}
h1{
    font-family: "Oswald", serif;
    font-size: 38px;
    font-weight: 600;
}
h2{
    font-family: "Oswald", serif;
    font-size: 20px;
    font-weight: 400;
}
h3{
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
}
p{
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
*:focus {
    outline: none;
}
.navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* === CONTENEDORES FLOTANTES === */
.social-container{
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1031; /* Aumentado para estar sobre el menú fijo */
    cursor: pointer;
    transition-duration: 0.3s;
}
.social-container img{
    margin-bottom: 5px;
    border-radius: 8px 0px 0px 8px;
}

/* === MENÚ DE NAVEGACIÓN === */
.menu{
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100px;
    background-color: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Estilos para los enlaces del menú */
.nav-item {
    display: flex;
    align-items: center;
}
.nav-link {
    font-family: "Oswald", serif;
    padding: 5px 25px; /* Se quitó !important */
    color: #4D4D4D;
    cursor: pointer;
    white-space: nowrap;
    transition-duration: 0.3s;
    border-right: solid 2px #C6C6C6;
    width: 120px;
    text-align: center;
}
.nav-item:last-child .nav-link {
    border-right: none;
}
.nav-link.nav-link-wrapper{
    padding: 5px 20px; /* Se quitó !important */
    background: #555555;
    color: white;
    border-radius: 300px;
    margin-left: 20px;
    transition-duration: 0.3s;
    border: none;
}
.nav-link.nav-link-wrapper:hover{
    background: #6F201C;
    color: white;
}
.navbar-brand{
    height: 100px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.navbar-brand img{
    height: 42px;
}
.dropdown-menu {
    border-radius: 0;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dropdown-item {
    font-family: "Oswald", serif;
    color: #4D4D4D;
    padding: 10px 20px;
}
.dropdown-item:hover {
    background-color: #6F201C;
    color: white;
}


/* === ENCABEZADO === */
.masthead {
    height: 750px;
    padding-top: 350px;
    box-sizing: border-box;
    overflow: hidden;
    background-image: url(../img/index/banner-home.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: solid 8px #ECECEC;
    position: relative;
    color: white;
}
.masthead h1{
    margin-bottom: 30px;
}

/* === SECCIÓN NOSOTROS === */
.nosotros-container{
    padding: 120px 0px;
}
.nosotros-hr{
    background-color: #6F201C;
    height: 3px;
    opacity: 1;
    margin: 40px 0px;
}
.nosotros-card{
    height: 200px;
    box-sizing: border-box;
    background-color: #333333;
    color: white;
    border-radius: 10px;
    border: solid 2px white;
    padding: 20px;
    margin-top: 40px;
    background-size: cover;
}
#nosotros-card-1{ background-image: url(../img/index/nosotros-card-1.png); }
#nosotros-card-2{ background-image: url(../img/index/nosotros-card-2.png); }
#nosotros-card-3{ background-image: url(../img/index/nosotros-card-3.png); }
.nosotros-img{
    padding: 50px;
}
.nosotros-img img{
    width: 100%;
}

/* === SECCIÓN ÁREAS DE ESPECIALIZACIÓN === */
.area-row{
    margin-top: 80px;
}
.area-card-row{
    margin-top: 40px;
}
.area-card{
    height: 400px;
    border-radius: 10px;
    border: solid 4px white;
    padding: 0px;
    overflow: hidden;
    box-sizing: border-box;
    color: white;
}
.area-card-img{
    height: 300px;
    background-size: cover;
    margin-bottom: 20px;
}
.area-card-text{
    padding: 0px 20px;
}
#area-card-1{ background-color: #333333; }
#area-card-1 .area-card-img{ background-image: url(../img/index/area-1.png); }
#area-card-2{ background-color: #6F201C; }
#area-card-2 .area-card-img{ background-image: url(../img/index/area-2.png); }
#area-card-3{ background-color: #333333; }
#area-card-3 .area-card-img{ background-image: url(../img/index/area-3.png); }
#area-card-4{ background-color: #6F201C; }
#area-card-4 .area-card-img{ background-image: url(../img/index/area-4.png); }

.nosotros-cta-row{
    margin-top: 60px;
    padding: 0px 120px;
}
.nosotros-cta-row button{
    margin: 20px 10px;
    padding: 20px 30px;
    background-color: #333333;
    border-radius: 100px;
    color: white;
    font-family: "Oswald", serif;
    transform: translateY(0px);
    transition-duration: 0.3s;
    box-shadow: 0px 14px 29px -12px rgba(111,32,28,0);
}
.nosotros-cta-row button:hover{
    transform: translateY(-10px);
    background-color: #6F201C;
    box-shadow: 0px 14px 29px -12px rgba(111,32,28,0.75);
}

/* === SECCIÓN EXPERIENCIA === */
.experienca-container-wrapper{
    background-color: #1A1A1A;
    padding: 100px 0px 300px 0px;
}
.experiencia-container{
    color: white;
}
.experiencia-title-row{
    padding: 0px 180px;
}
.experiencia-hr{
    background-color: #6F201C;
    height: 3px;
    opacity: 1;
    margin: 40px 0px;
}
.proyecto-row{
    margin-top: 50px;
}
.proyecto-card-l, .proyecto-card-m, .proyecto-card-b {
    background-position: center;
    background-size: cover;
    height: 250px;
    padding: 0px;
    border-radius: 10px;
    overflow: hidden;
}
.proyecto-card-l {
    background-image: url("../img/proyectos/proyecto-1.jpg");
    height: 515px;
}
.proyecto-card-m {
    background-image: url("../img/proyectos/proyecto-3.jpg");
    margin-bottom: 15px;
}
.proyecto-card-b {
    background-image: url("../img/proyectos/proyecto-2.jpg");
}
.proyecto-card-title{
    height: 50px;
    width: 100%;
    display: flex;
}
.proyecto-clase{
    padding: 12px 0px 0px 0px;
    width: 20%;
    background-color: #4D4D4D;
    text-transform: uppercase;
}
.proyecto-titlo{
    padding: 12px 0px 0px 20px;
    width: 80%;
    background-color: #6F201C;
}
.bi-nut{
    margin-right: 10px;
    font-size: 18px;
}

/* === SECCIÓN VIDEO === */
.video-container{
    margin-top: 40px;
    z-index: 10;
}
.video-container video{
    border-radius: 10px;
}

/* === SECCIÓN VENTAJAS (CARRUSEL) === */
.ventajas-container{
    padding: 80px 0px;
}
.ventajas-hr{
    background-color: #6F201C;
    height: 3px;
    opacity: 1;
    margin: 40px 0px;
}
.proceso-card-row{
    overflow: hidden;
    position: relative;
}
.proceso-cards-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
    white-space: nowrap;
    justify-content: center;
    margin: 0 auto;
}
.proceso-card {
    width: 300px;
    padding: 40px;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0 1px;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: break-word;
    background-color: #333333;
    border-radius: 10px;
}
.proceso-card img.ventaja-icon {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}
.proceso-card h5{
    color: white;
}
.proceso-selector{
    padding: 10px 0;
    margin-bottom: 40px;
    text-align: center;
}
.proceso-selector i{
    font-size: 32px;
    cursor: pointer;
    margin: 0 20px;
}
.proceso-card-active {
    opacity: 1;
    transform: scale(1);
}
.proceso-card-inactive{
    opacity: 0.2;
    transform: scale(0.9);
}


/* === SECCIÓN CONTACTO === */
.contacto-hr{
    background-color: #6F201C;
    height: 3px;
    opacity: 1;
    margin: 40px 0px;
}
.contacto-title{
    padding: 0px 180px;
    margin-bottom: 40px;
}
.contacto-card{
    padding: 50px;
    border-radius: 0px 10px 10px 0px;
    background: linear-gradient(to bottom, rgba(111,32,28,1) 0%, rgba(26,24,25,1) 100%);
    color: white;
}
.hr-contacto{
    height: 2px;
    background-color: white;
    opacity: 1;
    margin: 20px 0px 20px 0px;
}
.contacto-whatsapp{
    background-color: #075E54;
    border-radius: 100px;
    font-weight: 600;
    color: white;
    padding: 10px 20px;
    width: auto;
    display: inline-block;
    margin-bottom: 20px;
}
.contacto-card p{
    margin-bottom: 40px;
}
.form-container{
    background-color: #f4f4f4;
    padding: 50px;
    border-radius: 10px 0px 0px 10px;
}
.form-group {
    margin-bottom: 1rem; /* Espaciado entre campos */
}
.form-group input, .form-group textarea {
    border: none;
    background-color: transparent;
    border-bottom: solid 2px #ccc;
    border-radius: 0px;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
   border-bottom-color: #6F201C;
   background-color: transparent;
}
.form-group textarea{
    height: 200px;
}
.btnContacto{
    background-color: #6F201C;
    color: white;
    font-weight: 600;
    padding: 15px 45px;
    border: none;
    border-radius: 100px;
    transition: background-color 0.3s ease;
}
.btnContacto:hover {
    background-color: #555555;
}
.bi-envelope, .bi-telephone {
    background-color: white;
    font-size: 20px;
    color: #6F201C;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === FOOTER === */
.contacto-footer{
    margin-top: -300px;
    height: 800px;
    padding-top: 0;
    background-image: url("../img/index/contacto-bg.jpg");
    background-position: center;
    background-size: cover;
    z-index: -1;
    position: relative;
}
footer{
    padding: 30px 0px;
    background-color: whit;
    color: #1A1A1A;
}
footer img{
    margin-bottom: 20px;
    height: 60px;
}

/* === RESPONSIVE === */

/* --- AJUSTES PARA EL MENÚ MÓVIL (PUNTO DE QUIEBRE LG) --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        background-color: #f8f9fa;
        border-radius: 0.25rem;
        /* === INICIO DE CORRECCIONES === */
        padding: 1rem 0; /* Padding vertical, sin padding horizontal */
        /* === FIN DE CORRECCIONES === */
    }
    .nav-link {
        border-right: none;
        padding: 12px 15px;
        /* === INICIO DE CORRECCIONES === */
        display: block; /* Hace que el enlace ocupe todo el ancho */
        text-align: center; /* Centra el texto */
        border-bottom: 1px solid #ddd; /* Borde inferior consistente */
        width: 100%;
        /* === FIN DE CORRECCIONES === */
    }
    
    /* === INICIO DE CORRECCIONES: Quitar borde del último elemento === */
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    /* === FIN DE CORRECCIONES === */
    
    .nav-link.nav-link-wrapper {
        margin: 0;
        padding: 12px 15px;
        background: transparent;
        color: #4D4D4D;
        border-radius: 0;
    }

    .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: #e9ecef;
        text-align: center;
        /* === INICIO DE CORRECCIONES === */
        width: 100%; /* Asegura que el dropdown ocupe todo el ancho */
        /* === FIN DE CORRECCIONES === */
    }
    .dropdown-item {
        text-align: center;
        border-bottom: 1px solid #ddd; /* Añadir línea también a los sub-items */
    }
    .dropdown-item:last-child {
        border-bottom: none; /* Quitar línea del último sub-item */
    }

}

@media (max-width: 1024px) {
    .masthead {
        height: 550px;
        padding-top: 230px;
    }
    .nosotros-container, .ventajas-container {
        padding: 80px 40px;
    }
    .area-card-row {
        padding: 0px 20px;
    }
    .area-card {
        margin: 0 auto 20px auto; /* Centrar tarjetas y añadir margen inferior */
        max-width: 400px; /* Evitar que se estiren demasiado */
    }
    .nosotros-cta-row {
        padding: 0px;
    }
    .experienca-container-wrapper {
        padding: 80px 40px 80px 40px; /* Reducir padding inferior */
    }
    .experiencia-title-row, .contacto-title {
        padding: 0px;
    }
    .proyecto-card-l-wrapper {
        padding: 0;
    }
    .proyecto-card-l {
        margin-bottom: 15px;
        height: 250px;
    }
    .contacto-card, .form-container {
        border-radius: 10px !important; /* Forzar el radio en ambos */
        margin-bottom: 20px;
    }
    .contacto-footer {
        display: none;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 32px; /* Reducir tamaño de fuente en móviles */
    }
    .masthead {
        height: 450px;
        padding-top: 180px;
    }
    .social-container {
    }
    .nosotros-img {
        padding: 20px;
    }
    .area-card {
        height: 350px;
    }
    .area-card-img {
        height: 250px;
    }
    .proyecto-card-l, .proyecto-card-m, .proyecto-card-b {
        height: 250px;
    }
    .proyecto-clase { width: 30%; }
    .proyecto-titlo { width: 70%; }
    .nosotros-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 350px; /* Limitar ancho en móvil */
    }
    .form-container, .contacto-card {
        padding: 30px; /* Reducir padding en el formulario */
    }
}