/*
Theme Name: Tema DiseñarT
Author: Luis Sansores
Description: Personalización DiseñarT
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* El resto de tu codigo CSS va aqui debajo */
/* ... */

/* Definicion de colores principales */
:root {
    --color-principal: #dac2fe; /* Tono de morado de la imagen */
    --color-fondo: #ffffff;      /* Tono claro del fondo */
    --color-placeholder: #D9D9D9; /* Gris del banner y logo */
}

/* Estilo general del cuerpo de la página */
body {
    background-color: var(--color-fondo);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Estilos para la barra de navegacion personalizada */
.navbar-custom {
    background-color: var(--color-principal);
    padding: 20px 15px;
}

/* Estilo para el boton del menu (hamburguesa) */
.navbar-toggler {
    border: 2px solid white; /* Borde blanco para que resalte */
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Contenedor del logo */
/* ============================================= */
/* ESTILOS DEL LOGO Y ENCABEZADO                 */
/* ============================================= */

/* Hacemos que la barra de navegación sea el punto de referencia para el logo */
.navbar-custom .container-fluid {
    position: relative;
    /* Ajustamos la altura mínima para que el logo quepa cómodamente */
    min-height: 65px; 
}

/* Contenedor del logo con posicionamiento absoluto para un centrado perfecto */
.logo-placeholder {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Centrado horizontal y vertical perfecto */
    display: flex;
    align-items: center;
}

/* 3. Estilo para la imagen del logo */
.logo-placeholder img {
    height: 70px; /* <-- Puedes cambiar este número para ajustar el tamaño */
    width: auto;  
}

/* Estilos para el carrusel */
.slide-placeholder {
    background-color: var(--color-placeholder);
    height: 500px; /* Altura del banner, puedes ajustarla */
    width: 100%;
    color: #6c757d;
}

/* Estilos para los indicadores del carrusel (puntitos) */
.carousel-indicators [data-bs-target] {
    background-color: var(--color-principal);
}

/* ============================================= */
/* SOLUCIÓN PARA EL FOOTER FLOTANTE (STICKY FOOTER) */
/* ============================================= */
main {
    flex-grow: 1; /* El contenido principal se estira para ocupar el espacio sobrante */
}

/* ============================================= */
/* ESTILOS PARA EL PIE DE PÁGINA (FOOTER)         */
/* ============================================= */
.footer-custom {
    background-color: var(--color-principal);
    color: rgb(5, 5, 5);
    font-family: 'Montserrat', sans-serif;
    padding: 20px 0px;
}

.footer-custom .footer-logo {
    max-width: 180px; /* Ajusta el tamaño del logo en el footer */
    height: auto;
}

.footer-custom h5 {
    font-weight: 700; /* Letra en negritas */
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-custom p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-custom a {
    color: rgb(1, 1, 1);
    text-decoration: none;
    transition: text-decoration 0.2s ease-in-out;
}

.footer-custom a:hover {
    text-decoration: underline;
}

.footer-custom ul {
    padding-left: 0;
}

.footer-custom li {
    margin-bottom: 8px;
}

/* ============================================= */
/* ESTILOS PARA LA SECCIÓN DE CATEGORÍAS          */
/* ============================================= */
#categorias h2 {
    font-family: 'Montserrat', sans-serif;
    color: #333; /* Un gris oscuro para el título */
    font-weight: 700;
}

#categorias p a {
    color: #0d6efd; /* Color azul de Bootstrap para "Ver todas las categorías" */
}

.category-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* Tamaño del círculo */
    height: 120px; /* Mismo tamaño para que sea un círculo perfecto */
    border-radius: 50%; /* Hace que el elemento sea un círculo */
    background-color: var(--color-principal); /* Fondo morado */
    color: white; /* Color del ícono */
    font-size: 3.5rem; /* Tamaño del ícono */
    margin: 0 auto; /* Centra el círculo */
    border: 3px solid var(--color-principal); /* Borde inicial */
    transition: all 0.3s ease; /* Transición suave para los efectos */
}

.category-circle:hover {
    background-color: white; /* Fondo blanco al pasar el mouse */
    color: var(--color-principal); /* Ícono morado al pasar el mouse */
    border-color: var(--color-principal); /* Borde morado */
    transform: translateY(-5px); /* Pequeño efecto de elevación */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-circle i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); /* Sombra para el icono blanco */
}

.category-circle:hover i {
    filter: none; /* Quitamos la sombra al hacer hover */
}

#categorias p {
    font-family: 'Montserrat', sans-serif; /* Aplicamos la fuente Montserrat */
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================= */
/* ESTILOS PARA BARRA DE BÚSQUEDA REDONDEADA      */
/* ============================================= */

/* Contenedor principal del grupo de búsqueda */

.search-area-wrapper {
    padding: 20px 0;
    margin-top: 20px;
}

.search-area-wrapper .input-group {
    border-radius: 50px; /* Esquinas muy redondeadas para efecto "píldora" */
    overflow: hidden; /* Asegura que los elementos internos se ajusten a las esquinas */
    border: 1px solid #ddd; /* Un borde sutil para definir el componente */
}

/* Estilo para el campo de texto (input) */
.search-area-wrapper .form-control {
    border: none; /* Quitamos bordes individuales que interfieren con el redondeo */
    box-shadow: none !important; /* Quitamos cualquier sombra al hacer clic */
}

/* Estilo para el texto del placeholder */
.search-area-wrapper .form-control::placeholder {
    color: #a0a0a0; /* Color de texto más opaco */
    opacity: 1; /* Necesario para que el color se aplique bien */
}

/* Estilo para el botón de búsqueda */
#button-search {
    background-color: var(--color-principal); /* Color principal del tema */
    border: none; /* Quitamos bordes individuales */
}

#button-search:hover {
    opacity: 0.9;
}

/* ============================================= */
/* ESTILOS PARA PREGUNTAS FRECUENTES (FAQ)        */
/* ============================================= */
#faq h2 {
    font-family: 'Montserrat', sans-serif;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6; /* Línea separadora sutil */
}

.accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    background-color: transparent;
    padding: 1.5rem 1rem;
}

/* Estilo del botón cuando está desplegado (activo) */
.accordion-button:not(.collapsed) {
    box-shadow: none;
    background-color: transparent;
    color: var(--color-principal); /* Cambia a color morado cuando está abierto */
}

/* Quitar el recuadro azul al hacer clic */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* Cambiar el color del ícono de la flecha */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235A189A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
}

/* ============================================= */
/* ESTILOS PARA SECCIÓN DE CARACTERÍSTICAS        */
/* ============================================= */
.feature-icon {
    font-size: 5rem; /* Aumentamos el tamaño del ícono (1rem = ~16px) */
    margin-bottom: 25px; /* Aumentamos un poco el espacio inferior */
    color: #333;
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ============================================= */
/* ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP     */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 100;
    
    /* Para centrar el ícono verticalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Agranda el botón ligeramente al pasar el mouse */
}

/* ============================================= */
/* ESTILOS PARA SECCIÓN DE UBICACIÓN              */
/* ============================================= */
.location-title {
    font-family: 'Montserrat', sans-serif; /* Puedes cambiar la fuente si quieres */
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
}

/* Estilo para el mapa de ancho completo */
.map-container-full-width iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(100%);
    display: block; /* Ayuda a eliminar pequeños espacios indeseados */
}

/* ============================================= */
/* ESTILOS PARA LA BARRA DE CATEGORÍAS (PÁGINAS) */
/* ============================================= */
.category-bar {
    padding: 20px 0;
    background-color: #f8f9fa; /* Un fondo gris claro para la barra */
    border-bottom: 1px solid #ddd;
}

/* Ocultamos los títulos en esta versión */
.category-bar h2, .category-bar p.text-center {
    display: none;
}

/* Hacemos los círculos y los íconos más pequeños */
.category-bar .category-circle {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-width: 2px;
}

/* Ajustamos el texto debajo de los círculos */
.category-bar p {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ======================================================= */
/* ESTILO PARA EL CÍRCULO DE LA CATEGORÍA ACTIVA           */
/* ======================================================= */

.category-bar .category-circle.active {
    background-color: #FFF; /* Fondo blanco */
    color: var(--color-principal); /* Ícono morado */
    border-color: var(--color-principal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-bar .category-circle.active i {
    filter: none;
}

/* Opcional: Para que el círculo activo no tenga efecto hover */
.category-bar .category-circle.active:hover {
    transform: none;
    cursor: default;
}

/* ======================================================= */
/* ESTILOS DEFINITIVOS PARA TARJETAS DE PRODUCTO         */
/* ======================================================= */

.product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card .card-body {
    position: relative; /* La clave: el cuerpo de la tarjeta es la referencia */
    text-align: left;
    padding-top: 2rem; /* Añadimos espacio arriba para que la etiqueta no se encime con el título */
}

.product-tag {
    position: absolute;
    top: 0;
    left: 15px;
    transform: translateY(-50%);
    z-index: 1; /* <-- AÑADE ESTA LÍNEA PARA TRAERLA AL FRENTE */
    
    background-color: var(--color-principal);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Estilos para el resto del texto (se mantienen igual) */
.product-card .product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card .product-price {
    font-size: 1.1rem;
    color: var(--color-principal);
}

.product-card .product-shipping,
.product-card .product-stock {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}   

/* ============================================= */
/* ESTILOS PARA PAGINACIÓN MINIMALISTA          */
/* ============================================= */

.pagination .page-item {
    margin: 0 4px; /* Añade un pequeño espacio entre cada círculo */
}

.pagination .page-link {
    border-radius: 50% !important; /* Hacemos los botones completamente circulares */
    border: 1px solid var(--color-principal); /* Borde morado sutil */
    color: var(--color-principal); /* Texto en color morado */
    background-color: transparent; /* Fondo transparente por defecto */
    transition: all 0.3s ease;
}

/* Estilo al pasar el mouse (que no sea el activo) */
.pagination .page-link:hover {
    background-color: var(--color-principal);
    color: white;
}

/* Estilo para el número de página ACTIVO */
.pagination .page-item.active .page-link {
    background-color: var(--color-principal); /* Fondo morado */
    color: white;
    border-color: var(--color-principal);
}

/* Estilo para los botones deshabilitados (Anterior/Siguiente) */
.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #eee;
    background-color: transparent;
}

/* Quitar el recuadro azul de enfoque de Bootstrap */
.pagination .page-link:focus {
    box-shadow: none;
}

/* ============================================= */
/* ESTILOS PARA EL FORMULARIO DE CONTACTO         */
/* ============================================= */

/* Cambia el color del borde y la sombra al hacer clic en un campo */
.form-control:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 0.25rem rgba(218, 194, 254, 0.5); /* Sombra lila claro */
}

/* Hacemos que el botón principal de la web sea morado */
.btn-primary {
    background-color: var(--color-principal);
    border-color: var(--color-principal);
}

.btn-primary:hover {
    background-color: #5A189A; /* Un morado un poco más oscuro al pasar el mouse */
    border-color: #5A189A;
}

/* Estilos para los íconos de redes sociales en el footer */
.social-icons a {
    color: white; /* Color del ícono */
    font-size: 1.8rem; /* Tamaño del ícono */
    margin: 0 10px; /* Espacio entre los íconos */
    transition: transform 0.2s ease-in-out;
    display: inline-block; /* Permite aplicar transformaciones */
}

.social-icons a:hover {
    transform: scale(1.2); /* Agranda el ícono ligeramente al pasar el mouse */
}

/* Estilos para el nuevo tamaño del banner de la portada */
#hero-banner {
    min-height: 550px; 
}

/* ============================================= */
/* ESTILOS PARA FORMULARIO DE WPFORMS (CORREGIDO)*/
/* ============================================= */

/* 1. Centramos las etiquetas y el botón */
.wpforms-container-full .wpforms-form {
    text-align: center;
}

/* 2. Centramos los campos (recuadros) y los hacemos más anchos */
.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field textarea {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Aumentamos el ancho, puedes ajustar este valor */
}

/* 3. Aumentamos el tamaño de las etiquetas */
.wpforms-form .wpforms-field-label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 4. Mantenemos los estilos del botón y el efecto de clic (focus) */
.wpforms-form .wpforms-submit-container .wpforms-submit {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 10px 20px;
    color: white !important;
}

.wpforms-form .wpforms-submit-container .wpforms-submit:hover {
    background-color: #5A189A !important;
    border-color: #5A189A !important;
}

.wpforms-form .wpforms-field-container input:focus,
.wpforms-form .wpforms-field-container textarea:focus {
    border-color: var(--color-principal) !important;
    box-shadow: 0 0 0 0.25rem rgba(218, 194, 254, 0.5) !important;
}

/* ==========================================================================
   NUEVOS ESTILOS PARA CONTACT FORM 7 (MAQUETA LUIS)
   ========================================================================== */

#contacto {
    background-color: #f9f9f9 !important; /* Fondo gris muy claro de la maqueta */
}

/* Estilo para los campos del formulario */
#contacto .form-control {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    background-color: #ffffff !important;
    font-size: 0.95rem;
}

/* Botón "Enviar Mensaje" personalizado (Color lila de la maqueta) */
.btn-enviar-custom {
    background-color: #dccaf5 !important; 
    color: #5a4a75 !important; /* Texto oscuro para contraste, puedes usar white si prefieres */
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-enviar-custom:hover {
    background-color: #cfb5f2 !important;
    transform: translateY(-2px);
}

/* ======================================================= */
/* MEJORAS RESPONSIVE PARA FOOTER                          */
/* ======================================================= */

.footer-custom {
    background-color: var(--color-principal);
    color: rgb(5, 5, 5);
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px;
}

/* Logo del footer */
.footer-custom img {
    max-width: 160px;
    height: auto;
}

/* Contenido del footer */
.footer-custom h5 {
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-custom p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-custom ul {
    padding-left: 0;
}

.footer-custom li {
    margin-bottom: 8px;
}

/* Links */
.footer-custom a {
    color: rgb(1, 1, 1);
    text-decoration: none;
}

.footer-custom a:hover {
    text-decoration: underline;
}

/* Redes sociales */
.social-icons a {
    font-size: 1.8rem;
    margin-right: 10px;
}

/* Copyright */
.footer-custom .copyright {
    font-size: 0.85rem;
    margin-top: 25px;
    opacity: 0.8;
}

/* ======================================================= */
/* RESPONSIVE FOOTER                                       */
/* ======================================================= */

@media (max-width: 991px) {

.footer-custom {
    text-align: center;
}

.footer-custom .row {
    justify-content: center;
}

.footer-custom .col-md-4,
.footer-custom .col-lg-4 {
    margin-bottom: 25px;
}

.footer-custom img {
    margin-bottom: 15px;
}

.contact-info {
    text-align: center;
}

.social-icons {
    margin-top: 10px;
}

}

/* ======================================================= */
/* AJUSTES EXTRA PARA MÓVILES PEQUEÑOS                     */
/* ======================================================= */

@media (max-width: 576px) {

.footer-custom h5 {
    font-size: 1rem;
}

.footer-custom p,
.footer-custom li {
    font-size: 0.85rem;
}

.social-icons a {
    font-size: 1.6rem;
}

}

/* ============================================= */
/* CORRECCIÓN FINAL DEL FOOTER                   */
/* ============================================= */

.footer-custom {
    padding-bottom: 70px;
}

/* Texto de copyright */
.footer-custom .copyright {
    margin-top: 40px;
    font-size: 0.85rem;
    text-align: center;
}

/* Ajuste footer escritorio */
@media (min-width: 992px){

.footer-custom .row{
    align-items: flex-start;
}

.footer-custom img{
    max-width: 220px;
}

.footer-custom .col-lg-4{
    padding-right: 40px;
}

}

/* Ajuste footer escritorio */
@media (min-width: 992px){

.footer-custom .row{
    align-items: flex-start;
}

.footer-custom img{
    max-width: 220px;
}

.footer-custom .col-lg-4{
    padding-right: 40px;
}

}

/* ============================================= */
/* MEJORAS FINALES DEL FOOTER                   */
/* ============================================= */

.footer-logo{
max-width:220px;
height:auto;
}

.footer-divider{
height:1px;
background:rgba(0,0,0,0.2);
margin:30px auto 20px auto;
width:100%;
}

.footer-copy{
font-size:0.85rem;
opacity:0.85;
padding-bottom:10px;
}

/* Ajuste escritorio */

@media (min-width:992px){

.footer-custom{
padding:40px 0 25px;
}

.footer-logo{
max-width:240px;
}

}

/* Ajuste móvil */

@media (max-width:768px){

.footer-copy{
font-size:0.8rem;
line-height:1.5;
}

}

/* ============================= */
/* COPYRIGHT FOOTER              */
/* ============================= */

.footer-copy{
margin-top:25px;
padding-top:15px;
border-top:1px solid rgba(0,0,0,0.2);
font-size:0.85rem;
text-align:center;
display:block;
width:100%;
}

.footer-copy p{
margin:3px 0;
}