
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    scroll-behavior: smooth;
    font-family: "Poppins", Helvetica, Arial, sans-serif;


}

body {
    min-height: 100vh;
    display: flex;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #F8FAFC;
}

a {
    text-decoration: none;
    color: #007BFF; 
}

/*IMAGENES*/

img {
    max-width: 100%;
    height: auto;
}


/* Asegurar que el contenido principal tome el espacio disponible */
.main-content, main {
    flex: 1;
}


/* Header #0F172A color viejo */



/* MIGAS DE PAN / BREADCRUMB */

/* Estilos para breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
}


.breadcrumb .breadcrumb-item {
    font-weight: 500;
}

.breadcrumb .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb .breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: none;
}

.breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}


/* Responsive migas de pan */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        margin: 1.5rem 0;
    }
}



/*HOME*/

/* locales card */

.card{
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease,box-shadow 0.25 ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


.card-title {
    color: #0F172A;
    font-weight: 600;
}

.card-text small {
    color: #64748B;
}


/* CARD HOME promociones y novedades*/


.card-body-p , .card-body-n {
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.02);
    border-radius: 8px;
}

.card-portada i{
    font-size: 60px;
}

.card-body-p {
    background-color: #DBEAFE;
    color: #002b6b;
}

.card-body-n{
    background-color: #DCFCE7;
    color: rgb(0, 44, 0)
}

.card-portada .btn {
    color: #fff;
}

.card-body-p:hover, .card-body-n:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}


/* Cards de estadísticas/reportes */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info, .card.bg-danger {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card.bg-primary:hover, .card.bg-success:hover, .card.bg-warning:hover, .card.bg-info:hover, .card.bg-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


.card.h-100 {
    min-height: 160px;
}

.card.h-100 .card-body {
    padding: 1.5rem;
    background-color: transparent;
}

.card.h-100 .display-4 {
    opacity: 0.8;
}




/* HOME servicios  */



.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #2563EB; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.service-icon:hover {
  background-color: #000000; /* azul principal */
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2)
}




/* Texto alertas */

.alert p {
    margin: 0;
    font-size: 16px;
}



/* BOTONES  */

.btn {
    border-radius: 8px ;
}

.btn-rounded {
    border-radius: 12px ;
}

.btn-pill {
    border-radius: 25px;
}



/* IMG PORTADAS locales , promociones y novedades */

/* contenedor portada */
.portada {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* img de fondo portada */

.portada-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.05); /* oscurece un poco para que el texto resalte */
    transition: transform 0.5s ease;
}

/* efecto zoom */
.portada:hover .portada-img {
  transform: scale(1.03);
}

/* texto portada*/
.portada-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 0 2rem; 
    z-index: 2;
    width: 90%; 
    max-width: 1000px;
}

.portada-titulo {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.15em; 
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.portada-subtitulo {
    font-size: 1.1rem;
    font-weight: 400;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 900px; 
    margin: 0 auto;
    line-height: 1.6; 
}


@media (max-width: 992px) {
  .portada {
    height: 240px;
  }
  .portada-titulo {
    font-size: 2rem;
    letter-spacing: 0.12em; 
  }
  .portada-subtitulo {
    font-size: 1rem;
    max-width: 800px; 
  }
  .portada-overlay {
    padding: 0 1.5rem; 
    width: 95%;
  }
}

@media (max-width: 576px) {
  .portada {
    height: 200px;
  }
  .portada-titulo {
    margin-top: 2rem;
    font-size: 1.6rem;
    letter-spacing: 0.08em; 
  }
  .portada-subtitulo {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    max-width: 100%; 
  }
  .portada-overlay {
    padding: 0 1rem; 
    width: 100%;
  }
}


/*CARRUSEL*/


.main-container {
    max-width: 1400px;
    margin:  0 auto;
    padding: 0 15px;

}

/* Carrusel responsive */
.carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: #f8f9fa;

}

/* Altura adaptable */
@media (max-width: 768px) {
    .carousel-img {
        height: 180px;
    }
}
@media (max-width: 576px) {
    .carousel-img {
        height: 180px;
    }
}
@media (min-width: 1200px) {
    .carousel-img {
        height: 600px;
    }
}
@media (min-width: 1400px) {
    .carousel-img {
        height: 900px;
    }
}

/* Bordes redondeados y overflow controlado */
.carousel-inner {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Transición suave entre slides */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Controles visibles en móvil */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 15%;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px;
    height: 25px;
  }
}

/* Indicadores personalizados */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}
.carousel-indicators [data-bs-target].active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Indicadores más grandes en móvil */
@media (max-width: 768px) {
  .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
  }
}






/* LOCALES */

/* Contenedor de locales con restricción de ancho */
.locales-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mejorar el espaciado en pantallas grandes */

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Buscador responsive */
@media (min-width: 768px) {
    .buscador-container {
        max-width: 600px;
        margin: 0 auto;
    }
}






/* TABLAS*/





/* Estilos base para tablas */

.tabla {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tabla caption {
    caption-side: top;
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    padding: 0.75rem 0;
    border: none;
    border-radius: 0;
}

.tabla th {
    font-weight: 600;
    color: #495057;
    border-top: none;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabla td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}


/* Responsive */

.table-responsive .table {
    margin-bottom: 0;

}

.table-responsive .table th {
    background-color: #aaa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-responsive {
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}


@media (max-width: 576px) {
    .tabla {
        margin-top: 2rem;
        font-size: 0.8rem;
    }
    
    .tabla th,
    .tabla td {
        padding: 0.5rem 0.25rem;
    }
    
    
    /* botones más chicos en móvil */
    .tabla .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .tabla {
        margin-top: 2rem;
        font-size: 0.85rem;
    }
    
    /* Ajustar spacing en tablets */
    .tabla th,
    .tabla td {
        padding: 0.6rem 0.4rem;
    }
}



/*  scroll horizontal */

.table-responsive::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-responsive:hover::after {
    opacity: 1;
}

/* Mejorar la visibilidad de badges en tablas */
.tabla .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

@media (max-width: 576px) {
    .tabla .badge {
        font-size: 0.7rem;
        padding: 0.25em 0.5em;
    }
}


/* Paginacion Bootstrap personalizada */

.paginacion {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.paginacion .btn {
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    transition: all 0.15s ease-in-out;
}

.paginacion .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.paginacion .btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.paginacion .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 700;
}

.paginacion .current {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    text-decoration: none;
}

/* Responsivo para paginación */

@media (max-width: 576px) {
    .paginacion .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .paginacion .current {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ALERTAaS */

/* Mensaje alerta */

.alert {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
    text-transform: none !important;
}

/* texto alerta */
h1, h2, h3, h4, h5, h6, .card-title, .alert, .alert *, 
.breadcrumb, .breadcrumb *, .navbar *, .btn , .portada{
    text-transform: none !important;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}



/* Animación para las alertas */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Estilos de Foco para Accesibilidad */

a:focus-visible, 
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #007BFF;
    outline-offset: 2px;         
    box-shadow: 0 0 0 4px rgba(0,123,255,0.4); 
    border-radius: 4px; 
}