/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #842211;
    background-image: url('/assets/img/bg-preloader.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Nueva transición de salida usando 'top' para no entrar en conflicto con el transform de pulse-bg */
    transition: top 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
    /* pulse animation for background */
    animation: pulse-bg 2.5s ease-in-out infinite;
    transform-origin: center center;
}

.preloader-content {
    text-align: center;
    transform: translateY(10vh);
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.preloader-logo {
    width: 150px;
    margin-bottom: 30px;
    /* Filtro para aproximar el color #ffdc64 (Amarillo/Oro) */
    filter: brightness(0) saturate(100%) invert(87%) sepia(21%) saturate(2206%) hue-rotate(345deg) brightness(101%) contrast(102%);
    animation: pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #91593c;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Estado de carga finalizada */
#preloader.loaded .preloader-content {
    transform: translateY(-5vh);
    opacity: 0;
}

#preloader.loaded {
    top: -100vh; /* Usamos top en vez de translateY para no pisar la animación pulse-bg */
    pointer-events: none;
}

body.no-scroll {
    overflow: hidden;
}

@keyframes spin {
    0% {
        transform: rotate(0x);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Background pulse for #preloader to give a subtle heartbeat effect */
@keyframes pulse-bg {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: rgb(35, 3, 14, .15);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
}

/* Lenis Smooth Scroll Support */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #d4af37;
    /* Gold/Champagne */
    --bg-dark: #23030e;
    --text-light: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --header-height: 90px;
    --header-height-scrolled: 70px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f4eee0;
    color: var(--text-light);
    margin: 0;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* Pseudo-elemento para el fondo que permite el fade suave */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    background-image: url('/assets/img/bgtop.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    /* Invisible por defecto */
    transition: var(--transition-smooth);
    z-index: -1;
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-header.scrolled::before {
    opacity: 1;
    /* Aparece suavemente al hacer scroll */
}

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

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    width: 33.33%;
}

.nav-links.left-links {
    justify-content: flex-end;
}

.nav-links.right-links {
    justify-content: flex-start;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Active link style — coincide con el estado :hover */
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    width: 100%;
}

.mobile-nav-links li a.active {
    color: var(--primary-color);
}

/* Logo */
.logo {
    width: 33.33%;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scrolled .logo img {
    height: 45px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 999;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
}

.mobile-nav-links li a {
    color: var(--text-light);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.mobile-nav-links li a:hover {
    color: var(--primary-color);
}

/* Animations */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo {
        position: relative;
        left: 0;
        transform: none;
        order: 1;
    }

    .logo img {
        height: 65px;
    }

    .mobile-toggle {
        display: flex;
        order: 2;
    }

    .nav-menu {
        justify-content: space-between;
        padding: 0 20px;
    }
}

.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.active span:nth-child(2) {
    opacity: 0;
}

.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* Hero Slider Styles */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-slider {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .hero-slider .swiper-pagination {
        display: none !important;
    }
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.slide-content {
    width: 100%;
    height: 130%;
    /* Aumentado para un parallax más pronunciado */
    position: absolute;
    top: -15%;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay oscuro para mejorar legibilidad */
}

.slide-content .container {
    position: relative;
    z-index: 2;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Swiper Customize Bullets (Bottom Right) */
.heroSwiper .swiper-pagination-bullets {
    bottom: 50px !important;
    left: auto !important;
    right: 50px !important;
    width: auto !important;
    display: flex;
    gap: 15px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: var(--transition-smooth);
}

.scroll-down:hover {
    color: var(--primary-color);
    transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* History Section */
.history-scroll-container {
    background-color: #fffdef;
    position: sticky;
    top: 0;
    width: 100%;
    height: 200vh;
    z-index: 1;
}

.history-sticky-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.history-content {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 0 5%;
    gap: 20px;
}

.history-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    height: 100%;
    padding-top: var(--header-height);
}

.history-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 100%;
    padding-top: calc(var(--header-height) + 60px);
    /* Compensamos el menú y bajamos 60px más */
}

.history-center {
    flex: 1.2;
    text-align: center;
    z-index: 5;
    padding-top: var(--header-height);
}

.history-video-container {
    height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}

.history-video {
    height: 100%;
    width: auto;
    display: block;
}

.history-img-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.history-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.history-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.history-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #443c30;
    /* Un tono café/gris oscuro para el fondo claro */
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive History - Tablets and Mobile */
@media (max-width: 991px) {
    .history-scroll-container {
        height: auto;
        overflow: visible;
    }
    .history-sticky-wrapper {
        position: static;
        height: 100%;
        overflow: visible;
    }
    .history-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        padding-bottom: 60px;
        height: auto;
    }
    .history-center {
        order: 1;
        width: 100%;
        padding: 0 5%;
        margin-bottom: 40px;
        z-index: 2;
    }
    .history-left {
        display: none; /* Ocultar el stopmotion del chocolate en móviles y tablets */
    }
    .history-right {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 5%;
    }
    .history-img-container {
        max-width: 320px;
        margin: 0 auto;
    }
    .history-title {
        font-size: 3rem;
    }
}

/* Video Background Section - REVEAL EFFECT */
.video-bg-section {
    position: relative;
    width: 100%;
    height: auto;
    /* Pantalla completa para que tape totalmente */
    overflow: hidden;
    z-index: 2;
    /* Capa superior para tapar la historia */
    /* box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8); */
    /* Sombra intensa para dar profundidad */
}

.cacao-native-info {
    background-color: #fffdef;
    /* Coherencia con la sección Historia */
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;

    & .cacaoleft {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 30%;
    }

    & .cacaoright {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 30%;
    }
}

.video-container {
    position: relative;
    padding: 0;
    ;
    width: 100%;
    height: auto;
    /* background-image: url('/assets/img/bgvideo.webp'); */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;

    & video {
        aspect-ratio: 16 / 9;
        width: 100%;
        max-height: 100vh;
        will-change: transform;
        transform: translateZ(0);
    }
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    width: 100%;
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.parallax-page-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 5.5rem;
    letter-spacing: 8px;
    text-shadow: 2px 4px 25px rgba(0,0,0,0.8), 0 0 10px rgba(211,84,0,0.5);
    margin: 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .parallax-page-title {
        font-size: 3.5rem;
        letter-spacing: 4px;
        padding-bottom: 40px;
    }
    .parallax-section {
        height: 50vh;
        padding-bottom: 0;
    }
}

/* Overlay para oscurecer el parallax y que el menú transparente destaque */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, #000 0%, rgba(35, 3, 14, 0) 50%);
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que el contenido de la sección quede por encima del overlay */
.parallax-section>* {
    position: relative;
    z-index: 1;
}

/* Chefs Section */
.chefs-section {
    background-color: #842111;
    padding: 100px 0;
    position: relative;
    z-index: 4;
    /* Para que quede encima del parallax */
}

.chefs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.chefs-text {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.chefs-img-wrapper {
    position: relative;
    margin-top: -150px;
    /* Hace que la imagen salga por arriba */
    z-index: 5;
}

.chefs-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@media (max-width: 991px) {
    .chefs-section {
        padding: 50px 0 150px;
        text-align: center;
    }

    .chefs-img-wrapper {
        margin-top: 50px;
        margin-bottom: -100px;
    }

    .chefs-title {
        font-size: 3.5rem;
    }
}

/* Premium Products Section */
.premium-products-section {
    width: 100%;
    background-color: #fffdef;
    z-index: 3;
    position: relative;
}

.premium-header {
    background-color: #000;
    padding: 60px 0;
    color: white;
    background-image: url('/assets/img/bgblack.webp');
}

.premium-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.premium-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
}

.premium-slider-container {
    padding: 80px 0;
}

.product-card {
    background: #ffffff; 
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(61, 43, 31, 0.08); /* Sombra suave tono café */
    border: none;
    padding: 0; /* Padding 0 para que el fondo del wrapper toque los bordes */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Mantiene la imagen contenida en los bordes curvos */
}

/* Efecto hover general de la caja */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(61, 43, 31, 0.15);
}

/* Top half: Fondo cálido para resaltar el producto */
.product-img-wrapper {
    background: linear-gradient(145deg, #fdf6ec 0%, #f1e2d0 100%); /* Tono crema/latte muy sutil */
    margin-bottom: 25px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    transition: background 0.4s ease;
    background-image: url('/assets/img/bgprod.webp');
    background-size: cover;
    background-position: center;
}

.product-img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.12));
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    z-index: 1;
}

/* Hover: El producto se acerca */
.product-card:hover .product-img {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
}

.product-card:hover .product-img-wrapper {
    /* background: linear-gradient(145deg, #fdf4e6 0%, #ecd6be 100%); */
}

/* Textos con padding lateral para compensar el padding 0 de la caja */
.product-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3d2b1f; /* Café oscuro */
    line-height: 1.3;
    padding: 0 25px;
}

.product-desc {
    font-size: 0.95rem;
    color: #795548; /* Café suave */
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 25px;
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy {
    display: block;
    width: calc(100% - 50px); /* Restando el padding lateral (25px * 2) */
    background-color: transparent;
    color: #d35400; 
    padding: 12px 25px;
    margin: auto 25px 25px 25px; /* Auto arriba empuja hacia abajo, 25px a los lados y abajo */
    border-radius: 8px; /* Bordes redondeados clásicos */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    border: 2px solid #d35400;
}

/* Efecto hover del botón */
.product-card:hover .btn-buy, .btn-buy:hover {
    background-color: #d35400;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(211, 84, 0, 0.25);
}

/* Estandarizar la altura de los slides en swiper */
.premiumSwiper .swiper-slide {
    height: auto; 
    display: flex;
}


/* Swiper Customization for Premium Slider */
.premiumSwiper {
    padding-top: 25px !important; /* Espacio para que el translateY(-8px) en el hover no se recorte por arriba */
    padding-bottom: 60px !important; /* Espacio para los bullets y las sombras */
}

.premium-slider-container .swiper-button-next,
.premium-slider-container .swiper-button-prev {
    color: #ffffff;
    background-color: #d35400;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: -22px; 
}

.premium-slider-container .swiper-button-next:hover,
.premium-slider-container .swiper-button-prev:hover {
    transform: scale(1.1);
    background-color: #a04000;
}

.premium-slider-container .swiper-button-prev {
    left: 15px; 
}

.premium-slider-container .swiper-button-next {
    right: 15px; 
}

.premium-slider-container .swiper-button-next::after,
.premium-slider-container .swiper-button-prev::after {
    font-weight: 800;
    font-size: 20px; 
}

.premiumSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: .3s;
}

.premiumSwiper .swiper-pagination-bullet-active {
    background: #d35400; 
    width: 30px;
    height: 12px;
    border-radius: 20px;
}

/* Responsive para el carrusel */
@media (max-width: 991px) {
    /* En móviles es mejor ocultar las flechas porque ocupan pantalla y el usuario desliza con el dedo de forma natural */
    .premium-slider-container .swiper-button-next,
    .premium-slider-container .swiper-button-prev {
        display: none !important;
    }
}

/* Footer & Other */
.main-footer {
    padding: 50px 0;
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Achievements Section */
.achievements-section-wrapper {
    background-color: #f4eee0;
}

.achievements-title-box {
    text-align: center;
}

.achievements-title-box h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    font-size: 1.5rem;
}

/* Modern Alternating Timeline */
.modern-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 100px;
}

.mt-container {
    position: relative;
    width: 100%;
}

.mt-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(211, 84, 0, 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

.mt-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #d35400;
    height: 0; /* Animated by GSAP */
}

.mt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
}

.mt-item:last-child {
    margin-bottom: 0;
}

.mt-item.left {
    flex-direction: row-reverse;
}

.mt-card {
    width: 45%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(61, 43, 31, 0.05);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.mt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(211, 84, 0, 0.1);
    border-color: rgba(211, 84, 0, 0.2);
}

.mt-card p, .mt-card ul {
    color: #5d4037;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.mt-card li {
    margin-bottom: 10px;
}

.mt-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #fff;
    border: 2px solid #d35400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #d35400;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 20px rgba(211, 84, 0, 0.15);
    z-index: 3;
    transition: all 0.3s ease;
}

.mt-item:hover .mt-node {
    background: #d35400;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.05);
}

@media (max-width: 991px) {
    .mt-card {
        padding: 20px 30px;
    }
    .mt-node {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mt-line {
        left: 40px;
        transform: none;
    }
    .mt-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 90px;
    }
    .mt-node {
        left: 40px;
        top: 0;
        transform: translate(-50%, -20%);
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    .mt-item:hover .mt-node {
        transform: translate(-50%, -20%) scale(1.05);
    }
    .mt-card {
        width: 100%;
        margin-top: 10px;
    }
}

    .year-side {
        width: 100%;
        height: 80px;
        justify-content: center;
        margin-bottom: 20px;
        position: sticky;
        top: 80px;
        z-index: 10;
        background: #f4eee0;
    }

    .sticky-20 {
        position: relative;
        top: 0;
        transform: none;
        margin-right: 0;
    }

    .achievement-item {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-bottom: 80px;
    }

    .year-end {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .achievement-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

/* Labor Social Section */
.labor-social-header {
    background-color: #3f6b54;
    /* verde similar al diseño */
    padding: 48px 0;
    text-align: center;
    margin-bottom: 60px;
}

.labor-social-header h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 4px;
    margin: 0;
    font-size: 2rem;
}

.labor-social-section {
    background-color: #f4eee0;
    padding: 60px 0 100px;
}

.labor-social-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.labor-photo {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4efe0;
}

.labor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.labor-social-text p {
    color: #1f1b16;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

@media (max-width: 991px) {
    .labor-social-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .labor-photo {
        max-width: 420px;
        margin: 0 auto 30px;
    }

    .labor-social-text p {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .labor-social-header h2 {
        font-size: 1.6rem;
    }

    .labor-social-text p {
        font-size: 1rem;
    }
}

/* Contact form styles */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #3d2b1f;
    font-weight: 600;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form .btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-alert-success {
    background: #dff0d8;
    color: #3c763d;
    padding: 10px;
    border-radius: 4px;
}

.contact-alert-error {
    background: #f2dede;
    color: #a94442;
    padding: 10px;
    border-radius: 4px;
}

/* Contact section layout and visuals */
.contact-section {
    background-color: #fffdef;
    /* fondo claro para la sección */
    padding: 80px 0;
}

.contact-section .container {
    max-width: 1100px;
}

.contact-section .contact-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.contact-section h3 {
    color: #3d2b1f;
    margin-top: 0;
}

.contact-section p {
    color: #3d2b1f;
}

.contact-section iframe {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-section .contact-form {
        padding: 22px;
    }

    .contact-section p {
        text-align: left;
    }
}
/* Estandarizaci�n de t�tulos h2 basada en Cacao Nativo */
h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: calc(1.475rem + 2.7vw) !important;
    line-height: 1.2 !important;
}

@media (min-width: 1200px) {
    h2 {
        font-size: 3.5rem !important;
    }
}

.about-us-premium {
    background-color: #fff;
}/* ==========================================================================
   Premium Footer Styles
   ========================================================================== */
.premium-footer {
    background-color: #2a1d15;
    color: #fdf8f4;
    padding-top: 80px;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-desc {
    color: rgba(253, 248, 244, 0.7);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 300;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #d35400;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(253, 248, 244, 0.8);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '\f054'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #d35400;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.footer-links a:hover {
    color: #d35400;
    transform: translateX(20px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact li {
    color: rgba(253, 248, 244, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-contact .text-orange {
    color: #d35400;
    font-size: 1.2rem;
}

.footer-socials .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(253, 248, 244, 0.05);
    color: #fdf8f4;
    border-radius: 50%;
    margin-right: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(253, 248, 244, 0.1);
}

.footer-socials .social-icon:hover {
    background: #d35400;
    color: #fff;
    border-color: #d35400;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

.footer-bottom {
    background-color: #1a120c;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(253, 248, 244, 0.05);
}

.footer-bottom p {
    color: rgba(253, 248, 244, 0.6);
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .premium-footer {
        padding-top: 60px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        transform: none;
        color: #d35400;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-socials {
        display: flex;
        justify-content: center;
    }
}
