/* ==========================================================================
   TIMELINE MODULARIZADO
   ========================================================================== */

/* ==========================================================================
   VINO CULTURA - TIMELINE
   ========================================================================== */
/* Ocultar el t├¡tulo autom├ítico de la p├ígina */
.page-id-258 .page-header, .page-id-259 .page-header {
    display: none !important;
}

/* Imagen de fondo en el body para ocupar toda la pantalla naturalmente */
body.page-id-258::before, body.page-id-259::before {
    content: "";
    position: fixed;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('../../images/DSC06706.webp');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: -10;
}
body.page-id-258, body.page-id-259,
body.page-id-258 .elementor-page, body.page-id-259 .elementor-page,
body.page-id-258 .elementor-section-wrap, body.page-id-259 .elementor-section-wrap {
    background-color: transparent !important;
}

.ag-vino-cultura-container {
    padding: 60px 0px;
    background-color: rgba(244, 238, 221, 0.7); /* M├ís transparente */
    color: #333333;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    margin: 40px auto;
    max-width: 1000px; /* Exactamente el ancho del timeline para no achicar las cards */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ag-cultura-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.ag-cultura-hero h1 {
    font-size: 3rem;
    color: #5c1a1b;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ag-cultura-hero p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ag-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* L├¡nea dorada central */
.ag-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 60px; /* Acortamos la linea para que no pise el boton */
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #5c1a1b, transparent);
    transform: translateX(-50%);
}



/* OVERRIDE BODY WOOCOMMERCE TO CREAM */
body.woocommerce, body.woocommerce-page { background-color: #f4eedd !important; background-image: none !important; }


/* ==========================================================================
   VINO CULTURA HORIZONTAL TIMELINE
   ========================================================================== */
.ag-h-timeline-section {
    padding: 80px 20px;
    background-color: #f4eedd;
    overflow: hidden;
}

.ag-h-timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.ag-h-timeline-title {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    font-size: 2.2rem;
    color: #333333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ag-h-timeline-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.ag-h-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* L├¡nea central horizontal */
.ag-h-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #cda47b;
    transform: translateY(-50%);
    z-index: 1;
}

.ag-h-timeline-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 15px;
    padding: 120px 0; /* Add padding to contain the translated cards */
}

.ag-h-timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.ag-h-timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 3px solid #cda47b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: transform 0.3s, background-color 0.3s;
}

.ag-h-timeline-item:hover .ag-h-timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #cda47b;
}

.ag-h-timeline-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 200px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    z-index: 4;
}

.ag-h-timeline-item--top .ag-h-timeline-card {
    transform: translateY(-60%);
}
.ag-h-timeline-item--bottom .ag-h-timeline-card {
    transform: translateY(60%);
}

.ag-h-timeline-item--top:hover .ag-h-timeline-card {
    transform: translateY(calc(-60% - 5px));
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.ag-h-timeline-item--bottom:hover .ag-h-timeline-card {
    transform: translateY(calc(60% - 5px));
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ag-h-timeline-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #eaeaea;
}

.ag-h-timeline-content {
    padding: 15px;
}

.ag-h-timeline-date {
    display: block;
    font-size: 0.85rem;
    color: #cda47b;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ag-h-timeline-event-title {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Responsividad: Scroll horizontal en pantallas peque├▒as */
@media (max-width: 992px) {
    .ag-h-timeline-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .ag-h-timeline-events {
        width: max-content;
        min-width: 100%;
        padding: 0 20px;
    }
    .ag-h-timeline-item {
        min-width: 220px;
    }
    .ag-h-timeline-line {
        width: 10000px;
    }
}
@media (max-width: 768px) {
    .ag-h-timeline-item--top .ag-h-timeline-card,
    .ag-h-timeline-item--bottom .ag-h-timeline-card {
        margin: 40px 0;
    }
}


/* ==========================================================================
   VINO CULTURA HORIZONTAL TIMELINE (P├üGINA PRINCIPAL)
   ========================================================================== */
.ag-timeline-section {
    padding: 80px 20px;
    background-color: #f4eedd;
    overflow: hidden;
}

.ag-timeline-section .ag-timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.ag-timeline-section .ag-timeline-title {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
    font-size: 2.2rem;
    color: #333333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ag-timeline-section .ag-timeline-subtitle {
    font-family: 'Montserrat', sans-serif !important;
    color: #555555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.ag-timeline-section .ag-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* L├¡nea central horizontal */
.ag-timeline-section .ag-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #cda47b;
    transform: translateY(-50%);
    z-index: 1;
}

.ag-timeline-section .ag-timeline-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 15px;
}

.ag-timeline-section .ag-timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    height: 720px; /* Altura fija para separar tarjetas arriba y abajo */
}

.ag-timeline-section .ag-timeline-item--top {
    justify-content: flex-start;
}

.ag-timeline-section .ag-timeline-item--bottom {
    justify-content: flex-end;
}

.ag-timeline-section .ag-timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 3px solid #cda47b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ag-timeline-section .ag-timeline-item:hover .ag-timeline-dot {
    transform: translate(-50%, -50%) scale(1.3) !important;
    background-color: #cda47b;
}

.ag-timeline-section .ag-timeline-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: absolute;
    left: 50%;
}



/* Quitamos los m├írgenes ya que el posicionamiento se maneja con flex-start/end de forma robusta */
.ag-timeline-section .ag-timeline-item--top .ag-timeline-card {
    bottom: calc(50% + 40px);
    transform: translateX(-50%);
}

.ag-timeline-section .ag-timeline-item--bottom .ag-timeline-card {
    top: calc(50% + 40px);
    transform: translateX(-50%);
}

.ag-timeline-section .ag-timeline-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #eaeaea;
}

.ag-timeline-section .ag-timeline-content {
    padding: 15px;
}

.ag-timeline-section .ag-timeline-date {
    display: block;
    font-size: 0.85rem;
    color: #8c6b2d;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-timeline-section .ag-timeline-event-title {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

/* Responsividad Horizontal */
@media (max-width: 992px) {
    .ag-timeline-section .ag-timeline-wrapper {
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }
    .ag-timeline-section .ag-timeline-events {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 0 0 40px !important;
        gap: 30px !important;
    }
    .ag-timeline-section .ag-timeline-item {
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
    .ag-timeline-section .ag-timeline-line {
        width: 3px !important;
        height: 100% !important;
        left: 20px !important;
        top: 0 !important;
        transform: none !important;
    }
    .ag-timeline-section .ag-timeline-dot {
        top: 20px !important;
        left: -20px !important;
        transform: translateX(-50%) !important;
    }
    .ag-timeline-section .ag-timeline-card {
        margin: 0 !important;
        width: calc(100vw - 80px) !important;
    }
}


/* ==========================================================================
   VINO CULTURA VERTICAL TIMELINE (P├üGINA INTERNA / VINO-CULTURA)
   ========================================================================== */
.ag-vino-cultura-container {
    padding: 80px 20px;
    background-color: rgba(244, 238, 221, 0.7) !important;
    color: #333333;
    font-family: 'Montserrat', sans-serif !important;
    overflow: hidden;
}

.ag-vino-cultura-container .ag-cultura-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.ag-vino-cultura-container .ag-cultura-hero h1 {
    font-size: 3rem;
    color: #5c1a1b !important; /* Authentic wine-lees color */
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

.ag-vino-cultura-container .ag-cultura-hero p {
    font-size: 1.2rem;
    color: #555555 !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-vino-cultura-container .ag-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* L├¡nea central - Cambiada a borra de vino de la marca */
.ag-vino-cultura-container .ag-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 60px; /* Acortamos la linea para que no pise el boton */
    left: 50%;
    width: 2px;
    background: #5c1a1b !important; /* Authentic wine-lees color */
    transform: translateX(-50%);
}

.ag-vino-cultura-container .ag-timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Punto central - Ajustado para usar el color de fondo y borde borra de vino */
.ag-vino-cultura-container .ag-timeline-item .ag-timeline-dot {
    position: absolute !important;
    top: 30px !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #f4eedd !important; /* Same as container background */
    border: 3px solid #5c1a1b !important; /* Authentic wine-lees color */
    border-radius: 50% !important;
    z-index: 10 !important;
    transform: none !important; 
    left: auto !important;
    right: auto !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-dot {
    right: -8px !important;
    left: auto !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-dot {
    left: -8px !important;
    right: auto !important;
}

/* Tarjeta Black - Solid Black background */
.ag-vino-cultura-container .ag-timeline-content {
    background: #000000 !important; /* Solid Black */
    border: 1px solid #111111 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    max-width: none !important; 
    transform: none !important;
    text-align: left !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-content {
    text-align: right !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-content {
    text-align: left !important;
}

.ag-vino-cultura-container .ag-timeline-content:hover {
    transform: translateY(-5px) !important;
    border-color: #5c1a1b !important;
}

.ag-vino-cultura-container .ag-timeline-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ag-vino-cultura-container .ag-timeline-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ag-vino-cultura-container .ag-timeline-content:hover .ag-timeline-img-wrap img {
    transform: scale(1.05);
}

.ag-vino-cultura-container .ag-timeline-date {
    display: inline-block;
    color: #8c6b2d !important; /* Gold */
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-vino-cultura-container .ag-timeline-title {
    font-size: 1.6rem !important;
    margin: 0 0 12px 0 !important;
    color: #ffffff !important; /* White text on black cards */
    font-weight: bold !important;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
    text-transform: uppercase !important;
}

.ag-vino-cultura-container .ag-timeline-desc {
    font-size: 0.95rem !important;
    color: #cccccc !important; /* Legible light gray text */
    line-height: 1.6 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Ocultar elementos m├ís all├í del 5 */
.ag-vino-cultura-container .ag-timeline-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Animaci├│n de slide down para nuevos elementos */
.ag-vino-cultura-container .ag-timeline-item.ag-slide-down {
    display: block;
    animation: slideDownFade 0.6s ease forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bot├│n Cargar M├ís */
.ag-vino-cultura-container .ag-timeline-btn-wrap {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.ag-vino-cultura-container .ag-btn-gold {
    background-color: #f4eedd; /* Fondo sólido igual al del bloque para tapar linea */
    color: #5c1a1b !important;
    border: 1px solid #5c1a1b !important;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

.ag-vino-cultura-container .ag-btn-gold:hover {
    background-color: #5c1a1b !important;
    color: #ffffff !important;
}

/* Responsive Vertical */
@media screen and (max-width: 768px) {
    .ag-vino-cultura-container .ag-timeline::before {
        left: 20px;
    }
    .ag-vino-cultura-container .ag-timeline-item {
        width: 100%;
        padding: 20px 0 20px 50px;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd),
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) {
        left: 0;
        text-align: left !important;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-content,
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-content {
        text-align: left !important;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-dot,
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}


/* ==========================================================================
   VINO CULTURA - TIMELINE
   ========================================================================== */
/* Ocultar el título automático de la página */
.page-id-258 .page-header, .page-id-259 .page-header {
    display: none !important;
}

/* Imagen de fondo en el body para ocupar toda la pantalla naturalmente */
body.page-id-258::before, body.page-id-259::before {
    content: "";
    position: fixed;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('../../images/DSC06706.webp');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: -10;
}
body.page-id-258, body.page-id-259,
body.page-id-258 .elementor-page, body.page-id-259 .elementor-page,
body.page-id-258 .elementor-section-wrap, body.page-id-259 .elementor-section-wrap {
    background-color: transparent !important;
}

.ag-vino-cultura-container {
    padding: 60px 0px;
    background-color: rgba(244, 238, 221, 0.7); /* Más transparente */
    color: #333333;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    margin: 40px auto;
    max-width: 1000px; /* Exactamente el ancho del timeline para no achicar las cards */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ag-cultura-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.ag-cultura-hero h1 {
    font-size: 3rem;
    color: #5c1a1b;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ag-cultura-hero p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ag-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Línea dorada central */
.ag-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #5c1a1b, transparent);
    transform: translateX(-50%);
}



/* OVERRIDE BODY WOOCOMMERCE TO CREAM */
body.woocommerce, body.woocommerce-page { background-color: #f4eedd !important; background-image: none !important; }




/* ==========================================================================
   VINO CULTURA HORIZONTAL TIMELINE
   ========================================================================== */
.ag-h-timeline-section {
    padding: 80px 20px;
    background-color: #f4eedd;
    overflow: hidden;
}

.ag-h-timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.ag-h-timeline-title {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    font-size: 2.2rem;
    color: #333333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ag-h-timeline-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.ag-h-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Línea central horizontal */
.ag-h-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #cda47b;
    transform: translateY(-50%);
    z-index: 1;
}

.ag-h-timeline-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 15px;
    padding: 120px 0; /* Add padding to contain the translated cards */
}

.ag-h-timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.ag-h-timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 3px solid #cda47b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: transform 0.3s, background-color 0.3s;
}

.ag-h-timeline-item:hover .ag-h-timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #cda47b;
}

.ag-h-timeline-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 200px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    z-index: 4;
}

.ag-h-timeline-item--top .ag-h-timeline-card {
    transform: translateY(-60%);
}
.ag-h-timeline-item--bottom .ag-h-timeline-card {
    transform: translateY(60%);
}

.ag-h-timeline-item--top:hover .ag-h-timeline-card {
    transform: translateY(calc(-60% - 5px));
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.ag-h-timeline-item--bottom:hover .ag-h-timeline-card {
    transform: translateY(calc(60% - 5px));
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ag-h-timeline-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #eaeaea;
}

.ag-h-timeline-content {
    padding: 15px;
}

.ag-h-timeline-date {
    display: block;
    font-size: 0.85rem;
    color: #cda47b;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ag-h-timeline-event-title {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Responsividad: Scroll horizontal en pantallas pequeñas */
@media (max-width: 992px) {
    .ag-h-timeline-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .ag-h-timeline-events {
        width: max-content;
        min-width: 100%;
        padding: 0 20px;
    }
    .ag-h-timeline-item {
        min-width: 220px;
    }
    .ag-h-timeline-line {
        width: 10000px; /* Truco para asegurar que la línea cubra todo el scroll */
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .ag-h-timeline-item--top .ag-h-timeline-card,
    .ag-h-timeline-item--bottom .ag-h-timeline-card {
        margin: 40px 0;
    }
}




/* ==========================================================================
   VINO CULTURA HORIZONTAL TIMELINE (PÁGINA PRINCIPAL)
   ========================================================================== */
.ag-timeline-section {
    padding: 80px 20px;
    background-color: #f4eedd;
    overflow: hidden;
}

.ag-timeline-section .ag-timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.ag-timeline-section .ag-timeline-title {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
    font-size: 2.2rem;
    color: #333333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ag-timeline-section .ag-timeline-subtitle {
    font-family: 'Montserrat', sans-serif !important;
    color: #555555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.ag-timeline-section .ag-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Línea central horizontal */
.ag-timeline-section .ag-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #cda47b;
    transform: translateY(-50%);
    z-index: 1;
}

.ag-timeline-section .ag-timeline-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 15px;
}

.ag-timeline-section .ag-timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    height: 440px; /* Altura fija para separar tarjetas arriba y abajo */
}

.ag-timeline-section .ag-timeline-item--top {
    justify-content: flex-start;
}

.ag-timeline-section .ag-timeline-item--bottom {
    justify-content: flex-end;
}

.ag-timeline-section .ag-timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 3px solid #cda47b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ag-timeline-section .ag-timeline-item:hover .ag-timeline-dot {
    transform: translate(-50%, -50%) scale(1.3) !important;
    background-color: #cda47b;
}

.ag-timeline-section .ag-timeline-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: absolute;
    left: 50%;
}



/* Quitamos los márgenes ya que el posicionamiento se maneja con flex-start/end de forma robusta */
.ag-timeline-section .ag-timeline-item--top .ag-timeline-card {
    bottom: calc(50% + 40px);
    transform: translateX(-50%);
}

.ag-timeline-section .ag-timeline-item--bottom .ag-timeline-card {
    top: calc(50% + 40px);
    transform: translateX(-50%);
}

.ag-timeline-section .ag-timeline-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #eaeaea;
}

.ag-timeline-section .ag-timeline-content {
    padding: 15px;
}

.ag-timeline-section .ag-timeline-date {
    display: block;
    font-size: 0.85rem;
    color: #8c6b2d;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-timeline-section .ag-timeline-event-title {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

/* Responsividad Horizontal */
@media (max-width: 992px) {
    .ag-timeline-section .ag-timeline-wrapper {
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }
    .ag-timeline-section .ag-timeline-events {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 0 0 40px !important;
        gap: 30px !important;
    }
    .ag-timeline-section .ag-timeline-item {
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding-bottom: 20px !important;
    }
    .ag-timeline-section .ag-timeline-line {
        width: 3px !important;
        height: 100% !important;
        left: 20px !important;
        top: 0 !important;
        transform: none !important;
    }
    .ag-timeline-section .ag-timeline-dot {
        top: 30px !important;
        left: -20px !important;
        transform: translateX(-50%) !important;
    }
    .ag-timeline-section .ag-timeline-card {
        position: relative !important;
        left: unset !important;
        top: unset !important;
        bottom: unset !important;
        transform: none !important;
        margin: 0 !important;
        width: calc(100vw - 80px) !important;
        max-width: 100% !important;
    }
}




/* ==========================================================================
   VINO CULTURA VERTICAL TIMELINE (PÁGINA INTERNA / VINO-CULTURA)
   ========================================================================== */
.ag-vino-cultura-container {
    padding: 80px 20px;
    background-color: rgba(244, 238, 221, 0.7) !important;
    color: #333333;
    font-family: 'Montserrat', sans-serif !important;
    overflow: hidden;
}

.ag-vino-cultura-container .ag-cultura-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.ag-vino-cultura-container .ag-cultura-hero h1 {
    font-size: 3rem;
    color: #5c1a1b !important; /* Authentic wine-lees color */
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

.ag-vino-cultura-container .ag-cultura-hero p {
    font-size: 1.2rem;
    color: #555555 !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-vino-cultura-container .ag-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Línea central - Cambiada a borra de vino de la marca */
.ag-vino-cultura-container .ag-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #5c1a1b !important; /* Authentic wine-lees color */
    transform: translateX(-50%);
}

.ag-vino-cultura-container .ag-timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Punto central - Ajustado para usar el color de fondo y borde borra de vino */
.ag-vino-cultura-container .ag-timeline-item .ag-timeline-dot {
    position: absolute !important;
    top: 30px !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #f4eedd !important; /* Same as container background */
    border: 3px solid #5c1a1b !important; /* Authentic wine-lees color */
    border-radius: 50% !important;
    z-index: 10 !important;
    transform: none !important; 
    left: auto !important;
    right: auto !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-dot {
    right: -8px !important;
    left: auto !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-dot {
    left: -8px !important;
    right: auto !important;
}

/* Tarjeta Black - Solid Black background */
.ag-vino-cultura-container .ag-timeline-content {
    background: #000000 !important; /* Solid Black */
    border: 1px solid #111111 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    max-width: none !important; 
    transform: none !important;
    text-align: left !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-content {
    text-align: right !important;
}

.ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-content {
    text-align: left !important;
}

.ag-vino-cultura-container .ag-timeline-content:hover {
    transform: translateY(-5px) !important;
    border-color: #5c1a1b !important;
}

.ag-vino-cultura-container .ag-timeline-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ag-vino-cultura-container .ag-timeline-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ag-vino-cultura-container .ag-timeline-content:hover .ag-timeline-img-wrap img {
    transform: scale(1.05);
}

.ag-vino-cultura-container .ag-timeline-date {
    display: inline-block;
    color: #8c6b2d !important; /* Gold */
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.ag-vino-cultura-container .ag-timeline-title {
    font-size: 1.6rem !important;
    margin: 0 0 12px 0 !important;
    color: #ffffff !important; /* White text on black cards */
    font-weight: bold !important;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
    text-transform: uppercase !important;
}

.ag-vino-cultura-container .ag-timeline-desc {
    font-size: 0.95rem !important;
    color: #cccccc !important; /* Legible light gray text */
    line-height: 1.6 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Ocultar elementos más allá del 5 */
.ag-vino-cultura-container .ag-timeline-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Animación de slide down para nuevos elementos */
.ag-vino-cultura-container .ag-timeline-item.ag-slide-down {
    display: block;
    animation: slideDownFade 0.6s ease forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón Cargar Más */
.ag-vino-cultura-container .ag-timeline-btn-wrap {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.ag-vino-cultura-container .ag-btn-gold {
    background-color: transparent;
    color: #5c1a1b !important;
    border: 1px solid #5c1a1b !important;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
}

.ag-vino-cultura-container .ag-btn-gold:hover {
    background-color: #5c1a1b !important;
    color: #ffffff !important;
}

/* Responsive Vertical */
@media screen and (max-width: 768px) {
    .ag-vino-cultura-container .ag-timeline::before {
        left: 20px;
    }
    .ag-vino-cultura-container .ag-timeline-item {
        width: 100%;
        padding: 20px 0 20px 50px;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd),
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) {
        left: 0;
        text-align: left !important;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-content,
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-content {
        text-align: left !important;
    }
    .ag-vino-cultura-container .ag-timeline-item:nth-child(odd) .ag-timeline-dot,
    .ag-vino-cultura-container .ag-timeline-item:nth-child(even) .ag-timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}



/* ==========================================================================
   TIMELINE MODAL DETAILS
   ========================================================================== */
.ag-timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ag-timeline-modal.ag-modal-open {
    display: flex;
}

.ag-timeline-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.ag-timeline-modal-container {
    position: relative;
    background-color: #141414;
    border: 1px solid rgba(205, 164, 123, 0.2);
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: agModalFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes agModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ag-timeline-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 15;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.ag-timeline-modal-close:hover {
    color: #cda47b;
    transform: rotate(90deg);
}

.ag-timeline-modal-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #cda47b;
}

.ag-timeline-modal-body {
    padding: 30px;
    box-sizing: border-box;
}

.ag-timeline-modal-date {
    display: inline-block;
    color: #cda47b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ag-timeline-modal-title {
    font-family: 'ITC Avant Garde Gothic Std', sans-serif !important;
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ag-timeline-modal-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f0e8e0;
}

.ag-timeline-modal-text p {
    margin-bottom: 1.25rem;
}
.ag-timeline-modal-text p:last-child {
    margin-bottom: 0;
}

.ag-timeline-modal-container::-webkit-scrollbar {
    width: 8px;
}
.ag-timeline-modal-container::-webkit-scrollbar-track {
    background: #141414;
}
.ag-timeline-modal-container::-webkit-scrollbar-thumb {
    background: #cda47b;
    border-radius: 4px;
}
.ag-timeline-modal-container::-webkit-scrollbar-thumb:hover {
    background: #b89065;
}



.ag-timeline-section .ag-timeline-item--top:hover .ag-timeline-card {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ag-timeline-section .ag-timeline-item--bottom:hover .ag-timeline-card {
    transform: translateX(-50%) translateY(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
