@tailwind base;
@tailwind components;
@tailwind utilities;


.container{
    margin-top:60px;
    z-index: 1;
}
/* _custom.scss */

.navbar-brand{
    color: #ff6347 !important;
}

.navbar { 
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6347 !important; /* Tomate */
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6347;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}
.dropdown-toggle:after{
    border: none !important;
}

.nav-link:hover::after {
    width: 100%;
}

.single-line-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-img-container {
    width: 100%;
    max-height: 200px; /* Ajusta esta altura según tus necesidades */
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para cubrir el contenedor sin deformar la imagen */
    object-position: center !important;
}

.categories {
    text-align: center;
}
.categories-list {
    text-align: center;
}

.categories h2 {
    color: #333; /* Color oscuro para el título */
    margin-bottom: 20px;
}
.categories-list h2 {
    color: #333; /* Color oscuro para el título */
    margin-bottom: 20px;
}

.category {
    display: block;
    background-color: #f8f9fa; /* Fondo claro */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-decoration: none;
    color: #333; /* Color oscuro para el texto */
    transition: transform 0.3s, box-shadow 0.3s; /* Transiciones para la animación */
}

.category:hover {
    transform: scale(1.05); /* Escala ligeramente el elemento */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Sombra con brillo */
}

.category h3 {
    font-size: 1.5rem;
    margin: 0;
    position: relative;
}

.category h3::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: #ff6347; /* Color de la línea debajo del texto */
    position: absolute;
    left: 50%;
    bottom: -5px;
    transition: width 0.3s ease, left 0.3s ease; /* Transición para la animación */
}

.category:hover h3::after {
    width: 100%;
    left: 0;
}

.btn-primary{
    background-color: #ff6347 !important; 
    border-color:#ff6347 !important
}

.background-container {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('../images/banner-pacori-list.jpg'); /* URL de tu imagen de fondo */
    background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: center; /* Centra la imagen */
    z-index: -1; /* Coloca este contenedor detrás */
}

/* Estilo del input cuando está enfocado */
.form-control:focus {
    border-color: #ffffff !important; /* Color de borde al enfocar (puedes cambiar este valor) */
    box-shadow: 0 0 8px rgba(62, 64, 66, 0.5) !important; /* Sombra alrededor del borde */
}

 /* Ocultar el contenido por defecto en pantallas pequeñas */
 .categories-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}



/* Mostrar el contenido cuando esté expandido */
.categories-content.show {
    max-height: 500px; /* Ajusta este valor según el contenido */
}

.carousel-item img {
    object-fit: cover;
    height: 400px;
}

.carousel{
    background-color: #ff6347;
}

/*FOOTER*/
footer {
    background-color: #343a40;
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #f8f9fa;
}

footer h5 {
    color: #f8f9fa;
}

footer .fab {
    font-size: 1.5rem;
    transition: color 0.3s ease-in-out;
}

footer .fab:hover {
    color: #f8f9fa;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}
/*END FOOTER*/

/* Hidden search bar*/
.custom-search-bar {
    position: absolute;
    top: 70px; /* Adjust based on your navbar height */
    right: 20px;
    z-index: 1000;
    width: 300px; /* Adjust based on your preference */
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.5s ease; /* Smooth transition */
    opacity: 0; /* Start hidden */
    transform: translateY(-20px); /* Start slightly above */
}

.custom-search-bar.show {
    opacity: 1; /* Become visible */
    transform: translateY(0); /* Move to original position */
}

.custom-search-bar .input-group {
    display: flex;
}

.custom-search-bar .form-control {
    flex: 1;
}

.custom-search-bar .btn-primary {
    margin-left: 5px;
}

/* END Hidden search bar*/

/* Botón visible solo en pantallas pequeñas */
@media (min-width: 768px) {
    #toggleButton {
        display: none;
    }

    .categories-content {
        max-height: none; /* Mostrar contenido sin restricciones en pantallas más grandes */
        overflow: visible;
        transition: none; /* Sin transición en pantallas más grandes */
    }
}


@media (max-width: 768px) {
    .carousel-item img {
        height: auto;
    }
}