/* === 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;
    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);
}
.nav-item {
    display: flex;
    align-items: center;
}
.nav-link {
    font-family: "Oswald", serif;
    padding: 5px 25px;
    color: #4D4D4D;
    cursor: pointer;
    white-space: nowrap;
    transition-duration: 0.3s;
    border-right: solid 2px #C6C6C6;
    width: 120px;
}
.nav-link.active {
    color: #EA3325;
}
.nav-item:last-child .nav-link {
    border-right: none;
}
.nav-link.nav-link-wrapper{
    padding: 5px 20px;
    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/nosotros/hero-nosotros.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: black;
    border-bottom: solid 8px #ECECEC;
    position: relative;
    color: white;
}
.masthead h1{
    margin-bottom: 30px;
}
.masthead p{
    font-size: 1.5rem;
}

/* === SECCIÓN HISTORIA === */
.historia-container{
    padding: 80px 0px;
}
.historia-img{
    padding: 0px;
}
.historia-img img{
    width: 400px;
}
.historia-hr{
    background-color: #6F201C;
    height: 3px;
    margin: 40px 0px;
    opacity: 1;
}
.historia-text button{
    margin: 20px 10px;
    width: 220px;
    padding: 20px 0px;
    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);
}
.historia-text button:hover{
    transform: translateY(-10px);
    background-color: #6F201C;
    box-shadow: 0px 14px 29px -12px rgba(111,32,28,0.75);
}

/* === SECCIÓN MISIÓN Y VISIÓN === */
.mision-container-wrapper{
    background: linear-gradient(to right, rgba(239,239,239,1) 0%, rgba(239,239,239,1) 50%, rgba(219,219,219,1) 50%, rgba(219,219,219,1) 100%);
}
#mision-1{
    padding: 80px 80px 80px 0px;
}
#mision-2{
    padding: 80px 0px 80px 80px;
}
.mision-hr{
    background-color: #6F201C;
    height: 3px;
    margin: 20px 0px;
    opacity: 1;
}

/* === SECCIÓN VALORES Y RESPALDO === */
.valores-container-wrapper{
    background-color: #212121;
    padding-bottom: 80px;
    padding-top: 80px;
}
.valores-container{
    margin-top: 0px;
}
.valor-card-wrapper{
    padding: 20px;
}
.valor-card{
    width: 200px;
    height: 200px;
    padding: 60px 0px;
    background-color: #E6E6E6;
    border-radius: 50%;
    margin: 0 auto; /* Centrar las tarjetas */
}
.valor-card-wrapper p{
    font-weight: 600 !important;
    margin-top: 20px;
    color: white;
}
.valor-card img{
    width: 50%;
}
.respaldo-container{
    color: white;
    margin-top: 80px;
}

/* === SECCIÓN SERVICIOS CTA === */
.servicios-container-wrapper{
    height: 500px;
    background-image: url(../img/nosotros/servicios-bg.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    padding: 180px 0px;
}
.servicios-container-wrapper button{
    margin: 20px 10px;
    width: 220px;
    padding: 20px 0px;
    background-color: #6F201C;
    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);
}
.servicios-container-wrapper button:hover{
    transform: translateY(-10px);
    background-color: white;
    color: #6F201C;
    box-shadow: 0px 14px 29px -12px rgba(0,0,0,0.75);
}

/* === FOOTER (ESTILOS RESTAURADOS) === */
footer{
    padding: 30px 0px;
    background-color: white;
    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;
        padding: 1rem 0;
    }
    .nav-link {
        border-right: none;
        padding: 12px 15px;
        width: 100%; /* Solución para centrar y extender línea */
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .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;
        width: 100%;
    }
    .dropdown-item {
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* --- AJUSTES GENERALES PARA TABLET Y MÓVIL --- */
@media (max-width:1024px) {
    .masthead {
        height: 550px;
        padding-top: 230px;
    }
    .historia-container{
        padding: 80px 40px;
    }
    .historia-img img{
        width: 300px;
        margin-bottom: 40px;
    }
    .mision-container-wrapper{
        background: linear-gradient(to bottom, rgba(239,239,239,1) 0%, rgba(239,239,239,1) 50%, rgba(219,219,219,1) 50%, rgba(219,219,219,1) 100%);
    }
    #mision-1, #mision-2 {
        padding: 80px 40px;
    }
    .valor-card-wrapper{
        padding: 20px;
        margin-bottom: 20px;
    }
    .respaldo-container{
        padding: 0 40px;
    }
    .servicios-container-wrapper{
        height: auto;
        padding: 100px 40px;
    }
    .servicios-container-wrapper h1{
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 32px;
    }
    .historia-text {
        text-align: center;
    }
}