/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Encabezado */
.header {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Logo en el menú */
.menu-logo {
    max-width: 150px;
    /* Ajusta el tamaño del logo */
    height: auto;
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(52, 58, 64, 0.8)), url('../images_sitio/hero/hero-background.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-details {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.5rem;
}

/* Botón primario */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Carrusel */
.carousel-inner img {
    border-radius: 10px;
    object-fit: contain;
    /* Ajusta la imagen sin recortarla */
    width: 100%;
    /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: 100%;
}

/* .card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
} */

/* Tarjetas de Noticias */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Evita que la imagen sobresalga */
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 200px;
    /* Altura fija para la imagen */
    object-fit: cover;
    /* Asegura que la imagen cubra el área sin deformarse */
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    /* Hace que el cuerpo de la tarjeta ocupe el espacio restante */
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Drawer de Noticias */
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    /* Sombra más suave */
    border-radius: 10px 0 0 10px;
    /* Bordes redondeados en la parte derecha */
    transition: right 0.5s ease-in-out, opacity 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
    z-index: 1050;
    /* Asegura que el drawer esté por encima del menú */
    opacity: 0;
    /* Empezará invisible */
    visibility: hidden;
    /* Se asegurará de que el drawer no afecte al diseño cuando esté cerrado */
}

.drawer.open {
    right: 0;
    opacity: 1;
    /* Hacemos visible el drawer */
    visibility: visible;
    /* Lo muestra con visibilidad */
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #343a40;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #007bff;
    /* Cambio de color al pasar el ratón */
}

/* Pie de Página */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}


pre {
    color: #343a40;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    overflow-x: auto;
    font-family: 'Poppins', sans-serif;
    white-space: pre-wrap;
    /* Permite que el texto se ajuste */
    word-wrap: break-word;
    text-align: left;
}

#map {
    width: 100%;
    height: 400px;
}

.video-gallery {
    display: flex;
    flex-direction: column;
    /* Organización vertical */
    align-items: center;
    width: 100%;
    max-width: 850px;
    /* Para que no sea demasiado grande en pantallas grandes */
    margin: auto;
}

.main-video {
    width: 100%;
}

#player {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* Ajuste automático de altura */
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los videos se ajusten en varias filas */
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
}

.video-item img {
    width: 100%;
    max-width: 150px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-item img:hover {
    transform: scale(1.1);
}

.video-title {
    font-size: 12px;
    margin-top: 5px;
    color: #333;
}

/* 🔹 Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
    .video-gallery {
        max-width: 100%;
        padding: 10px;
    }

    .video-list {
        gap: 5px;
    }

    .video-item {
        width: 80px;
        /* Miniaturas más pequeñas en móviles */
    }

    .video-title {
        font-size: 10px;
    }
}

.product-card {
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: 250px;
    /* Altura fija para uniformidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.card.producto.agotado {
    opacity: 0.5;
}

.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
}

.soldout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.6);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.soldout-badge {
    background-color: #9e9e9e;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #343a40;
    /* border-bottom: 3px solid #007bff;
    display: inline-block; */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

.section-light {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.section-dark {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6);
    /* De blanco a un gris claro */
    color: #333;
    padding: 60px 20px;
}

.section-dark h2 {
    color: #007bff;
    /* Resalta los títulos en azul */
    border-bottom-color: #0056b3;
    /* Un azul más oscuro para diferenciar */
}


.section-divider {
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin: 40px auto;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.portfolio img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.portfolio img:hover {
    transform: scale(1.05);
}

.modal-content {
    background: black;
}

.carousel-item img {
    width: 100%;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
}

.zoom-hover {
    overflow: hidden;
    display: inline-block;
}

.zoom-hover img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
    height: auto;
}

.zoom-hover:hover img {
    transform: scale(1.1);
}

/* #gallery .video-item {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#gallery .video-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
#gallery .video-item label {
  font-weight: 500;
  color: #555;
}
#gallery .video-item input,
#gallery .video-item textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}
#gallery .btn-eliminar {
  background: transparent;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 20px;
} */

.video-gallery {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.main-video iframe {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    /* Menor separación */
    padding: 0 10px;
}

.video-item {
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.video-item img {
    width: 100%;
    border-radius: 6px;
}

.video-title {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
}

.video-fluid {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    /* Opcional */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Opcional */
}

.video-fluid iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}