/* Estilos principales de EntreMuebles */

/* Configuración de fuentes e iconos */
:where([class^="ri-"])::before { 
    content: "\f3c2"; 
}

:where([class^="ph-"])::before { 
    display: inline-block;
    font-family: 'Phosphor';
}

body {
    font-family: 'Raleway', sans-serif;
    color: #333;
}

/* Contenedores */
.container-slim {
    max-width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
}

/* Variables de colores principales */
:root {
    --color-primary: #4F6F52;
    --color-secondary: #739072;
    --color-text: #333;
    --color-text-light: #6B7280;
    --color-bg-light: #f7f9fa;
    --color-border: rgba(229, 231, 235, 1);
}

/* Estilo para la sección de Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    margin-bottom: 1rem;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Estilo para la sección de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    display: flex;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: white;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    margin-right: 1.5rem;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.service-icon i {
    font-size: 1.5rem;
}

/* Secciones comunes */
.hero-section {
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Formularios */
input:focus, button:focus {
    outline: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Checkbox personalizado */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input {
    display: none;
}

.checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-indicator {
    background-color: var(--color-primary);
}

.custom-checkbox input:checked + .checkbox-indicator:after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Animaciones y efectos dinámicos */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.active,
.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Retrasos de animación */
.delayed-1 { transition-delay: 0.1s; }
.delayed-2 { transition-delay: 0.2s; }
.delayed-3 { transition-delay: 0.3s; }
.delayed-4 { transition-delay: 0.4s; }
.delayed-5 { transition-delay: 0.5s; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-effect:hover {
    animation: pulse 1s infinite;
}

/* Colores suaves para categorías */
.category-closets { background-color: #E6F3F3; }
.category-cocinas { background-color: #F3E6E6; }
.category-puertas { background-color: #E6F3E6; }
.category-bibliotecas { background-color: #F3F3E6; }
.category-tvbases { background-color: #F3E6F3; }
.category-oficina { background-color: #E6E6F3; }

/* Mejoras para móvil */
@media (max-width: 768px) {
    /* Ajustes de tipografía */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.9rem;
    }

    /* Hero section */
    .hero-section .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-section .hero-buttons a {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem !important;
        width: 100%;
        text-align: center;
    }
    
    /* Grids */
    .mobile-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
    
    /* Ajustes para productos en móvil */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card h3 {
        font-size: 1.1rem !important;
    }
    
    .product-card p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-card a {
        font-size: 0.9rem !important;
    }
    
    .product-card .p-6 {
        padding: 1rem !important;
    }
    
    /* Ajuste de servicios para móvil */
    .service-card {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-icon {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .service-card p {
        font-size: 0.875rem !important;
    }
    
    /* Ajuste de secciones */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container, .container-slim {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}