/* ESTILOS PARA ESCRITORIO (min-width: 811px) */
@media (min-width: 811px) {

html {
  scroll-behavior: smooth;
  height: auto;
  overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
	color: rgb(43, 24, 60);
    margin: 0;      
}

hr {
  border: 0;
  border-top: 1px solid rgb(43, 24, 60); /* Red color */
  width: 70%;
}

/* Scrollbars */
*:not(footer)::-webkit-scrollbar {
    width: 8px;
  }
  
  *:not(body)::-webkit-scrollbar-track {
    background: rgb(100, 77, 121);
    border-radius: 4px;
  }
  
  *:not(body)::-webkit-scrollbar-thumb {
    background: rgb(100, 77, 121);
    border-radius: 8px;
  }
  
  *:not(body)::-webkit-scrollbar-thumb:hover {
    background: rgb(100, 77, 121);
  }
  
  /* For Firefox */
  *:not(body) {
  scrollbar-width: auto;
  scrollbar-color: rgb(100, 77, 121) rgb(230, 213, 246);
}  

a:link {
  color: rgb(100, 77, 121);
  text-decoration: underline;
}

  a:visited {
  color: rgb(100, 77, 121);
  text-decoration: bold;
}

  a:hover {
  color: rgb(193,39,45);
  text-decoration: underline;
}

header {
  display: flex;
  flex-wrap: nowrap;
  background-color: rgb(226, 226, 226);
  color: white;
  text-align: center;
  align-items: center;
  margin-top: 0;
}

.topnav {
  margin-top: 3rem;
  display: flex;
  position: absolute;
  width: 100%;
  height: 4rem;
  left: 0;
  z-index: 1;
  overflow: hidden;
  justify-content: space-between;
  align-items: center;
  color: rgb(43, 24, 60);
  padding: 0rem;
  box-sizing: border-box;
}

.topnav-right {
  display: flex; /* Hacemos que este contenedor tambiÃ©n use flexbox */
  gap: 1rem; /* Espacio entre los enlaces de navegaciÃ³n */
  margin-right: 2rem;
}

.topnav a {
  color: rgb(43, 24, 60);
  text-align: center;
  padding: 14px 16px;
  /*margin-right: 1rem;*/
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.topnav a:hover {
  color: rgb(193,39,45);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ocultamos el icono de menÃº en la vista de escritorio */
.topnav .icon {
  display: none;
}

.logo {
  display: flex;
  overflow: visible;
  margin-top: -0.4rem;
  margin-left: -0.5rem;
  height: 3.5rem;
  padding: 0;
  z-index: 2;
}

.redes {
  font-size: 13px;
  margin-left: 1rem;
}

footer {
  z-index: 0;
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: white;
  color: rgb(43, 24, 60);
  border: none;
}

.container {
  width: 80rem;
  height: 30rem;
  margin-top: 4rem;
}

.cabecera {
  display: flex;
  position: relative;
  font-size: 1.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 0rem;
  margin-bottom: 3rem;
}

/*Home area*/

.indexcontent {
  z-index: 0;
  margin-top: 2rem;
  margin-bottom:0rem;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  width: 65rem;
  justify-content: center;
  text-align: justify;
  padding-top: 2rem;
}

.mobile-content {
  display: none; /* Ocultar en escritorio */
}

.title {
display: flex;
float: left;
width: 66%;
margin-top: 3rem;
margin-left: 1rem;
text-align: justify;
}

 /* Carrusel Principal */
        .carousel-container {
            position: relative;
            background: white;
            border-radius: 1rem;
            height: 25rem;
            width: 50rem;
            margin-top: 0rem;
            margin-left: auto;
            margin-right: auto;
            overflow: hidden;
        }
        
        .carousel {
            display: flex;
            width: 700%; /* 7 slides = 700% */
            animation: autoSlide 45s infinite ease-in-out;
        }
        
        .slide {
            width: 14.2857%; /* 100% / 7 slides */
            position: relative;
            overflow: hidden;
        }
        
        .slide img {
            width: 100%;
            height: 25rem;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        /* Efecto hover en las imÃ¡genes */
        .carousel-container:hover .slide img {
            transform: scale(1.05);
        }
                
        /* AnimaciÃ³n del carrusel */
        @keyframes autoSlide {
            0%, 13% { transform: translateX(0%); }
            15%, 28% { transform: translateX(-14.2857%); }
            30%, 43% { transform: translateX(-28.5714%); }
            45%, 58% { transform: translateX(-42.8571%); }
            60%, 73% { transform: translateX(-57.1428%); }
            75%, 88% { transform: translateX(-71.4285%); }
            90%, 98% { transform: translateX(-85.7142%); }
            100% { transform: translateX(0%); }
        }
        
        
        /* Control de pausa */
        .pause-indicator {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.9);
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            color: #333;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .pause-indicator:hover {
            background: white;
            transform: scale(1.05);
        }
        
        /* Pausa en hover */
        .carousel-container:hover .carousel {
            animation-play-state: paused;
        }
        
        .carousel-container:hover .progress-bar {
            animation-play-state: paused;
        }
        
        .carousel-container:hover .dot::before {
            animation-play-state: paused;
        }

/*Actualidad area*/

.actualidadcontent {
  z-index: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  width: 60rem;
  justify-content: center;
  text-align: justify;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.fechalugar {
  font-size: small;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 2rem;
}

.articulo {
  position: relative;
  font-size: medium;
  line-height: 1.2;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 50rem;
  text-align: justify;
}

.imgactualidad {
  position: relative;
  justify-content: center;
  text-align: justify;
  float: right;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 3rem;
  max-width: 24rem;
  border-radius: 1rem;
}

.firma {
  position: relative;
  font-size: small;
  text-align: left;
  margin-left: 1rem;
}

/*Espectáculos area*/

.espectaculoscontent {
  z-index: 0;
  margin-top: 2rem;
  margin-bottom:0rem;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  width: 80rem;
  justify-content: center;
  text-align: justify;
  padding-top: 2rem;
}

.menuespectaculos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 90%;
  height: 100%;
  margin-top: -2rem;
  justify-content: center;
  background: white;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.menu-item {
  padding: 0rem;
  cursor: pointer;
  transition: background 0.4s;
  text-align: justify;
  border-radius: 1rem;
}
.menu-item:hover {
  background: rgb(230, 213, 246);
}

.titulo {
  margin-left: 1rem;
}

.content {
  display: none;
  height: 20rem;
  width: 60rem;
  padding: 0.5rem;
  float: left;

}

.menu-item.active .content {
  display: block;
  width: 70rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
}

.imgsespectaculos {
  display: flex;
  border-radius: 1rem;
  height: 9.5rem;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
  margin-top: -0.5rem;
  align-items: flex-end;
}

.menu-item.active > .imgsespectaculos {
  display: none;
}

.sinopsis {
  width: 40rem;
  padding: 0.5rem;
}

.ficha {
  font-weight: bold;
  position: relative;
  margin-left: 0.5rem;
  top: 0rem;
}

.ytlink {
  z-index: 1;
  position: relative;
  float: right;
  margin-right: 0.5rem;
  top: -11rem;
}

/*Quienes somos area*/

.quienessomoscontent {
  margin-top: 2rem;
  margin-bottom:0rem;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  width: 65rem;
  min-height: 48rem;
  justify-content: center;
  text-align: justify;
  padding-top: 2rem;
  overflow: visible;
}

.container {
    position: relative;
    margin-top: -3rem;
    margin-left: auto;
    margin-right: auto;
    width: 50rem;
    height: 30rem;
    border-radius: 1rem;
    overflow: hidden;
}

.quienessomostext {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -1rem;
  margin-bottom: 4rem;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fotolacompania/byn.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.miembro-pulsable {
    position: absolute;
    height: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 2;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.miembro-pulsable:hover {
    position: absolute;
    opacity: 1;
}

.ed {
    top: 0;
    left: 18%;
    width: 20%; /* 37% - 20% = 17% */
    background-image: url('images/fotolacompania/ed.png');
    background-size: 500% 108.5%; /* 100% / 17% = 588.235% */
    background-position: 22.5% 49.8%; /* Mostrar desde el 20% de la imagen subyacente */
}

.mj {
    top: 0;
    left: 35%;
    width: 17%; /* 52% - 37% = 15% */
    background-image: url('images/fotolacompania/mj.png');
    background-size: 590% 108.5%; /* 100% / 15% = 666.667% */
    background-position: 42.2% 50%; /* Mostrar desde el 37% de la imagen subyacente */
}

.nol {
    top: 0;
    left: 52%;
    width: 12%; /* 64% - 52% = 12% */
    background-image: url('images/fotolacompania/nol.png');
    background-size: 838% 108.5%; /* 100% / 12% = 833.333% */
    background-position: 59.12% center/* Mostrar desde el 52% de la imagen subyacente */
}

.sil {
    top: 0;
    left: 64%;
    width: 19%; /* 80% - 64% = 16% */
    background-image: url('images/fotolacompania/sil.png');
    background-size: 526% 108.5%; /* 100% / 16% = 625% */
    background-position: 79% 49.8%; /* Mostrar desde el 64% de la imagen subyacente */
}

.miembro-pulsable:hover::before {
    opacity: 1;
}

.miembro-contenido {
  position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3; /* Para que aparezca sobre las imÃ¡genes */
    background-color: rgb(230, 213, 246); /* Fondo semitransparente para legibilidad */
    box-sizing: border-box;
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 2rem; /* Sin padding vertical cuando estÃ¡ cerrado */
}

.miembro-contenido.mostrar {
    max-height: 33%; /* Altura mÃ¡xima al expandirse */
    padding: 1rem; /* Padding completo cuando estÃ¡ abierto */
    overflow-y: auto;
}

.imgcomponente {
  position: relative;
  width: 10rem;
  height: auto;
  border-radius: 0.5rem;
  float: left;
  margin-right: 1rem;
}

.nombre {
  font-weight: 600;
  margin-top: 0rem;
}

.bio {
position: relative;
  font-size: medium;
}

/* Contacto area */

.contactocontent {
  z-index: 0;
  margin-top: 2rem;
  margin-bottom:0rem;
  margin-left: auto;
  margin-right: auto;
  width: 60rem;
  min-height: 53rem;
  justify-content: center;
  text-align: justify;
  padding-top: 2rem;
}

.contactotxt {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 1rem;
  justify-content: center;
  text-align: justify;
  font-size: large;
  line-height: 2;
  text-decoration: none;
}
 
.redes-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem; /* Aumentamos el espacio entre logos */
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.logored {
  height: 3rem;
  width: auto;
}

  .imgcontacto {
    display: block;
    position: relative;
    border-radius: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1rem;
    width: 70%;
  }

}

























/* ESTILOS PARA MÃ"VIL (max-width: 810px) */
@media (max-width: 810px) {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: rgb(43, 24, 60);
    margin: 0;
    padding-top: 4rem;
    text-align: justify;
  }

  /* Header y navegaciÃ³n mÃ³vil */
  header {
    display: flex;
    background-color: rgb(230, 213, 246);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }

  .topnav {
    margin-top: 0;
    display: flex;
    position: relative;
    width: 100%;
    height: 4rem;
    justify-content: space-between;
    align-items: center;
    color: rgb(230, 213, 246);
    padding: 0;
    box-sizing: border-box;
  }

  .logo {
    margin-left: 1rem;
    height: 3rem;
    z-index: 2;
    overflow: visible;
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 3rem;
    width: auto;
  }

  /* Ocultamos los enlaces por defecto en mÃ³vil */
  .topnav-right {
    display: none;
  }

  /* Mostramos el icono hamburguesa */
  .topnav .icon {
    display: block;
    color: rgb(43, 24, 60);
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
  }

  /* Cuando el menÃº estÃ¡ activo (clase responsive) */
  .topnav.responsive .topnav-right {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 4rem;
    left: 0;
    background-color: rgb(43, 24, 60);
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .topnav.responsive .topnav-right a {
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgb(100, 77, 121);
    color: rgb(230, 213, 246);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }

  .topnav.responsive .topnav-right a:hover {
    background-color: rgb(100, 77, 121);
    color: rgb(230, 213, 246);
  }

  .topnav.responsive .topnav-right a:last-child {
    border-bottom: none;
  }

  /* Contenido principal mÃ³vil */
  .indexcontent {
    margin-top: 1rem;
    margin-bottom: 3rem;
    background-color: white;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    box-sizing: border-box;
  }

  .cabecera {
    font-size: 1.3rem;
    text-align: center;
    margin: 1rem 0 2rem 0;
  }

  /* Mostrar contenido adicional en mÃ³vil */
  .mobile-content {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    text-align: justify;
    line-height: 1.6;
  }

  /* Carrusel mÃ³vil */
  .carousel-container {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    height: 15rem;
    width: 100%;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .carousel {
    display: flex;
    width: 700%;
    animation: autoSlide 45s infinite ease-in-out;
  }
  
  .slide {
    width: 14.2857%;
    position: relative;
    overflow: hidden;
  }
  
  .slide img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  @keyframes autoSlide {
    0%, 13% { transform: translateX(0%); }
    15%, 28% { transform: translateX(-14.2857%); }
    30%, 43% { transform: translateX(-28.5714%); }
    45%, 58% { transform: translateX(-42.8571%); }
    60%, 73% { transform: translateX(-57.1428%); }
    75%, 88% { transform: translateX(-71.4285%); }
    90%, 98% { transform: translateX(-85.7142%); }
    100% { transform: translateX(0%); }
  }
  
  .pause-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  
  .carousel-container:hover .carousel {
    animation-play-state: paused;
  }

  /* Footer mÃ³vil */
  footer {
    position: fixed;
    width: 100%;
    height: 2rem;
    background-color: white;
    color: rgb(43, 24, 60);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    bottom:0;
  }

  /* Estilos para otros contenidos mÃ³viles */
  .actualidadcontent,
  .espectaculoscontent {
    display: block;
    width: 95%;
    margin: 1rem auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  /* Hacemos que quienessomos y contacto ocupen el 100% del ancho, como el index */
  .quienessomoscontent,
  .contactocontent {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  /* Ajustes tipogrÃ¡ficos mÃ³vil */
  a:link, a:visited {
    color: rgb(100, 77, 121);
    text-decoration: underline;
  }

  a:hover {
    color: rgb(193,39,45);
  }

  /* Ajustes especÃ­ficos para mÃ³vil */
  hr {
    width: 90%;
    margin: 1rem auto;
    border-top: 1px solid rgb(43, 24, 60);
  }

  /* Ajustes para imÃ¡genes en mÃ³vil */
  .imgactualidad {
    max-width: 100%;
    float: none;
    margin: 1rem auto;
    display: block;
    border-radius: 0.5rem;
  }


  /* Ajustes para espectÃ¡culos en mÃ³vil - ACTUALIZADOS */
  .menuespectaculos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0; /* Mantenemos el margen en 0 */
  }

  .menu-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgb(230, 213, 246);
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.4s;
    width: 95%;
  }

  .menu-item img {
    width: 100%;
    border-radius: 0.5rem;
  }

  .menu-item:hover {
    background: rgb(230, 213, 246);
  }

  .menu-item .content {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .menu-item.active .content {
    display: block;
    width: 100%;
  }

  .menu-item.active > .imgsespectaculos {
    display: none;
  }

  .sinopsis {
    width: 100%;
    margin-bottom: 1rem;
  }

  .ytlink {
    position: relative;
    float: none;
    margin: 1rem 0;
    top: auto;
  }

  .ytlink iframe {
    width: 100%;
    height: 200px;
  }

  .ficha {
    margin-top: 1rem;
  }

  /* Ajustes para quiÃ©nes somos en mÃ³vil */

.quienessomoscontent {
  margin-bottom:0rem;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-height: auto;
  justify-content: center;
  text-align: justify;
  overflow: hidden;
}

.container {
  position: relative;
  margin: 2rem auto;
  width: 90%; /* Ocupa casi toda la pantalla */
  max-width: 500px; /* Un lÃ­mite para tablets en vertical */
  aspect-ratio: 50 / 30; /* Mantenemos la proporciÃ³n del escritorio (50rem / 30rem) */
  border-radius: 1rem;
  overflow: hidden;
}

.quienessomostext {
display: none;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/fotolacompania/byn.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Replicamos los estilos de hover/tap del escritorio */
.miembro-pulsable {
  position: absolute;
  height: 100%;
  cursor: pointer;
  transition: all 0.5s ease;
  z-index: 2;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* Usamos :hover y :active para que funcione tanto al pasar el ratÃ³n como al tocar */
.miembro-pulsable:hover, .miembro-pulsable:active {
  opacity: 1;
}

.ed { top: 0; left: 18%; width: 20%; background-image: url('images/fotolacompania/ed.png'); background-size: 500% 108.5%; background-position: 22.5% 49.8%; }
.mj { top: 0; left: 35%; width: 17%; background-image: url('images/fotolacompania/mj.png'); background-size: 590% 108.5%; background-position: 42.2% 50%; }
.nol { top: 0; left: 52%; width: 12%; background-image: url('images/fotolacompania/nol.png'); background-size: 838% 108.5%; background-position: 59.12% center; }
.sil { top: 0; left: 64%; width: 19%; background-image: url('images/fotolacompania/sil.png'); background-size: 526% 108.5%; background-position: 79% 49.8%; }

/* AÃ±adimos los estilos para el contenido desplegable que faltaban en mÃ³vil */
.miembro-contenido {
  position: fixed;
  top: 22rem;
  left: 0;
  width: 100%;
  z-index: 3;
  background-color: rgb(230, 213, 246);
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1rem;
}

.miembro-contenido.mostrar {
max-height: 43vh; /* Altura máxima de la mitad de la pantalla */
  padding: 1rem;
  overflow-y: auto; /* Scroll si el contenido es muy largo */
  margin-top: 1rem;
}

.imgcomponente {
  position: relative;
  display: block;
  width: 8rem;
  height: auto;
  border-radius: 0.5rem;
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.bio {
  position: relative;
  font-size: small;
  line-height: 1.5;
}

  /* Ajustes para contacto en móvil */
  
  .contactotxt {
    margin-top: 2rem;
    margin-left: 0;
    margin-right: 0;
    font-size: medium;
  }

  .imgcontacto{
    display: block;
    position: relative;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    border-radius: 0.5rem;
  }

  /* Estilos para el contenedor de redes sociales en móvil */
  .redes-container {
    text-align: center; /* Centra los iconos */
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .redes-container img {
    height: 3rem; /* Damos una altura fija y manejable */
    width: auto;  /* El ancho se ajusta automáticamente */
    margin: 0 1rem; /* Espacio entre los iconos */
  }

}