/* CSS Reset and Variables */
:root {
    --primary-red: #B91818;
    --primary-green: #0D6432;
    --bg-light: #F0F1E3;
    --bg-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #333333;
    --font-main: 'Mulish', sans-serif;
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-icon {
    width: 21px;
    height: 21px;
    margin-right: 10px;
    object-fit: contain;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(185, 24, 24, 0.3);
}

.btn-red:hover {
    background-color: #a01515;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 24, 24, 0.4);
}

.btn-outline-green {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 800;
    font-size: 18px;
}

.btn-icon-green {
    filter: brightness(0) saturate(100%) invert(23%) sepia(50%) saturate(1917%) hue-rotate(124deg) brightness(97%) contrast(95%);
}

.btn-outline-green:hover {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.btn-outline-green:hover .btn-icon {
    filter: brightness(0) invert(1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Header Section --- */
.header {
    background-color: var(--bg-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-green);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition-fast);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    gap: 15px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

.nav-socials img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.nav-socials a:hover img {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(163, 163, 163, 0.9) 0%, rgba(250, 250, 250, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    color: var(--text-light);
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 35px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-image-slider {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-image-slider img.slide-img {
    /* max-width: 120%; */
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: translateX(10%);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-image-slider img.slide-img.active {
    position: relative;
    opacity: 1;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border: 1px solid rgba(13, 100, 50, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-dots-container {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    background-color: var(--text-light);
    width: 30px;
    border-radius: 5px;
}

/* --- Welcome Section --- */
.welcome {
    background-color: var(--bg-light);
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-title img {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.welcome-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.1;
}

.welcome-title h2 span {
    font-size: 40px;
    color: var(--primary-red);
    font-weight: 800;
}

.welcome-text {
    max-width: 450px;
    font-size: 20px;
    color: #333333;
    padding-left: 20px;
    line-height: 1.4;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .nav-list {
        gap: 15px;
    }

    .nav-list a {
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .welcome-container {
        flex-direction: column;
        text-align: center;
    }

    .welcome-text {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-slow);
        padding: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-list a {
        font-size: 18px;
    }

    .nav-socials {
        margin-top: 30px;
        border-left: none;
        padding-left: 0;
    }

    .hero-text h1 {
        font-size: 32px;
        margin-top: 15px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero {
        min-height: 450px;
    }

    .slider-arrow {
        display: none;
    }

    .hero-content {
        flex-direction: column-reverse;
        padding: 0 15px;
        gap: 15px;
        margin-top: 20px;
        align-items: center;
    }

    .hero-text {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .hero-image-slider img.slide-img {
        transform: translateX(0);
        position: relative;
    }

    .hero-image-slider img.slide-img:not(.active) {
        position: absolute;
        /* keep inactive hidden relative to active */
    }

    .hero-bg::after {
        background: linear-gradient(0deg, rgba(163, 163, 163, 0.9) 0%, rgba(250, 250, 250, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.inline-icon {
    height: 35px;
    flex-shrink: 0;
}

.sales-room .title-with-icon {
    justify-content: left;
}


.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Benefits Section --- */
.benefits {
    padding: 80px 0;
}

.benefits h3 {
    font-size: 50px;
    font-weight: 1000;
    font-style: italic;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.benefits h3 span {
    color: var(--primary-red);
}

.benefits .subtitle {
    font-size: 20px;
    color: #333333;
    margin-bottom: 50px;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-item .icon-wrap {
    width: 70px;
    height: 90px;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

.benefit-item h4 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
}

/* --- Products Section --- */
.products {
    background-color: #f7f7f7;
    /* Soft bg to match image products bg */
    padding: 80px 0;
    /* Adding background image for products if needed */
    background-image: url('../../images/bg_productos.svg');
    background-size: cover;
    background-position: center;
}

.products h3 {
    font-size: 45px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.products h3 span {
    color: var(--primary-green);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.product-card {
    background: var(--bg-white);
    /* padding: 15px; */
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card .img-wrap {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-white);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .content-wrap{
    padding: 15px;
}
.product-card .content-wrap h4{
    padding: 0 15px;
}

.product-card .img-wrap img {
    transition: var(--transition-slow);
    max-height: 100%;
}

.product-card:hover .img-wrap img {
    transform: scale(1.1);
}

.product-card .btn-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-fast);
    padding: 8px 20px;
    font-size: 14px;
}

.product-card:hover .btn-hover {
    opacity: 1;
}

.product-card .category {
    font-size: 14px;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
    display: block;
}

.product-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 700;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }

    .benefit-item {
        text-align: center;
    }

    .benefit-item .icon-wrap {
        margin: 0 auto 20px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Supermarkets Section --- */
.supermarkets {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.supermarkets h3 {
    font-size: 45px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.supermarkets p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 20px;
}

.supermarkets-slider-container {
    overflow: hidden;
    width: 100%;
}

.supermarkets-logos {
    display: flex;
    width: max-content;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    animation: scrollLogos 25s linear infinite;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.logo-box {
    background: #F0F1E3;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    transition: var(--transition-fast);
}

.logo-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.logo-box img {
    object-fit: contain;
}

/* --- Sales Room Section --- */
.sales-room {
    padding: 80px 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../../images/bg_sala.png');
    background-size: cover;
    background-position: center;
}

.sales-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}


.sales-content h3 {
    font-size: 45px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sales-content h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.text-red {
    color: var(--primary-red);
}

.sales-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 20px;
}

.sales-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sales-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
}

.sales-info img {
    width: 32px;
    margin-top: 3px;
}

.sales-image {
    flex: 1;
    min-width: 585px;
    height: 450px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 15px solid var(--primary-green);
    border-radius: 15px;
    overflow: hidden;
}

.sales-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sustainability Section --- */
.sustainability {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.sustainability h3 {
    font-size: 45px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.sustainability h3 span {
    color: var(--primary-green);
    /* margin-bottom: 30px; */
}

.sustainability p {
    color: var(--text-gray);
    max-width: 1200px;
    margin: 0 auto 50px;
    margin-bottom: 40px;
    font-size: 20px;
}

.sus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sus-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding-bottom: 20px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.sus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.sus-img {
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sus-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.sus-card:hover .sus-img img {
    transform: scale(1.1);
}

.sus-card h4 {
    color: var(--primary-green);
    font-size: 20px;
    margin-bottom: 5px;
    padding: 0 15px;
}

.sus-card p {
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 800;
    padding: 0 15px;
}

/* --- CTA Banner --- */
.cta {
    padding: 0px 0 0;
}

.cta-banner {
    background: var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    display: none;
}

.cta-content,
.cta-image {
    position: relative;
    z-index: 2;
}

.cta-content {
    flex: 1;
    max-width: 540px;
    margin-left: 40px;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-icon-wa {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.cta-image {
    width: 585px;
    margin-right: 0;
}

.cta-image img {
    width: 585px;
    height: 300px;
    object-fit: cover;
}

/* --- Pre Footer & Footer --- */
.pre-footer-img {
    display: none;
}

.footer {
    height: 800px;
    margin-top: 60px;
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: flex-end;
    position:relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.6;
    z-index: 0;
}

.footer-content-wrapper {
    padding-top: 60px;
    background-color: rgba(240, 241, 227, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.social-links img {
    width: 24px;
    transition: var(--transition-fast);
}

.social-links a:hover img {
    transform: translateY(-2px);
}

.footer-contact h5,
.footer-about h5 {
    color: var(--primary-green);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-contact ul li {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.footer-contact ul li::before {
    content: '•';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    top: -2px;
}

.footer-about {
    max-width: 400px;
}

.footer-about p {
    font-size: 16px;
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgb(255, 59, 59);
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
}

/* More media queries */
@media (max-width: 992px) {
    .sales-grid {
        flex-direction: column;
    }

    .sales-image {
        min-height: 300px;
        min-width: 100%;
    }

    .sus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        flex-direction: column;
    }

    .cta-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-content {
        padding: 40px 20px;
        margin-left: 0;
        max-width: 100%;
    }

    .cta-image {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .cta-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .sus-grid {
        grid-template-columns: 1fr;
    }

    .supermarkets-logos {
        justify-content: center;
    }

    .benefits h3,
    .products h3,
    .supermarkets h3,
    .sales-content h3,
    .sustainability h3 {
        font-size: 30px;
        line-height: 1.2;
    }

    /* Welcome section titles */
    .welcome-title h2 {
        font-size: 26px;
    }

    .welcome-title h2 span {
        font-size: 30px;
    }

    .welcome-text {
        font-size: 16px;
    }

    /* CTA & Sales h2 */
    .cta-content h2 {
        font-size: 26px;
    }

    .sales-content h2 {
        font-size: 26px;
    }

    /* Footer — sin margin-top en mobile para no montar sobre el banner */
    .footer {
        margin-top: 140px;
        text-align:center;
    }
    .footer li:before{
        display:none;
    }
    .footer img{
        margin: 0 auto 20px;
    }
    .footer .social-links{
        justify-content: center;
    }

    /* Footer bottom — más separación de la línea roja en mobile */
    .footer-bottom {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .inline-icon {
        height: 28px;
    }

    .title-with-icon {
        /* flex-direction: column; */
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
}

/* ---- Extra small screens ≤480px ---- */
@media (max-width: 480px) {

    .benefits h3,
    .products h3,
    .supermarkets h3,
    .sales-content h3,
    .sustainability h3 {
        font-size: 24px;
    }

    .welcome-title h2 {
        font-size: 22px;
    }

    .welcome-title h2 span {
        font-size: 26px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .sales-content h2 {
        font-size: 22px;
    }

    .hero-text h1 {
        font-size: 26px;
    }
}