/* ===== Fondo general y body ===== */
body {
    background-color: #dbece2; /* Fondo principal */
    font-family: Arial, sans-serif;
    padding-top: 120px; /* Para evitar que el contenido quede debajo del nav+logo fijo */
    margin: 0;
}

/* Ajustes para evitar contenido tapado por nav fijo */
.custom-body {
    background-color: #E7FFF9;
    margin-top: 0;
    padding-top: 0;
}

/* ===== Barra superior ===== */
.top-bar {
    background-color: #FFCBCB;
    padding: 4px 0;
    font-size: 0.9rem;
}

.contact-info,
.contact-link {
    color: #333;
}

.contact-link {
    margin-left: 6px;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Botón login pequeño */
.login-btn {
    padding: 0.2rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* ===== Contenedor del logo ===== */
.logo-container {
    background-color: #FFCBCB;
    padding: 8px 0;
    text-align: center;
}

/* Logo imagen */
.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Logo texto */
.logo-link {
    text-decoration: none !important;
    color: inherit; /* toma el color del padre */
}

.logo-text {

    font-size: 3rem;
    text-shadow:
        2px 2px 0 white,
        -2px 2px 0 white,
        2px -2px 0 white,
        -2px -2px 0 white; /* contorno blanco */

    font-family: 'Sansita One', sans-serif;
    color: #FFCBCB !important;
    padding: 0.3rem 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;

}

/* ===== Navbar principal ===== */
.custom-navbar {
    background-color: #FCF0FF !important;
    padding: 4px 0;
}

.custom-navbar .navbar-nav {
    font-size: 0.95rem;
}

.custom-navbar .nav-link {
    font-family: 'Sansita One', sans-serif;
    color: #FFCBCB !important;
    padding: 0.3rem 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff; /* contorno blanco */
}

.custom-navbar .nav-link:hover {
    color: #FCF0FF !important;
    font-weight: 500;
}

/* Reducir altura del botón toggler */
.navbar-toggler {
    padding: 0.15rem 0.5rem;
}

/* ===== Catálogo ===== */
.catalogo-header h1 {
    font-weight: bold;
}

.catalogo-divider {
    border-top-width: 3px;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px; /* Ajusta según el tamaño de la card */
    object-fit: contain; /* Muestra la imagen completa sin recortarla */
    background-color: #f8f9fa; /* Fondo para cuando la imagen no cubra todo */
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

/* ===== Botones primarios ===== */
.btn-primary {
    background-color: #BEC4E3;
    border-color: #BEC4E3;
}

.btn-primary:hover {
    background-color: #BEC4E3;
    border-color: #BEC4E3;
}

/* ===== Footer ===== */
.footer-custom {
    background-color: #FFCBCB;
    color: white;
    font-size: 0.9rem;
}

/* Importa la fuente Sansita One desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sansita+One&display=swap');

/* Estilos generales para el footer */
/* Importa Sansita One - ponlo en tu <head> o CSS principal */
/* @import url('https://fonts.googleapis.com/css2?family=Sansita+One&display=swap'); */

#pie {
    background-color: #FFCBCB;
    font-family: 'Sansita One', cursive, sans-serif;
    color: #333;
    padding: 20px 15px;  /* padding reducido para compactar */
}

/* Ajusta las columnas para que se adapten al contenido */
#pie .col-md-4 {
    display: flex;
    flex-direction: column;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem; /* pequeño margen para separación */
    height: auto;
    min-height: unset;
}

/* Reduce padding interno en contenedores */
#pie .pl-1, #pie .pr-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

/* Títulos en negrita con margen compacto */
#pie h3,
#pie h4,
#pie h5 {
    font-weight: 300;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Párrafos justificados y compactos */
#pie p {
    text-align: justify;
    color: #333;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Listas compactas */
#pie ul {
    padding-left: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Formulario compacto */
#pie form .form-group {
    margin-bottom: 0.75rem;
}

#pie form .form-control {
    border-radius: 0;
    margin-bottom: 10px;
}

/* Botón enviar estilizado */
#pie form .btn-primary {
    background-color: #333;
    border-color: #333;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

#pie form .btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

/* Enlaces en footer */
#pie a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#pie a:hover {
    color: #000;
    text-decoration: underline;
}

/* SVG icons tamaño y color */
#pie .svg-icon {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Imágenes responsive y compactas */
#pie img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem auto;
}

/* Loader waitMe compacto */
#pie .waitMe {
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    min-height: 30px;
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#pie .waitMe_content {
    margin-top: 0;
    text-align: center;
    font-weight: 700;
    color: #333;
    font-size: 12px;
}

/* Responsive - columnas apiladas en móviles con margen pequeño */
@media (max-width: 767.98px) {
    #pie .row > div[class*="col-md-"] {
        margin-bottom: 20px;
    }
}
/* Responsive - ODERTAS*/
.carousel-wrapper {
    margin-bottom: 30px; /* o el espacio que necesites */
}

.carousel-img {
    max-height: 400px;
    object-fit: contain; /* Cambiado de cover a contain */
    width: 100%;
    background-color: #FFEDED; /* Opcional: fondo negro para los espacios */
}


.caption-bg {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo negro semitransparente */
    color: sandybrown;
}

.carousel-caption h5,
.carousel-caption p {
    margin: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}
/* Rpaginete */
.pagination .page-item .page-link {
    color: #6f42c1; /* Color texto */
    border-radius: 8px; /* Bordes redondeados */
    border: none;
    padding: 6px 12px;
    font-size: 0.875rem; /* Más pequeño */
    transition: all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link {
    background-color: #6f42c1; /* Fondo activo */
    color: white;
}

.pagination .page-item .page-link:hover {
    background-color: #e9d8fd; /* Hover suave */
    color: #6f42c1;
}
/*.sidebar {*/
/*    background-color: #FFEDED;*/
/*}*/
/* Sidebar visible en desktop */
.sidebar {
    /*background-color: #FFEDED;*/
    /*padding: 1rem;*/
    /*border-radius: 0.375rem;*/
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
    /*font-family: 'Sansita One', sans-serif;*/
    /*color: #6f42c1;*/

    /*!* position: fixed; *!*/
    /*top: 120px;*/
    /*!* left: 0; *!*/
    /*width: 120px;*/
    /*height: auto; !* o quita height si quieres que crezca según contenido *!*/
    /*!*background-color: #FFEDED;*!*/
    /*!*padding: 1rem;*!*/
    /*!*border-radius: 0.375rem;*!*/
    /*!*box-shadow: 0 2px 8px rgba(0,0,0,0.05);*!*/
    /*!*font-family: 'Sansita One', sans-serif;*!*/
    /*!*color: #9ea8d9;*!*/
    /*!*overflow-y: visible; !* cambia para que no corte si crece *!*!*/
    /*transition: none; !* elimina transición *!*/
    /*z-index: auto;*/
    /*margin-bottom: 1rem; !* para separar del contenido si está debajo *!*/

    /*!* Elimina alturas fijas *!*/
    /*!*width: auto;          !* ancho automático según contenido o contenedor padre *!*!*/
    /*max-width: 250px;     !* máximo ancho, opcional *!*/
    /*!*height: auto;         !* alto automático *!*!*/
    /*max-height: 90vh;     !* para evitar que crezca mucho verticalmente *!*/

    /*overflow-y: auto;     !* si el contenido es muy largo, agrega scroll vertical *!*/

    background-color: #FFEDED;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Sansita One', sans-serif;
    color: #6f42c1;

    width: 250px;        /* ancho fijo o máximo */
    height: auto;
    max-height: 90vh;
    overflow-y: auto;

    /* Si quieres fijo: */
    position: sticky;    /* fijo relativo al scroll */
    top: 120px;          /* según altura de nav */
}


/* Ocultar sidebar */
.sidebar.hidden {
    transform: translateX(-240px);
}

/* Título */
.sidebar h5 {
    font-weight: 600;
    color: #BE456F;
    margin-bottom: 1rem;
}

/* Lista y items */
.sidebar .list-group {
    border: none;
    padding-left: 0;
    margin: 0;
}

.sidebar .list-group-item {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
    font-weight: 500;
    color: #9ea8d9;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.sidebar .list-group-item:hover {
    color: #FFCBCB;
    font-weight: 700;
    background-color: transparent;
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background-color: transparent;
    color: #BE456F;
    font-weight: 700;
    border-left: 3px solid #BE456F;
    padding-left: 0.75rem;
}

.sidebar .list-group-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.sidebar .list-group-item a:hover {
    color: #FFCBCB;
    text-decoration: underline;
}


.list-group-item {
    background-color: #BEC4E3;      /* color base tipo botón */
    color: #fff;                    /* texto blanco */
    border: none;                   /* sin borde */
    border-radius: 0.375rem;        /* bordes redondeados */
    margin-bottom: 0.5rem;          /* separación entre botones */
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    user-select: none;              /* no seleccionar texto al clic */
}

.list-group-item a {
    color: inherit;                 /* para que el enlace tome el color del botón */
    text-decoration: none;
    display: block;                 /* para que el link ocupe todo el item */
    width: 100%;
}

.list-group-item:hover {
    background-color: #9ea8d9;      /* color hover */
    font-size: 1.1rem;              /* aumentar tamaño del texto */
    color: #fff;
}

.list-group-item.active {
    background-color: #FCF0FF;      /* color botón activo */
    color: #fff;
    font-weight: 700;
}
h5 {
    text-align: center;
}


/* ====== Sidebar de categorías ====== */
.sidebar-categorias {
    background-color: #f8f9fa;
    padding: 15px;
    border-right: 2px solid #dee2e6;
    min-height: 100vh; /* Altura completa */
}

/* Título */
.sidebar-categorias h5 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #495057;
}

/* Lista de categorías */
.sidebar-categorias .list-group-item {
    border: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.sidebar-categorias .list-group-item:hover {
    background-color: #e2e6ea;
    transform: translateX(3px);
}

/* Enlaces */
.sidebar-categorias .list-group-item a {
    color: #343a40;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

/* Hover en enlace */
.sidebar-categorias .list-group-item a:hover {
    color: #0d6efd;
}

/* Activo */
.sidebar-categorias .list-group-item.active {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}

.sidebar-categorias .list-group-item.active a {
    color: white;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .sidebar-categorias {
        min-height: auto;
        border-right: none;
        border-top: 2px solid #dee2e6;
    }
}




/* Hace que el modal sea ancho */
.modal-dialog {
    max-width: 90%; /* más ancho que el modal normal */
}

/* Quita restricciones de tamaño en el contenido */
.modal-body {
    padding: 0; /* elimina relleno interno */
}

/* Hace que la imagen ocupe todo el ancho disponible */
.product-image {
    width: 50%;
    height: auto;
    object-fit: cover;
}

/* Si quieres que el contenido del card use todo el ancho */
.product-card {
    width: 100%;
    border-radius: 0; /* opcional: bordes rectos */
}

/* Evita que la tarjeta se vea pequeña */
.modal-body > .col-12,
.modal-body > .col-sm-6,
.modal-body > .col-md-4 {
    flex: 1 1 100%;
    max-width: 100%;
}
.product-video {
    width: 50%;
    height: auto;
    max-height: 500px; /* opcional, para limitar altura */
    background-color: black; /* para que se vea bien cuando cargue */
}
/* Contenedor que asegura mismo tamaño para video o imagen */
.media-container {
    width: 100%;
    max-height: 300px; /* limita la altura para que no se vea enorme */
    aspect-ratio: 16 / 9; /* mantiene la proporción */
    overflow: hidden;
}

/* Imagen que cubre todo el contenedor */
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón del video centrado y ocupa todo el contenedor */
.media-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-size: 1rem;
}

