*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.montserrat{
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    color: #000000;
}

body{
    background-color: rgb(46, 46, 46);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.margennav {
    margin-top: 150px !important;
    padding-top: 0 !important;
}

.negro{
    color: #000000;
}

.navbar{
    top: 0;
    position: fixed;
    padding: 0;
    z-index: 1000;
    background-color: rgb(22, 22, 22);
    width: 100%;
}

.navbar .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar a:hover{
    color: #858585;
}

.nav-link:hover {
    color: #d12600 !important;
}

.logo{
    width: 100px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-toggler{
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus{
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.sombra-nav{
    box-shadow: 0px 2px 5px 0px rgb(0, 0, 0)!important;
}

h1{
    font-size: clamp(2rem, 5vw, 40px);
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1rem;
}

h2{
    font-size: clamp(1.25rem, 3vw, 25px);
    color: #ffffff;
    font-weight: 600;
}

h3{
    font-size: clamp(1rem, 2.5vw, 20px);
    color: #c4c4c4;
    font-weight: 500;
}

header {
    width: 100%;
    margin-bottom: 2rem;
    display: block;
    padding: 0 15px;
}

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

.menuhamb{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero{
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 2px 2px 10px #ffffff32;
    margin-top: 80px;
    border-radius: 8px;
}

a{
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton{
    margin-top: auto;
    color: #ffffff;
    font-size: 1rem;
    background-color: #858585;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.boton:hover{
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.botonheader{
    transition: all 0.3s ease;
}

.present{
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.ediciones {
    display: flex;
    flex-direction: column;
    background-color: #5a5a5a;
    min-width: 300px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.imgedic {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    flex-shrink: 0;
}

.ediciones .contenido {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.ediciones h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

.ediciones h3 {
    color: #c4c4c4;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.ediciones p {
    color: #c4c4c4;
    margin: 0;
    font-size: small;
    line-height: 1.5;
}

.ediciones .boton {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ediciones:hover .boton {
    opacity: 1;
    transform: translateY(0);
}

.ediciones:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.textoedic{
    background-color: rgba(141, 141, 141, 0.9);
}

.lista p {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: rgb(22, 22, 22);
    padding: 1rem 0;
    margin: 0;
    width: 100%;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1320px;
}

footer p {
    margin: 0;
    color: rgb(211, 211, 211);
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: rgb(211, 211, 211);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgb(255, 255, 255);
}

.footerlogos {
    height: 20px;
    display: flex;
    gap: 1rem;
}

.footerlogos img {
    transition: transform 0.3s ease;
    height: 20px;
    width: auto;
}

.footerlogos img:hover {
    transform: scale(1.1);
}

main {
    width: 100%;
    padding: 0 15px;
}

#banner-container {
    width: 100%;
    padding: 0;
    margin-bottom: 1rem;
}

#banner-container header {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

#banner-container header:hover {
    transform: scale(1.02);
}

#banner-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 8px;
    object-fit: cover;
}

/* Estilos para la sección de texto */
section.p-5.negro {
    margin-bottom: 0;
    padding-bottom: 3rem;
}

section.p-5.negro:hover {
    transform: none;
}

section.p-5.negro h1 {
    color: rgb(255, 255, 255);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: none;
}

section.p-5.negro p {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    transition: none;
}

/* Ajustes para el footer */
footer {
    margin-top: 0;
    padding-top: 2rem;
}

/* Ajustes para el contenedor principal */
.container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ajustes para el botón CTA */
.text-center.mt-4 {
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .margennav {
        margin-top: 80px;
    }

    header {
        margin-bottom: 1.5rem;
    }

    header img {
        max-height: none;
    }

    .ediciones {
        min-width: 100%;
        height: auto;
        min-height: 400px;
        margin-bottom: 1rem;
        padding: 1.25rem;
    }

    .ediciones h2 {
        font-size: 1.2rem;
    }

    .ediciones h3 {
        font-size: 1rem;
    }

    .ediciones p {
        font-size: 0.8rem;
    }

    .imgedic {
        height: 300px;
    }

    .boton {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .navbar .container-fluid {
        padding: 0.5rem 15px;
    }

    .logo {
        width: 80px;
    }

    #banner-container img {
        max-height: 200px;
    }

    section.p-5.negro {
        padding: 3rem 2rem;
    }

    section.p-5.negro h1 {
        font-size: 2rem;
    }

    section.p-5.negro p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .margennav {
        margin-top: 70px;
    }

    header {
        margin-bottom: 1rem;
    }

    header img {
        max-height: none;
    }

    .ediciones {
        min-height: 350px;
        padding: 1rem;
        border-radius: 8px;
    }

    .ediciones h2 {
        font-size: 1.1rem;
    }

    .ediciones h3 {
        font-size: 0.9rem;
    }

    .ediciones p {
        font-size: 0.75rem;
    }

    .imgedic {
        height: 280px;
        border-radius: 6px;
    }

    .boton {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .logo {
        width: 70px;
    }

    .footerlogos {
        justify-content: center;
        margin-bottom: 1rem;
    }

    footer .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    footer p {
        text-align: center;
        width: 100%;
    }

    footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    #banner-container img {
        max-height: 150px;
    }

    section.p-5.negro {
        padding: 1.5rem 0;
    }

    .content-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    section.p-5.negro h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    section.p-5.negro p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .language-selector {
        margin-top: 2rem;
    }

    .language-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .language-switch-container {
        gap: 0.8rem;
    }

    .language-switch {
        width: 50px;
        height: 25px;
    }

    .language-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .language-slider:before {
        transform: translateX(25px);
    }

    .language-labels {
        font-size: 0.7rem;
        padding: 0 6px;
    }
}

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación específica para el banner */
header.fade-in {
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

header.fade-in.show {
    transform: translateY(0);
}

/* Selector de idioma mejorado */
.language-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto 2rem auto;
    max-width: 350px;
}

.language-title {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.language-switch-container {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    justify-content: center;
    width: 100%;
}

.language-label {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.01em;
    opacity: 1;
}

.language-switch {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 36px;
}

.language-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.language-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .3s;
    border-radius: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.language-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

input:checked + .language-slider {
    background-color: #222;
}

input:checked + .language-slider:before {
    transform: translateX(32px);
}

@media (max-width: 576px) {
    .language-selector {
        margin: 1.5rem auto 1rem auto;
        max-width: 98vw;
    }
    .language-title {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    .language-switch-container {
        gap: 1.2rem;
    }
    .language-label {
        font-size: 0.85rem;
        min-width: 60px;
    }
    .language-switch {
        width: 48px;
        height: 26px;
    }
    .language-slider:before {
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
    }
    input:checked + .language-slider:before {
        transform: translateX(20px);
    }
}

.lang-content {
    margin: 0 auto;
}

.content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lang-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.lang-content p:last-child {
    margin-bottom: 0;
}

.botonheader {
    min-width: 200px;
    transition: all 0.2s ease;
    margin-top: 2rem;
}

.botonheader:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .language-title {
        font-size: 0.9rem;
    }
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .content-wrapper {
        max-width: 1140px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    section.p-5.negro {
        padding: 1.5rem 0;
    }

    .content-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Estilos para las tarjetas */
.card {
    background-color: #4d4c4c;
    width: 100%;
    height: 640px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contenido {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    min-height: 320px;
    background-color: #4d4c4c;
}

.contenido h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.2;
}

.contenido h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.contenido p {
    padding: 0;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1rem;
}

.boton {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #666363;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1.5rem;
}

.boton:hover {
    background-color: #7a7a7a;
    color: #fff;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .card {
        height: 660px;
        background-color: #4d4c4c;
    }
    
    .imgedic {
        height: 300px;
    }
    
    .contenido {
        background-color: #4d4c4c;
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .card {
        height: 640px;
        background-color: #4d4c4c;
    }
    
    .imgedic {
        height: 360px;
    }
    
    .contenido {
        background-color: #4d4c4c;
        min-height: 280px;
        padding: 1rem;
    }
    
    .contenido h2 {
        font-size: 1.1rem;
    }
    
    .contenido h3 {
        font-size: 1rem;
    }
    
    .contenido p {
        font-size: 0.8rem;
    }
}
