* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif
}

body,
html {
    height: 100%;
    margin: 0;
    overflow-x: auto
}

.contenedor-video {
    padding: 70px 0;
    z-index: 1;
    margin: 0 auto;
}

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

@media (max-width:768px) {
    .contenedor-video {
        border-top: 10px solid #fff;
        border-right: 15px solid #fff;
        border-bottom: 10px solid #fff;
        border-left: 15px solid #fff
    }

    .icons-container {
        width: 100%
    }

    .icons-container i {
        font-size: 20px
    }
}

@media (max-width:480px) {
    .contenedor-video {
        border-top: 2px solid #fff;
        border-right: 1px solid #fff;
        border-bottom: 1px solid #fff;
        border-left: 1px solid #fff
    }
}

.contenedor-ext {
    display: flex;
    padding: 5 10px;
    height: 200px;
    align-items: center;
    justify-content: center;
}

.wrapper {
    display: flex;
    height: 100%;
    width: 80%;
    ;
    position: relative
}

.wrapper i {
    top: 50%;
    color: #065da6;
    cursor: pointer;
    font-size: 4em;
    position: absolute;
    text-align: center;
    transform: translateY(-50%);
    transition: transform .5s linear;
    z-index: 1
}

.wrapper i:active {
    transform: translateY(-50%) scale(.8)
}

.carousel img:hover,
.informacion .shop:hover {
    transform: scale(1.2);
}

.wrapper i:first-child {
    left: -50px;
    display: none;
}

.wrapper i:last-child {
    right: -50px;
}

.wrapper .carousel {
    font-size: 0px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.carousel.dragging {
    cursor: grab;
    scroll-behavior: auto;
}

.carousel.dragging img {
    pointer-events: none;
}

.carousel a {
    margin-left: 1vw;
}

.carousel img {
    margin: 3px;
    height: 100px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    -webkit-user-select: none;
    user-select: none;
    margin-left: 2vw;
    border: 6px solid #065da6;
    transition: .5s;
}

.carousel img:hover {
    transform: scale(0.9);
}

.carousel img:first-child {
    margin-left: 0;
}

/* Móvil: Cuadrícula 5x5 */
@media (max-width: 550px) {
    .contenedor-ext {
        max-width: 100%;
        display: grid; 
        grid-template-columns: repeat(5, 1fr); /* Crear 5 columnas */
        grid-gap: 5px; 
        padding: 0;
        height: auto;
        justify-items: center;
    }

    .wrapper {
        display: block; /* Cambié a bloque, para evitar interferencias con el grid */
    }

    .wrapper i {
        display: grid; 
    }

    .carousel {
        display: grid;
        grid-template-columns: repeat(5, 1fr); 
        gap: 5px; /* Espacio entre las imágenes */
    }

    .carousel img {
        width: 100% / 5; /* Las imágenes ocupan 1/5 del ancho */
        height: 80px; 
        object-fit: cover;
        transition: .5s;
        margin-left: 0; 
    }

    .carousel img:hover {
        transform: scale(1.1); /* Efecto de escala al pasar el ratón */
    }
}

/* Pantallas más grandes: Diseño original */
@media screen and (min-width: 551px) and (max-width: 900px) {
    .contenedor-ext {
        display: flex;
        padding: 0 10px;
        height: 400px;
        align-items: center;
        justify-content: center;
    }

    .carousel img {
        height: auto;
        object-fit: cover;
        -webkit-user-select: none;
        user-select: none;
        margin-left: 2vw;
        width: calc(100% / 8);
        transition: .5s;
    }
}

/* Pantallas de escritorio: Diseño original */
@media screen and (min-width: 901px) {
    .contenedor-ext {
        display: flex;
        padding: 0;
        height: auto;
        align-items: center;
        justify-content: center;
    }

    .carousel img {
        margin-left: 2vw;
        height: 100px;
        width: auto;
        object-fit: cover;
    }
}


.icons-container,
.icons-container i {
    justify-content: center;
    display: flex
}

.informacion {
    background-color: #fff;
    text-align: center;
    padding: 10px;
    margin-left: 10%;
    margin-right: 10%
}

.informacion .btn-primary {
    background: #065da6;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    border: 0;
    padding: 5 10em
}


.footer,
.footer .row {
    padding: 0;
    text-align: center
}

.informacion .btn-primary:hover {
    background: #022a80
}

.informacion h5 {
    font-weight: bold;
    margin-top: 20px;
    color: #065598
}

.informacion .shop {
    height: 50px;
    width: auto;
    transition: .5s;
    margin-left: 1vw;
    margin-right: 1vw
}

.informacion p {
    text-align: center;
    font-weight: 600;
}

.icons-container {
    gap: 5px;
    margin: 0;
}

.facebook {
    background-color: #065da6;
    border-radius: 50%;
}

.footer {
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #065da6;
    margin: 0
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0
}

.footer a {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    transition: 3ms
}

footer a:hover {
    color: #12e115
}
body.modal-abierto {
  overflow: hidden !important;
  height: 90vh;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.modal-abierto {
  overflow: hidden;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.modal-contenido {
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 80vw;
  max-height: 80vh;
  overflow: hidden;
  animation: fadeIn 0.5s ease-in-out;
  position: relative; /* Para posicionar la X */
}

.img-modal {
  max-width: 90vw;
  max-height: 80vh;
  height: auto;
  width: auto;
}

.cerrar-modal {
  /* display: none;  <-- eliminar para que se muestre */
  position: absolute;
  top: 5px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-color: #e53935;
  border-radius: 50%;
  border: none;
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 1;          
  pointer-events: auto; 
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(255, 255, 255, 0.4),
    0 0 12px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;       
  display: flex;      
  align-items: center; 
  justify-content: center;
}


/* Mostrar con efecto pop */
.cerrar-modal.mostrar {
  display: flex;
  animation: popIn 0.4s ease-out;
  opacity: 1;
  pointer-events: auto;
}

/* Efecto al pasar el cursor */
.cerrar-modal:hover {
  transform: scale(1.2);
  background-color: #c62828;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}



/* ===== BOTONES DE REDES ===== */

.buttons-network {
  z-index: 100;
  transition: all 0.3s ease;
}

/* Botón individual */
.buttons-network__button {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  background: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.buttons-network__button i {
  font-size: 1.5em;
  line-height: 1;
}

.buttons-network__button p {
  display: none;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
}

.buttons-network__button:hover {
  width: 140px;
  padding: 0 10px;
}

.buttons-network__button:hover p {
  display: block;
}


@media (min-width: 768px) {
  .buttons-network {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .buttons-network {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px auto 10px auto;
  }

  .buttons-network__button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin: 5px;
    padding: 0;
  }

  .buttons-network__button:hover {
    width: 40px;
    padding: 0;
  }

  .buttons-network__button p {
    display: none !important;
  }
}

.buttons-network__button:nth-child(1):hover {
  color: #4267b2;
}

.buttons-network__button:nth-child(2):hover {
  color: #e1306c;
}

.buttons-network__button:nth-child(3):hover {
  color: #FF2056;
}

.buttons-network__button:nth-child(4):hover {
  color: #0e76a8;
}
.buttons-network__button:nth-child(5):hover {
  color: #0e76a8;
}
.buttons-network__button:nth-child(6):hover {
  color: #F4320B;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.buttons-network__button:hover {
  animation: bounce 0.5s ease;
}
.image-overlay-container {
  position: relative;
  width: 100%;
}

.image-overlay-container .img-modal {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay-container {
  position: relative;
  width: 100%;
}

.img-modal {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-btn {
  position: absolute;
  display: block;
  background: transparent;
  color: black;
  text-decoration: none;
  text-align: center;
  padding: 10px 16px;
  width: 50%;        
  left: 25%;         
  z-index: 2;
  transition: background-color 0.3s ease;  
}

/* Ubicaciones para cada botón*/
.boton1 { top: 48%; }
.boton2 { top: 56%; }
.boton3 { top: 64%; }
.boton4 { top: 72%; }
.boton5 { top: 80%; }
.boton6 { top: 88%; }

@media (max-width: 768px) {
  .overlay-btn {
    width: 60%;
    left: 20%;
    padding: 12px 18px;
  }
.boton1 { top: 47%; }
.boton2 { top: 55%; }
.boton3 { top: 64%; }
.boton4 { top: 72%; }
.boton5 { top: 80%; }
.boton6 { top: 88%; }
}

@media (max-width: 480px) {
  .overlay-btn {
    width: 80%;
    left: 10%;
    padding: 14px 20px;
    font-size: 14px;
  }
.boton1 { top: 46%; }
.boton2 { top: 54%; }
.boton3 { top: 62%; }
.boton4 { top: 70%; }
.boton5 { top: 78%; }
.boton6 { top: 87%; }
}

