.container {
  
  width:100%;
  margin:0px auto;
  font-size:1em;
  font-family: "Arial", Georgia, Serif;
  font-size: 15px;
}

.donation-button {
  z-index: 1150; /* Capa superior */
  position: fixed;
  bottom: 50px;
  right: 20px;
  background-color: #1d0347;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 15px 25px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.donation-button:hover {
  transform: scale(1.1);
  background-color: #008e75;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}





#div0{
  position: sticky;
  top:0;
  z-index: 999;
  display: grid;
  grid-template-columns: 30% 40% 30% ; /* 3 columnas  para los 3 divs que quedan debajo*/
  grid-template-rows: auto ; /* 1 fila: */
  background-color: #000000;
  color: #ffffff;
  width: 100%;
  height: 80px;
}

h1{
  color:white;
}

#div1{
   display: flex;
   justify-content: center;
   align-items: center;       /* centra verticalmente */
}
#div1 img{
  display: flex;
   justify-content: center;
   align-items: center;       /* centra verticalmente */
  border-radius: 18px;
  
}


  


#titulo2 {
  width: 100%;
  display: flex;
  justify-content: center;
}

#div2 {
  width: 100%;
  max-width: 1200px; /* ajustá según tu diseño */
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 8px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-family: Tahoma, sans-serif;
  font-size: 1em;
}

#div3-reproductor {
   
   display: flex;
   justify-content: center;
  
}







/*--------estilo para contactos de profes ------------------------


/*--------  fin estilo para las cartas de los profes  ------------------------*/
#offcanvasQuienesSomos{
  justify-content: center; /* Alinea el texto horizontalmente */
  align-items: center; /* Alinea el texto verticalmente */
  text-align: center; /* Alinea el texto al centro horizontalmente */
  
}

/* ANIMACION DEL FONDE DEL DIV DE ROFES*/




.grid-containerprofes {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* Siempre 5 columnas por fila */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  height: auto; /* Altura fija del contenedor */
  overflow-y: auto; /* Scroll si hay muchas filas */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%; /* Se ajusta automáticamente según la columna */
  aspect-ratio: 1; /* Hace que todas las tarjetas sean cuadradas */
  transition: transform 0.3s ease;
}

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

.imgBx img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que las imágenes llenen el contenedor sin distorsionarse */
}

.info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.card:hover .info {
  transform: translateY(0);
}


/*--------estilo para primer model de entrada ------------------------*/
body.modal-open {
  overflow: hidden; /* Deshabilita el desplazamiento mientras el modal está activo */
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  backdrop-filter: blur(4px); /* Desenfoque del fondo */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* Capa superior */
  opacity: 1; /* Para animación */
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.modal-wrapper.hidden {
  opacity: 0; /* Opacidad cero para el difuminado */
  
filter: blur(5px); /* Aplica un desenfoque */

pointer-events: none; /* Evita interacciones mientras desaparece */
}
/*
.custom-modal {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}



/*
.modal-content {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  border-radius: 15px;
  opacity: 0.9; 

.modal-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width:70%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-body {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
}
*/
.text-content {
  padding: 10%;
  color: white;
  font-size: 24px;
  animation: crawl 20s linear infinite; /* Animación estilo Star Wars */
}

@keyframes crawl {
  from {
      transform: translateY(100%);
  }
  to {
      transform: translateY(-100%);
  }
}

.modal-footer {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
  z-index: 2;
}

.modal-footer button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

video {
  width: 80%;
  height: auto;
  border-radius: 10px;
}


/*--------fin del estilo para primer model de entrada ------------------------*/
.gridPrincipal {

  display: grid;
  /* 30% 40% 30% → equivalente fluido sin % rígidos */
  grid-template-columns: 30% 40% 30%; 
  grid-gap: 5px;
  align-items: start;        /* evita estirado raro de columnas */
  justify-items: stretch;    /* que el contenido ocupe el ancho disponible */
  text-align: center;
  background-color: rgb(233, 231, 231);
  border-radius: 10px;
  box-sizing: border-box;    /* paddings/márgenes cuentan bien */


   /*
  background-color: rgb(233, 231, 231);
    display: grid;
    grid-template-columns: 30% 40% 30%; 
    grid-gap: 5px; 
    text-align: center; 
    border-radius: 10px;
    
    height: auto;*/
    }

/*------------  ESTILOS PARA LA PRIMERA SECCION ---------------------*/

#primeraSeccion {
  /*position: sticky;*/
  /*top: 100px;  Anclar el div al borde superior de la ventana */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none; 
  height: auto;
  padding: 1px;        /* respiración interna */
  box-sizing: border-box;
  /* overflow: hidden;  ← lo desactivo para que el contenido crezca */
  background-color: rgb(233, 231, 231);
}

/* === Título principal === */
.titulos-secciones {
  margin-top: 12px;
  font-size: 18px;
  color: rgb(26, 3, 88);
  margin-bottom: 10px;
  text-align: center;
}

/* ==-------------------= GRID PARA LA SECCION DE COMPRAS ---------------------------------== */
.grid-recursos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
  gap: 4px;
  justify-items: center;
  margin-bottom: 20px;
  background-color: #eedada;
}
/* ==-------------------= ESTO PERTENECES A IA ---------------------------------== */


.card-producto {
  
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  overflow: hidden;
  width: 98%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-producto:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.card-producto img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



.card-producto p {
  margin: 0;
  font-size: 0.8em;
  color: #333;
}

/* ==-------------------= FIN DE ESTO PERTENECES A IA ---------------------------------== */







/* === Tarjeta de compra centrada vertical y horizontalmente === */
.seccionCompra {
  display: flex;                 /* activamos flexbox */
  flex-direction: column;        /* apilamos verticalmente */
  align-items: center;           /* centramos horizontalmente */
  justify-content: center;       /* centramos verticalmente */
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
  max-width: 240px;
  min-height: 280px;             /* asegura misma altura visual */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* efecto hover */
.seccionCompra:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #f5f5f5;
}

/* imagen centrada y proporcionada */
.img-compra {
  display: block;
  width: 150px;
  height: 150px;                 /* tamaño fijo cuadrado */
  object-fit: contain;           /* mantiene proporción sin recortar */
  border-radius: 10px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

/* efecto hover sobre imagen */
.seccionCompra:hover .img-compra {
  transform: scale(1.05);
}


.titulo-compra{
  font-size: 14px;
}

.precio{
  font-size: 14px;
}

.formato{
  font-size: 10px;
}


/* === Botón comprar === 
.btn-comprar {
  background-color: #6739e6;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-comprar:hover {
  background-color: #2b28c6;
  transform: scale(1.05);
}
*/

.video-list {
  
  width: 95%;
  height: 95%;
  max-height: 1800px; 
  overflow-y: auto; 
  padding: 1px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.video-item {
  display: block;
  width: 98%;
  padding: 1px;
  margin-bottom: 5px;
  background-color: #7f5dfa;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.video-item:hover {
  background-color: #0056b3;
}

#TitulosVideos{

  font-size: small;color: #000;
  }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 600px;
  background-color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1100;
  border-radius: 10px;
  overflow: hidden;
}

.modal iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  font-size: 18px;
}

.modal-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.modal-header button:hover {
  color: #ff0000;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 799;
}




.controls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #0056b3;
}




#segundaSeccion{
    background-color: rgb(233, 231, 231);
    padding: 10px; /* Espacio interno */
    text-align: center; /* Centra el texto */
    border-radius: 10px;
    box-shadow: 1,1,1;
    /*border: 1px solid rgb(86, 204, 92);*/
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.4);
}

#videopasotango iframe {
  background-color: #007BFF;
  gap: 20px;
  margin: 30px;
  width: 50%;
  height: 50%;

}
/* ESTA SECCION ES CSS DE MURO DE PROFESORAS */

.contenedordelmuro_2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  width: 100%;
  max-width: 800px;  /* Ajusta el tamaño máximo según necesidad */
  height: auto;
  border-radius: 10px;
  border: 1px solid rgb(86, 204, 92);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  background-color: #dfdbdb;  /* Fondo opcional */
}

.contenedordelmuro_2::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* Relación de aspecto 16:9 por defecto */
}

.contenedordelmuro_2 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/*   EN ESTA SECCION ES EL CSS PARA EL CARROUSEL */



.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
  border: 2px solid #ccc;
  padding: 1px;
  margin: 1x;
  overflow: hidden;
}

.splide__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Ajusta la imagen para que cubra el área sin deformarse */
  border-radius: 5px; /* Opcional: esquinas redondeadas */
}


/* AQUI CSS DE CONTENIDO DE LA PUBLICACION EN GRAL */

/* === Contenedor principal de publicación === */
/* === Aseguramos que cada publicación sea un marco local === */
.publicacion {
  position: relative;  /* ⬅️ hace que el botón se ubique dentro de este bloque */
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  margin-bottom: 25px;
  padding: 15px;
  color: #fff;
  overflow: hidden;
}




/* === Contenedor visual uniforme para imágenes, videos e iframes === */
.publicacion .media-wrapper {
  width: 100%;
  max-width: 700px;        /* opcional: límite de ancho */
  aspect-ratio: 16 / 9;      /* mantiene proporción real de video */
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #000;  /* fondo neutro detrás de los medios */
  
}

/* === Imagenes === */
.publicacion img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* mantiene proporción, sin recortar */
}

/* === Videos === */
.publicacion video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 10px;
}

/* === Iframes (YouTube, Facebook, etc.) === */
.publicacion .media-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === Botón Eliminar (fuera de media-wrapper, dentro del post) === */
.publicacion .btn-eliminar {
  position: absolute;
  bottom: 10px;           /* ✅ se ubica en esquina inferior derecha del post */
  right: 10px;
  z-index: 1000;
  background-color: rgba(179, 0, 0, 0.9);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: background-color 0.3s, transform 0.2s;
  display: none;           /* oculto por defecto */
}

/* Visible sólo si estás logueado */
.admin-activo .publicacion .btn-eliminar {
  display: inline-block !important;
}

/* Hover */
.publicacion .btn-eliminar:hover {
  background-color: #ff1a1a;
  transform: scale(1.1);
}

.btn-carrousel, .btn-subir, .btn-Ventas {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  margin-left: 8px;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  transition: background-color 0.2s;
}

.btn-carrousel:hover {
  background-color: #19113a;
}

.btn-subir:hover {
  background-color: #19113a;
}

.btn-Ventas:hover {
  background-color: #19113a;
}



.fb-comments {
  margin-top: 10px;
  background-color: rgba(247, 243, 243, 0.8);
  border-radius: 8px;
  padding: 5px;
}

/*  este funciona pero aparce en la derecha arriba del bton cerrar sesion
.btn-eliminar {
   position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;               
  background-color: #b30000;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: background-color 0.3s, transform 0.2s;
  
}
.btn-eliminar:hover {
   background-color: #ff1a1a;
  transform: scale(1.05);
}
*/




/* === Botón "Cerrar sesión" === */
.btn-logout {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: #b30000;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
.btn-logout:hover {
  background-color: #e00000;
}

.publicacion img, 
.publicacion video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ==== Códigos embebidos (iframe, etc.) ==== */
.publicacion iframe,
.publicacion embed,
.publicacion object {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 10px 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ==== Contenedor responsivo 16:9 ==== */
.publicacion .responsive-embed {
  position: relative;
  padding-bottom: 70%; /* antes 56.25%, ahora más alto */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.publicacion .responsive-embed iframe,
.publicacion .responsive-embed embed,
.publicacion .responsive-embed object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



#TerceraSeccion {
  position: fixed;
  top: 80px;
  right: 0;
  width: 29%;               /* ajustá el ancho a gusto */
  height: 75vh;            /* ocupa toda la altura visible del navegador */
  background-color: rgb(233, 231, 231);
  padding: 2px;
  text-align: center;
  box-shadow: -4px 0 10px rgba(0,0,0,0.4);
  overflow-y: auto;         /* permite hacer scroll dentro si el contenido es largo */
  z-index: 1000;            /* asegura que quede por encima de otros elementos */
  border-radius: 10px;
  /*background-color: rgb(143, 19, 19);
  width: 95%;
  padding: 10px;
  margin: 0 auto;          
  text-align: center;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.4);
  border-radius: 10px;       /* opcional: bordes suaves */
}

/* --- Ajuste del carrusel dentro de la tercera sección --- */



 #carrusel .ctrl {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:white;
    border:none;
    font-size:2em;
    cursor:pointer;
    padding:0 10px;
    border-radius:5px;
  }
  #carrusel .ctrl:hover {
    background:rgba(255,255,255,0.3);
  }





/*
#TerceraSeccion .slider {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;          /* evita desbordes de imágenes 
}*/

/* --- Ajuste perfecto de las imágenes del carrusel --- */
/*
#TerceraSeccion .slider img {
  width: 100%;
  height: auto;
  max-height: 400px;  
  object-fit: contain; 

}*/
/*
 
#-----slider3 {
  position: sticky;
  top: 100px; 
  z-index: 4; 
  width: 90%;
  height: 390px;
  background-color: #fff; 
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
*/
#imagenloca{
  width: 10px;
  height: auto;
 
}

	/* Estilo básico para los comentarios */
  #commentsGrid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    margin-top: 20px;
    max-width: 700px;
  }
  
  .comment {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  #newCommentSection {
    margin-top: 10px;
    max-width: 700px;
  }
  
  textarea {
    width: 100%;
    padding: 10px;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  




section,aside {
  margin-top: 5px;
  padding: 10px;
  -moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;border-radius:3px;
}



#repro{
  align-items: center;
}

footer {
  position: fixed;
  width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  
  background-color: #333;
  text-align: center;
}
footer a {
  color: #fff;
}

h2 {
  color: #f06156;
}


/* === Página de producto === */
.contenedor-producto {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.titulo-producto {
  font-size: 20px;
  color: #1a0358;
  margin-bottom: 10px;
}

.descripcion-producto {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

#carouselProducto1 .carousel-item img {
  width: 100%;
  height: 40vw;          /* altura proporcional al ancho de la ventana */
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
}

.botonera-producto {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

/* Botón volver */
.btn-volver {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #333;
}

/* Botón comprar (reutiliza el estilo general) */
.btn-comprar {
  background-color: #12026e;
  color: white;
  border: none;
  padding: 5px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}

.btn-comprar:hover {
  background-color: #c62828;
}


/*  model de recolectar los datos */

/* === MODAL AISLADO PERSONALIZADO === */
.modalCompra-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modalCompra-box {
  background-color: #fdfdfd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 400px;
  text-align: left;
}

.modalCompra-title {
  text-align: center;
  color: #e63946;
  margin-bottom: 15px;
}

.modalCompra-box label {
  font-weight: bold;
  color: #333;
  margin-top: 5px;
}

.modalCompra-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.modalCompra-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.modalCompra-buttons .btn-volver {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.modalCompra-buttons .btn-volver:hover {
  background-color: #333;
}

.modalCompra-buttons .btn-comprar {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modalCompra-buttons .btn-comprar:hover {
  background-color: #c62828;
}

/*-----------------------------------------AQUI EMPEZAMOS A MODIFICAR EL RESPONSIVE --------------------------------*/


/* 1️⃣ Monitores grandes */
@media (max-width:1440px) {
  .grid-containerprofes {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* 2️⃣ Laptops */
@media (max-width:1200px) {
  #div0 { grid-template-columns: 33% 70%; }
}

/* 3️⃣ Tablets */
@media (max-width:768px) {
  .gridPrincipal {
    grid-template-columns: 100%;
  }
  #primeraSeccion, #segundaSeccion, #TerceraSeccion {
    width: 100%;
  }
  #div0 {
    grid-template-columns: 100%;
    text-align: center;
    height: auto;
  }

  #logo { 
  width: 50%;           /* o el tamaño que quieras */
  height: auto;         /* mantiene proporción del logo */
  display: block;       /* necesario para que funcione el margin */
  margin: 0 auto;       /* centra horizontalmente */
  text-align: center;   /* opcional si el contenido interno tiene texto */}
  #logo img { width: 100%; }


}
/* 4️⃣ Celulares */
@media (max-width:480px) {

  
.seccionCompra {max-width: 350px;}

  .titulo-producto { font-size: 16px; }
  .descripcion-producto { font-size: 13px; }
  .grid-containerprofes { grid-template-columns: 1fr; }
  .btn-comprar, .btn-volver { width: 100%; }

  #carouselProducto1 .carousel-item img {
  width: 100%;
  height: 40vw;          /* altura proporcional al ancho de la ventana */
  max-height: 900px;
  object-fit: contain;
  border-radius: 10px;
}

  #logo { 
  width: 50%;           /* o el tamaño que quieras */
  height: auto;         /* mantiene proporción del logo */
  display: block;       /* necesario para que funcione el margin */
  margin: 0 auto;       /* centra horizontalmente */
  text-align: center;   /* opcional si el contenido interno tiene texto */}
  #logo img { width: 100%; }

  }
