/* Banosdecorian Custom Styles */

/* Variables CSS para consistencia */
:root {
    --brand-black: #000000;
    --brand-gray: #6B7280;
    --brand-light-gray: #F3F4F6;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --slider-transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos de animación personalizados */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Slider específicos */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clases de utilidad adicionales */
.animate-fade-in-up {
    animation: fadeInUp 0.6s var(--transition-smooth) forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideLeft 0.5s var(--transition-smooth) forwards;
}

/* Estilos del slider mejorados */
.slider-container {
    overflow: hidden;
    position: relative;
}

.slide {
    transition: var(--slider-transition);
    will-change: transform, opacity;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2 !important;
}

.slider-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform, opacity;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.slider-indicator:hover {
    transform: scale(1.3);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.slider-indicator.active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
    border: 2px solid rgba(255, 255, 255, 1);
}

.slider-prev,
.slider-next {
    cursor: pointer;
    will-change: transform;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slider-prev:active,
.slider-next:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Asegurar visibilidad de los iconos */
.slider-prev .material-icons,
.slider-next .material-icons {
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-prev:hover .material-icons,
.slider-next:hover .material-icons {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.animate-pulse-scale {
    animation: pulseScale 2s infinite;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 3rem;
        height: 3rem;
        background-color: rgba(255, 255, 255, 0.3) !important;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .slider-prev .material-icons,
    .slider-next .material-icons {
        font-size: 1.5rem;
    }
    
    .slider-indicator {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* Animación de entrada para los controles */
@keyframes fadeInControls {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-prev,
.slider-next,
.slider-indicator {
    animation: fadeInControls 0.5s ease-out;
}

/* Mejorar visibilidad en diferentes fondos */
.slider-prev,
.slider-next {
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
}

/* Estados focus para accesibilidad */
.slider-prev:focus,
.slider-next:focus,
.slider-indicator:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Estilizado del slider principal */
.slide {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.slide.active {
    animation: slideLeft 0.8s var(--transition-smooth);
}

/* Controles del slider mejorados */
.slider-prev,
.slider-next {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--transition-smooth);
}

.slider-prev:hover,
.slider-next:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-prev:active,
.slider-next:active {
    transform: scale(0.95);
}

/* Botón flotante WhatsApp */
.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
    animation: none;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive para el botón WhatsApp */
@media (max-width: 768px) {
    #whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        box-shadow: 0 2px 15px rgba(34, 197, 94, 0.5);
    }
}

/* Animación específica para el indicador rojo */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Efectos hover mejorados para productos */
.product-card {
    transition: all 0.3s var(--transition-smooth);
}

.product-hover-image {
    transition: all 0.4s var(--transition-smooth);
}

/* Estilos del carousel de productos */
#products-carousel {
    position: relative;
    padding: 0 50px; /* Espacio reducido para los botones */
    overflow: hidden;
}

@media (max-width: 768px) {
    #products-carousel {
        padding: 0 35px;
    }
}

.products-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product-card {
    flex-shrink: 0;
    padding: 0 4px; /* Espaciado entre productos */
    width: 25%; /* 100% / 4 productos = 25% cada uno en desktop */
}

.product-card .relative {
    border-radius: 8px;
    overflow: hidden;
}

/* Efectos de hover mejorados específicos para el carousel */
#products-carousel .product-card:hover {
    transform: translateY(-12px);
    z-index: 2;
}

#products-carousel .product-card:hover .product-main-image {
    transform: scale(1.05);
}

/* Animación suave para las imágenes */
.product-main-image,
.product-hover-image {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Botones del carousel de productos - Estilo consistente con el slider principal */
#products-prev,
#products-next {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    will-change: transform;
    user-select: none;
}

#products-prev:hover,
#products-next:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#products-prev:active,
#products-next:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Estados deshabilitados */
#products-prev.disabled,
#products-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

#products-prev.disabled:hover,
#products-next.disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mejorar visibilidad de los iconos */
#products-prev .material-icons,
#products-next .material-icons {
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

#products-prev:hover .material-icons,
#products-next:hover .material-icons {
    color: rgba(0, 0, 0, 1);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.7);
}

/* Estados focus para accesibilidad */
#products-prev:focus,
#products-next:focus {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* Animación de entrada para los controles del carousel */
#products-prev,
#products-next {
    animation: fadeInControls 0.5s ease-out;
}

/* Efectos de los badges en los productos */
.product-card .absolute span {
    backdrop-filter: blur(4px);
    font-weight: 500;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover .absolute span {
    transform: scale(1.05);
}

/* Animación de entrada escalonada para productos */
@keyframes slideInProduct {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideInProduct 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Indicador visual de carga */
.products-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mejora de los títulos de productos */
.product-card h3 {
    line-height: 1.4;
    font-weight: 500;
}

.product-card p {
    color: #374151;
    font-weight: 600;
}

/* Responsive para móviles - Carousel de productos */
@media (max-width: 768px) {
    #products-carousel {
        padding: 0 30px; /* Menos padding en móvil */
    }
    
    #products-prev,
    #products-next {
        width: 2.5rem;
        height: 2.5rem;
        opacity: 1;
        visibility: visible;
        background-color: rgba(255, 255, 255, 0.3) !important;
        border: 2px solid rgba(0, 0, 0, 0.15);
    }
    
    #products-prev .material-icons,
    #products-next .material-icons {
        font-size: 1.25rem;
    }
    
    /* En móviles mostrar 2 productos por fila */
    .product-card {
        width: 50%; /* 100% / 2 productos = 50% cada uno */
        padding: 0 3px;
    }
}

/* Estilos para la sección de categorías */
#categories-carousel .group {
    transition: all 0.3s var(--transition-smooth);
}

#categories-carousel .group:hover {
    transform: translateY(-8px);
}

#categories-carousel .group img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#categories-carousel .group h3 {
    transition: all 0.3s ease;
}

/* Animación de entrada escalonada para categorías */
@keyframes slideInCategory {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#categories-carousel .group {
    animation: slideInCategory 0.6s ease-out forwards;
}

#categories-carousel .group:nth-child(1) { animation-delay: 0.1s; }
#categories-carousel .group:nth-child(2) { animation-delay: 0.2s; }
#categories-carousel .group:nth-child(3) { animation-delay: 0.3s; }
#categories-carousel .group:nth-child(4) { animation-delay: 0.4s; }

/* Responsive para categorías */
@media (max-width: 768px) {
    #categories-carousel .group h3 {
        font-size: 0.875rem; /* text-sm */
        margin-top: 0.75rem; /* mt-3 */
    }
}

/* Estilos para el header con scroll */
#main-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos del menú móvil - SIMPLIFICADO */
body.mobile-menu-open {
    overflow: hidden;
}

/* Animación ripple para los enlaces del menú */
@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Efectos del grid de Instagram */
.instagram-item {
    overflow: hidden;
    border-radius: 8px;
}

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

/* Estilizado de las reseñas */
.review-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Material Icons custom sizing for feature sections */
.material-icons.icon-feature {
    font-size: 48px !important;
}

/* Responsive sizing for mobile */
@media (max-width: 768px) {
    .material-icons.icon-feature {
        font-size: 32px !important;
    }
}

/* Original alert styles */
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}
