/* Básico y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
}

html {
    scroll-behavior: smooth;
}

/* ESTILOS MOVIL */
@media only screen and (max-width: 600px) {

body {
    background-color: white; 
}
/* Estilos para el header con video de fondo */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    /* background-color: white; */
}

#header-publicaciones {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120vh;
    background-image: url(img/sala-frente.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-faq {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/faq.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-publicaciones p {
    /* width: clamp(40%, 50%, 50%); */
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

#header-faq p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

/* configuraciones del video de fondo */
.videofondo {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 100%;
    height: 120vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: white;
}

.imagen-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}


nav {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: fixed;
    top:0;
    width: 100%;
    height: 30vh;
    background: #520300;
    background : linear-gradient(0deg, rgba(82, 3, 0, 0) 0%, rgba(82, 3, 0, 0.14) 15%, rgba(82, 3, 0, .95) 50%);
    z-index: 20;
    /* padding: 3vh 0 0; */
    /* margin: 0 0 900px; */
}

#home {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.parte1 {
    width: 5%;
    height: 15vh;
}

#marca {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 15vh;
}

.parte2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    height: 15vh;
    gap: 6%;
}

/* .parte2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 10vh;
    gap: 4%;
} */

.parte2 a {
    background-color: transparent;
    color: white;
    aspect-ratio: 1 / 1;
    font-size: .5em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 4px 1px 0 0;
    transition: all .25s ease-in-out;
}

.parte2 a:hover {
    transform: scale(1.1);
}

.parte2 .bandera {
    width: 8px;
    height: auto;
    margin: 0 1px 0 0;
    background-color: transparent;
}


#logo {
    width: 100%;
    max-width: 600px;
}

.fa-bars {
    color: white;
    font-size: 2em;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 500; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 30px 32px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  display: block;
  transition: 0.3s;
    background-color: transparent;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #e4d1d1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  background-color: transparent;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#presentaciones {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 54vh;
    background: rgba(255, 206, 196, 0.6);
    background: linear-gradient(180deg, rgba(255, 228, 196, 0) 0%, rgba(255, 228, 196, 0.6) 10%, rgba(255, 228, 196, 0.6) 100%);
    padding: 150px 30px 120px;
    margin: 0 0 0 0;
}

#presentaciones p {
    font-size: 1em;
    text-align: center;
}

    
    /* padding: 13% 0 6%; 
    margin: 0 0 0 0; */

h1 {
    font-family: "Cinzel", serif;
    color: #520300;
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1;
    text-transform: capitalize;
    margin: 0 0 5px;
    text-align: center;
}

p {
    width: 99%;
    color: black;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.2em;
    margin: 8px 0 20px;
    text-align: left;
}

.enfasis {
    color: #520300;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#especial {
    color: #520300;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.1em;
    text-align: center;
}



a {
    color: white;
    background-color: #520300;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.25em;
    margin: 5px 0 0;
    padding: 10px 60px;
    text-decoration: none;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: auto;
    background-color: white;
    font-size: 1.1em;
    border-bottom: 4px solid white;
    padding: 8% 6%;
}

#somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 0 4% 0;
}
#foto-somos-reconocidos{
    width: 100%;
    height: auto;
    background-color: #520300;
}

#texto-somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* background-color: rgb(29, 232, 232); */
    padding: 4%;
}

.imgcover {
    object-fit: cover;
}

.imgresp {
    width: 100%;
    height: auto;
}

.imgresph{
    width: auto;
    height: 100%;
}

h2 {
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
    text-align: center;
    word-wrap:break-word ;
}

.diferenciador{
    font-family: "Cinzel", serif;
    text-align: center;
    color: #800000;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.diferenciador.show {
    opacity: 1;
}

.centrado {
    width: 90%;
    text-align: center;
}

/* foto de todos los socios */
#todos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    background-color: #520300;
} 

.foto-todos {
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
} 

#texto-todos {
    padding: 40px 0;
    color: white;
}

#texto-todos h2 {
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    color: white;
}

#texto-todos h3 {
    font-size: 1.2em;
    font-weight: 400;
    text-align: center;
    color: white;
}

/* Estilos para beneficios */
#diferenciales {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* padding: 0 0 10vh; */
    margin: 0 auto 0;
    background-color: white;
}

.diferencial-izquierdo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* flex-direction: row; */
    width: 100%;
    height: auto;
    /* padding: 10px auto 10px; */
    /* margin: 20px 0 20px; */
    /* background-color: #ffffff; */
}

.diferencial-derecho {
    display:flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    /* flex-direction: row; */
    width: 100%;
    height: auto;
    /* padding: 10px auto 10px; */
    /* margin: 0 0 20px; */
    /* background-color: #ffffff; */
}

.foto-diferencial {
    width: 100%;
    height: auto;
    display: block;
}

.texto-diferencial {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    /* background: #FFE4C4; */
}

.texto-diferencial h3{
    color: #520300;
    text-align: center;
    width: 80%;
    margin: 20px 0 20px 0;
}

.texto-diferencial p, .texto-diferencial ul{
    color: black;
    text-align: center;
    width: 80%;
    margin: 0 0 30px;
}

.texto-diferencial li{
    font-size: 1.1em;
    margin: 2% 0 8%;
}

.texto-diferencial a {
    color: gray;
    font-size: 1.2em;
    font-weight: 900;
    text-align: center;
    width: 60%;
    padding: 0;
    margin: 0 0 40px;
    border-radius: 8px;
    background-color: transparent;
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.texto-diferencial a:hover {
    color: #800000;
}

/*Seccion relaciones*/

#relaciones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 50vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#relaciones h2 {
    width: 80%;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.48em;
    color: white;
    text-transform: none;
}

#relaciones h3 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.3em;
    color: white;
}


/* Estilos para el main */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 0 8%;
    background-color: white;
}

.foto-areas-de-practica {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-color: white;
    text-align: center;
}


.degradado-blanco {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 0;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 82%);
    width: 100%;
    height: 90%;
    z-index: 10;
    padding: 100px 0 2%;
}

.degradado-blanco h2{
    padding: 0;
    margin: 0;
}

#areas-de-practica {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: auto;
    padding: 0;
    margin: 0 0 1%;
    /* background-color: #fc0404; */
    text-align: center;
}

.resaltado {
    font-weight: 700;
    font-size: 1.15em;
}


/*seccion de tarjetas con Áreas de Práctica*/
#tarjetas {
    display: grid;
    width: 90%;
    height: auto;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 1%;
    align-items: flex-start;
    padding: 0 0 0;
    margin: 2% 0 0;
} 

.tarjeta {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 12% 0;
    margin: 0 0 0 0;
    color: rgb(65, 171, 171);
    /* background-color: #FFE4C4; */
    min-height: 225px; 
} 

.monograma {
    padding: 0px;
    text-align: center;
}

.tarjeta h2{
    text-align: center;
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 1.1em;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    letter-spacing: -1;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #520300;
    width: calc(100% - 30px);
}
.tarjeta p{
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: .88em;
    text-align: center;
    padding: 10px;
    margin: 0;
    line-height: 1.5;
}


.tarjeta a{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
}

.tarjeta a:hover{
    text-align: center;
    color: white;
    font-size: 1.2em;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
}

.btn-expandir{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
    cursor: pointer;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 5px auto 15px;
}

.btn-expandir:hover{
    text-align: center;
    color: white;
    font-size: 1.7rem;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
    transform: rotate(90deg);
}

.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 228, 196, 0.5);
    width: 100%;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.9em;
    text-align: center;
}

.contenido-extra.mostrar {
    max-height: 650px;
    padding: 20px;
}

.contenido-extra p {
    padding: 0;
    margin-bottom: 10px;
}

.cerrar-contenido {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #e74c3c;
    cursor: pointer;
    font-weight: 600;
}

.invisible {
    opacity: 0;
}

#socios-perfiles {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    height: 2000px;
    gap: 0%;
    padding: 80px 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-image: url(img/textura-socios.webp);
    background-size: cover;
}

#socios-perfiles h2{
    font-size: 2.5em;
    font-weight: 600;
    color: white;
    letter-spacing: 4px;
    margin: 0 0 40px;
}

#socios-perfiles p{
    font-size: 1.2em;
    color: white;
    text-align: center;
    margin: 0 0 40px;
}

.blanco {
    color: white;
}

.socios {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 350px;
    gap: 10%;
    padding: 0 5%;
    margin: 0 auto 0;
}

.socio {
    position: relative;
    flex:  1;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-between;
    background-color: white;
    overflow: hidden;
    cursor: pointer;
}

.socio h4 {
    position: absolute;
    bottom: 0;
    font-size: 1.05em;
    font-weight: 400;
    background-color:rgba(73, 0, 0, 0.90);
    width: 100%;
    text-align: center;
    color: white;
    padding: 10% 0;
}

/* Imagen normal */
.foto-socio {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/layda.webp');
}

/* Imagen hover */
.foto-socio:hover {
    background-image: url('img/layda-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio1 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/gerardo.webp');
}

/* Imagen hover */
.foto-socio1:hover {
    background-image: url('img/gerardo-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio2 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/oscar.webp');
}

/* Imagen hover */
.foto-socio2:hover {
    background-image: url('img/oscar-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio3 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/enrique.webp');
}

/* Imagen hover */
.foto-socio3:hover {
    background-image: url('img/enrique-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}


/* Estilos para sección extranjero */
.clientes-extranjero {
    display: flex;
    width: 80%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8% 0;
    margin: 0 auto;
}

.clientes-extranjero h2 {
    font-size: 1.4em;
    line-height: 1.4;
    text-align: center;
}

.clientes-extranjero a {
    background-color: transparent;
    margin: 0;
}

.texto-dfk {
    width: 0 auto 0;
}

.texto-dfk p {
    width: 100%;
    text-align: left;
    margin: 0 auto 0;
}

.texto-dfk a {
    margin: 0;
    padding: 0;
}

.logo-dfk {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 4% 0;
}

.dfk-tablero-premios {
    width: 100%;
    height:  auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0 2%;
    gap: 10%;
}

.dfk-premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dfk-icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 90px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.dfk-premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0 0 4%;
}

.dfk-premio p{
    text-align: center;
    color: black;
    font-style: normal;
}

.especial {
    color: black;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.1em;
    text-align: left;
}

/* Estilos para premios */
.premios {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 4% 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-color: #700101;
    background-image: url(img/textura-premiois.webp);
    background-size: cover;
    color: white;
    text-align: center;
}

.tablero-premios {
    width: auto;
    height: 40%;
    display: grid;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0;
}

.premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10%;
}

.premio a{
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 110px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.premios h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    margin: 0 0;
    word-wrap:break-word 
}

.premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: white;
    margin: 0 0 4%;
}

.premio p{
    font-size: .9em;
    color: #ffffff;
    font-style: normal;
    text-align: center;
}

#integridad {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 30vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#integridad h2 {
    width: 80%;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2em;
    color: white;
    text-transform: none;
    margin: 0;
    padding: 0;
}

/* .formulario {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 0 80px;
    margin: 0;
    background-color: #f2f2f2;
} */

.formulario {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 0 0;
    margin: 0;
    background-image: url(img/textura-gris-grande.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#foto-formulario {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#foto-formulario img {
    width: auto;
    height: 100%; /* Ocupa toda la altura disponible */
    object-fit: cover; /* Escala manteniendo proporciones y recortando si es necesario */
    object-position: center; /* Enfoca el centro de la imagen */
}

.texto-formulario {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 180px;
}

.formulario h2 {
    text-align: center;
    margin: 0 0 4%;
    color: white;
}

.formulario p {
    text-align: center;
    margin: 20px 0 20px 0;
}

.formato {
    display: flex;
    background-color: #f2f2f2;
    justify-content: center;
    padding: 8%;
}


form {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 0 5%;
}

form p {
    width: 100%;
}

label {
    width: 100%;
}

input[type=text], select, input[datetime-local] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #800000;
    color: white;
    padding: 14px;
    margin: 4% 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

footer {
    /* display: flex; */
    width: 100%;
    height: 620px;
    /* flex-direction: column; */
    justify-content: space-evenly;
    align-items: center;
    background-color:#520300;
    margin: 0 0 0;
    color: white;
    padding: 40px;
}

.footer-logo {
    display: block;
    width: 100%;
    margin: 0 auto 40px;
    /* background-color: #45a049; */
}

address {
    width: 100%;
    font-size: .9em;
    font-style: normal;
    text-align: center;
    /* background-color: #e74c3c; */
}

.redes-sociales {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 80px 0 ;
}

.redes-sociales a, address a {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.fa-phone, .fa-envelope, .fa-linkedin {
    font-size: 2em;
    color: white;
    transition: all .25s ease-in-out;
}

.fa-phone:hover, .fa-envelope:hover, .fa-linkedin:hover {
    color: #FFE4C4;
    transform: scale(1.1);
}

dl {
    font-size: .8em;
    margin: 60px 2%;
}

dt {
    margin: 0 0 8%;
    text-align: center;
}

dd {
    padding: 0;
    margin: 0 0 3%;
    text-align: center;
}

footer a {
    padding: 0;
    background-color: transparent;
    transition: color .2s ease-in-out;
    margin: 10px;
}

footer a:hover {
    color: #FFE4C4;
    transform: scale(1.2) rotate(-5deg);
}

        .container {
            max-width: 900px;
            width: 100%;
            margin: 2% auto;
        }

        .container h2 {
            font-size: 1.5em;
            border-bottom: 2px solid #800000;
            padding: 0 0 1%;
            margin: 8% 0 2%;
        }

        .container ul {
            font-size: 1em;
            padding: 0 0 1% 20px;
            margin: 0 0;
        }

        .container li {
            margin: 0 0 2%;
        }
        
        .acordeon {
            background: white;
            border-radius: 8px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .acordeon:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .accordion {
            background: linear-gradient(135deg, #dadfe6 0%, #c3cfe2 100%);
            color: bleckwhite;
            cursor: pointer;
            padding: 30px;
            width: 100%;
            text-align: left;
            border: none;
            outline: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion:hover {
            background: #520300;
            color: white;
        }
        
        .accordion.active {
            background: #520300;
            color: White;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .accordion.active i {
            transform: rotate(180deg);
        }
        
        .panel {
            padding: 0 18px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
            background: #f8f9fa;
        }
        
        .panel.mostrar {
            max-height: 1500px;
            padding: 18px;
        }
        
        .panel p {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: #34495e;
            width: 100%;
        }

        .panel a {
            font-size: 1em;
            color:#800000;
            background-color: transparent;
            width: 100%;
            padding: 0;
            transition: all .5s linear;
        }

        .panel a:hover {
            color:#800000;
            text-decoration: underline;
        }        
        
        .panel p:last-child {
            margin-bottom: 0;
        }

        .titulo-publicacion {
            font-weight: 900;
        }

/*Modal Socios*/

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        align-items: flex-start;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        margin: 0;
        padding: 20px 0;
    }

        .modal.mostrar {
            display: flex;
            opacity: 1;
        }
        
    /* #modalOscar.mostrar, #modalLayda.mostrar,  {
        display: flex;
        opacity: 1;
    }
         */
    .modal-ventana {
            background-color: white;
            border-radius: 24px;
            width: 80%;
            max-height: 85vh;
            overflow: hidden;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
    .modal.mostrar .modal-ventana {
            transform: scale(1);
        }

.foto-modal {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

    .foto-modal img {
        width: 100%;
        height: auto;
        /* max-height: 28vh; controla cuánto ocupa la imagen en móvil */
        object-fit: cover;
        display: block;
    }

.texto-modal{
    position: relative;
  flex: 1 1 auto;         /* ocupa el resto del espacio disponible */
  min-height: 0;          /* CRUCIAL para permitir overflow en children de flex */
  overflow-y: auto;       /* activa el scroll interno */
  -webkit-overflow-scrolling: touch; /* mejor scroll en iOS */
  width: 100%;
  padding: 0 0;
  box-sizing: border-box;
}

.texto-modal a {
    flex:  1 1 auto;
    min-height: 0;
    max-height: 80vh;
    color: goldenrod;
    background-color: transparent;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.25em;
    margin: 0;
    padding: 0;
    transition: all .5s linear;
}

.texto-modal a:hover {
    text-decoration: underline;
}

.arriba {
    width: 100%;
    height: auto;
    background-color: #4B1E1E;
    color: white;
    padding: 8% 4% 2%;
}
    .arriba h2 {
        font-size: 1.4em;
        color: white;
        font-family: "Playfair Display", serif;
        font-weight: 400;
    }

    .arriba p {
        width: 100%;
        color: white;
        font-size: .8em;
        margin: 0 0 10px;
        text-align: center;
    }

.medio{
    padding: 10px 10px 0px 10px;
}

.medio li {
    margin: 20px 0;
}

.medio p {
    width: 100%;
    margin: 10px 0;
    font-size: 1em;
}

    .neg{
        font-weight: 800;
    }
    .sub{
    text-decoration: underline;
    }
    .itl{
    font-style: italic;
    }

    ul{
        margin-left: 20px;
        color: black;
    }

.bajo {

    background-color: #4B1E1E;
    color: white;
}

.bajo {
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid white;
    text-align: center;
    }
        
        .bajo a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            background-color: transparent;
            padding: 0;
            margin: 0;
        }
        
        .bajo a:hover {
            color: #FFE4C4;
        }
        
        .cerrar-modal {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #FFE4C4;
            color:#520300;
            font-weight: 900;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid #FFE4C4;
        }
        
        .cerrar-modal:hover {
            color: white;
            background: #800000;
        }

        .ghost {
            display: none;
        }
}

@media only screen and (min-width: 768px) {

    body {
    background-color: white; 
}
/* Estilos para el header con video de fondo */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    /* background-color: white; */
}

#header-publicaciones {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/sala-frente.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-faq {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/faq.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-publicaciones p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

#header-faq p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

/* configuraciones del video de fondo */
.videofondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: white;
}

.imagen-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}


nav {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: fixed;
    top:0;
    width: 100%;
    height: 30vh;
    background: #520300;
    background : linear-gradient(0deg, rgba(82, 3, 0, 0) 0%, rgba(82, 3, 0, 0.14) 15%, rgba(82, 3, 0, .95) 50%);
    z-index: 20;
    padding: 3vh 0 0;
}

#home {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.parte1 {
    width: 20%;
    height: 10vh;
}

#marca {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 10vh;
}


.parte2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 10vh;
    gap: 4%;
}

.parte2 a {
    background-color: transparent;
    color: white;
    aspect-ratio: 1 / 1;
    font-size: .9em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 4px;
    transition: all .25s ease-in-out;
}

.parte2 a:hover {
    color: white;
    transform: scale(1.1);
}

.parte2 .bandera {
    width: 14px;
    height: auto;
    margin: 0 2px 0 0;
    background-color: transparent;
}



#logo {
    width: 100%;
    max-width: 600px;
}

.fa-bars {
    color: white;
    font-size: 2em;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 500; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 0px 32px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  display: block;
  transition: 0.3s;
    background-color: transparent;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #e4d1d1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  background-color: transparent;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#presentaciones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 36vh;
    background: rgba(255, 206, 196, 0.6);
    background: linear-gradient(180deg, rgba(255, 228, 196, 0) 0%, rgba(255, 228, 196, 0.6) 10%, rgba(255, 228, 196, 0.6) 100%);
    padding: 10% 0 0;
    margin: 0 0 0 0;
}

h1 {
    width: 60%;
    font-family: "Cinzel", serif;
    color: #520300;
    font-weight: 700;
    font-size: 2em;
    line-height: 1;
    text-transform: capitalize;
    margin: 0 0 5px;
    text-align: center;
}

p {
    width: 70%;
    color: black;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.2em;
    margin: 8px 0 20px;
}

.enfasis {
    color: #520300;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#especial {
    color: #520300;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.5em;
    text-align: center;
}



a {
    color: white;
    background-color: #520300;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.25em;
    margin: 5px 0 40px;
    padding: 10px 60px;
    text-decoration: none;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: auto;
    background-color: white;
    font-size: 1.1em;
    border-bottom: 4px solid white;
    padding: 4% 0 4%;
}

#somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 0 4% 0;
}
#foto-somos-reconocidos{
    width: 100%;
    height: auto;
    background-color: #520300;
}

#texto-somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* background-color: rgb(29, 232, 232); */
    padding: 4%;
}

.imgcover {
    object-fit: cover;
}

.imgresp {
    width: 100%;
    height: auto;
}

.imgresph{
    width: auto;
    height: 100%;
}

h2 {
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    font-size: 2em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.diferenciador{
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.diferenciador.show {
    opacity: 1;
}

.centrado {
    width: 44%;
    text-align: center;
}

/* foto de todos los socios */
#todos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    background-color: #520300;
} 

.foto-todos {
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
} 

#texto-todos {
    padding: 40px 0;
    color: white;
}

#texto-todos h2 {
    font-weight: 600;
    text-align: center;
    color: white;
}

#texto-todos h3 {
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    color: white;
}

/* Estilos para beneficios */
#diferenciales {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 15vh;
    margin: 0 0 0 0;
    background-color: white;
}

.diferencial-izquierdo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 5vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.diferencial-derecho {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 5vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.foto-diferencial {
    width: 50%;
    height: auto;
    display: block;
}

.texto-diferencial {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    height: auto;
    padding: 0 0 0 0;
    /* background: #FFE4C4; */
}

.texto-diferencial h3{
    color: #520300;
    text-align: left;
    width: 60%;
    margin: 0 0 4%;
    font-size: 1.3em;
}

.texto-diferencial p, .texto-diferencial ul{
    color: black;
    text-align: left;
    width: 60%;
    margin: 2%;
}

.texto-diferencial li{
    font-size: 1.1em;
    margin: 2% 0 8%;
}

.texto-diferencial a {
    color: gray;
    font-size: 1.2em;
    font-weight: 900;
    text-align: left;
    width: 60%;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background-color: transparent;
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.texto-diferencial a:hover {
    color: #800000;
}

/*Seccion relaciones*/

#relaciones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 30vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#relaciones h2 {
    width: 80%;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.6em;
    color: white;
    text-transform: none;
}

#relaciones h3 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.6em;
    color: white;
}


/* Estilos para el main */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 0 8%;
    background-color: white;
}

.foto-areas-de-practica {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-color: white;
    text-align: center;
}


.degradado-blanco {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 0;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 82%);
    width: 100%;
    height: 40%;
    z-index: 10;
    padding: 0 0 2%;
}

.degradado-blanco h2{
    padding: 0;
    margin: 0;
}

#areas-de-practica {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: auto;
    padding: 0;
    margin: 0 0 1%;
    /* background-color: #fc0404; */
    text-align: center;
}

.resaltado {
    font-weight: 700;
    font-size: 1.15em;
}


/*seccion de tarjetas con Áreas de Práctica*/
#tarjetas {
    display: grid;
    width: 80%;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4%;
    align-items: flex-start;
    padding: 0 0 0;
    margin: 2% 0 0;
} 

.tarjeta {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 12% 0;
    margin: 0 0 0 0;
    color: rgb(65, 171, 171);
    /* background-color: #FFE4C4; */
    min-height: 225px; 
} 

.monograma {
    padding: 0px;
    text-align: center;
}

.tarjeta h2{
    text-align: center;
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 1.1em;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    letter-spacing: -1;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #520300;
    width: calc(100% - 30px);
}
.tarjeta p{
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: .88em;
    text-align: center;
    padding: 10px;
    margin: 0;
    line-height: 1.5;
}


.tarjeta a{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
}

.tarjeta a:hover{
    text-align: center;
    color: white;
    font-size: 1.2em;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
}

.btn-expandir{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
    cursor: pointer;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 5px auto 15px;
}

.btn-expandir:hover{
    text-align: center;
    color: white;
    font-size: 1.7rem;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
    transform: rotate(90deg);
}

.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 228, 196, 0.5);
    width: 100%;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.9em;
    text-align: center;
}

.contenido-extra.mostrar {
    max-height: 650px;
    padding: 20px;
}

.contenido-extra p {
    padding: 0;
    margin-bottom: 10px;
}

.cerrar-contenido {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #e74c3c;
    cursor: pointer;
    font-weight: 600;
}

.invisible {
    opacity: 0;
}

#socios-perfiles {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 1200px;
    gap: 4%;
    padding: 12% 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-image: url(img/textura-socios.webp);
    background-size: cover;
}

#socios-perfiles h2{
    font-size: 2.5em;
    font-weight: 600;
    color: white;
    letter-spacing: 4px;
    margin: 0 0;
}

#socios-perfiles p{
    font-size: 1.2em;
    color: white;
    text-align: center;
    margin: 0 0 0;
}

.blanco {
    color: white;
}

.socios {
    display: grid;
        grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 350px;
    gap: 4%;
    padding: 0 5%;
    margin: 0 auto 0;
    background-image: url();
}

.socio {
    position: relative;
    flex:  1;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-between;
    background-color: white;
    overflow: hidden;
    cursor: pointer;
}

.socio h4 {
    position: absolute;
    bottom: 0;
    font-size: 1.05em;
    font-weight: 400;
    background-color:rgba(73, 0, 0, 0.90);
    width: 100%;
    text-align: center;
    color: white;
    padding: 10% 0;
}

/* Imagen normal */
.foto-socio {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/layda.webp');
}

/* Imagen hover */
.foto-socio:hover {
    background-image: url('img/layda-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio1 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/gerardo.webp');
}

/* Imagen hover */
.foto-socio1:hover {
    background-image: url('img/gerardo-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio2 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/oscar.webp');
}

/* Imagen hover */
.foto-socio2:hover {
    background-image: url('img/oscar-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio3 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/enrique.webp');
}

/* Imagen hover */
.foto-socio3:hover {
    background-image: url('img/enrique-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}


/* Estilos para sección extranjero */
.clientes-extranjero {
    display: flex;
    width: 65%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8% 0;
    margin: 0 auto;
}

.clientes-extranjero h2 {
    font-size: 1.4em;
    line-height: 1.4;
    text-align: center;
}

.clientes-extranjero a {
    background-color: transparent;
    margin: 0;
}

.texto-dfk {
    width: 100%;
}

.texto-dfk p {
    width: 90%;
    text-align: left;
    margin: 2% auto;
}

.texto-dfk a {
    margin: 0;
    padding: 0;
}

.logo-dfk {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 4% 0;
}

.dfk-tablero-premios {
    width: 100%;
    height:  auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0 2%;
}

.dfk-premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dfk-icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 150px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.dfk-premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0 0 4%;
}

.dfk-premio p{
    text-align: center;
    color: black;
    font-style: normal;
    text-align: center;
}

.especial {
    color: black;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.1em;
    text-align: center;
}


/* Estilos para premios */
.premios {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 800px;
    padding: 4% 4% 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-color: #700101;
    background-image: url(img/textura-premiois.webp);
    background-size: cover;
    color: white;
    text-align: center;
}

.tablero-premios {
    width: 100%;
    height:  auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0;
}

.premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.premio a{
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 110px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.premios h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    margin: 0 0;
}

.premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: white;
    margin: 0 0 4%;
}

.premio p{
    font-size: .9em;
    color: #ffffff;
    font-style: normal;
    text-align: center;
}

/* #integridad { 
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris-grande.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#integridad h2 {
    width: 80%;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2.2em;
    color: white;
    text-transform: none;
    margin: 0;
    padding: 0;
} */

.formulario {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 0 0 0;
    margin: 0;
    background-image: url(img/textura-gris-grande.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#foto-formulario {
    width: 48%;
    height: auto;
    display: flex;
    align-items: center;
}

#foto-formulario img {
    width: 100%;
    height: 100%; /* Ocupa toda la altura disponible */
    object-fit: cover; /* Escala manteniendo proporciones y recortando si es necesario */
    object-position: center;  /* Enfoca el centro de la imagen */
}

.texto-formulario {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
    height: auto;
}

.texto-formulario h2 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2.4em;
    color: white;
    text-transform: none;
    text-align: center;
}

.formato {
    display: flex;
    background-color: #f2f2f2;
    justify-content: center;
}

form {
    display: flex;
    width: 60%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 4% 0 4%;
}

form p {
    width: 100%;
}

label {
    width: 100%;
}

input[type=text], select, input[datetime-local] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #800000;
    color: white;
    padding: 14px;
    margin: 4% 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

footer {
    display: flex;
    width: 100%;
    height: 270px;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color:#520300;
    margin: 0 0 0;
    color: white;

}

.footer-logo {
    width: 30%;
    /* background-color: #45a049; */
}

address {
    width: 20%;
    font-size: .9em;
    font-style: normal;
    text-align: center;
    /* background-color: #e74c3c; */
}

.redes-sociales {
    width: 25%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.redes-sociales a, address a {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.fa-phone, .fa-envelope, .fa-linkedin {
    font-size: 2em;
    color: white;
    transition: all .25s ease-in-out;
}

.fa-phone:hover, .fa-envelope:hover, .fa-linkedin:hover {
    color: #FFE4C4;
    transform: scale(1.1);
}

dl {
    font-size: .8em;
    margin: 0 2%;
}

dt {
    margin: 0 0 8%;
}

dd {
    padding: 0 0 0 10px;
    margin: 0 0 6%;
}

footer a {
    padding: 0;
    background-color: transparent;
    transition: color .2s ease-in-out;
}

footer a:hover {
    color: #FFE4C4;
    transform: scale(1.2) rotate(-5deg);
}

        .container {
            max-width: 900px;
            width: 100%;
            margin: 2% auto;
        }

        .container h2 {
            font-size: 1.5em;
            border-bottom: 2px solid #800000;
            padding: 0 0 1%;
            margin: 8% 0 2%;
        }

        .container ul {
            font-size: 1em;
            padding: 0 0 1% 20px;
            margin: 0 0;
        }

        .container li {
            margin: 0 0 2%;
        }
        
        .acordeon {
            background: white;
            border-radius: 8px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .acordeon:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .accordion {
            background: linear-gradient(135deg, #dadfe6 0%, #c3cfe2 100%);
            color: bleckwhite;
            cursor: pointer;
            padding: 30px;
            width: 100%;
            text-align: left;
            border: none;
            outline: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion:hover {
            background: #520300;
            color: white;
        }
        
        .accordion.active {
            background: #520300;
            color: White;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .accordion.active i {
            transform: rotate(180deg);
        }
        
        .panel {
            padding: 0 18px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
            background: #f8f9fa;
        }
        
        .panel.mostrar {
            max-height: 1500px;
            padding: 18px;
        }
        
        .panel p {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: #34495e;
            width: 100%;
        }

        .panel a {
            font-size: 1em;
            color:#800000;
            background-color: transparent;
            width: 100%;
            padding: 0;
            transition: all .5s linear;
        }

        .panel a:hover {
            color:#800000;
            text-decoration: underline;
        }        
        
        .panel p:last-child {
            margin-bottom: 0;
        }

        .titulo-publicacion {
            font-weight: 900;
        }


/*Modal Socios*/

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        align-items: flex-start;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        margin: 0;
        padding: 20px 0;
    }

        .modal.mostrar {
            display: flex;
            opacity: 1;
        }
        
    .modal-ventana {
            background-color: white;
            border-radius: 24px;
            width: 80%;
            max-height: 85vh;
            overflow: hidden;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
    .modal.mostrar .modal-ventana {
            transform: scale(1);
        }

.foto-modal {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

    .foto-modal img {
        width: 100%;
        height: auto;
        /* max-height: 28vh; controla cuánto ocupa la imagen en móvil */
        object-fit: cover;
        display: block;
    }

.texto-modal{
    position: relative;
  flex: 1 1 auto;         /* ocupa el resto del espacio disponible */
  min-height: 0;          /* CRUCIAL para permitir overflow en children de flex */
  overflow-y: auto;       /* activa el scroll interno */
  -webkit-overflow-scrolling: touch; /* mejor scroll en iOS */
  width: 100%;
  padding: 0 0;
  box-sizing: border-box;
}

.texto-modal a {
    flex:  1 1 auto;
    min-height: 0;
    max-height: 80vh;
    color: goldenrod;
    background-color: transparent;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.25em;
    margin: 0;
    padding: 0;
    transition: all .5s linear;
}

.texto-modal a:hover {
    text-decoration: underline;
}

.arriba {
    width: 100%;
    height: auto;
    background-color: #4B1E1E;
    color: white;
    padding: 8% 4% 2%;
}
    .arriba h2 {
        font-size: 1.4em;
        color: white;
        font-family: "Playfair Display", serif;
        font-weight: 400;
    }

    .arriba p {
        width: 100%;
        color: white;
        font-size: .8em;
        margin: 0 0 10px;
        text-align: center;
    }

.medio{
    padding: 10px 10px 0px 10px;
}

.medio li {
    margin: 20px 0;
}

.medio p {
    width: 100%;
    margin: 10px 0;
    font-size: 1em;
}

    .neg{
        font-weight: 800;
    }
    .sub{
    text-decoration: underline;
    }
    .itl{
    font-style: italic;
    }

    ul{
        margin-left: 20px;
        color: black;
    }

.bajo {

    background-color: #4B1E1E;
    color: white;
}

.bajo {
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid white;
    text-align: center;
    }
        
        .bajo a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            background-color: transparent;
            padding: 0;
            margin: 0;
        }
        
        .bajo a:hover {
            color: #FFE4C4;
        }
        
        .cerrar-modal {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #FFE4C4;
            color:#520300;
            font-weight: 900;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid #FFE4C4;
        }
        
        .cerrar-modal:hover {
            color: white;
            background: #800000;
        }

        .ghost {
            display: none;
        }

}

/* Dispositivos móviles en horizontal - altura menor a 500px */
@media screen and (max-height: 500px) and (orientation: landscape) {
  /* Estilos específicos para móviles en horizontal */

    body {
    background-color: white; 
}
/* Estilos para el header con video de fondo */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150vh;
    overflow: hidden;
    margin: 0;
    /* background-color: crimson; */
}

#header-publicaciones {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/sala-frente.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-faq {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/faq.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-publicaciones p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

#header-faq p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

/* configuraciones del video de fondo */
.videofondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: white;
}

.imagen-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}


nav {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: fixed;
    top:0;
    width: 100%;
    height: 40vh;
    background: #520300;
    background : linear-gradient(0deg, rgba(82, 3, 0, 0) 0%, rgba(82, 3, 0, 0.14) 15%, rgba(82, 3, 0, .95) 50%);
    z-index: 20;
    padding: 10vh 0 0;
    margin: 0 0 0;
}

#home {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.parte1 {
    width: 10%;
    height: 10vh;
}

#marca {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 10vh;
}

.parte2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 10vh;
}

.parte2 a {
    background-color: transparent;
    color: white;
    aspect-ratio: 1 / 1;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 8px;
    transition: all .25s ease-in-out;
}

.parte2 a:hover {
    transform: scale(1.1);
}

#logo {
    width: 100%;
    max-width: 600px;
}

.fa-bars {
    color: white;
    font-size: 2em;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 500; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
    background-color: transparent;
    margin:0 0 10px ;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #e4d1d1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  background-color: transparent;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#presentaciones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 90vh;
    background: rgba(255, 206, 196, 0.6);
    background: linear-gradient(180deg, rgba(255, 228, 196, 0) 0%, rgba(255, 228, 196, 0.6) 10%, rgba(255, 228, 196, 0.6) 100%);
    padding: 10% 0 20%;
    margin: 0 0 0;
}

h1 {
    width: 70%;
    font-family: "Cinzel", serif;
    color: #520300;
    font-weight: 700;
    font-size: 1.8em;
    line-height: 1;
    text-transform: capitalize;
    margin: 120px 0 5px;
    text-align: center;
}

p {
    width: 80%;
    color: black;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.2em;
    margin: 8px 0 20px;
}

header p {
    width: 90%;
    font-size: 1em;
}

.enfasis {
    color: #520300;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#especial {
    color: #520300;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.5em;
    text-align: center;
}

a {
    color: white;
    background-color: #520300;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.25em;
    margin: 5px 0 40px;
    padding: 10px 60px;
    text-decoration: none;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: auto;
    background-color: white;
    font-size: 1.1em;
    border-bottom: 4px solid white;
    padding: 1% 0 4%;
}

#somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 0 4% 0;
}
#foto-somos-reconocidos{
    width: 100%;
    height: auto;
    background-color: #520300;
}

#texto-somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* background-color: rgb(29, 232, 232); */
    padding: 4%;
}

.imgcover {
    object-fit: cover;
}

.imgresp {
    width: 100%;
    height: auto;
}

.imgresph{
    width: auto;
    height: 100%;
}

h2 {
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    font-size: 1.8em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 auto 20px;
    width: 80%;
    text-align: center;
}

.diferenciador{
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.diferenciador.show {
    opacity: 1;
}

.centrado {
    width: 80%;
    text-align: center;
}

/* foto de todos los socios */
#todos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    background-color: #520300;
} 

.foto-todos {
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
} 

#texto-todos {
    padding: 40px 0;
    color: white;
}

#texto-todos h2 {
    font-weight: 600;
    text-align: center;
    color: white;
}

#texto-todos h3 {
    font-size: 1.4em;
    font-weight: 400;
    text-align: center;
    color: white;
}

/* Estilos para beneficios */
#diferenciales {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 15vh;
    margin: 0 0 0 0;
    background-color: white;
}

.diferencial-izquierdo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 5vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.diferencial-derecho {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 5vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.foto-diferencial {
    width: 50%;
    height: auto;
    display: block;
}

.texto-diferencial {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    height: auto;
    padding: 0 0 0 0;
    /* background: #FFE4C4; */
}

.texto-diferencial h3{
    color: #520300;
    text-align: left;
    width: 80%;
    margin: 0 0 4%;
    font-size: 1.1em;
}

.texto-diferencial p, .texto-diferencial ul{
    color: black;
    text-align: left;
    width: 80%;
    margin: 2%;
}

.texto-diferencial li{
    font-size: 1.1em;
    margin: 2% 0 8%;
}

.texto-diferencial a {
    color: gray;
    font-size: 1.2em;
    font-weight: 900;
    text-align: left;
    width: 60%;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background-color: transparent;
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.texto-diferencial a:hover {
    color: #800000;
}

/*Seccion relaciones*/

#relaciones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 50vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#relaciones h2 {
    width: 90%;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.4em;
    color: white;
    text-transform: none;
}

#relaciones h3 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.6em;
    color: white;
}


/* Estilos para el main */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 0 8%;
    background-color: white;
}

.foto-areas-de-practica {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-color: white;
    text-align: center;
}


.degradado-blanco {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 0;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 82%);
    width: 100%;
    height: 40%;
    z-index: 10;
    padding: 0 0 2%;
}

.degradado-blanco h2{
    padding: 0;
    margin: 0;
}

#areas-de-practica {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: auto;
    padding: 0;
    margin: 0 0 1%;
    /* background-color: #fc0404; */
    text-align: center;
}

.resaltado {
    font-weight: 700;
    font-size: 1.15em;
}


/*seccion de tarjetas con Áreas de Práctica*/
#tarjetas {
    display: grid;
    width: 80%;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2%;
    align-items: flex-start;
    padding: 0 0 80px;
    margin: 2% 0 0;
} 

.tarjeta {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 4% 0;
    margin: 0 0 0 0;
    color: rgb(65, 171, 171);
    /* background-color: #FFE4C4; */
    min-height: 225px; 
} 

.monograma {
    padding: 0px;
    text-align: center;
}

.tarjeta h2{
    text-align: center;
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 1.1em;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    letter-spacing: -1;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #520300;
    width: calc(100% - 30px);
}
.tarjeta p{
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: .88em;
    text-align: center;
    padding: 10px;
    margin: 0;
    line-height: 1.5;
}


.tarjeta a{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
}

.tarjeta a:hover{
    text-align: center;
    color: white;
    font-size: 1.2em;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
}

.btn-expandir{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
    cursor: pointer;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 5px auto 15px;
}

.btn-expandir:hover{
    text-align: center;
    color: white;
    font-size: 1.7rem;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
    transform: rotate(90deg);
}

.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 228, 196, 0.5);
    width: 100%;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.9em;
    text-align: center;
}

.contenido-extra.mostrar {
    max-height: 650px;
    padding: 20px;
}

.contenido-extra p {
    padding: 0;
    margin-bottom: 10px;
}

.cerrar-contenido {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #e74c3c;
    cursor: pointer;
    font-weight: 600;
}

.invisible {
    opacity: 0;
}

#socios-perfiles {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 1200px;
    gap: 4%;
    padding: 12% 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-image: url(img/textura-socios.webp);
    background-size: cover;
}

#socios-perfiles h2{
    font-size: 2.5em;
    font-weight: 600;
    color: white;
    letter-spacing: 4px;
    margin: 0 0;
}

#socios-perfiles p{
    font-size: 1.2em;
    color: white;
    text-align: center;
    margin: 0 0 0;
}

.blanco {
    color: white;
}

.socios {
    display: grid;
        grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 350px;
    gap: 4%;
    padding: 0 5%;
    margin: 0 auto 0;
    background-image: url();
}

.socio {
    position: relative;
    flex:  1;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-between;
    background-color: white;
    overflow: hidden;
    cursor: pointer;
}

.socio h4 {
    position: absolute;
    bottom: 0;
    font-size: 1.05em;
    font-weight: 400;
    background-color:rgba(73, 0, 0, 0.90);
    width: 100%;
    text-align: center;
    color: white;
    padding: 10% 0;
}

/* Imagen normal */
.foto-socio {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/layda.webp');
}

/* Imagen hover */
.foto-socio:hover {
    background-image: url('img/layda-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio1 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/gerardo.webp');
}

/* Imagen hover */
.foto-socio1:hover {
    background-image: url('img/gerardo-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio2 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/oscar.webp');
}

/* Imagen hover */
.foto-socio2:hover {
    background-image: url('img/oscar-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio3 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/enrique.webp');
}

/* Imagen hover */
.foto-socio3:hover {
    background-image: url('img/enrique-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}


/* Estilos para sección extranjero */
.clientes-extranjero {
    display: flex;
    width: 65%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8% 0;
    margin: 0 auto;
}

.clientes-extranjero h2 {
    font-size: 1.4em;
    line-height: 1.4;
    text-align: center;
}

.clientes-extranjero a {
    background-color: transparent;
    margin: 0;
}

.texto-dfk {
    width: 100%;
}

.texto-dfk p {
    width: 90%;
    text-align: left;
    margin: 2% auto;
}

.texto-dfk a {
    margin: 0;
    padding: 0;
}

.logo-dfk {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 4% 0;
}

.dfk-tablero-premios {
    width: 100%;
    height:  auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0 2%;
}

.dfk-premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dfk-icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 150px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.dfk-premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0 0 4%;
}

.dfk-premio p{
    text-align: center;
    color: black;
    font-style: normal;
    text-align: center;
}

.especial {
    color: black;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.1em;
    text-align: center;
}


/* Estilos para premios */
.premios {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 800px;
    padding: 4% 4% 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-color: #700101;
    background-image: url(img/textura-premiois.webp);
    background-size: cover;
    color: white;
    text-align: center;
}

.tablero-premios {
    width: 100%;
    height:  auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0;
}

.premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.premio a{
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.premios h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    margin: 0 0;
}

.premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: white;
    margin: 0 0 4%;
}

.premio p{
    font-size: .9em;
    color: #ffffff;
    font-style: normal;
    text-align: center;
}

#integridad {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 8vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#integridad h2 {
    width: 80%;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2.2em;
    color: white;
    text-transform: none;
    margin: 0;
    padding: 0;
}
.formulario {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 0 0 0;
    margin: 0;
    background-image: url(img/textura-gris-grande.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#foto-formulario {
    width: 48%;
    height: auto;
    display: flex;
    align-items: center;
}

#foto-formulario img {
    width: 100%;
    height: 100%; /* Ocupa toda la altura disponible */
    object-fit: cover; /* Escala manteniendo proporciones y recortando si es necesario */
    object-position: center;  /* Enfoca el centro de la imagen */
}

.texto-formulario {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
    height: auto;
}

.texto-formulario h2 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2.4em;
    color: white;
    text-transform: none;
    text-align: center;
}

.formato {
    display: flex;
    background-color: #f2f2f2;
    justify-content: center;
}

form {
    display: flex;
    width: 60%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 4% 0 4%;
}

form p {
    width: 100%;
}

label {
    width: 100%;
}

input[type=text], select, input[datetime-local] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #800000;
    color: white;
    padding: 14px;
    margin: 4% 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

footer {
    display: flex;
    width: 100%;
    height: 270px;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color:#520300;
    margin: 0 0 0;
    color: white;

}

.footer-logo {
    width: 20%;
    /* background-color: #45a049; */
}

address {
    width: 20%;
    font-size: .8em;
    font-style: normal;
    text-align: center;
    /* background-color: #e74c3c; */
}

.redes-sociales {
    width: 25%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.redes-sociales a, address a {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.fa-phone, .fa-envelope, .fa-linkedin {
    font-size: 1.4em;
    color: white;
    transition: all .25s ease-in-out;
}

.fa-phone:hover, .fa-envelope:hover, .fa-linkedin:hover {
    color: #FFE4C4;
    transform: scale(1.1);
}

dl {
    font-size: .8em;
    margin: 0 2%;
}

dt {
    margin: 0 0 8%;
}

dd {
    padding: 0 0 0 10px;
    margin: 0 0 6%;
}

footer a {
    padding: 0;
    background-color: transparent;
    transition: color .2s ease-in-out;
}

footer a:hover {
    color: #FFE4C4;
    transform: scale(1.2) rotate(-5deg);
}

        .container {
            max-width: 900px;
            width: 100%;
            margin: 2% auto;
        }

        .container h2 {
            font-size: 1.5em;
            border-bottom: 2px solid #800000;
            padding: 0 0 1%;
            margin: 8% 0 2%;
        }

        .container ul {
            font-size: 1em;
            padding: 0 0 1% 20px;
            margin: 0 0;
        }

        .container li {
            margin: 0 0 2%;
        }
        
        .acordeon {
            background: white;
            border-radius: 8px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .acordeon:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .accordion {
            background: linear-gradient(135deg, #dadfe6 0%, #c3cfe2 100%);
            color: bleckwhite;
            cursor: pointer;
            padding: 30px;
            width: 100%;
            text-align: left;
            border: none;
            outline: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion:hover {
            background: #520300;
            color: white;
        }
        
        .accordion.active {
            background: #520300;
            color: White;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .accordion.active i {
            transform: rotate(180deg);
        }
        
        .panel {
            padding: 0 18px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
            background: #f8f9fa;
        }
        
        .panel.mostrar {
            max-height: 1500px;
            padding: 18px;
        }
        
        .panel p {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: #34495e;
            width: 100%;
        }

        .panel a {
            font-size: 1em;
            color:#800000;
            background-color: transparent;
            width: 100%;
            padding: 0;
            transition: all .5s linear;
        }

        .panel a:hover {
            color:#800000;
            text-decoration: underline;
        }        
        
        .panel p:last-child {
            margin-bottom: 0;
        }

        .titulo-publicacion {
            font-weight: 900;
        }


/*Modal Socios*/

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto; /* ← PERMITE SCROLL VERTICAL */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }

        .modal.mostrar {
            display: flex;
            opacity: 1;
        }
        
    .modal-ventana {
            background-color: white;
            border-radius: 24px;
            width: 75%;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            flex-direction: row;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
    .modal.mostrar .modal-ventana {
            transform: scale(1);
        }

.foto-modal {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

    .foto-modal img {
        height: 80vh;
        object-fit: contain;
    }

.texto-modal{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    flex: 1;
    height: 100%;
    background-color: white;
    text-align: left;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch; /* ← NECESARIO EN iPAD */
    padding: 0 0 100px;
}

.texto-modal a {
    color: goldenrod;
    background-color: transparent;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.25em;
    margin: 0;
    padding: 0;
    transition: all .5s linear;
}

.texto-modal a:hover {
    text-decoration: underline;
}

.arriba {
    width: 100%;
    height: auto;
    background-color: #4B1E1E;
    color: white;
    padding: 4% 8% 2%;
}
    .arriba h2 {
        font-size: 1.2em;
        color: white;
        font-family: "Playfair Display", serif;
        font-weight: 400;
    }

    .arriba p {
        width: 100%;
        color: white;
        font-size: .8em;
        margin: 0 0 10px;
    }

.medio{
        flex: 1; /* Toma todo el espacio disponible */
        max-height: 90vh; /* Altura máxima para scroll */
        overflow-y: auto; /* Scroll vertical */
        overflow-x: hidden; /* Sin scroll horizontal */
        -webkit-overflow-scrolling: touch; /* iOS smooth */
        padding: 10px 20px;
}

.medio li {
    font-size: .8em;
    margin: 20px 0;
}

.medio p {
    width: 100%;
    margin: 20px 0;
    font-size: .8em;
}

    .neg{
        font-weight: 800;
    }
    .sub{
    text-decoration: underline;
    }
    .itl{
    font-style: italic;
    }

    ul{
        margin-left: 20px;
        color: black;
    }

.bajo {
    padding: 0 0 0;
    background-color: #4B1E1E;
    color: white;
}

        .bajo a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            background-color: transparent;
            padding: 0;
            margin: 0;
        }
        
        .bajo a:hover {
            color: #FFE4C4;
        }
        
        .cerrar-modal {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #FFE4C4;
            color:#520300;
            font-weight: 900;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid #FFE4C4;
        }
        
        .cerrar-modal:hover {
            color: white;
            background: #800000;
        }


        .ghost {
            display: none;
        }
}


/* ESTILOS DESKTOP */
@media only screen and (min-width: 992px),
       only screen and (min-device-width: 1024px) 
                   and (max-device-width: 1366px)
                   and (orientation: landscape) {

body {
    background-color: white; 
}
/* Estilos para el header con video de fondo */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    /* background-color: white; */
}

#header-publicaciones {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/sala-frente.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-faq {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url(img/faq.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    margin: 0;
}

#header-publicaciones p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

#header-faq p {
    width: clamp(40%, 50%, 50%);
    color: black;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin: 8px 0 10px;
}

/* configuraciones del video de fondo */
.videofondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: white;
}

.imagen-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}


nav {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: fixed;
    top:0;
    width: 100%;
    height: 30vh;
    background: #520300;
    background : linear-gradient(0deg, rgba(82, 3, 0, 0) 0%, rgba(82, 3, 0, 0.14) 15%, rgba(82, 3, 0, .95) 50%);
    z-index: 20;
    padding: 3vh 0 0;
}

#home {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.parte1 {
    width: 20%;
    height: 10vh;
}

#marca {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 10vh;
}

.parte2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 10vh;
}


#logo {
    width: 100%;
    max-width: 600px;
}

.fa-bars {
    color: white;
    font-size: 2em;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 500; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 0px 32px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  display: block;
  transition: 0.3s;
    background-color: transparent;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #e4d1d1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  background-color: transparent;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#presentaciones {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20vh;
    background: rgba(255, 228, 196, 0.6);
    background: linear-gradient(180deg, rgba(255, 228, 196, 0) 0%, rgba(255, 228, 196, 0.6) 14%, rgba(255, 228, 196, 0.6) 100%);
    padding: 13% 0 6%; 
    margin: 0 0 0 0;

    text-align: center;
}

h1 {
    font-family: "Cinzel", serif;
    color: #520300;
    font-weight: 700;
    font-size: 2em;
    line-height: 1;
    text-transform: capitalize;
    margin: 0 0 5px;

}

p {
    width: 60%;
    color: black;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.2em;
    margin: 8px 0 20px;
}

.enfasis {
    color: #520300;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#especial {
    color: #520300;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.5em;
    text-align: center;
}



a {
    color: white;
    background-color: #520300;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.25em;
    margin: 5px 0 80px;
    padding: 6px 60px;
    text-decoration: none;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: white;
    font-size: 1.1em;
    border-bottom: 4px solid white;
    padding: 4.8% 0 4.8%;
}

.intro p {
    width: 40%;
    margin: 0;
    padding: 0;
}

#somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 0 4% 0;
}
#foto-somos-reconocidos{
    width: 100%;
    height: auto;
    background-color: #520300;
}

#texto-somos-reconocidos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* background-color: rgb(29, 232, 232); */
    padding: 4%;
}

.imgcover {
    object-fit: cover;
}

.imgresp {
    width: 100%;
    height: auto;
}

.imgresph{
    width: auto;
    height: 100%;
}

h2 {
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    font-size: 2em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.diferenciador{
    font-family: "Cinzel", serif;
    color: #800000;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.diferenciador.show {
    opacity: 1;
}

.centrado {
    width: 44%;
    text-align: center;
}

/* foto de todos los socios */
#todos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    background-color: #520300;
} 

.foto-todos {
    width: 100%;
    height: auto;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
} 

#texto-todos {
    padding: 40px 0;
    color: white;
}

#texto-todos h2 {
    font-weight: 600;
    text-align: center;
    color: white;
}

#texto-todos h3 {
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    color: white;
}

/* Estilos para beneficios */
#diferenciales {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0 0 10vh;
    margin: 0 0 0 0;
    background-color: white;
}

.diferencial-izquierdo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 10vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.diferencial-derecho {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 10vh 0 0;
    margin: 0 0 0 0;
    /* background-color: #ffffff; */
}

.foto-diferencial {
    width: 50%;
    height: auto;
    display: block;
}

.texto-diferencial {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    height: auto;
    padding: 0 0 0 0;
    /* background: #FFE4C4; */
}

.texto-diferencial h3{
    color: #520300;
    text-align: left;
    width: 60%;
    margin: 0 0 4%;
}

.texto-diferencial p, .texto-diferencial ul{
    color: black;
    text-align: left;
    width: 60%;
    margin: 2%;
}

.texto-diferencial li{
    font-size: 1.1em;
    margin: 2% 0 8%;
}

.texto-diferencial a {
    color: gray;
    font-size: 1.1em;
    font-weight: 900;
    text-align: left;
    width: 60%;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background-color: transparent;
    transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.texto-diferencial a:hover {
    color: #800000;
}

/*Seccion relaciones*/

#relaciones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 30vh;
    padding:10%;
    margin: 0 0 0 0;
    background-color: #5f5f5f;
    background-image: url(img/textura-gris.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white;
    font-family: "Playfair Display", serif;
    border-bottom: 2px solid white;
}

#relaciones h2 {
    width: 80%;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.6em;
    color: white;
    text-transform: none;
}

#relaciones h3 {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 1.6em;
    color: white;
}


/* Estilos para el main */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 0 8%;
    background-color: white;
}

.foto-areas-de-practica {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-color: white;
    text-align: center;
}


.degradado-blanco {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 0;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 1) 82%);
    width: 100%;
    height: 40%;
    z-index: 10;
    padding: 0 0 2%;
}

.degradado-blanco h2{
    padding: 0;
    margin: 0;
}

#areas-de-practica {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    height: auto;
    padding: 0;
    margin: 0 0 1%;
    /* background-color: #fc0404; */
    text-align: center;
}

.resaltado {
    font-weight: 700;
    font-size: 1.15em;
}


/*seccion de tarjetas con Áreas de Práctica*/
#tarjetas {
    display: grid;
    width: 80%;
    height: auto;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4%;
    align-items: flex-start;
    padding: 0 0 0;
    margin: 2% 0 0;
} 

.tarjeta {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 12% 0;
    margin: 0 0 0 0;
    color: rgb(65, 171, 171);
    /* background-color: #FFE4C4; */
    min-height: 225px; 
} 

.monograma {
    padding: 0px;
    text-align: center;
}

.tarjeta h2{
    text-align: center;
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 1.1em;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    letter-spacing: -1;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #520300;
    width: calc(100% - 30px);
}
.tarjeta p{
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: .88em;
    text-align: center;
    padding: 10px;
    margin: 0;
    line-height: 1.5;
}


.tarjeta a{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
}

.tarjeta a:hover{
    text-align: center;
    color: white;
    font-size: 1.2em;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
}

.btn-expandir{
    text-align: center;
    color: #000000;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    font-weight: 400;
    transition: all .25s linear;
    cursor: pointer;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 5px auto 15px;
}

.btn-expandir:hover{
    text-align: center;
    color: white;
    font-size: 1.7rem;
    font-weight: 900;
    background-color: #800000;
    padding: 15px;
    border-radius: 5px;
    transform: rotate(90deg);
}

.contenido-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(255, 228, 196, 0.5);
    width: 100%;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.9em;
    text-align: center;
}

.contenido-extra.mostrar {
    max-height: 650px;
    padding: 20px;
}

.contenido-extra p {
    padding: 0;
    margin-bottom: 10px;
}

.cerrar-contenido {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #e74c3c;
    cursor: pointer;
    font-weight: 600;
}

.invisible {
    opacity: 0;
}

#socios-perfiles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 750px;
    gap: 4%;
    padding: 4% 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-image: url(img/textura-socios.webp);
    background-size: cover;
}

#socios-perfiles h2{
    font-size: 2.5em;
    font-weight: 600;
    color: white;
    letter-spacing: 4px;
    margin: 0 0;
}

#socios-perfiles p{
    font-size: 1.2em;
    color: white;
    text-align: center;
    margin: 0 0 0;
}

.blanco {
    color: white;
}

.socios {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 350px;
    gap: 4%;
    padding: 0 5%;
    margin: 0 auto 0;
    background-image: url();
}

.socio {
    position: relative;
    flex:  1;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-between;
    background-color: white;
    overflow: hidden;
    cursor: pointer;
}

.socio h4 {
    position: absolute;
    bottom: 0;
    font-size: 1.05em;
    font-weight: 400;
    background-color:rgba(73, 0, 0, 0.90);
    width: 100%;
    text-align: center;
    color: white;
    padding: 10% 0;
}

/* Imagen normal */
.foto-socio {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/layda.webp');
}

/* Imagen hover */
.foto-socio:hover {
    background-image: url('img/layda-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio1 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/gerardo.webp');
}

/* Imagen hover */
.foto-socio1:hover {
    background-image: url('img/gerardo-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio2 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/oscar.webp');
}

/* Imagen hover */
.foto-socio2:hover {
    background-image: url('img/oscar-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}

.foto-socio3 {
    height: 100%; /* Ajusta según necesites */
    width: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
    background-image: url('img/enrique.webp');
}

/* Imagen hover */
.foto-socio3:hover {
    background-image: url('img/enrique-hover.webp');
    transform: scale(1.05); /* Efecto de zoom suave */
}


/* Estilos para sección extranjero */
.clientes-extranjero {
    display: flex;
    width: 65%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8% 0;
    margin: 0 auto;
}

.clientes-extranjero h2 {
    font-size: 1.4em;
    line-height: 1.4;
    text-align: center;
}

.clientes-extranjero a {
    background-color: transparent;
    margin: 0;
}

.texto-dfk {
    width: 100%;
}

.texto-dfk p {
    width: 90%;
    text-align: left;
    margin: 2% auto;
}

.texto-dfk a {
    margin: 0;
    padding: 0;
}

.logo-dfk {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 4% 0;
}

.dfk-tablero-premios {
    width: 100%;
    height:  auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0 2%;
}

.dfk-premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dfk-icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 150px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.dfk-premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0 0 4%;
}

.dfk-premio p{
    text-align: center;
    color: black;
    font-style: normal;
    text-align: center;
}

.especial {
    color: black;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.1em;
    text-align: center;
}

/* Estilos para premios */
.premios {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 500px;

    padding: 4% 0 0 0;
    margin: 0 auto 0;
    background-color: #520300;
    background-color: #700101;
    background-image: url(img/textura-premiois.webp);
    background-size: cover;
    color: white;
    text-align: center;
}

.tablero-premios {
    width: 90%;
    height:  auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: rebeccapurple; */
    margin: 4% 0;
}

.premio {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.premio a{
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.icono-premio {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 90px;
    margin: 0 0 0;
    /* background-color: #34495e; */
}

.premios h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    margin: 0 0;
}

.premio h3 {
    font-size: 1em;
    font-weight: 900;
    color: white;
    margin: 0 0 4%;
}

.premio p{
    font-size: .9em;
    color: #ffffff;
    font-style: normal;
    text-align: center;
}

.formulario {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 0 0 0;
    margin: 0;
    background-image: url(img/textura-gris-grande.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#foto-formulario {
    width: 48%;
    height: auto;
    display: flex;
    align-items: center;
}

#foto-formulario img {
    width: 100%;
    height: 100%; /* Ocupa toda la altura disponible */
    object-fit: cover; /* Escala manteniendo proporciones y recortando si es necesario */
    object-position: center;  /* Enfoca el centro de la imagen */
}

.texto-formulario {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
    height: auto;
}

.texto-formulario h2 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 2.4em;
    color: white;
    text-transform: none;
}

.formato {
    display: flex;
    background-color: #f2f2f2;
    justify-content: center;
}

form {
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 4% 0 4%;
}

form p {
    width: 100%;
}

label {
    width: 100%;
}

input[type=text], select, input[datetime-local] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #800000;
    color: white;
    padding: 14px;
    margin: 4% 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

footer {
    display: flex;
    width: 100%;
    height: 270px;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color:#520300;
    margin: 0 0 0;
    color: white;

}

.footer-logo {
    width: 30%;
    /* background-color: #45a049; */
}

address {
    width: 20%;
    font-size: .9em;
    font-style: normal;
    text-align: center;
    /* background-color: #e74c3c; */
}

.redes-sociales {
    width: 25%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.redes-sociales a, address a {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.fa-phone, .fa-envelope, .fa-linkedin {
    font-size: 2em;
    color: white;
    transition: all .25s ease-in-out;
}

.fa-phone:hover, .fa-envelope:hover, .fa-linkedin:hover {
    color: #FFE4C4;
    transform: scale(1.1);
}

dl {
    font-size: .8em;
    margin: 0 2%;
}

dt {
    margin: 0 0 8%;
}

dd {
    padding: 0 0 0 10px;
    margin: 0 0 6%;
}

footer a {
    padding: 0;
    background-color: transparent;
    transition: color .2s ease-in-out;
}

footer a:hover {
    color: #FFE4C4;
    transform: scale(1.2) rotate(-5deg);
}

        .container {
            max-width: 900px;
            width: 100%;
            margin: 2% auto;
        }

        .container h2 {
            font-size: 1.5em;
            border-bottom: 2px solid #800000;
            padding: 0 0 1%;
            margin: 8% 0 2%;
        }

        .container ul {
            font-size: 1em;
            padding: 0 0 1% 20px;
            margin: 0 0;
        }

        .container li {
            margin: 0 0 2%;
        }
        
        .acordeon {
            background: white;
            border-radius: 8px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .acordeon:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .accordion {
            background: linear-gradient(135deg, #dadfe6 0%, #c3cfe2 100%);
            color: bleckwhite;
            cursor: pointer;
            padding: 30px;
            width: 100%;
            text-align: left;
            border: none;
            outline: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion:hover {
            background: #520300;
            color: white;
        }
        
        .accordion.active {
            background: #520300;
            color: White;
            border-radius: 8px 8px 0 0;
        }
        
        .accordion i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .accordion.active i {
            transform: rotate(180deg);
        }
        
        .panel {
            padding: 0 18px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
            background: #f8f9fa;
        }
        
        .panel.mostrar {
            max-height: 1500px;
            padding: 18px;
        }
        
        .panel p {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: #34495e;
            width: 100%;
        }

        .panel a {
            font-size: 1em;
            color:#800000;
            background-color: transparent;
            width: 100%;
            padding: 0;
            transition: all .5s linear;
        }

        .panel a:hover {
            color:#800000;
            text-decoration: underline;
        }        
        
        .panel p:last-child {
            margin-bottom: 0;
        }

        .titulo-publicacion {
            font-weight: 900;
        }

/*Modal Socios*/

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .modal.mostrar {
            display: flex;
            opacity: 1;
        }
        
    .modal-ventana {
            background-color: white;
            border-radius: 24px;
            width: 75%;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            flex-direction: row;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
    .modal.mostrar .modal-ventana {
            transform: scale(1);
        }

.foto-modal {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    overflow: hidden;
}

    .foto-modal img {
        height: 80vh;
        object-fit: contain;
    }

.texto-modal{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    flex: 1;
    /* height: 100%; */
    background-color: white;
    text-align: left;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* ← NECESARIO EN iPAD */
    max-height: 80vh; /* Limita la altura máxima al 80% del viewport */
}

.texto-modal a {
    color: goldenrod;
    background-color: transparent;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.25em;
    margin: 0;
    padding: 0;
    transition: all .5s linear;
}

.texto-modal a:hover {
    text-decoration: underline;
}

.arriba {
    width: 100%;
    height: auto;
    background-color: #4B1E1E;
    color: white;
    padding: 4% 8% 2%;
}
    .arriba h2 {
        font-size: 2em;
        color: white;
        font-family: "Playfair Display", serif;
        font-weight: 400;
    }

    .arriba p {
        width: 100%;
        color: white;
        font-size: 1em;
        margin: 0 0 10px;
    }

.medio{
    padding: 20px 40px 0px 40px;
}

.medio li {
    margin: 20px 0;
}

.medio p {
    font-size: 1.1em;
    width: 100%;
    margin: 20px 0;
}

    .neg{
        font-weight: 800;
    }
    .sub{
    text-decoration: underline;
    }
    .itl{
    font-style: italic;
    }

    ul{
        margin-left: 20px;
        color: black;
    }

.bajo {

    background-color: #4B1E1E;
    color: white;
}

.bajo {
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid white;
    text-align: center;
    }
        
        .bajo a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            background-color: transparent;
            padding: 0;
            margin: 0;
        }
        
        .bajo a:hover {
            color: #FFE4C4;
        }
        
        .cerrar-modal {
            position: absolute;
            top: 20px;
            left: 20px;
            background: #FFE4C4;
            color:#520300;
            font-weight: 900;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid #FFE4C4;
        }
        
        .cerrar-modal:hover {
            color: white;
            background: #800000;
        }

}