/* Banosdecorian Custom Styles */

/* Fuentes personalizadas */
@font-face {
    font-family: 'Vogue Moderne';
    src: url("../fonts/VogueModerne.5b092a693253.ttf") format('truetype'),
         url("../fonts/VogueModerne.9a62194e0d1d.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Snell Roundhand';
    src: url("../fonts/SnellRoundhandRegular.e115d0be0e30.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zefani';
    src: url("../fonts/Zefani.54a68e2ccaf5.otf") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================================
   COLORES PERSONALIZADOS
   ================================ */

/* Variables CSS para los colores */
:root {
    --corian-base: #F5E8DB;
    --corian-light: #FBF6F1;
    --corian-bold: #D9C6B3;
    --corian-dark: #8B7355;
    --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);
}

/* Clases de fondo (background) */
.bg-corian {
    background-color: var(--corian-base);
}

.bg-corian-light {
    background-color: var(--corian-light);
}

.bg-corian-bold {
    background-color: var(--corian-bold);
}

.bg-corian-dark {
    background-color: var(--corian-dark);
}

/* Clases de texto */
.text-corian {
    color: var(--corian-base);
}

.text-corian-light {
    color: var(--corian-light);
}

.text-corian-bold {
    color: var(--corian-bold);
}

.text-corian-dark {
    color: var(--corian-dark);
}

/* Clases de borde */
.border-corian {
    border-color: var(--corian-base);
}

.border-corian-light {
    border-color: var(--corian-light);
}

.border-corian-bold {
    border-color: var(--corian-bold);
}

.border-corian-dark {
    border-color: var(--corian-dark);
}

/* Clases hover para fondo */
.hover\:bg-corian:hover {
    background-color: var(--corian-base);
}

.hover\:bg-corian-light:hover {
    background-color: var(--corian-light);
}

.hover\:bg-corian-bold:hover {
    background-color: var(--corian-bold);
}

.hover\:bg-corian-dark:hover {
    background-color: var(--corian-dark);
}

/* Clases hover para texto */
.hover\:text-corian:hover {
    color: var(--corian-base);
}

.hover\:text-corian-light:hover {
    color: var(--corian-light);
}

.hover\:text-corian-bold:hover {
    color: var(--corian-bold);
}

.hover\:text-corian-dark:hover {
    color: var(--corian-dark);
}

/* Clases hover para borde */
.hover\:border-corian:hover {
    border-color: var(--corian-base);
}

.hover\:border-corian-light:hover {
    border-color: var(--corian-light);
}

.hover\:border-corian-bold:hover {
    border-color: var(--corian-bold);
}

.hover\:border-corian-dark:hover {
    border-color: var(--corian-dark);
}

/* 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 */
/* Clases de fuentes personalizadas al estilo Tailwind */
.font-vogue {
    font-family: 'Vogue Moderne', 'Roboto', sans-serif;
}

.font-snell {
    font-family: 'Snell Roundhand', 'Georgia', serif;
}

.font-zefani {
    font-family: 'Zefani', 'Georgia', serif;
}

.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);
    box-shadow: none !important;
}

.product-card:hover {
    box-shadow: none !important;
}

.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);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

#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;
}

/* ================================
   THEME CUSTOMIZER
   ================================ */

/* Modal de personalización de tema */
#theme-customizer-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#theme-customizer-modal .bg-white {
    animation: slideUpModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estilos mejorados para los inputs de color */
input[type="color"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

input[type="color"]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

input[type="color"]:active {
    transform: scale(0.95);
}

/* Inputs hexadecimales estilizados */
#theme-customizer-modal input[type="text"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#theme-customizer-modal input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Animación de los previews de color */
#theme-customizer-modal [id^="preview-"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#theme-customizer-modal [id^="preview-"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botones del theme customizer */
#theme-reset-btn,
#theme-apply-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-reset-btn:hover {
    background-color: #F3F4F6;
    border-color: #9CA3AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#theme-apply-btn:hover {
    background-color: #1F2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#theme-reset-btn:active,
#theme-apply-btn:active {
    transform: translateY(0);
}

/* Botón de paleta en el header */
#theme-customizer-btn {
    position: relative;
}

#theme-customizer-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

#theme-customizer-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Efecto de pulsación en el botón */
#theme-customizer-btn:active {
    transform: scale(0.95);
}

/* Mejora visual de las tarjetas de colores */
#theme-customizer-modal .border-gray-200:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive para móviles */
@media (max-width: 640px) {
    #theme-customizer-modal .max-w-2xl {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    #theme-customizer-modal input[type="color"] {
        width: 3rem;
        height: 2.5rem;
    }
    
    #theme-customizer-modal [id^="preview-"] {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ================================
   UTILIDADES
   ================================ */

/* Ocultar scrollbar manteniendo scroll funcional */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
