/* VARIABLES */
:root {
    --primary: #EB5D1D;
    --secondary: #E3E2DC;
    --dark: #000000;
    --brown: #25150A;
    --wood: #C69B6F;
    --white: #FFFFFF;
}

/* GENERAL STYLES */
body {
    font-family: 'Sora', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 1rem;
}

.btn-custom {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--brown);
    transform: translateY(-2px);
}

/* NAVIGATION */
.custom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brown) !important;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

/* LOGO STYLES */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brown) !important;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(rgba(37, 21, 10, 0.7), rgba(37, 21, 10, 0.7)), 
                url('../images/index/hero2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ABOUT SECTION */
.about-section {
    background: var(--secondary);
}

.about-subtitle {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-image-placeholder {
    height: 400px;
    background: var(--wood);
    border-radius: 10px;
    width: 100%;
}

/* WHAT WE DO SECTION */
.what-we-do-section {
    background: var(--white);
}

/* Main Image Container */
.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image-placeholder {
    height: 500px;
    background: var(--secondary);
    width: 100%;
}

/* Text Overlay Box */
.text-overlay-box {
    position: absolute;
    top: 50px;
    left: 50px;
    background: rgba(198, 155, 111, 0.85); /* Marrón claro trasparente */
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-overlay-box h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2rem;
}

.text-overlay-box p {
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}

/* What We Offer Content */
.what-we-offer-content {
    padding: 20px;
}

.what-we-offer-content h3 {
    color: var(--brown);
    font-size: 1.8rem;
}

.offer-item h5 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.offer-item p {
    color: var(--dark);
    margin: 0;
}

/* Small Images */
.small-image {
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.small-image-placeholder {
    height: 150px;
    background: var(--secondary);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.small-image-placeholder:hover {
    transform: scale(1.05);
}

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

.small-image:hover {
    transform: scale(1.05);
}

.small-image:hover .offer-img {
    transform: scale(1.1);
}

/* Colors Section */
.colors-section {
    background: var(--secondary);
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

/* Top Colors Row */
.colors-top-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    margin-bottom: 30px;
}

/* Bottom Colors Section */
.colors-bottom-section {
    text-align: center;
}

.colors-subtitle {
    color: var(--brown);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.colors-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Color Items */
.color-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-item:hover {
    transform: translateY(-5px);
}

.color-rectangle {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-item:hover .color-rectangle {
    border-color: var(--primary);
    transform: scale(1.05);
}

.color-item span {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

/* Color Image Placeholders */
.color-image-placeholder {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: var(--wood); /* Color temporal */
    background-size: cover;
    background-position: center;
}

.color-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--secondary);
}

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

.color-item:hover .color-image {
    border-color: var(--primary);
    transform: scale(1.05);
}

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



/* Mantener los estilos existentes para los rectángulos de color */



/* Responsive */
@media (max-width: 768px) {
    .colors-top-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .colors-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .color-rectangle {
        width: 70px;
        height: 50px;
    }
    
    .text-overlay-box {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin: 20px;
    }
    
    .main-image-placeholder {
        height: 300px;
    }
}


/* STANDARD CLOSETS SECTION */
.standard-closets-section {
    background: var(--secondary);
}

.section-subtitle {
    color: var(--dark);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Closet Images */
.closet-image {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.closet-image:hover {
    transform: translateY(-5px);
}

.closet-image:hover .closet-img {
    transform: scale(1.1);
}

/* Measurements Content */
.measurements-content {
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.measurement-group h5 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.measurement-values {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.measurement-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.measurement {
    display: inline-block;
    padding: 8px 15px;
    background: var(--secondary);
    border-radius: 6px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.measurement:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Easy Install */
.easy-install {
    display: flex;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.easy-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.easy-text h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.easy-text p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .measurement-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .closet-image {
        height: 150px;
    }
    
    .easy-install {
        flex-direction: column;
        text-align: center;
    }
    
    .easy-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}


/* ESSENTIAL MODULES SECTION */
.modules-section {
    background: var(--white);
}

.modules-image-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.modules-img {
    width: 100%;
    height: auto;
    display: block;
}

.modules-image-container:hover {
    transform: scale(1.02);
}



/* GALLERY SECTION */
.gallery-section {
    background: var(--secondary);
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
}

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

/* MODULES SECTION */
.module-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    height: 100%;
}

.module-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.module-card h5 {
    color: var(--brown);
    margin: 0;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--brown);
    color: var(--white);
}

.contact-subtitle {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 10px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 0;
    color: var(--white);
    line-height: 1.5;
}

.instagram-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
    }
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--white);
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}