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

:root {
  --primary-wood: #5D4037;
  --secondary-wood: #8D6E63;
  --accent-wood: #D7CCC8;
  --forest-green: #2E7D32;
  --text-dark: #3E2723;
  --text-light: #5D4037;
  --bg-light: #FAF9F8;
  --white: #FFFFFF;
  --primary-brown: #5D4037; /* Consistent naming */
}

html {
  scroll-padding-top: 80px;
}

/* Override Bootstrap Blue */
a {
    color: var(--primary-brown);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-wood);
}

.btn-primary {
    background-color: var(--primary-brown) !important;
    border-color: var(--primary-brown) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-wood) !important;
    border-color: var(--secondary-wood) !important;
}

.btn-outline-primary {
    color: var(--primary-brown) !important;
    border-color: var(--primary-brown) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-brown) !important;
    color: var(--white) !important;
}

.nav-link.active {
    color: var(--primary-brown) !important;
}

.text-primary {
    color: var(--primary-brown) !important;
}

.titulo-principal {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.4em;
  line-height: 1.2em;
  color: var(--text-dark);
}

p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-light);
}
p span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #444444;
}

.whatsapp-btn {
            position: fixed;
            bottom: 32px;
            right: 32px;
            background-color: transparent;
            width: 90px;
            height: 90px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease-in-out;
            z-index: 999;
        }

        .whatsapp-btn:hover {
            transform: scale(1.3);
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        }

h3 {
    font-family: 'Inter', sans-serif;
    color: #444444;
}


/* valores */
.h2-valores {
font-family: 'Inter', sans-serif;
font-weight: 700;
    font-size: 1.9em;
    line-height: 1.2em;
    color: #FFFFFF;
    text-align: left;
}
.valores-item-doble-mobile{
display: none;
}
.valores-item p{
    color: white;
    text-align: left;
}   
/* valores */
.h2-tab {
font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.2em;
  color: #444444;
}

        /* Solo si quieres el efecto de transparente a sólido */
.navbar { 
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.separator-top{
    padding-top: 40px;

}
        /* Hero Section */
        /* Hero Section Actualizada */
        /* Hero Section Actualizada */
    .hero {
        position: relative;
        min-height: 100vh; /* Cambiamos a altura completa del viewport */
        color: white;
        display: flex;
        align-items: center;
        justify-content: center; /* Centrado vertical adicional */
        text-align: center;
        padding: 50px 20px;
        overflow: hidden;
        box-sizing: border-box; /* Incluye padding en la altura */
}


        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(62, 39, 35, 0.4), rgba(62, 39, 35, 0.8)),
                        url('../img/rizzotto-hero.png') center/cover;
            z-index: -1;
            background-attachment: fixed;
        }

        .hero .container {
            position: relative;
            z-index: 1;
            max-width: 100%;
        }

        .valores{
            padding-top: 80px;
            padding-left: 0px !important;
            padding-right: 0px !important;
            background-color: #fff;
        }

        /* Valores Section 
        .valores-grid {
            width: 100vh;
            min-width: 100vh; 
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 0px;
            padding: 20px;
        }*/

        .valores-item img, .aspect-16-9 {
            aspect-ratio: 16/9;
            width: 100%;
            object-fit: cover;
        }

        .product-img-main {
            aspect-ratio: 16/9;
            width: 100%;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }


         /* Valores Section - Updated */
         .valores-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            width: 100%;
            gap: 0px;
            padding: 0px;
            box-sizing: border-box;
        }

        .linkMOD {
    height: 140px;
    /* padding: 0 52px; */
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    line-height: 1.2em;
    color: #444444;
}
        @media (min-width: 1024px) {
            .valores-grid {
                grid-template-columns: repeat(3, 1fr);
            }
                    /* Texto Acerca de Rizzotto Maderas */        
        .aboutUs{
            padding: 40px;
            max-width: 80%;
        }
        .aboutUsBox{
            min-height: 68vh;
            height: auto;
        }
        }
        @media (max-width: 800px) {

            .valores-item-doble-mobile{
                display:block;
                }
            .valores-item-doble{
                display:none;
                }
            .valores-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .linkMOD {
                height: auto;
                font-size: 1.1em;
                padding: 10px 5px;
            }
                    /* Texto Acerca de GO */        
        .aboutUs{
            padding: 32px;
            max-width: 100%;
        }
        .aboutUsBox{
            min-height: 50vh;
            height: auto;
        }
        }
        @media (min-width: 800px) and (max-width: 1024px) {
            .valores-item-doble-mobile{
                display:block;
                }
            .valores-item-doble{
                display:none;
                }
            .valores-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .aboutUsBox {
                min-height: 84vh;
                height: auto;
            }
            .aboutUs{
                padding: 20px;
                max-width: 100%;
            }
        }
    .valores-item-doble {
        grid-column: span 2;
        height: 200px !important;
        overflow: hidden;

    }

        .valores-item {
            position: relative;
            overflow: hidden;
            border-radius: 0px;
            cursor: pointer;
            object-fit: cover;
            color: #FFFFFF;
            text-align: left;

        }

       /* .valores-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }*/

        .valores-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(62, 39, 35, 0.9), transparent 70%); /* Dark gradient at bottom */
            display: flex;
            justify-content: center;
            align-items: end;
            opacity: 1; /* Always visible */
            transition: background 0.3s ease;
            
        }

        .valores-text {
            color: white;
            text-align: center;
            padding: 20px;
            transform: translateY(0); /* Reset transform */
            transition: transform 0.3s ease;
        }

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

        .valores-item:hover .valores-overlay {
            background: linear-gradient(to top, rgba(62, 39, 35, 1), transparent 90%);
        }

        .valores-item:hover .valores-text {
            transform: scale(1.05);
        }


        /* Marcas Section 
        */
        .marcas{
            background-color: #f1f1f1;
            padding-top: 10vh;
            padding-bottom: 10vh;

        }
        .splide__slide img {
            vertical-align: bottom;
            width: 100% !important;
            height: auto !important;
        }

        .splide__list {
            height: 220px !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        .splide__slide{width: 320px; height: auto;}
        /*IVAN - FIJATE ACA PARA SUBIR EL ALTO Y QUE SE VEAN MENOS X RESO. 1920X1080*/

        /* Testimonios Section */
        .testimonios {
            background-color: #f4f4f4;
            padding: 0 7%;
        }

        /* Footer */
        .footer {
            background-color: var(--primary-wood);
            color: white;
            padding: 30px 0;
        }

        /* Bienvenida */
        
        .textWelcome{
            color:#FFFFFF;
            font-size: 1.1em;
        }
        /* columnas fullWidth */
        .aSangre{
            padding-left: 0% !important;
        }


/*TABS -------------------*/

.servicios {
    background-color: #f1f1f1;
    padding-top: 20px ;
}

.nav-tabs .nav-link.active {
            background-color: var(--white);
            border-bottom: 3px solid var(--primary-wood);
            border-radius: 0;
            border-left: 1px solid #ababab;
            border-right: 1px solid #ababab;
            color: var(--primary-wood) !important;
}
.nav-tabs .nav-link {
    
    background-color: transparent;
    border-left: 1px solid #ababab;
    border-right: 1px solid #ababab;
    border-radius: 0;
}
.tab-pane{
    background-color: white;
}
.aboutTxt{
    padding: 20px;
}

.aboutBg{
    background-image: url('../img/hardwood.jpg');
    background-size: cover; /* Ajusta sin deformar */
    background-position: top right; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que se repita */

}

.footW{
    color: #FFFFFF;
}
.footColor {
    padding: 16px;
    color: #cee4ea;
}

/* 
  Estilo para Mobile 
*/
@media (max-width: 767.98px) {

  .titulo-principal {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    line-height: 1.2em;
    color: #444444;  
  }

  .aboutBg{
    height: 40vh;
  }

  .aboutUsBox {
    min-height: 50vh;
    height: auto;
  }
  
  .aboutUs{
    padding: 20px;
    max-width: 100%;
  }

  /* Ajuste de Pestañas de Servicios para que sean swipeables */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px; /* Deja espacio para el scrollbar */
  }
  
  .nav-tabs .nav-item {
    flex: 0 0 auto;
  }
  
  .linkMOD {
    font-size: 1rem;
    padding: 10px 15px;
    height: auto;
  }

  /* Reducir botón gigante de WhatsApp */
  .whatsapp-btn {
    width: 60px;
    height: 60px;
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-btn img {
    width: 100%;
    height: auto;
  }

  /* Ajustes en Page Header */
  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Grilla a 1 columna en móviles muy chicos */
@media (max-width: 575.98px) {
  .valores-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.offcanvas, .offcanvas-lg, .offcanvas-md, .offcanvas-sm, .offcanvas-xl, .offcanvas-xxl {
    --bs-offcanvas-zindex: 1045;
    --bs-offcanvas-width: 300px;
    --bs-offcanvas-height: 30vh;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.sidebar h4 {
    color: var(--primary-wood);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-wood);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
    padding: 5px 0;
}

.sidebar-list a:hover {
    color: var(--primary-wood);
    padding-left: 5px;
}

.sidebar-list a.active {
    color: var(--primary-wood);
    font-weight: 700;
    border-left: 3px solid var(--primary-wood);
    padding-left: 10px;
}

/* Empresa Page Tabs */
.custom-tabs {
    background: #f8f9fa;
    gap: 2px;
}

.custom-tabs .nav-link {
    color: var(--primary-brown);
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.custom-tabs .nav-link:hover {
    background: rgba(93, 64, 55, 0.05);
}

.custom-tabs .nav-link.active {
    background: #fff !important;
    color: var(--primary-brown) !important;
    border-bottom: 3px solid var(--secondary-wood) !important;
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/rizzotto-hero.png');
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p, .hero p.lead {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Product Gallery */
.product-gallery {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    display: block;
}
