/*
 Theme Name: Iberica Fruits Theme
 Theme URI: https://elementor.com/
 Description: Child theme para Hello Elementor
 Author: ACF coder
 Author URI: https://ibericafruits.com
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: Iberica Fruits
*/

/* ==========================================================================
   IBERICA FRUIT - SYSTEM DESIGN & STYLE SHEET (CSS)
   ========================================================================== */

/* 1. VARIABLES DE DISEÑO (Custom Properties)
   ========================================================================== */
:root {
    /* Paleta de Colores Principal */
    --color-primary: #1D4633;
    /* Verde oliva / bosque oscuro (corporativo) */
    --color-primary-light: #2F7343;
    /* Verde secundario aclarado */
    --color-accent: #FFBE3D;
    /* Naranja fruta / Oro vibrante (Valenciano) */
    --color-accent-hover: #6174D8;
    /* rojo oscuro para estados hover */
    --color-accent-yellow: #F8D81C;

    /* Colores de Fondo y Superficie */
    --color-bg-pure: #FFFFFF;
    /* Blanco puro */
    --color-bg-soft: #F8F5EE;
    /* Tono hueso / crema suave para secciones */

    /* Colores de Texto */
    --color-text-dark: #4A4138;
    /* Marrón carbón oscuro para alta legibilidad */
    --color-text-muted: #555555;
    /* Gris medio para textos secundarios o fechas */
    --color-text-light: #FFFFFF;

    /* Paleta de marca */
    --color-dark-brown: #4F443B;
    --color-cream: #F8F5EE;
    --color-forest-green: #2F7343;
    --color-lime-green: #95CC44;
    --color-bright-yellow: #F8D81C;
    --color-orange-red: #DE442B;
    --color-periwinkle-blue: #6174D8;
    --color-mustard: #FFBE3D;
    --color-dark-green: #1D4633;
    /* Texto blanco sobre fondos oscuros */

    /* Tipografías  */
    --font-headings: 'Tilt Warp', 'Inter', sans-serif;
    --font-body: 'Lora', 'Open Sans', serif;
}

/* 2. RESETS Y ESTILOS BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-dark);
    background-color: var(--color-bg-pure);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. TIPOGRAFÍA Y ENCABEZADOS (Headings)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
}


h1,
.heading-xl {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

h2,
.heading-lg {
    font-size: 1.875rem;
    line-height: 1.25;
}

h3,
.heading-md {
    font-size: 1.375rem;
    line-height: 1.3;
    font-weight: 600;
}

p,
.body-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

p.lead,
.text-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-primary);
}

label {
    font-family: var(--font-headings);
    padding: 16px 8px;
}

ul {
    margin-left: 1rem;
}

/* 4. COMPONENTES COMUNES (Botones globales)
   ========================================================================== */
.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.duotone * img {
    filter: invert(1) brightness(100) !important;
    max-height: 125px;
}

/* 5. LIENZO Y ESTRUCTURA UNIFICADA DE LA PÁGINA (Consistencia de Anchos)
   ========================================================================== */
.product-single {
    width: 100%;
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
}

/* El contenedor de contenido principal que dicta el ancho estricto en toda la página */

.product-single__content,
.product-archive__content {
    width: 96%;
    max-width: 1640px;
    margin: 16px auto 48px;
    display: flex;
    flex-direction: column;
}

.product-single__content {
    max-width: 1140px;
}

.fp-category-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.product-archive__content {
    padding: 1rem 2rem;
}

/* Secciones internas heredan estrictamente el 100% de ese lienzo */
.season-container,
.season-chart,
.variety-group__varieties,
.related-products {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* SINGLE POST - PALETA ROJO ANARANJADO (sustituye al verde oscuro)
   ========================================================================== */
body.single-post {
    --color-primary: var(--color-orange-red);
    --color-dark-green: var(--color-orange-red);
}

.single-post .product-single .product-single__cover--meta--content h1 {
    color: var(--color-primary);
}

/* Más aire entre el cover y el texto de la entrada */
.single-post .product-single__content {
    margin-top: 64px;
}

/* Bordes del cover (y línea inferior de la cabecera, que hace de borde superior) */
.single-post .product-single .product-single__cover {
    border-bottom-color: var(--color-orange-red);
}

body.single-post #my-custom-header {
    border-bottom-color: var(--color-orange-red);
}

/* Banda "Fresh News": arriba de la mitad del texto del cover */
.single-post .product-single .product-single__cover>.news-band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: var(--color-orange-red);
    color: var(--color-cream);
    font-family: var(--font-headings);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    /* Alinea el texto con el título: hueco a la izquierda del bloque de texto + su padding */
    padding: 12px 16px 12px calc(50% - min(660px, 45%) + 64px);
}

.single-post .product-single .product-single__cover--meta {
    padding-top: 44px;
}

@media (max-width: 860px) {
    .single-post .product-single .product-single__cover>.news-band {
        padding-left: 64px;
    }
}

@media (max-width: 768px) {
    .single-post .product-single .product-single__cover>.news-band {
        position: static;
        width: 100% !important;
        order: 1;
        font-size: 1.125rem;
        padding: 12px 32px;
    }

    .single-post .product-single .product-single__cover--meta {
        order: 2;
        padding-top: 0;
    }
}

.single-post .post-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 20px 0 0;
}

/* HOME - BANDA "FRESH NEWS" (widget de título de Elementor, id 8222c23)
   El fondo se extiende a sangre hasta los bordes de la ventana (box-shadow + clip-path)
   ========================================================================== */
body.home .elementor-element.elementor-element-8222c23 {
    background-color: var(--color-orange-red);
    box-shadow: 0 0 0 100vmax var(--color-orange-red);
    clip-path: inset(0 -100vmax);
    margin: -64px 0 0;
    padding: 16px 0;
}

body.home .elementor-element.elementor-element-8222c23 .elementor-heading-title {
    color: var(--color-cream);
    font-size: var(--e-global-typography-primary-font-size);
    text-transform: uppercase;
    margin: 0;
}

/* Banda "Fresh News" reutilizable en plantillas del tema (p. ej. Seasons), igual que la de la home */
.fresh-news-band {
    width: 100%;
    background-color: var(--color-orange-red);
    box-shadow: 0 0 0 100vmax var(--color-orange-red);
    clip-path: inset(0 -100vmax);
    padding: 16px 0;
    margin-top: 48px;
    text-align: center;
}

.fresh-news-band__title {
    color: var(--color-cream);
    font-size: var(--e-global-typography-primary-font-size);
    text-transform: uppercase;
    margin: 0;
}

/* Cards de la rejilla de posts (home y entradas): títulos y enlaces en rojo anaranjado */
.pg-posts-section {
    --color-primary: var(--color-orange-red);
}

/* 6. SINGLE PRODUCT - HERO PORTADA
   ========================================================================== */
.product-single .product-single__cover {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    background-color: var(--color-bg-pure);
    border-bottom: 2px solid var(--color-text-dark);
    width: 100%;
    min-height: 74vh;
    position: relative;
}

.product-single .product-single__cover>div {
    width: 50%;
}

.product-single .product-single__cover--meta {
    display: flex;
    justify-content: flex-end;
}

.product-single .product-single__cover--meta--content {
    padding: 64px;
    max-width: 660px;
    width: 90%;
    position: relative;
}

.product-single .product-single__cover--meta--content h1 {
    margin-bottom: 0;
    color: var(--product-color, var(--color-primary));
}


.product-single .product-single__cover--image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 50%;
    min-height: 74dvh;
    height: stretch;
    height: -webkit-fill-available;
}

.product-description {

    h2,
    h3 {
        font-family: var(--font-body);
        color: var(--color-text-dark);
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
}

.global-harvest {
    font-size: 1.3rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 3rem;

    span {
        font-size: 1.3rem;
    }
}

/* 7. NAVEGACIÓN STICKY INTERNA
   ========================================================================== */
.product-nav {
    width: 100%;
    margin: 24px auto;
    padding: 0 36px;
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 999;
    transition: padding 0.3s ease;
}

.product-nav.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background-color: color-mix(in srgb, var(--product-color, #62933d) 30%, transparent) !important;
    backdrop-filter: blur(10px);
}

.product-nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.product-nav ul li {
    display: flex;
    padding: 8px 16px;
    border: 2px solid var(--color-text-dark);
    font-family: var(--font-headings);
    border-radius: 18px;
    gap: 8px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.product-nav ul li img {
    max-height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    transition: max-height 0.3s ease;
}

.product-nav ul li a {
    display: flex;
    align-items: center;
    font-size: 1.25em;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.product-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    transition: all 0.3s ease;
    background-color: var(--color-bg-soft);
}

.product-nav__sticky-title {
    font-size: 0;
    font-weight: bold;
    color: var(--color-text-dark);
    font-family: var(--font-headings);
    margin-right: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-nav__sticky-title>a {
    color: var(--color-text-dark);
    text-decoration: none;
}

/* Cambios dinámicos is-sticky */
.product-nav.is-sticky .product-nav__container {
    justify-content: space-between;
    background-color: transparent !important;
}

.product-nav.is-sticky .product-nav__sticky-title {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    font-size: 1.5rem;
}

.product-nav.is-sticky ul li {
    padding: 4px 12px;
    border-radius: 12px;
}

.product-nav.is-sticky ul li a {
    font-size: 1em;
}

/* 8. CABECERAS DE SECCIÓN INTERNAS
   ========================================================================== */
.season-container__title {
    display: flex;
    align-items: flex-end;
    padding: 36px 0 16px;
    justify-content: flex-start;
    width: 103%;
    margin-left: -2%;

}

.season-container__title h2 {
    text-align: left;
    padding-left: 0px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-text-dark);
    margin-left: 16px;
    width: 100%;
}

.season-container__title img {
    height: 96px;
    flex-shrink: 0;
    margin-left: 16px;
}

.season-container__meta {
    width: 90%;
    margin-left: 10%;
}

/* 9. PANEL DE FILTROS (Consistencia visual con product-nav)
   ========================================================================== */
.fp-filters-container {
    background: var(--color-bg-soft);
    border: 2px solid var(--color-text-dark);
    border-radius: 24px;
    padding: 24px;
    margin: 2rem auto;
    width: 680px;
    max-width: 94%;
}

.fp-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 16px;
    margin-bottom: 0;
}

/* Título */
.fp-filters-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--color-primary);
    user-select: none;
}

.fp-filters-title .filter-icon {
    stroke: var(--color-primary);
    display: block;
}

/* Buscador */
.fp-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.fp-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0.7;
}

.fp-search-box input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 2px solid var(--color-text-dark);
    border-radius: 20px;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-search-box input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(54, 121, 73, 0.12);
}

.fp-search-box .fp-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.fp-search-box .fp-search-clear:hover {
    color: var(--color-accent-hover);
    transform: translateY(-50%) scale(1.1);
}

/* Toggle collapsible button */
.fp-toggle-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-text-dark);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.fp-toggle-filters-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.fp-toggle-filters-btn .arrow-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: currentColor;
}

.fp-toggle-filters-btn[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* Collapsible wrapper */
.fp-filters-collapsible {
    max-height: 1200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.4s ease, padding-top 0.4s ease;
    margin-top: 24px;
}

.fp-filters-collapsible.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    pointer-events: none;
}

.fp-range-indicator {
    background: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-headings);
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    border: 2px solid var(--color-text-dark);
}

.fp-months-timeline {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background: #eae5d9;
    padding: 6px;
    border-radius: 12px;
    gap: 2px;
}

.fp-month-btn {
    background: transparent;
    border: none;
    font-family: var(--font-headings);
    color: var(--color-text-dark);
    padding: 12px 0;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

.fp-month-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
}

.fp-month-btn.in-range {
    background: rgba(54, 121, 73, 0.2);
    color: var(--color-primary);
}

.fp-month-btn.is-active {
    background: rgba(54, 121, 73, 0.2) !important;
    color: var(--color-primary) !important;
    border-radius: 6px;
}

.fp-month-btn.range-start {
    background: var(--color-primary) !important;
    color: var(--color-text-light) !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.fp-month-btn.range-end {
    background: var(--color-primary) !important;
    color: var(--color-text-light) !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.fp-filter-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fp-filter-toggle::after {
    content: '▸';
    font-size: 0.75em;
    transition: transform 0.2s ease;
}

.fp-filter-group:not(.is-collapsed) .fp-filter-toggle::after {
    transform: rotate(90deg);
}

.fp-filter-group.is-collapsed .fp-button-group,
.fp-filter-group.is-collapsed .fp-months-timeline {
    display: none;
}

/* BOTONES DEL FILTRO: Modificados para mimetizarse con el menú de navegación */
.fp-filter-actions {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.btn-available,
.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 2px solid var(--color-text-dark);
    font-family: var(--font-headings);
    border-radius: 18px;
    /* Redondeado idéntico a li del nav */
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-available {
    background-color: transparent;
    color: var(--color-text-dark);
}

.btn-available:hover,
.btn-available.is-active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-reset {
    background-color: transparent;
    color: var(--color-text-dark);
}

.btn-reset:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-text-light);
    border-color: var(--color-accent-hover);
}

/* 10. GRÁFICO DE COSECHA ORIGINAL
   ========================================================================== */
.season-chart {
    font-family: inherit;
    margin: 2rem 0;
    padding: 24px;
    overflow: hidden;
    border: 2px solid var(--color-text-dark);
    border-radius: 24px;
}

.season-chart__title {
    text-align: center;
    margin-bottom: 1rem;
}

.season-chart__header,
.season-chart__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
}

.season-chart__spacer {
    width: 160px;
}

.season-chart__months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.season-chart__months span {
    font-family: var(--font-headings);
    text-align: center;
    text-transform: uppercase;
    color: #888;
    letter-spacing: .04em;
}

.season-chart__label {
    padding-right: 24px;
    border-top: 1px solid #eee;
    min-height: 38px;
    display: flex;
    align-items: center;
    text-align: right;
    justify-content: flex-end;
    line-height: 1em;
}

.season-chart__track {
    position: relative;
    min-height: 38px;
    border-top: 1px solid #eee;
}

.season-chart__bar {
    position: absolute;
    top: 50%;
    left: -6%;
    transform: translateY(-50%);
    height: 10px;
    border-radius: 5px;
    background: #1D6B3A;
    width: 112%;
}

/* 10b. PÁGINA SEASONS (page-seasons.php): calendario global, cada fila enlaza a su producto
   ========================================================================== */
/* Cabecera banner, mismas medidas que la de About Us (Elementor): 440px, título abajo a la derecha */
.seasons-hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--color-text-dark);
}

.seasons-hero__title {
    position: absolute;
    right: 93px;
    bottom: 62px;
    margin: 0;
    text-align: right;
    color: var(--e-global-color-a11bc97, #F9F4EC);
    font-size: var(--e-global-typography-primary-font-size, 2.5rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Meses fijos al hacer scroll por cada calendario.
   html y body tienen overflow-x: hidden, que anula position: sticky; en esta página se usa clip */
body.page-template-page-seasons {
    overflow-x: clip;
}

.seasons-chart.season-chart {
    overflow: visible;
}

.seasons-chart .season-chart__header {
    position: sticky;
    top: 6rem; /* bajo el header fijo, sin quedar tapado */
    z-index: 5;
    background-color: var(--e-global-color-a11bc97, #F9F4EC); /* mismo fondo que la página (kit de Elementor) */
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.seasons-page__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
}

.seasons-page__section {
    margin-top: 32px;
}

.seasons-page__title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
}

.seasons-chart .season-chart__track {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.seasons-chart .season-chart__cell {
    position: relative;
}

.seasons-chart .season-chart__months span.is-current {
    color: var(--color-primary);
}

a.season-chart__row {
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

a.season-chart__row .season-chart__label {
    font-family: var(--font-headings);
    transition: color 0.2s ease;
}

a.season-chart__row .season-chart__bar {
    transition: background-color 0.2s ease;
}

a.season-chart__row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

a.season-chart__row:hover .season-chart__label {
    color: var(--color-accent-hover);
}

a.season-chart__row:hover .season-chart__bar {
    background-color: var(--color-accent);
}

@media (max-width: 768px) {
    .seasons-hero {
        min-height: 260px;
    }

    .seasons-hero__title {
        right: 24px;
        left: 24px;
        bottom: 32px;
    }

    .seasons-chart .season-chart__header {
        top: 62px; /* altura del header fijo en móvil */
    }

    .seasons-chart {
        padding: 16px 8px;
    }

    .seasons-chart .season-chart__header,
    .seasons-chart .season-chart__row {
        grid-template-columns: 90px 1fr;
    }

    .seasons-chart .season-chart__spacer {
        width: 90px;
    }

    .seasons-chart .season-chart__label {
        font-size: 0.75rem;
        padding-right: 10px;
    }

    .seasons-chart .season-chart__months span {
        font-size: 0.6rem;
        transform: rotate(-45deg);
        display: inline-block;
    }
}

/* 11. LISTADO DE VARIEDADES INTERNAS
   ========================================================================== */
.variety-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 40px;
}

.variety-group h3:has(+ .variety-group__season) {
    margin-bottom: 0.5rem;
}

.variety-group:last-child {
    margin-bottom: 0;
}

.variety-group__season {
    font-size: 1px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    font-family: var(--font-body);
    opacity: 0;
}

.variety-group__varieties {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -10px;
}

.variety-group__variety {
    display: flex;
    gap: 24px;
    transition: opacity 0.3s ease;
    align-items: center
}

.variety-group__variety.is-hidden {
    display: none !important;
}

.fp-availability-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: var(--font-headings);
    text-transform: uppercase;
    margin-top: 6px;
}

.fp-availability-badge.status-now {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.organic-badge {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    background-color: white;
}

.organic-badge img {
    max-height: 95px;
    width: auto;
    display: block;
    border: 1px solid;
    padding: 16px 8px 8px;
    border-radius: 8px;
    background: white;
}

/* Specific styling for organic badge inside product cover */
.product-single__cover--meta--content .organic-badge {
    position: absolute;
    top: 0px;
    right: 14px;
    z-index: 10;
    float: none;
    margin: 0;
}

.product-single__cover--meta--content .organic-badge img {
    max-height: 90px;
    width: auto;
    display: block;
    border: 1px solid #ccc;
    padding: 20px 8px 8px;
    border-radius: 8px;
    background: white;
    box-shadow: 2px 2px 2px -1px rgba(0, 0, 0, 0.2);
}

.fp-availability-badge.status-coming {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.fp-availability-badge.status-off {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.variety-group__variety--image {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
}

.variety-group__variety--image div {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-color: white;
    border: 1px solid #dbdbdb;
}

.fp-global-season-block span {
    display: inline-block;
    background: var(--color-primary-light, #e8f5e9);
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--color-primary, #2e7d32);
}

/* 12. CONFECCIÓN Y REGIONES
   ========================================================================== */
.packaging__content {
    display: flex;
    gap: 40px;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.packaging__content--table {
    background: #f9f9f9;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-text-dark);

    table {
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 16px;
        overflow: hidden;
    }

}

.packaging__content--table table {
    margin-block-end: 0;
}

.packaging__content--table th,
.packaging__content--table td {
    padding: 8px 24px;
}

.growing-region {
    display: flex;
    flex-direction: row;
    width: 100%;
    display: none;
}

.growing-region .growing-region__image {
    padding-right: 24px;
    max-width: 50%;
    min-width: 360px;
}

.growing-region .growing-region__image img {
    width: 100%;
    border-radius: 24px;
    border: 2px solid var(--color-bg-soft);
}

.growing-region .growing-region__description {
    padding-left: 24px;
}

/* 13. PRODUCTOS RELACIONADOS (Consistencia total con Grid de Tarjetas del ARCHIVE)
   ========================================================================== */
.related-products {
    margin-top: 48px;
}

/* Estructura de Rejilla igual al catálogo / archive */
.related-products .related-products__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    list-style: none;
    padding: 0;
}

/* Estilo de Tarjeta de Producto del Archive */
.related-products .related-products__list li {
    display: flex;
    flex-direction: column;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-products__list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
    font-family: var(--font-headings);
    font-size: 1.35rem;
    /* Escalado a tamaño tipo tarjeta archive */
    text-decoration: none;
    width: 100%;
}


/* Contenedor de miniatura tipo Archive */
.related-products__list .related-thumb {
    width: 100px;
    height: auto;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-products__list .related-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: transparent;
}

.related-title {
    font-size: 1.2rem;
    line-height: 1.4rem;
}

/* Compensación de salto por menú pegajoso */
#fp-varieties,
#fp-seasons,
#fp-sizes,
#fp-related,
#fp-product,
.season-container,
.related-products {
    scroll-margin-top: 80px;
}

/* 14. PIE DE PÁGINA (Footer)
   ========================================================================== */
footer {
    width: 100%;
    max-width: 100%;
}

footer .footer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 96%;
    margin: 1.5rem auto 2rem;
}

footer .footer-container .footer-column {
    width: 33%;
    gap: 24px;
}

.footer-logo-column {
    text-align: center;
}

footer .footer-copyright {
    text-align: center;
}

nav.footer-navigation .menu {
    font-family: var(--font-headings);
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 6px;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    justify-content: end;

    li {
        border-bottom: 1px solid var(color-text-dark);

        a {
            text-decoration: none;
            color: var(--color-primary);
        }
    }
}

.footer-copyright {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background-color: var(--color-bg-soft);
}

/******************* Ajuste Archive ***********************/

.products-archive__header {
    margin-top: 64px;

    h1 {
        text-align: center;
    }
}


.products-archive__grid {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;

    .product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 180px;
        width: 180px;

    }

    h2 {
        font-size: 1.24rem;
        text-align: center;

        a {
            color: var(--color-primary);

            &:hover {
                color: var(--color-accent-hover);
            }
        }

    }
}

#fp-related .products-archive__grid {
    justify-content: left;
}

/******************* Resultados de búsqueda (search.php) ***********************/
.search-archive__count {
    text-align: center;
    color: var(--color-text-muted);
}

/* Entradas y páginas: el doble de ancho que la tarjeta de producto (180px + gap) en escritorio, 100% en móvil */
.search-archive .products-archive__grid .product-card--photo {
    width: calc(360px + 0.8rem);
    min-width: calc(360px + 0.8rem);
}

@media (max-width: 768px) {
    .search-archive .products-archive__grid .product-card--photo {
        width: 100%;
        min-width: 100%;
    }
}

.search-archive .product-card__excerpt p {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* Entradas y páginas: foto apaisada 2:1 (misma altura que la imagen de producto); 16:9 en móvil */
.search-archive .product-card--photo .product-card__image,
.search-archive .product-card--photo .product-card__image img {
    aspect-ratio: 2 / 1;
}

.search-archive .product-card--photo .product-card__image img {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .search-archive .product-card--photo .product-card__image,
    .search-archive .product-card--photo .product-card__image img {
        aspect-ratio: 16 / 9;
    }
}


/******************* Loading products *********************/
.fp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    text-align: center;
}

.fp-loading-gif {
    width: 120px;
    /* Tamaño ideal para que se aprecien bien los trazos */
    height: auto;
    margin-bottom: 15px;
}

.product-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-3px);
}

/* Image Placeholder & Loader for Product Cards */
.product-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 140px;
    background-color: transparent;
}

.product-card__image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    background-image: url('/wp-content/uploads/2026/06/logo-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    animation: fp-icon-pulse 1.4s infinite ease-in-out;
}

.product-card__image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease-in-out;
    will-change: transform, opacity;
}

.product-card:hover .product-card__image img.is-loaded {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.product-card__image img:not(.is-loaded) {
    opacity: 0;
}

.product-card__image img.is-loaded {
    opacity: 1;
}

.product-card__image.is-loaded::before {
    display: none;
}

@keyframes fp-icon-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: scale(0.85);
        opacity: 0.4;
    }
}

.fp-loading p {
    font-family: var(--font-headings);
    color: var(--color-text-muted);
    font-size: 1rem;
}

/****************************Botones Advanced filter *******************/
/* Fila contenedora principal de filtros */
.fp-filter-row-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Grupo de botones e inputs */
.fp-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Botón de filtro estándar (Estilo Desactivado) */
.fp-btn-filter {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-text-dark, #333);
    border: 1px solid transparent;
    padding: 8px 18px;
    border-radius: 16px;
    font-family: var(--font-headings);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fp-btn-filter:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Estado Activo (Mismo color verde corporativo que Available Now) */
.fp-btn-filter.is-active {
    background-color: var(--color-accent, #1c412e);
    color: var(--color-text-dark, #6666);
    font-weight: 400;
    box-shadow: 0 4px 10px rgba(28, 65, 46, 0.15);
}

/* Bloque lateral para botones de acción (Reset, Available Now) */
.fp-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}


/* Fila de filtros principal */
.fp-filter-row-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Alineación de la cabecera del segundo nivel */
.fp-subtype-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.fp-subtype-header label {
    margin-bottom: 0 !important;
    /* Resetea el margen para alinearse con el botón */
}

/* Botón interactivo "Atrás" */
.fp-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: 1px solid var(--color-text-muted, #999);
    color: var(--color-text-dark, #333);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-btn-back stroke {
    transition: transform 0.2s ease;
}

.fp-btn-back:hover {
    background-color: var(--color-text-dark, #333);
    color: #fff;
    border-color: var(--color-text-dark, #333);
}

.fp-btn-back:hover svg {
    transform: translateX(-2px);
}


@media(max-width: 860px) {

    .product-single .product-single__cover--meta--content {
        width: 100%;
    }


    .product-single__cover--meta--content .organic-badge {
        top: 20px;
        right: 20px;
    }

    .product-single__cover--meta--content .organic-badge img {
        max-height: 75px;
        width: auto;
        display: block;
        border: 1px solid #ccc;
        padding: 14px 6px 6px;
        border-radius: 6px;
        background-color: white;
    }

    .product-single .product-single__cover--meta--content {
        width: 100%;
    }


}


@media(min-width: 768px) {
    .fp-filter-row-navigation {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}




/* Ajustes Responsive */
@media(min-width: 768px) {
    .fp-filter-row-buttons {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .fp-filter-actions {
        margin-top: 0;
    }
}




/* ==========================================================================
   15. RESPONSIVE DESIGN - MEDIA QUERIES UNIFICADAS
   ========================================================================== */

/* DISPOSITIVOS TABLET (Hasta 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1,
    .heading-xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2,
    .heading-lg {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3,
    .heading-md {
        font-size: 1.25rem;
    }

    .section-alt,
    .section-default {
        padding: 3rem 1rem;
    }

    .growing-region {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    .growing-region .growing-region__image {
        max-width: 100%;
        min-width: auto;
        margin-bottom: 24px;
        padding: 0;
    }

    .growing-region .growing-region__description {
        padding: 0;
    }

    .season-chart {
        padding: 20px;
        overflow-x: auto;
    }

    .season-chart__label {
        max-width: 116px;
        font-size: .7rem;
        padding-right: 16px;
    }

    .season-chart__months span {
        transform: rotate(-45deg);
        display: inline-block;
        font-size: .6rem;
    }

    .season-chart__header,
    .season-chart__row {
        grid-template-columns: 80px 1fr;
    }

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

    .fp-filters-container {
        max-width: 98%;
        margin: 2rem 1rem;
    }

    .product-single .product-single__cover--meta--content {
        width: 100%;
    }


    .product-single__cover--meta--content .organic-badge {
        top: 40px;
        right: 30px;
    }

    .product-single__cover--meta--content .organic-badge img {
        max-height: 65px;
        width: auto;
        display: block;
        border: 1px solid #ccc;
        padding: 14px 6px 6px;
        border-radius: 6px;
        background-color: white;
    }

    .product-single .product-single__cover--meta--content {
        width: 100%;
    }

    .product-single .product-single__cover--meta--content h1 {
        max-width: 80%;
    }


    /* NUEVA COVER */

    .product-single .product-single__cover {
        flex-direction: column !important;
        background-color: var(--color-bg-pure);
        min-height: 60dvh;
    }

    .product-single__cover--meta--content .organic-badge {
        top: 24px;
        right: 24px;
    }

    .product-single__cover--meta--content .organic-badge img {
        max-height: 70px;
        padding: 10px 6px 6px;
    }

    .product-single .product-single__cover--image {
        min-height: 60dvh;
    }

    .product-single .product-single__cover .product-single__cover--meta--content {
        padding: 32px;
    }

    .product-single>.product-single__cover>div {
        width: 100% !important;
    }

    .product-single .product-single__cover--image {
        height: 60vh !important;
    }

    /* SEASON CONTAINER */

    /* Season Container */
    .season-container__meta {
        margin-left: 2%;
        width: 96%;
    }

    /* Related Products */
    .related-products .related-products__list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;


        .related-thumb {
            width: 100%;
            height: 100px;
        }
    }

    /* Línea temporal compacta para filtros */
    .fp-months-timeline {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        padding: 8px;
    }

    .fp-month-btn {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .packaging__content {
        flex-direction: column;
        gap: 16px;
    }

    .variety-group__variety {
        gap: 16px;
    }

    .variety-group__variety .variety-group__variety--image {
        width: 64px;
        height: 64px;
    }

    .packaging__content {
        align-items: center;
    }

}

/* TELÉFONOS MÓVILES (Hasta 600px) */
@media (max-width: 600px) {
    .product-single .product-single__cover {
        flex-direction: column !important;
        background-color: var(--color-bg-pure);
        min-height: 60dvh;
    }

    .product-single__cover--meta--content .organic-badge {
        top: 24px;
        right: 24px;
    }

    .product-single__cover--meta--content .organic-badge img {
        max-height: 70px;
        padding: 10px 6px 6px;
    }

    .product-single .product-single__cover--image {
        min-height: 60dvh;
    }

    .product-single .product-single__cover .product-single__cover--meta--content {
        padding: 32px;
    }

    .product-single>.product-single__cover>div {
        width: 100% !important;
    }

    .product-single .product-single__cover--image {
        height: 60vh !important;
    }

    .season-container {
        padding: 0;
        margin-top: 16px;
    }

    .season-container__title {
        width: 108%;
        margin-left: -2%;
        padding: 36px 0 16px;
        align-items: flex-start;
        flex-direction: column;

    }

    .season-container__title img {
        height: 70px;
    }

    .season-chart {
        padding: 16px 4px;
    }

    .season-chart__bar {
        left: -14%;
        height: 8px;
        width: 128%;
    }


    /* Season Container */
    .season-container__meta {
        margin-left: 2%;
        width: 96%;
    }

    /* Related Products */
    .related-products .related-products__list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;


        .related-thumb {
            width: 100%;
            height: 100px;
        }
    }

    /* Línea temporal compacta para filtros */
    .fp-months-timeline {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        padding: 8px;
    }

    .fp-month-btn {
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    .packaging__content {
        flex-direction: column;
        gap: 16px;
    }

    .variety-group__variety {
        gap: 16px;
    }

    .variety-group__variety .variety-group__variety--image {
        width: 64px;
        height: 64px;
    }

    /* Navegación móvil */
    .product-nav,
    .product-nav.is-sticky {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .product-nav .product-nav__container,
    .product-nav.is-sticky .product-nav__container {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .is-sticky .product-nav__sticky-title {
        display: none;
    }

    .product-nav ul,
    .product-nav.is-sticky ul {
        justify-content: flex-start;
        gap: 8px;
    }

    .fp-filters-container {
        max-width: calc(96%, 960px);
        margin: 2rem auto;
    }

    .fp-filters-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fp-filters-title {
        justify-content: center;
    }

    .fp-search-box {
        max-width: 100%;
        min-width: 100%;
    }

    .fp-toggle-filters-btn {
        justify-content: center;
        width: 100%;
    }

    .fp-months-header {
        display: flex;
        flex-direction: column;
    }

    .products-archive__grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .products-archive__grid {
        .product-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 46%;
            width: 140px;
        }
    }

    .related-products .related-products__list li {
        display: flex;
        flex-direction: column;
        padding: 16px;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: 43%;
    }

    .packaging__content--table {
        margin: 0 auto;
    }

    .product-archive__content {
        padding: 1rem;
    }

    .site-logo a img {
        width: 250px;
    }

    .footer-contact-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* SMARTPHONES VERTICALES EXTREMOS (Hasta 400px) */
@media (max-width: 400px) {

    h1,
    .heading-xl {
        font-size: 1.75rem;
    }

    .fp-filters-container {
        padding: 16px;
    }

    .product-nav ul li {
        padding: 4px 10px;
        border-radius: 8px;
    }

    .product-nav ul li a {
        font-size: 0.95em;
    }

    /* Timeline en 3 filas */
    .fp-months-timeline {
        grid-template-columns: repeat(4, 1fr);
    }

    .fp-month-btn {
        font-size: 0.8rem;
        padding: 6px 2px;
    }

    .fp-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-available,
    .btn-reset {
        width: 100%;
        height: 44px;
    }

    .related-products .related-products__list {
        grid-template-columns: 1fr;
    }

    .variety-group__variety {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 16px;
        width: 100%;

        .variety-group__variety--content {
            padding-top: 8px;
        }
    }
}

/* TABLETS EN VERTICAL (Portrait tablets, min-width: 601px and max-width: 1024px) */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
    .product-single .product-single__cover {
        min-height: 30dvh !important;
    }

    .product-single .product-single__cover--image {
        min-height: 30dvh !important;
    }
}

/* ==========================================================================
   CUSTOM SITE HEADER STYLING
   ========================================================================== */
#my-custom-footer {
    position: relative;
    width: 100%;
    z-index: 1100;
    max-width: 100%;
    border-bottom: 2px solid var(--color-text-dark);
}

#my-custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    max-width: 100%;
    border-bottom: 2px solid var(--color-text-dark);
    background-color: #FAF8F5;
    /* Matches theme beige background */
}

/* Offset body for fixed header, except on single fresh product */
body {
    padding-top: 76px;
}

body.single-fresh_product,
body.single-post {
    padding-top: 0;
}

body.single-fresh_product #my-custom-header,
body.single-post #my-custom-header {
    position: relative;
}

#my-custom-header .header-container {
    max-width: 1400px;
    width: 96%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#my-custom-header .custom-logo {
    max-height: 50px;
    height: auto;
    width: auto;
}

#my-custom-header .logo-desktop {
    display: block !important;
}

#my-custom-header .logo-mobile {
    display: none !important;
}

#my-custom-header .main-navigation {
    display: block;
}

#my-custom-header .menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

#my-custom-header .menu-items li a {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: inline-block;
}

#my-custom-header .menu-items li a:hover {
    color: var(--color-accent);
}

/* Buscador: botón lupa y cuadro desplegable bajo el header */
#my-custom-header .main-navigation {
    margin-left: auto;
}

#my-custom-header .search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 24px;
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

#my-custom-header .search-toggle:hover,
#my-custom-header .search-toggle.is-active {
    color: var(--color-accent);
}

/* Mismo estilo que el panel "Filters & Search" del archivo de productos (.fp-filters-container / .fp-search-box) */
#my-custom-header .header-search {
    /* Caja flotante bajo la lupa: se superpone al contenido sin cambiar la altura del header */
    position: absolute;
    top: calc(100% - 12px);
    right: calc(max(2%, (100% - 1400px) / 2) + 24px);
    width: min(560px, calc(100% - 32px));
    z-index: 1200;
    background: var(--color-bg-soft);
    border: 2px solid var(--color-text-dark);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
}

#my-custom-header .header-search[hidden] {
    display: none;
}

#my-custom-header .header-search__form {
    display: flex;
    align-items: center;
    gap: 12px;
}

#my-custom-header .header-search__box {
    position: relative;
    flex: 1;
    min-width: 0;
}

#my-custom-header .header-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0.7;
}

#my-custom-header .header-search__input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--color-text-dark);
    border-radius: 20px;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#my-custom-header .header-search__input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(54, 121, 73, 0.12);
}

#my-custom-header .header-search__submit {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-text-dark);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

#my-custom-header .header-search__submit:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

#my-custom-header .header-search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

#my-custom-header .header-search__close:hover {
    color: var(--color-accent-hover);
    transform: scale(1.1);
}

/* Hamburguesa Button (Default hidden on desktop) */
#my-custom-header .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1200;
}

#my-custom-header .hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

#my-custom-header .hamburger-inner,
#my-custom-header .hamburger-inner::before,
#my-custom-header .hamburger-inner::after {
    width: 24px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#my-custom-header .hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

#my-custom-header .hamburger-inner::before,
#my-custom-header .hamburger-inner::after {
    content: "";
    display: block;
}

#my-custom-header .hamburger-inner::before {
    top: -8px;
}

#my-custom-header .hamburger-inner::after {
    bottom: -8px;
}

/* Animación de la hamburguesa cuando está activa */
#my-custom-header .menu-toggle.is-active .hamburger-inner {
    background-color: transparent;
}

#my-custom-header .menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

#my-custom-header .menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* RESPONSIVE DESIGN FOR HEADER (Mobile & Tablet dropdown style) */
@media (max-width: 768px) {
    #my-custom-header .header-container {
        padding: 6px 16px;
    }

    #my-custom-header .custom-logo {
        max-height: 48px;
    }

    body {
        padding-top: 62px; /* 48 logo + 12 padding + 2 borde */
    }

    body.single-fresh_product {
        padding-top: 0;
    }

    #my-custom-header .logo-desktop {
        display: none !important;
    }

    #my-custom-header .logo-mobile {
        display: block !important;
    }

    #my-custom-header .menu-toggle {
        display: block;
        order: 3;
    }

    #my-custom-header .search-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    #my-custom-header .header-search {
        right: 16px;
        left: 16px;
        width: auto;
    }

    #my-custom-header .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-soft) !important;
        border-radius: 12px !important;
        border: 2px solid var(--color-text-dark) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        padding: 10px 0 !important;
        z-index: 1000;
        margin: 8px 24px;
    }

    #my-custom-header .main-navigation.is-open {
        display: block;
    }

    #my-custom-header .menu-items {
        flex-direction: column;
        gap: 0;
    }

    #my-custom-header .menu-items li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    #my-custom-header .menu-items li:last-child {
        border-bottom: none !important;
    }

    #my-custom-header .menu-items li a {
        font-family: var(--font-headings) !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: var(--color-primary) !important;
        padding: 14px 20px !important;
        text-transform: uppercase !important;
        display: block !important;
        transition: all 0.25s ease !important;
    }

    #my-custom-header .menu-items li a:hover {
        color: var(--color-accent) !important;
        background-color: rgba(28, 65, 46, 0.05) !important;
        padding-left: 24px !important;
    }
}

/* ==========================================================================
   FOOTER CONTACT SECTION & SOCIAL LINKS STYLING
   ========================================================================== */
.footer-contact-section {
    padding: 0 2rem 42px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-contact-title {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
}

.footer-contact-grid {
    display: flex;
    gap: 36px;
    justify-content: center;
}

.footer-contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    max-width: 260px;
    width: 100%;
}

.footer-contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding-top: 7px;
    padding-left: 2px;
    ;
}

.footer-contact-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

#my-custom-footer .footer-contact-icon-wrapper svg path,
#my-custom-footer .footer-social-icon-wrapper svg path {
    fill: var(--color-primary) !important;
}

#my-custom-footer .footer-contact-item:hover .footer-contact-icon-wrapper svg path,
#my-custom-footer .footer-social-item:hover .footer-social-icon-wrapper svg path {
    fill: var(--color-bg-pure) !important;
}

.footer-contact-item:hover .footer-contact-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-bg-pure);
    transform: scale(1.08);
}

.footer-contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-contact-content h3 {
    font-family: var(--font-headings);
    font-size: 1.65rem;
    color: var(--color-primary);
    margin: 12px 0 4px;
    font-weight: bold;
    line-height: 1.2;
}

.footer-contact-content h3 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-content h3 a:hover {
    color: var(--color-accent);
}

.footer-contact-content p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin: 0;
}

.footer-divider {
    border: none;
    border-top: 3px solid var(--color-primary);
    width: 150px;
    margin: 40px auto;
}

/* Redes Sociales en Footer */
.footer-social-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

span.social {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-weight: bold;
}

.footer-social-links {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.footer-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2.5px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.footer-social-links li a svg {
    width: 20px;
    height: 20px;
}


#my-custom-footer .footer-social-links li a svg path {
    fill: var(--color-primary) !important;
}

.footer-social-links li a:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-pure);
    transform: scale(1.08);
}

#my-custom-footer .footer-social-links li a:hover svg path {
    fill: var(--color-bg-pure) !important;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
    margin-left: 0px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-contact-item {
        max-width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER EN BANDA VERDE OSCURO (textos, iconos y logo en blanco)
   El legal y el copyright van dentro, bajo el logo (.footer-legal). En las entradas --color-dark-green es rojo anaranjado.
   ========================================================================== */
#my-custom-footer {
    background-color: var(--color-dark-green);
    padding-top: 8px;
}

#my-custom-footer .footer-contact-title {
    margin-top: 62px;
}

/* Tilt Warp solo tiene un grosor: el "bold" forzado se ve empastado en blanco */
#my-custom-footer .footer-contact-title,
#my-custom-footer .footer-contact-content h3,
#my-custom-footer .footer-container nav.footer-navigation .menu,
#my-custom-footer span.social {
    font-weight: 400;
}

#my-custom-footer .footer-contact-title,
#my-custom-footer .footer-contact-content h3,
#my-custom-footer .footer-contact-content h3 a,
#my-custom-footer .footer-contact-content p,
#my-custom-footer .footer-container nav.footer-navigation .menu li a,
#my-custom-footer span.social {
    color: var(--color-text-light);
}

#my-custom-footer .footer-contact-content h3 a:hover,
#my-custom-footer .footer-container nav.footer-navigation .menu li a:hover {
    color: var(--color-accent);
}

/* Iconos: círculo blanco; al pasar el ratón se rellena de blanco con el icono en el color del fondo */
#my-custom-footer .footer-contact-icon-wrapper,
#my-custom-footer .footer-social-links li a {
    border-color: var(--color-text-light);
}

#my-custom-footer .footer-contact-icon-wrapper svg path,
#my-custom-footer .footer-social-links li a svg path {
    fill: var(--color-text-light) !important;
}

#my-custom-footer .footer-contact-item:hover .footer-contact-icon-wrapper,
#my-custom-footer .footer-social-links li a:hover {
    background-color: var(--color-text-light);
}

#my-custom-footer .footer-contact-item:hover .footer-contact-icon-wrapper svg path,
#my-custom-footer .footer-social-links li a:hover svg path {
    fill: var(--color-dark-green) !important;
}

/* Logo blanco (PNG con mucho margen transparente: se recorta al centro) */
#my-custom-footer .footer-custom-logo {
    width: 250px !important;
    max-width: 100%;
    height: 60px !important;
    object-fit: cover;
}

/* Copyright y legal sobre crema */
#my-custom-footer .footer-copyright {
    background-color: var(--color-bg-soft);
}

/* ==========================================================================
   QUALITY ASSURANCE CUSTOM PAGE STYLING
   ========================================================================== */
.quality-assurance-page {
    padding: 80px 24px;
    background-color: var(--color-bg-pure);
    font-family: var(--font-body);
}

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

.qa-hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.qa-title {
    font-family: var(--font-headings);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.qa-subtitle {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.qa-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.qa-certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.qa-cert-item {
    background-color: var(--color-bg-soft);
    border: 2px solid var(--color-text-dark);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    height: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qa-cert-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.qa-cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qa-divider {
    border: none;
    border-top: 2px dashed var(--color-text-dark);
    opacity: 0.15;
    max-width: 1200px;
    margin: 80px auto;
}

.qa-contact-section {
    text-align: center;
}

.qa-contact-title {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 48px;
}

.qa-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.qa-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qa-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(28, 65, 46, 0.08);
    color: var(--color-primary);
    margin-bottom: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.qa-contact-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.qa-contact-item:hover .qa-contact-icon {
    background-color: var(--color-primary);
    color: var(--color-bg-pure);
    transform: scale(1.08);
}

.qa-contact-item h3 {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.qa-contact-item p {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.qa-contact-item p a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.qa-contact-item p a:hover {
    color: var(--color-accent);
}

.qa-social-section {
    max-width: 600px;
    margin: 40px auto 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 40px;
}

.qa-social-section h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.qa-social-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.qa-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qa-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg-soft);
    border: 2px solid var(--color-text-dark);
    color: var(--color-primary);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.qa-social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.qa-social-card:hover .qa-social-icon {
    background-color: var(--color-primary);
    color: var(--color-bg-pure);
    transform: scale(1.1);
}

.qa-social-card h4 {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.qa-social-card p a {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.qa-social-card p a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   QA PROCESS / SUPPLY CHAIN JOURNEY (5 STEPS WITH ANIMATED FARMERS)
   ========================================================================== */
.qa-process-section {
    position: relative;
    padding: 30px 0 50px;
    margin-bottom: 40px;
    overflow: hidden;
}

.qa-process-section .qa-container {
    max-width: 1440px;
    padding: 0 30px;
}

.qa-process-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.qa-process-badge {
    display: inline-block;
    background-color: rgba(28, 65, 46, 0.08);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.qa-process-title {
    font-family: var(--font-headings);
    font-size: 2.75rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.qa-process-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* Timeline Layout - Máxima amplitud horizontal y gran fluidez */
.qa-timeline-wrapper {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0;
}

/* SVG Connecting Curve */
.qa-timeline-curve {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    z-index: 1;
    pointer-events: none;
}

.qa-timeline-curve svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#qaCurvePath {
    stroke-dashoffset: 0;
    animation: qaPathFlow 25s linear infinite;
}

@keyframes qaPathFlow {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -300;
    }
}

/* Step Items - Muy horizontales y compactados verticalmente */
.qa-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: -40px;
}

/* Mayor horizontalidad: Desplazar alternativamente los pasos a la izquierda y derecha */
.qa-step--left {
    justify-content: flex-start;
    padding-left: 40px;
}

.qa-step--right {
    justify-content: flex-end;
    padding-right: 40px;
}

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

.qa-step-farmer {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qa-farmer-bubble {
    width: 220px;
    height: 220px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qa-farmer-bubble:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: none;
}

.qa-farmer-bubble img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
}

.qa-step-content {
    flex: 0 1 320px;
    background-color: var(--color-bg-pure);
    border: 2px solid #EBE5D8;
    border-radius: 20px;
    padding: 22px 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.qa-step-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(28, 65, 46, 0.1);
    border-color: var(--color-primary-light);
}

.qa-step-number {
    position: absolute;
    top: -18px;
    left: 28px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #B52B27;
    color: #FFFFFF;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(181, 43, 39, 0.35);
}

/* El número se orienta siempre en el lateral pegado al granjero */
.qa-step--left .qa-step-number {
    left: 18px;
    right: auto;
}

.qa-step--right .qa-step-number {
    left: auto;
    right: 18px;
}

.qa-step-heading {
    font-family: var(--font-headings);
    font-size: 1.65rem;
    color: #B52B27;
    margin: 6px 0 10px;
}

.qa-step-text {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   FARMER KEYFRAME ANIMATIONS (LIVELY MOVEMENTS)
   ========================================================================== */

/* 1. Growing: Farmer gently bobs up/down and breathes with the plant */
.qa-anim-growing .qa-farmer-bubble img {
    animation: farmerPlanting 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes farmerPlanting {

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

    35% {
        transform: translateY(-6px) rotate(-1.5deg) scale(1.02);
    }

    70% {
        transform: translateY(3px) rotate(1deg) scale(0.99);
    }
}

/* 2. Warehouse: Farmer carrying orange crate rocks gently side to side as if walking */
.qa-anim-warehouse .qa-farmer-bubble img {
    animation: farmerWalkingCrate 3.6s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes farmerWalkingCrate {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* 3. Quality: Farmer winks & glowing star twinkles / pulses */
.qa-anim-quality .qa-farmer-bubble img {
    animation: farmerStarPulse 3.2s ease-in-out infinite;
    transform-origin: 25% 15%;
}

@keyframes farmerStarPulse {

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

    50% {
        transform: scale(1.06) rotate(-2deg);
    }
}

/* 4. Logistics: Farmer waving flags in rhythm */
.qa-anim-logistics .qa-farmer-bubble img {
    animation: farmerWaveFlags 2.8s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes farmerWaveFlags {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    25% {
        transform: rotate(0deg) translateY(-5px);
    }

    50% {
        transform: rotate(3deg) translateY(0);
    }

    75% {
        transform: rotate(0deg) translateY(-3px);
    }
}

/* 5. Delivery: Upside down tomato farmer balances & wobbles playfully */
.qa-anim-delivery .qa-farmer-bubble img {
    animation: farmerAcrobat 3s ease-in-out infinite;
    transform-origin: 55% 85%;
}

@keyframes farmerAcrobat {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(-4deg) translateY(-5px) scale(1.02);
    }

    75% {
        transform: rotate(4deg) translateY(-2px) scale(0.99);
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .qa-process-title {
        font-size: 2.2rem;
    }

    .qa-timeline-curve {
        display: none;
    }

    .qa-step-item,
    .qa-step--left,
    .qa-step--right {
        flex-direction: column !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 20px;
        margin-bottom: 50px;
    }

    /* Granjero siempre encima de la tarjeta en móvil */
    .qa-step-farmer {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    .qa-farmer-bubble {
        width: 220px !important;
        height: 220px !important;
        margin: 0 auto;
    }

    .qa-step-content {
        order: 2 !important;
        flex: 0 1 50px !important;
        width: 100%;
        max-width: 480px;
        text-align: center;
        margin-top: 15px;
    }

    .qa-step-number {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .qa-certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .qa-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .qa-title {
        font-size: 2.25rem;
    }

    .qa-certificates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .qa-social-grid {
        gap: 32px;
    }

    .footer-contact-section {
        padding: 0 1rem 42px;
    }

    .footer-contact-grid {
        display: flex !important;
        flex-direction: column;

    }

    .footer-contact-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }

    footer .footer-container {
        display: flex !important;
        width: 96%;
        margin: 0 auto;
        flex-direction: column;
        gap: 2rem;

        .footer-contact-section {
            width: 100%;
            justify-content: flex-start;
        }

        .footer-column {
            width: 100%;
            justify-content: flex-start;

            &.footer-logo-column {
                order: -1;

                img {
                    width: 90%;
                    height: auto;
                }
            }
        }

        nav.footer-navigation .menu,
        .footer-social-column {
            justify-content: center !important;
        }

    }

}

/* ==========================================================================
   14. ESTILOS DE IMPRESIÓN (PDF)
   ========================================================================== */
/* Imágenes solo para impresión: los navegadores no imprimen fondos por defecto */
.fp-print-img,
.fp-print-header {
    display: none;
}

/* ==========================================================================
   IMPRESIÓN DE LA FICHA DE PRODUCTO (A4, objetivo: 2 páginas)
   Las fotos se imprimen con <img class="fp-print-img"> y las barras del
   calendario con borde, porque los fondos no salen si el usuario no marca
   "Gráficos de fondo".
   ========================================================================== */
@media print {

    @page {
        size: A4;
        margin: 1.4cm 1.2cm 1cm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ocultar elementos innecesarios */
    header,
    footer,
    #my-custom-header,
    #my-custom-footer,
    .header-search,
    .product-nav,
    #fp-related,
    .fp-toggle-filters-btn,
    #fp-lightbox-modal,
    .timeline-modal,
    #fp-print-button-container,
    #cmplz-cookiebanner-container,
    #cmplz-manage-consent {
        display: none !important;
    }

    body,
    html {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 9.5pt !important;
        line-height: 1.35 !important;
        overflow: visible !important;
    }

    .product-single {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .product-single__content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* --- Cabecera: logo y lema --- */
    .fp-print-header {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 0 0.3cm !important;
        margin: 0 0 0.5cm !important;
        border-bottom: 1.5px solid #333 !important;
    }

    .fp-print-header img {
        height: 0.75cm !important;
        width: auto !important;
    }

    .fp-print-header span {
        font-family: var(--font-headings) !important;
        font-size: 11pt !important;
        letter-spacing: 0.02em !important;
        color: #333 !important;
    }

    /* --- Portada: texto a la izquierda, foto a la derecha (mitad del ancho y
       toda la altura del texto) --- */
    .product-single .product-single__cover {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: stretch !important;
        gap: 0.6cm !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 0 0.35cm !important;
        margin: 0 0 0.1cm !important;
        border-bottom: 1.5px solid #333 !important;
        break-inside: avoid !important;
    }

    .product-single .product-single__cover > div {
        width: auto !important;
    }

    .product-single .product-single__cover--image {
        flex: 0 0 calc(50% - 0.3cm) !important;
        width: calc(50% - 0.3cm) !important;
        height: auto !important;
        min-height: 4cm !important;
        position: relative !important;
        background: none !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .product-single__cover--image .fp-print-img {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .product-single .product-single__cover--meta {
        flex: 1 1 0 !important;
        display: block !important;
    }

    .product-single .product-single__cover--meta--content {
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .product-single__cover--meta--content .organic-badge {
        position: static !important;
        float: right !important;
        margin: 0 0 0.2cm 0.3cm !important;
    }

    .product-single__cover--meta--content .organic-badge img {
        max-height: 1.5cm !important;
        padding: 10px 4px 4px !important;
        box-shadow: none !important;
    }

    .product-single .product-single__cover--meta--content h1 {
        font-size: 22pt !important;
        line-height: 1.1 !important;
        margin: 0 0 2px !important;
    }

    .global-harvest {
        font-size: 11pt !important;
        margin: 0 0 0.25cm !important;
    }

    .product-description h2,
    .product-description h3 {
        font-size: 11pt !important;
        margin: 0 0 4px !important;
    }

    .product-description p {
        margin: 0 0 5px !important;
        font-size: 9.5pt !important;
    }

    /* --- Títulos de sección --- */
    .season-container__title {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.35cm 0 0.15cm !important;
        align-items: flex-end !important;
        break-after: avoid !important;
    }

    .season-container__title img {
        width: 34px !important;
        height: 34px !important;
        object-fit: contain !important;
        margin-left: 0 !important;
    }

    .season-container__title h2 {
        font-size: 13pt !important;
        margin-left: 8px !important;
        padding-bottom: 3px !important;
        border-bottom-width: 1.5px !important;
    }

    /* Sangría francesa: el icono queda colgado a la izquierda y el contenido
       se alinea con el texto del título (icono 34px + 8px de separación) */
    .season-container__meta {
        width: calc(100% - 42px) !important;
        margin-left: 42px !important;
    }

    /* --- Regiones de cultivo --- */
    .growing-region {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.4cm !important;
        margin: 0.2cm 0 !important;
        break-inside: avoid !important;
    }

    .growing-region__image {
        max-width: 28% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .growing-region__image img {
        border-radius: 8px !important;
    }

    .growing-region__description {
        padding-left: 0 !important;
        font-size: 9.5pt !important;
    }

    /* --- Variedades: dos columnas con foto redonda --- */
    .variety-group {
        margin: 0 0 0.2cm !important;
    }

    .variety-group__header-wrapper {
        margin-bottom: 4px !important;
        gap: 10px !important;
    }

    .variety-group__header-content h3 {
        font-size: 11pt !important;
        margin: 0 0 2px !important;
    }

    .variety-group__season {
        font-size: 9pt !important;
        margin-bottom: 2px !important;
    }

    .variety-group__header-content p,
    .variety-group__header-content div {
        font-size: 9.5pt !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }

    .variety-group__varieties {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 0.5cm !important;
        row-gap: 0.25cm !important;
        margin-top: 0.15cm !important;
    }

    .variety-group__variety {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        break-inside: avoid !important;
    }

    .variety-group__variety .variety-group__variety--image,
    .variety-group__variety--image {
        width: 1.5cm !important;
        height: 1.5cm !important;
        flex: 0 0 1.5cm !important;
    }

    .variety-group__variety--image > div {
        display: none !important;
    }

    .variety-group__variety--image .fp-print-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        border: 1px solid #dbdbdb !important;
    }

    .variety-group__variety--content h4 {
        font-size: 10.5pt !important;
        margin: 0 0 2px !important;
    }

    .variety-group__variety--content p {
        font-size: 9pt !important;
        line-height: 1.3 !important;
    }

    /* --- Calendario de cosecha --- */
    .season-chart {
        margin: 0.15cm 0 0 !important;
        padding: 0.25cm 0.35cm !important;
        border-width: 1.5px !important;
        border-radius: 12px !important;
        break-inside: avoid !important;
    }

    .season-chart__header,
    .season-chart__row {
        grid-template-columns: 2.6cm 1fr !important;
    }

    .season-chart__spacer {
        width: 2.6cm !important;
    }

    .season-chart__months span {
        transform: none !important;
        writing-mode: horizontal-tb !important;
        font-size: 7.5pt !important;
        letter-spacing: 0 !important;
    }

    .season-chart__label {
        min-height: 22px !important;
        padding-right: 10px !important;
        font-size: 9pt !important;
    }

    .season-chart__row,
    .season-chart__track {
        min-height: 22px !important;
        height: auto !important;
    }

    /* Barra dibujada con borde: se imprime siempre */
    .season-chart__bar {
        background: none !important;
        height: 0 !important;
        border-top: 8px solid var(--product-color, #1D6B3A) !important;
        border-radius: 0 !important;
        margin-top: -4px !important;
        transform: none !important;
        left: -1px !important;
        width: calc(100% + 2px) !important;
    }

    /* --- Tamaños y envases: lista y tabla en paralelo --- */
    .packaging__content {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.8cm !important;
        break-inside: avoid !important;
    }

    .packaging__content > * {
        flex: 1 1 0 !important;
        margin: 0 !important;
    }

    .packaging__content .rowing-region > div {
        margin-bottom: 0 !important;
    }

    .packaging__content span {
        font-size: 11pt !important;
        margin-bottom: 4px !important;
    }

    .packaging__content > .packaging__content--table {
        flex: 0 1 auto !important;
        max-width: 60% !important;
        margin-top: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .packaging__content--table table {
        font-size: 9pt !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    th,
    td {
        padding: 3px 10px !important;
    }

    thead tr {
        background: none !important;
        color: #000 !important;
    }

    th {
        border-bottom: 1.5px solid #333 !important;
    }

    /* Saltos de página */
    .growing-region,
    .packaging__content--table,
    table,
    tr {
        break-inside: avoid !important;
    }
}
/* ==========================================================================
   FOOTER: legal y copyright bajo el logo, dentro de la banda verde
   ========================================================================== */
/* Escritorio: "© … All rights reserved · Legal Advice" en una línea.
   Móvil: Legal Advice arriba y copyright debajo (orden del HTML). */
#my-custom-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 4px 0;
    margin-top: 14px;
    font-size: 0.8rem;
}

#my-custom-footer .footer-legal p {
    order: 1;
}

#my-custom-footer .footer-legal-navigation {
    order: 2;
    display: flex;
    align-items: baseline;
}

#my-custom-footer .footer-legal-navigation::before {
    content: "·";
    margin: 0 8px;
    color: var(--color-text-light);
    opacity: 0.7;
}

@media (max-width: 768px) {
    #my-custom-footer .footer-legal {
        flex-direction: column;
        align-items: center;
    }

    #my-custom-footer .footer-legal p,
    #my-custom-footer .footer-legal-navigation {
        order: 0;
    }

    #my-custom-footer .footer-legal-navigation::before {
        content: none;
    }
}

#my-custom-footer .footer-legal .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

#my-custom-footer .footer-legal .menu li a {
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
}

#my-custom-footer .footer-legal .menu li a:hover {
    color: var(--color-accent);
    opacity: 1;
}

#my-custom-footer .footer-legal p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* ==========================================================================
   HOME - Favorites this month ([featured_seasonal_products]): 2 productos por fila en móvil
   ========================================================================== */
@media (max-width: 767px) {
    .elementor-shortcode .fp-category-section {
        width: 100%;
        align-items: stretch;
    }

    .elementor-shortcode .products-archive__grid {
        width: 100%;
        gap: 1rem 0.8rem;
    }

    .elementor-shortcode .products-archive__grid .product-card {
        flex: 0 0 calc(50% - 0.4rem);
        width: calc(50% - 0.4rem);
        min-width: 0;
    }
}

/* Tablet vertical: 3 productos por fila (5 productos = 3 + 2, centrados) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .elementor-shortcode .fp-category-section {
        width: 100%;
        align-items: stretch;
    }

    .elementor-shortcode .products-archive__grid {
        width: 100%;
        justify-content: center;
        gap: 1.5rem 0.8rem;
    }

    .elementor-shortcode .products-archive__grid .product-card {
        flex: 0 0 calc((100% - 1.6rem) / 3);
        width: calc((100% - 1.6rem) / 3);
        min-width: 0;
    }

    /* Imágenes algo más pequeñas, centradas en la tarjeta */
    .elementor-shortcode .products-archive__grid .product-card__image {
        width: 75%;
        min-height: 0;
        margin: 0 auto;
    }
}

/* Tablet horizontal: los 5 productos en una sola fila */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .elementor-shortcode .fp-category-section {
        width: 100%;
        align-items: stretch;
    }

    .elementor-shortcode .products-archive__grid {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .elementor-shortcode .products-archive__grid .product-card {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 200px;
    }

    .elementor-shortcode .products-archive__grid .product-card__image {
        width: 85%;
        min-height: 0;
        margin: 0 auto;
    }
}

/* ==========================================================================
   FOOTER MÓVIL: legal y copyright al final del footer
   La columna del logo deja de agrupar (display: contents) para que el logo
   siga arriba y el bloque legal pueda ir el último.
   ========================================================================== */
@media (max-width: 600px) {
    #my-custom-footer .footer-container .footer-logo-column {
        display: contents;
    }

    #my-custom-footer .footer-container .footer-logo-column > a {
        order: -1;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #my-custom-footer .footer-container .footer-legal {
        order: 99;
        width: 100%;
        margin-top: 0;
    }
}

/* ==========================================================================
   HEROS: h1 en blanco sobre la imagen/vídeo, abajo a la derecha
   Home, About Us y Quality (título absoluto de Elementor) + Seasons (plantilla).
   Sin fondo ni borde; sombra suave para que se lea sobre zonas claras.
   ========================================================================== */
.elementor-element.elementor-widget-heading.elementor-absolute:has(> h1.elementor-heading-title) {
    right: 0 !important;
    left: auto !important;
    bottom: 36px !important;
    max-width: calc(100% - 24px);
}

.elementor-element.elementor-widget-heading.elementor-absolute > h1.elementor-heading-title,
.seasons-hero .seasons-hero__title {
    color: #FFFFFF !important;
    background-color: transparent;
    text-align: left !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    border: 0;
    border-radius: 0;
    padding: 0 48px 0 0;
    line-height: 1.15;
}

.seasons-hero .seasons-hero__title {
    right: 0;
    left: auto;
    bottom: 36px;
    max-width: calc(100% - 24px);
}

@media (max-width: 768px) {
    .elementor-element.elementor-widget-heading.elementor-absolute > h1.elementor-heading-title,
    .seasons-hero .seasons-hero__title {
        padding: 0 20px 0 0;
    }

    .seasons-hero .seasons-hero__title {
        left: auto;
        right: 0;
        bottom: 36px;
    }

    /* En móvil la etiqueta ocupa el 70% del ancho */
    .elementor-element.elementor-widget-heading.elementor-absolute:has(> h1.elementor-heading-title),
    .seasons-hero .seasons-hero__title {
        width: 70% !important;
        max-width: 70%;
    }

    .elementor-element.elementor-widget-heading.elementor-absolute > h1.elementor-heading-title {
        width: 100%;
    }
}

/* ==========================================================================
   TEXTOS LEGALES (single-legal.php): Legal Advice, Cookies…
   Portada crema con el título, índice y texto en tarjeta blanca con líneas verdes.
   ========================================================================== */
/* Alternancia: fondo de página crema (el del kit de Elementor), portada del título,
   índice y texto en blanco. */
.legal-page .legal-page__cover {
    min-height: 0;
    padding: 48px 0 40px;
}

.legal-page .legal-page__cover > div {
    width: 100%;
}

.legal-page .product-single__cover--meta {
    justify-content: center;
}

.legal-page .product-single__cover--meta--content {
    max-width: 880px;
    width: 92%;
    padding: 0;
}

.legal-page .product-single__cover--meta--content h1 {
    color: var(--color-primary);
}

.legal-page__updated {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.legal-page__body {
    width: 92%;
    max-width: 880px;
    margin: 48px auto 72px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Índice */
.legal-page__index {
    background-color: var(--color-bg-pure);
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    padding: 24px 32px;
}

.legal-page__index-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.legal-page__index ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 32px;
}

.legal-page__index li {
    break-inside: avoid;
    padding: 4px 0;
}

.legal-page__index a {
    color: var(--color-text-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page__index a:hover {
    color: var(--color-primary);
}

/* Texto */
.legal-page__content {
    background-color: transparent; /* beige de la página */
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding: 40px 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.legal-page__content > :first-child {
    margin-top: 0;
}

.legal-page__lead {
    font-size: 1.125rem;
    font-style: italic;
}

.legal-page__content h2 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 40px 0 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(29, 70, 51, 0.15);
    scroll-margin-top: 96px;
}

.legal-page__content h2.legal-page__part {
    font-size: 1.8rem;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--color-primary);
}

.legal-page__content h3 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 28px 0 8px;
}

.legal-page__content p {
    margin: 0 0 14px;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.legal-page__content li {
    margin-bottom: 6px;
}

.legal-page__content ol.legal-page__roman {
    list-style: lower-roman;
}

.legal-page__content li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-page__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-page__content a:hover {
    color: var(--color-primary-light);
}

.legal-page__contact {
    margin-top: 24px !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page .legal-page__cover {
        padding: 32px 0 24px;
    }

    .legal-page__body {
        margin: 32px auto 48px;
        gap: 24px;
    }

    .legal-page__index {
        padding: 20px;
    }

    .legal-page__index ol {
        columns: 1;
    }

    .legal-page__content {
        padding: 28px 20px;
    }

    .legal-page__content h2 {
        font-size: 1.2rem;
    }

    .legal-page__content h2.legal-page__part {
        font-size: 1.5rem;
    }
}

/* Textos legales en tablet vertical y móvil: portada compacta y blanca como en horizontal
   (anula el 60dvh, fondo blanco y padding de la portada de ficha de producto) */
.legal-page.product-single .legal-page__cover {
    min-height: 0 !important;
    height: auto;
    background-color: var(--color-bg-pure);
    padding: 48px 0 40px;
    flex-direction: row !important;
}

.legal-page.product-single .legal-page__cover .product-single__cover--meta--content {
    padding: 0;
}

@media (max-width: 768px) {
    .legal-page.product-single .legal-page__cover {
        padding: 32px 0 24px;
    }
}

/* Colores fijos de enlaces y fecha (que Safari/iPad no los recoloree) */
.legal-page .legal-page__updated,
.legal-page .legal-page__updated a {
    color: var(--color-text-muted) !important;
    text-decoration: none !important;
}

.legal-page .legal-page__index a {
    color: var(--color-text-dark);
    text-decoration-color: var(--color-primary);
}

.legal-page .legal-page__index a:hover {
    color: var(--color-primary);
}

.legal-page .legal-page__content a {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

/* ==========================================================================
   PÁGINA ORGANIC (page-organic.php)
   Hero = el de Seasons (.seasons-hero). Intro con sello UE + tarjetas Fruit / Vegetables.
   ========================================================================== */
.organic-page__body {
    width: 92%;
    max-width: 960px;
    margin: 48px auto 72px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Intro: mismo estilo que el bloque "Welcome" de la home (Elementor) */
.organic-page__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.organic-page__title {
    margin: 0;
    padding: 0 32px;
    font-family: var(--e-global-typography-primary-font-family, var(--font-headings)), sans-serif;
    font-size: var(--e-global-typography-primary-font-size, 2.4rem);
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    color: var(--e-global-color-primary, #1C4232);
}

.organic-page__text {
    font-family: var(--e-global-typography-text-font-family, var(--font-body)), serif;
    font-size: var(--e-global-typography-text-font-size, 1rem);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    color: var(--e-global-color-text, #4A4138);
}

.organic-page__text p:last-child {
    margin-bottom: 0;
}

/* Sello UE igual que en "Fully guaranteed" de la home: 150px, sin efectos */
.organic-page__eu-logo {
    width: 150px;
    height: auto;
    margin-top: 8px;
}

/* Tarjetas Fruit / Vegetables: mismas medidas que el bloque "Welcome" de la home (Elementor).
   Allí: contenido de 960px - 32px de padding a cada lado = 896px, 3 columnas con 20px de separación
   (~285px cada una) y la imagen al 48% (Fruits) / 56% (Vegetables) del ancho de su columna. */
.organic-page__cards {
    --home-col: calc((min(960px, 100vw - 64px) - 64px - 40px) / 3);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

.organic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--home-col);
    text-decoration: none;
}

.organic-card__image {
    display: block;
    width: 48%;
}

.organic-card--vegetables .organic-card__image {
    width: 56%;
}

.organic-card__image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.organic-card:hover .organic-card__image img {
    transform: translateY(-6px);
}

.organic-card__title {
    margin-top: 0;
    font-family: var(--e-global-typography-secondary-font-family, var(--font-headings)), sans-serif;
    font-size: var(--e-global-typography-secondary-font-size, 1.9rem);
    color: var(--e-global-color-primary, #1C4232);
}

.organic-card:hover .organic-card__title {
    color: var(--color-primary-light);
}

/* Fresh News al final: misma separación que en Seasons */
.organic-page .fresh-news-band {
    margin-top: 0;
}

@media (max-width: 768px) {
    .organic-page__body {
        margin: 24px auto 48px;
        gap: 28px;
    }

    .organic-page__title {
        padding: 0;
    }

    .organic-page__eu-logo {
        width: 120px;
    }


}

/* Catálogo: filtro ecológico (botón "Organic" y aviso sobre los resultados) */
.btn-organic.is-active,
.btn-organic:hover {
    background-color: var(--color-forest-green);
    border-color: var(--color-forest-green);
    color: var(--color-text-light);
}

.fp-active-organic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px auto 24px;
    padding: 10px 20px;
    width: fit-content;
    max-width: 100%;
    background-color: var(--color-bg-pure);
    border: 2px solid var(--color-forest-green);
    border-radius: 18px;
    font-family: var(--font-headings);
    color: var(--color-forest-green);
}

.fp-active-organic__clear {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.fp-active-organic__clear:hover {
    color: var(--color-primary);
}

/* Fichas: en móvil, imagen del grupo y título en la misma fila, descripción debajo a todo el ancho
   (el wrapper lleva estilos en línea, de ahí los !important) */
@media (max-width: 768px) {
    .variety-group__header-wrapper {
        display: grid !important;
        grid-template-columns: auto 1fr;
        align-items: start !important;
        column-gap: 16px !important;
        row-gap: 12px !important;
    }

    .variety-group__header-content {
        display: contents;
    }

    .variety-group__header-wrapper .variety-group__variety--image {
        margin-top: 0 !important;
    }

    .variety-group__header-wrapper .variety-group__title {
        margin: 0 !important;
    }

    /* Con imagen, el título empieza a media altura de la imagen (96px) */
    .variety-group__header-wrapper:has(.variety-group__variety--image) .variety-group__title {
        margin-top: 48px !important;
    }

    .variety-group__header-wrapper .variety-group__description {
        grid-column: 1 / -1;
        padding: 0 24px 0 48px; /* izquierda: la mitad de la imagen (96px) */
    }
}

/* Cabecera en móvil: lupa y menú hamburguesa más grandes */
@media (max-width: 768px) {
    #my-custom-header .search-toggle svg {
        width: 28px;
        height: 28px;
    }

    #my-custom-header .hamburger-box {
        width: 30px;
        height: 24px;
    }

    #my-custom-header .hamburger-inner,
    #my-custom-header .hamburger-inner::before,
    #my-custom-header .hamburger-inner::after {
        width: 30px;
    }

    #my-custom-header .hamburger-inner::before {
        top: -10px;
    }

    #my-custom-header .hamburger-inner::after {
        bottom: -10px;
    }

    #my-custom-header .menu-toggle.is-active .hamburger-inner::before {
        transform: translateY(10px) rotate(45deg);
    }

    #my-custom-header .menu-toggle.is-active .hamburger-inner::after {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Mismas cajas, centradas en vertical con el logo */
    #my-custom-header .menu-toggle,
    #my-custom-header .search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        line-height: 0;
        align-self: center;
    }

    /* Sin marco ni fondo al pasar, pulsar o enfocar (el tema padre pinta borde y fondo en los botones) */
    #my-custom-header .menu-toggle,
    #my-custom-header .menu-toggle:hover,
    #my-custom-header .menu-toggle:focus,
    #my-custom-header .menu-toggle:active,
    #my-custom-header .search-toggle,
    #my-custom-header .search-toggle:hover,
    #my-custom-header .search-toggle:focus,
    #my-custom-header .search-toggle:active {
        background: transparent;
        border: none;
        box-shadow: none;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Solo con teclado se marca el foco, sin recuadro: subrayado discreto */
    #my-custom-header .menu-toggle:focus-visible,
    #my-custom-header .search-toggle:focus-visible {
        box-shadow: 0 2px 0 0 var(--color-primary);
    }
}

/* Home: bloque "Fully guaranteed fresh produce" en columna (texto arriba, logos de certificación debajo) */
.elementor-3882 .elementor-element-07da144 {
    flex-direction: column !important;
    gap: 0 !important;
    background-color: transparent !important;
    /* Bloque de calidad más estrecho y separado del resto con líneas (petición de la clienta) */
    width: calc(100% - 32px) !important;
    max-width: 960px !important;
    margin-inline: auto !important;
    border-style: solid !important;
    border-color: var(--e-global-color-primary, #1C4232) !important;
    border-width: 2px 0 !important;
    padding: 20px 24px !important;
}

@media (max-width: 767px) {
    .elementor-3882 .elementor-element-07da144 {
        padding: 16px 16px !important;
    }
}

.elementor-3882 .elementor-element-01dbd5e,
.elementor-3882 .elementor-element-064eb89 {
    width: 100% !important;
    max-width: 900px;
}

.elementor-3882 .elementor-element-562c1e9,
.elementor-3882 .elementor-element-70b5785,
.elementor-3882 .elementor-element-6382ee1 {
    text-align: center !important;
}

/* Home: logos de certificación de "Fully guaranteed" en una fila (escritorio) y de dos en dos (móvil) */
@media (min-width: 768px) {
    .elementor-3882 .elementor-element-0866da4 {
        --width: 100%;
        --flex-wrap: nowrap;
        flex-wrap: nowrap !important;
    }

    .elementor-3882 .elementor-element-0866da4 > .elementor-widget-image {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: 180px !important;
    }

    .elementor-3882 .elementor-element-0866da4 > .elementor-widget-image img {
        width: 100% !important;
        height: auto;
    }
}

@media (max-width: 767px) {
    .elementor-3882 .elementor-element-0866da4 {
        --width: 100%;
        --flex-wrap: wrap;
        flex-wrap: wrap !important;
    }

    .elementor-3882 .elementor-element-0866da4 > .elementor-widget-image {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        text-align: center;
    }

    .elementor-3882 .elementor-element-0866da4 > .elementor-widget-image img {
        width: 100% !important;
        max-width: 160px;
        height: auto;
    }
}

/* Home: logos de certificación centrados (horizontal y vertical) */
.elementor-3882 .elementor-element-064eb89 {
    align-items: center !important;
    margin-inline: auto !important;
}

.elementor-3882 .elementor-element-0866da4 {
    justify-content: center !important;
    align-items: center !important;
    margin-inline: auto !important;
}

.elementor-3882 .elementor-element-0866da4 > .elementor-widget-image {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.elementor-3882 .elementor-element-0866da4 > .elementor-widget-image img {
    display: block;
    margin-inline: auto;
}

/* Home: botón "Quality Assurance" debajo de los logos.
   El bloque de texto (01dbd5e) se "disuelve" para que título, texto, logos y botón
   sean hermanos en la columna de 07da144 y se puedan ordenar. */
.elementor-3882 .elementor-element-01dbd5e {
    display: contents !important;
}

.elementor-3882 .elementor-element-562c1e9,
.elementor-3882 .elementor-element-70b5785 {
    width: 100% !important;
    max-width: 900px !important;
}

.elementor-3882 .elementor-element-562c1e9 {
    order: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.elementor-3882 .elementor-element-70b5785 {
    order: 2 !important;
    margin-bottom: 16px !important;
}

.elementor-3882 .elementor-element-064eb89 {
    order: 3 !important;
    margin-bottom: 16px !important;
}

.elementor-3882 .elementor-element-0866da4 {
    --gap: 16px 16px;
    --row-gap: 16px;
    --column-gap: 16px;
    gap: 16px !important;
}

.elementor-3882 .elementor-element-6382ee1 {
    order: 4 !important;
    width: auto !important;
    max-width: none !important;
}

/* Fichas en móvil: menos espacio entre la barra (Varieties, Seasons, Sizes…) y la primera sección */
@media (max-width: 768px) {
    .product-nav:not(.is-sticky) {
        margin-bottom: 8px;
    }

    .product-nav + .product-single__content {
        margin-top: 0;
    }

    .product-nav + .product-single__content > section:first-of-type .season-container__title {
        padding-top: 12px;
    }
}

/* About Us: sección "Meet the Experts Orchestrating Your Supply Chain" sin líneas arriba/abajo */
.elementor-3988 .elementor-element-44309b4 {
    border: 0 !important;
    --border-top-width: 0px;
    --border-bottom-width: 0px;
}
