:root {
    --green-dark: #33691E;
    --green-medium: #558B2F;
    --green-light: #7CB342;

    --earth-brown: #6D4C41;

    --text-dark: #1f1f1f;
    --text-muted: #4f4f4f;

    --bg-white: #ffffff;
}
body {
    margin: 0;
    background-color: var(--green-medium);
}
/*LOGO*/
.logo {
    height: 70px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Estado inicial (hero) */
.navbar-light-custom .logo-light {
    opacity: 1;
    transform: translateY(0);
}

.navbar-light-custom .logo-dark {
    opacity: 0;
    position: absolute;
}

/* Estado sección inferior */
.navbar-dark-custom .logo-light {
    opacity: 0;
    position: absolute;
}

.navbar-dark-custom .logo-dark {
    opacity: 1;
    transform: translateY(0);
}
/*HERO*/
.hero-art {
    background-color: #0D3811;
    color: #ffffff; /* texto oscuro */
}

.hero-content {
    display: flex;
    width: 100%;
    padding: 0 80px;
    gap: 60px;
}

.hero-text {
    width: 45%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 20px;
}
.hero-text {
    transition: transform 0.35s ease;
}

.hero-text:hover {
    transform: scale(1.03);
}
.hero-text h1,
.hero-text p {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-text h1:hover,
.hero-text p:hover {
    transform: scale(1.04);
}
.hero-text h2 {
    text-align: center;
    margin-bottom: 30px;
}
.hero-text .btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-text .btn:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.hero-collage {
    width: 55%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
}
.hero-collage img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.hero-collage img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
}
.hero-collage img:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 2;
}
.products-clean {
    background-color: #ffffff;
    color: #1f1f1f;
    
}

.products-clean h2 {
    text-align: center;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.product-card {
    border: 2px solid #7CB342;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.product-card span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #558B2F;
}
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
.snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    padding-top: 70px;
    display: flex;
    align-items: center;
}

/* CSS cabecera cambio color 1*/
.navbar {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-light-custom {
    background-color: #ffffff;
}

.navbar-light-custom .navbar-brand,
.navbar-light-custom .nav-link {
    color: #336633 !important;
}

.navbar-light-custom .nav-link:hover {
    color: #33691E !important;
}
/* CSS cabecera cambio color 2*/
.navbar-dark-custom {
    background-color: #0D3811;
}

.navbar-dark-custom .navbar-brand,
.navbar-dark-custom .nav-link {
    color: #ffffff !important;
}

.navbar-dark-custom .nav-link:hover {
    color: #0D3811 !important;
}
#mainNavbar {
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}
.navbar-light-custom {
    background-color: #ffffff;
    box-shadow: none;
}

.navbar-dark-custom {
    background-color: #0D3811;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.navbar-transition-up {
    transform: translateY(0);
}

.navbar-transition-down {
    transform: translateY(0);
}
/* Redes sociales */
.navbar-socials {
    display: flex;
    gap: 30px;
}

/* Iconos base */
.navbar-socials a {
    font-size: 1.9rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* NAVBAR CLARO (fondo verde) */
.navbar-light-custom .navbar-socials a {
    color: #336633;
}

/* NAVBAR OSCURO (fondo claro) */
.navbar-dark-custom .navbar-socials a {
    color: white;
}

/* Hover */
.navbar-socials a:hover {
    transform: scale(1.2);
}

/*MOVIL*/

@media (max-width: 768px) {

    #mainNavbar {
        padding: 12px 16px;
    }
 .logo {
        height: 35px;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }
    .navbar-brand img {
        height: 28px;
    }

    .navbar-collapse {
        background-color: inherit;
        padding: 10px 0;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .scroll-container {
        scroll-snap-type: y proximity;
    }
}

@media (max-width: 768px) {

    .hero-content {
        flex-direction: column;
        padding: 40px 24px;
          text-align: center;
        gap: 40px;
    }

    .hero-text,
    .hero-collage {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {

    .hero-collage {
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }

    .hero-collage img {
        height: 180px;
           width: 90%;
        max-width: 260px;
    }

}
@media (max-width: 768px) {

    .products-clean {
        padding: 60px 24px;
    }

    .products-grid {
        gap: 24px;
    }

    .product-card {
        padding: 16px;
    }
}
@media (max-width: 768px) {
    .animate-text {
        transform: translateY(20px);
    }
}
.scroll-indicators {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

/* DOT BASE */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ACTIVO */
.dot.active {
    background-color: #ffffff;
    transform: scale(1.4);
}   
.navbar-dark-custom ~ .scroll-indicators .dot {
    background-color: rgba(51, 105, 30, 0.4);
}

.navbar-dark-custom ~ .scroll-indicators .dot.active {
    background-color: #33691E;
}

@media (max-width: 768px) {
    .scroll-indicators {
        display: none;
    }
}
/*CARGANSO*/
.animate-text,
.animate-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view .animate-text,
.in-view .animate-image {
    opacity: 1;
    transform: none;
}
@media (max-width: 768px) {
    .animate-text,
    .animate-image {
        transition-duration: 0.45s;
    }
}
