/* General Styles */
body {
    font-family: 'Roboto', Condensed, sans-serif;
    line-height: 1.2;
    background-color: white;
    color: #333;
    margin: 0;
    padding: 0;
}


/* Header */
header {
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    background: linear-gradient(0deg, #46a9ff, #3849ff);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Horizontal Panel */
.horizontal-panel {
    position: fixed; /* Fijo en la parte superior */
    top: 0; /* Anclado al borde superior */
    left: 0; /* Empieza desde el lado izquierdo */
    width: 100%; /* Ocupa todo el ancho del navegador */
    height: 60px; /* Altura del panel */
    background: #3849ff; /* Color de fondo */
    display: flex; /* Flexbox para alinear contenido */
    align-items: center; /* Centra verticalmente el contenido */
    padding: 0 15px; /* Espaciado interno */
    z-index: 1100; /* Encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0); /* Sombra para destacar */
}

header h1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

header h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

header h3 {
    padding: 0.5rem;
    font-weight: bold;
    margin: 0;
}

header p {
    font-size: 1rem;
    margin: 10px 0 0;
}

.background img {
    border-radius: 14px; /* si quieres bordes redondeados, ok */
    margin: 20px auto;      /* centra horizontalmente */
    display: block; 
    width: 90%; 
    height: auto; 
}


/* Contenedor del modal */
#searchModal {
    display: none;
    visibility: hidden
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Contenedor de los resultados */
#searchResults {
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    
}

.search-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 600px; /* Tamaño máximo del cuadro */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff6666;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.start-search-btn {
    background-color: #64b4f9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-search-btn:hover {
    background-color: #64b4f9bf;
}


/* Scrollable Navigation Bar */
.navbar {
    position: fixed; /* Fijo en la pantalla */
    top: 0;
    left: 0; /* Anclado al lado izquierdo */
    height: 100%; /* Ocupa toda la altura del viewport */
    width: 200px; /* Ancho del menú */
    background-color: #2a2933; /* Fondo blanco */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
    display: flex;
    flex-direction: column; /* Elementos apilados verticalmente */
    justify-content: space-between; /* Espaciado entre secciones */
    overflow-y: auto; /* Habilita el scroll vertical */
    padding: 20px 10px; /* Espaciado interno */
    z-index: 1000; /* Asegura que esté encima de otros elementos */
    transform: translateX(-100%); /* Inicialmente oculto fuera de la pantalla */
    transition: transform 0.3s ease; /* Transición suave */

}

/* Mostrar la barra de navegación */
.navbar.active {
    transform: translateX(0); /* Desliza el menú dentro de la pantalla */
}

/* Overlay Background */
.overlay {
    position: fixed; /* Cubre toda la pantalla */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    height: 100%; /* Ocupa toda la altura */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    visibility: hidden; /* No visible por defecto */
    opacity: 0; /* Totalmente transparente */
    transition: visibility 0.3s ease, opacity 0.3s ease; /* Transición suave */
    z-index: 999; /* Debajo del navbar */
}

/* Floating Panel Galería */
.floating-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.product-gallery {
    background-color: #fff;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos tarjetas por fila */
    gap: 15px; /* Espacio entre las tarjetas */
    margin: 20px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen ocupe todo el espacio de la tarjeta sin distorsionarse */
    border-radius: 5px;
}

.product-title {
    font-size: 1em;
    margin: 10px 0;
    color: #333;
}

.product-price {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.category-card:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Ajustar la cuadrícula de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px;
    padding: 10px;
}

.card-body {
    text-align: center;

}

/* Estilo para cada imagen de categoría */
.category-item {
    border-radius: 10px;
    position: relative;
    text-align: center;
    overflow: hidden;
    padding-bottom: 20px;
}

.category-img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-title {
    font-size: 1.2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

/* Efecto hover para imagen */
.category-item:hover .category-img {
    transform: scale(1.1);
    cursor: pointer;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .category-title {
        font-size: 1rem;
        padding: 8px;
    }
}



/* Category Card */
        .category-card {
            margin: 20px;
            position: relative;
            height: 250px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .category-card:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        /* Background Image */
        .category-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 10%;
            height: 100%;
            background-size: cover;
            background-position: center;
            z-index: 1;
        }

        /* Gradient Overlay */
        .category-card::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
            z-index: 2;
        }

        /* Card Text */
        .category-card .card-text {
            text-align: center;
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
            z-index: 3;
        }

 /* Facebbok video  */       

.facebook-video {
    border-radius: 10px;
    padding: 1rem;
    place-items: center;
}

.facebook-video p {
    font-size: larger;
    text-align: center;
    padding: 10px;
}

/* Mostrar el overlay */
.overlay.active {
    visibility: visible; /* Hacer visible el fondo */
    opacity: 1; /* Totalmente opaco */
}


/* First Section (Title or Logo) */
.navbar-brand {
    display: contents;
    font-weight: bold;
    color: #ffffff;
    font-size: 5em;
    margin-bottom: 20px; /* Espacio debajo del texto principal */
    text-align: center;
}

/* Section for Links */
.nav-links {
    flex: 1; /* Ocupa el espacio disponible */
    display: flex;
    flex-direction: column; /* Apila los enlaces verticalmente */
    gap: 30px; /* Espaciado entre los enlaces */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px; /* Espaciado interno de los enlaces */
    border-radius: 5px; /* Bordes redondeados */
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;

}

.nav-link:hover {
    background-color: #f1f1f1; /* Fondo al pasar el mouse */
    color: #6c63ff; /* Cambia el color del texto */
}

/* Section for Buttons */
.nav-buttons {
    color: #ffffff;
    display: flex;
    flex-direction: column; /* Apila los botones verticalmente */
    gap: 5px; /* Reduce la separación entre botones */
}

/* Buttons */
.nav-buttons .btn {
    background-color: #6c63ff; /* Fondo */
    color: white; /* Texto blanco */
    border: none;
    padding: 8px 12px; /* Espaciado interno reducido */
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-buttons .btn:hover {
    background-color: #088a328c; /* Cambia el color del fondo al pasar el mouse */
    transform: scale(1.05); /* Efecto de agrandamiento */
}


.nav-link:hover {
    background-color: #f1f1f1; /* Fondo al pasar el mouse */
    color: #6c63ff; /* Color del texto al pasar el mouse */
}

.menu-img {
    margin-top: 71px;
    height: 100px;

}

/* Hamburger Button Inside the Panel */
.hamburger {
    background: #3849ff; /* Fondo blanco */
    color: #f9f9f9; /* Color del ícono */
    border: none;
    padding: 10px 15px; /* Espaciado interno */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 1.2rem; /* Tamaño del ícono */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hamburger:hover {
    background-color: #0016ff; /* Color de fondo al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandamiento */
}

/* Adjust Body Padding */
body {
    padding-top: 60px; /* Evita que el contenido quede debajo del panel */
}


}

.hamburger:hover {
    background-color: #33a1fd; /* Cambio de color al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandamiento */
}

@media (max-width: 576px) {
    .hamburger {
        padding: 8px 12px; /* Tamaño reducido */
        font-size: 18px; /* Ícono más pequeño */
    }
}

.text-recomended {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    padding: 20px;
    color: #3849ff;
    text-align: center;
}

/* Floating Modal Styles */
        .add-to-home-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 400px;
            background-color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            z-index: 1000;
        }

        .add-to-home-modal h2 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .add-to-home-modal p {
            font-size: 1rem;
            margin-bottom: 20px;
        }

        .add-to-home-modal button {
            background-color: #6c63ff;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .add-to-home-modal button:hover {
            background-color: #33a1fd;
        }

        .add-to-home-modal .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #333;
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

        .add-to-home-modal .close-btn:hover {
            color: #ff6666;
        }

        /* Background Overlay */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }



/* Carousel */
#carousel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 58vh;
    background-color: white;
    overflow: hidden;
}

.carousel {
    display: flex;
    position: relative;
    width: 90%;
    perspective: 1000px;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.1);
}


    /* Botones de navegación */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carousel-prev {
    left: 10px; /* Botón izquierdo */
}

#carousel-next {
    right: 10px; /* Botón derecho */
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


    /* Posiciones de las tarjetas */
    .carousel-item:nth-child(1) { transform: translate(-150%, -50%) scale(0.8); z-index: 1; }
    .carousel-item:nth-child(2) { transform: translate(-50%, -50%) scale(0.8); z-index: 2; }
    .carousel-item:nth-child(3) { transform: translate(50%, -50%) scale(1); z-index: 3; }




/* Floating Panel */
.floating-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho del navegador */
    background-color: #fff; /* Fondo blanco */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Sombra en la parte superior del panel */
    display: flex;
    justify-content: center; /* Centra los botones horizontalmente */
    align-items: center;
    padding: 10px 0; /* Espaciado vertical */
    z-index: 1000; /* Asegura que esté encima de otros elementos */
}

/* Buttons inside the panel */
.floating-panel button {
    background-color: #6c63ff; /* Color de fondo */
    color: #fff; /* Color del texto */
    border: none;
    padding: 10px 15px; /* Espaciado interno */
    margin: 0 5px; /* Separación entre botones */
    font-size: 1rem; /* Tamaño del texto */
    border-radius: 5px; /* Bordes redondeados */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for buttons */
.floating-panel button:hover {
    background-color: #33a1fd; /* Cambia el color al pasar el mouse */
    transform: translateY(-2px); /* Efecto de levantamiento */
}

/* Floating Panel */
.floating-panel {
    height: 90px;
    position: fixed;
    left: 50%; /* Centrado horizontalmente */
    transform: translateX(-50%);
    display: flex; /* Botones en fila */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Separación entre botones */
    background-color: #f9f9f9; /* Fondo blanco */
    padding: 10px 20px; /* Espaciado interno del panel */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0); /* Sombra */
    z-index: 1000; /* Encima de otros elementos */
}

/* Buttons */
.floating-panel a {
    margin: 0 1rem 0 1rem;
    display: flex; /* Para centrar el ícono */
    justify-content: center;
    align-items: center;
    width: 30px; /* Tamaño del botón */
    height: 30px;
    background-color: #3849ff; /* Color de fondo */
    color: white; /* Color del ícono */
    font-size: 0.8rem; /* Tamaño del ícono */
    border-radius: 50%; /* Botones circulares */
    text-decoration: none; /* Elimina subrayado */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover Effects */
.floating-panel a:hover {
    background-color: #3849ff9c; /* Cambia el color al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandamiento */
}

/* Central Button */
.floating-panel .btn-center {
    width: 50px; /* Botón central más grande */
    height: 50px;
    font-size: 1rem;
}

/* Texto debajo del botón */
.btn-text {
    font-size: 0.8rem; /* Tamaño del texto */
    color: #3849ff; /* Color del texto */
    margin-top: 5px; /* Espaciado entre el botón y el texto */
    font-weight: bold; /* Negrita para mejor visibilidad */
    text-align: center;
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #3849ff;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

.product-card img {
  width: 100%;
  height: 200px; /* Puedes ajustar este valor según lo que mejor se vea */
  object-fit: cover;
  border-top-left-radius: 0.375rem; /* Para coincidir con .card-img-top */
  border-top-right-radius: 0.375rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.375rem;
  overflow: hidden;
}

.product-price {
  font-weight: bold;
  color: #333;
}

.card-body.p-2 {
    gap: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.btn-primary {
    background: #3849ff;
    border: none;
    transition: background 0.3s ease;
}

.btn-domicilio {
  color: white;
  background: #3849ff; /* Color principal del directorio */
  border: none;
  transition: background 0.3s ease;
}


.btn-call {
    margin: 0.3rem;
    color: white;
    background: #87859b;
    border: none;
    transition: background 0.3s ease;
}

.btn-whatsapp {
    color: white;
    background: #25d366;
    border: none;
    transition: background 0.3s ease;
}

.btn-menu {
    color: white;
    background: #ffcc00;
    border: none;
    transition: background 0.3s ease;

}
.btn-primary:hover {
    background: #ffcc0087;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjeta flotante para instalación */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.install-btn {
    background: #6c63ff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.install-btn:hover {
    background: #5548c8;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}


.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}
.map-container h2 {
    margin-top: 0;
    color: #333;
}
#map {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
}
.btn-map {
    text-align: center;
    display: grid;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover {
    background-color: #404259;
}

.categories-custom {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Fila superior: 2 tarjetas horizontalmente */
.row-superior {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* Fila inferior: 1 tarjeta debajo */
.row-inferior {
  display: flex;
  width: 100%;
}

/* Tarjetas: ocupan 50% o 100% según el caso */
.row-superior .category-item {
  width: 50%;
}

.row-inferior .category-item {
  width: 100%;
}

.category-item {
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.category-mini-btn {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.category-mini-btn img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.category-mini-btn:hover {
  transform: scale(1.05);
}



.category-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Mismo diseño en móviles (2 arriba, 1 abajo) */
@media (max-width: 768px) {
  .row-superior {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .row-superior .category-item {
    width: 50%;
  }

  .row-inferior .category-item {
    width: 100%;
  }
}



/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}
