/* ==================== VARIABLES GLOBALES ==================== */
:root {
    --color-primary: #67b86b;
    --color-secondary: #4ED971;
    --color-beige: #DBCCAD;
    --color-beige-light: #F8F5EF;
    --color-beige-dark: #f2ead5;
    --color-dark: #444;
    --color-gray: #666;
    --color-gray-light: #888;
    --color-border: #ddd;
    --color-red: #F75642;
    --color-teal: #1F7A6E;
}

/* ==================== RESET Y BASE ==================== */

* {
    box-sizing: border-box;
}

.db-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fcf9f3;
    padding: 2vw 3.5vw;
}

.informacion-sector-section {
    background-color: #FFF;
}

.informacion-por-comunidad-autonoma {
    padding-bottom: 90px;
}

.footer--logos {
    display: none !important;
}

.container.container-page--title {
    padding-left: 70px;
}

.page__alimentacion-en-espana .container-page--title:before {
    content: "";
    background-image: url(https://mercasa.coonic.com/wp-content/themes/mercasa/assets/images/alimentacion-icono.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    position: absolute;
    left: 0;
    top: 50px;
    background-color: #d9ccab;
    width: 50px;
    height: 50px;
    padding: 9px;
}

.page__distribucion-y-consumo .container-page--title:before {
    content: "";
    background-image: url(https://mercasa.coonic.com/wp-content/themes/mercasa/assets/images/distribucion-icono.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    position: absolute;
    left: 0;
    top: 50px;
    background-color: #d9ccab;
    width: 50px;
    height: 50px;
    padding: 9px;
}


/* ==================== PÁGINA ALIMENTACIÓN - TIPOGRAFÍA ==================== */
.page__alimentacion-en-espana .page--title h1 {
    font-weight: 400;
    font-size: 45px;
    letter-spacing: -0.16px;
    color: #444;
    line-height: 1;
}

.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper {
    position: relative;
    padding-bottom: 0px;
}

.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .data .data-wrapper p {
    margin: 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.27px;
    margin-bottom: 35px;
    color: #444;
}

.page__alimentacion-en-espana .publicaciones-list .publication .title,
.publicaciones-lists .publication .title {
    font-size: 15px;
    font-weight: 300;
    color: #444;
    line-height: 1.57;
    letter-spacing: 0.23px;
}

.page__alimentacion-en-espana .publicaciones-list .year-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #444;
    margin: 0;
}

/* ==================== DATOS BÁSICOS - TIPOGRAFÍA ==================== */
.db-title-main {
    text-align: end;
    color: #67b86b;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.8vw;
}

.db-description-main {
    text-align: end;
    color: #666;
    font-size: clamp(1rem, 0.956rem + 0.1408vw, 1.125rem);
    line-height: 1.5;
}

.db-card-label {
    color: #67b86b;
    font-size: clamp(10px, 0.85vw, 12px);
    font-weight: 600;
}

.db-card-title {
    color: #333;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== BACKGROUNDS Y COLORES ==================== */
.page__alimentacion-en-espana .bg-orange {
    background: #DBCCAD;
}

.page__alimentacion-en-espana .breadcrumbs {
    color: #4ED971;
    margin-top: 5px;
}

.page__alimentacion-en-espana .of-orange:after {
    background: #DBCCAD;
}

.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .image-wrapper.of-beige:before,
.publicaciones-lists .publication .image-wrapper.of-beige:before {
    content: "";
    background: #F8F5EF;
    position: absolute;
    width: 126%;
    left: -126%;
    top: 0;
    height: 170px;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper,
.publicaciones-lists .publication .image-wrapper {
    height: 200px;
    margin-bottom: 20px;
    position: relative;
    background: #1F7A6E;
    overflow: hidden;
    position: relative;
}

/* ==================== CATEGORÍAS - COLORES ==================== */
.page__alimentacion-en-espana .publicaciones-list .publication[data-categoria="presentacion-e-introduccion"] .category-label,
.publicaciones-lists .publication[data-categoria="presentacion-e-introduccion"] .category-label,
.publication[data-categoria="presentacion-e-introduccion"] .category-label {
    color: #1f7a6e;
}

.page__alimentacion-en-espana .publicaciones-list .publication[data-categoria="datos-basicos"] .category-label,
.publicaciones-lists .publication[data-categoria="datos-basicos"] .category-label,
.publication[data-categoria="datos-basicos"] .category-label {
    color: #67b86b;
}

.page__alimentacion-en-espana .publicaciones-list .publication[data-categoria="informacion-por-sector"] .category-label,
.publicaciones-lists .publication[data-categoria="informacion-por-sector"] .category-label,
.publication[data-categoria="informacion-por-sector"] .category-label {
    color: #f75642;
}

.page__alimentacion-en-espana .publicaciones-list .publication[data-categoria="informacion-por-comunidades-autonomas"] .category-label,
.publicaciones-lists .publication[data-categoria="informacion-por-comunidades-autonomas"] .category-label,
.publication[data-categoria="informacion-por-comunidades-autonomas"] .category-label {
    color: #dbccad;
}

/* ==================== LAYOUT Y ESTRUCTURA ==================== */
.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .data .data-wrapper {
    width: calc(100% + 100px);
    padding: 140px 50px;
    position: relative;
    z-index: 2;
}

.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .image-wrapper {
    margin-top: -170px;
    max-height: 600px;
    max-width: 740px;
    left: 104px;
}

.page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper:before {
    display: none;
}

.page__alimentacion-en-espana .footer--logos {
    display: none !important;
}

.page__alimentacion-en-espana .publicaciones-list {
    position: relative;
    z-index: 1;
    background: #fff;
    /* padding: 0px 0 100px 0; */
}

.informacion-por-comunidad-autonoma .publicaciones-list {
    background: #fcf9f3 !important;
}

.page__alimentacion-en-espana .publicaciones-list .publication,
.publicaciones-lists .publication {
    width: 100%;
    /* padding-top: 40px; */
    padding-left: 0;
    font-weight: 600;
}

.page__alimentacion-en-espana .publicaciones-list .year-section,
.publicaciones-lists .year-section {
    margin-bottom: 60px;
}

.page__alimentacion-en-espana .publicaciones-list .year-header,
.publicaciones-lists .year-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #64d96c;
}

/* ==================== DATOS BÁSICOS - HEADER ==================== */
.db-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2vw;
    gap: 4.2vw;
}

.db-header-left {
    flex: 0 0 auto;
    max-width: 562px;
}

/* ==================== DATOS BÁSICOS - MAIN CONTENT ==================== */
.db-main-content {
    display: flex;
    align-items: center;
    gap: 0.9vw;
}

.db-video-section {
    flex: 0 0 clamp(240px, 32vw, 562px);
    display: flex;
}

.db-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6/1;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.db-video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 5vw, 70px);
    height: clamp(50px, 5vw, 70px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.db-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.05);
}

.db-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(10px, 1vw, 14px) 0 clamp(10px, 1vw, 14px) clamp(16px, 1.6vw, 22px);
    border-color: transparent transparent transparent #ff5252;
    margin-left: 4px;
}

/* ==================== BUSCADOR ==================== */
.buscador-alimentacion {
    background: #fff;
    padding: 80px 0px 80px 00px;
}

.buscador-alimentacion .buscador-campos {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0;
    overflow: hidden;
}

.buscador-alimentacion .campo-busqueda {
    min-width: 300px;
    border: 1px solid #444444 !important;
    border-radius: 10px;
}

.buscador-alimentacion .campo-categoria {
    min-width: 220px;
    border: 1px solid #444444 !important;
    border-radius: 10px;
    position: relative;
}

.buscador-alimentacion .campo-subcategoria {
    min-width: 220px;
    border: 1px solid #444444 !important;
    border-radius: 10px;
    position: relative;
}

.buscador-alimentacion .campo-busqueda input {
    padding: 16px 20px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #444;
    outline: none;
}

.buscador-alimentacion .campo-busqueda input::placeholder {
    color: #888;
}

.buscador-alimentacion .campo-categoria select,
.buscador-alimentacion .campo-subcategoria select {
    width: 100%;
    padding: 16px 40px 16px 20px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #444;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.buscador-alimentacion .btn-buscar {
    background: #444;
    border-radius: 10px;
    color: #fff;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.3s;
    white-space: nowrap;
}

.buscador-alimentacion .btn-buscar:hover {
    background: #333;
}

.buscador-alimentacion .btn-limpiar {
    display: none;
}

/* ==================== DATOS BÁSICOS - BUSCADOR ==================== */
.db-search-container {
    display: flex;
    gap: 0.8vw;
    align-items: center;
    flex-shrink: 0;
    margin-top: 10px;
}

.db-search-input {
    width: clamp(220px, 20vw, 320px);
    padding: 16px 20px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    background: #fff !important;
    color: #444;
    outline: none;
    border: 1px solid #444444 !important;
    border-radius: 10px;
}

.db-search-input:focus {
    border-color: #67b86b;
}

.db-search-button {
    height: 50px;
    background: #444;
    border-radius: 10px;
    color: #fff;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.3s;
    white-space: nowrap;
}

.db-search-button:hover {
    background: #555;
}

/* ==================== RESULTADOS INFO ==================== */
#resultados-info {
    margin: 15px auto 0;
    font-size: 14px;
    color: #666;
    text-align: start;
}

#resultados-info:empty {
    margin: 0;
}

#resultados-info strong {
    color: #444;
}

/* ==================== LOADING ==================== */
.loading-alimentacion {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-alimentacion .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #64d96c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

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

.publicaciones-list.cargando {
    opacity: 0.4;
    pointer-events: none;
}

/* ==================== SIN RESULTADOS ==================== */
.sin-resultados {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.sin-resultados svg {
    width: 60px;
    height: 60px;
    fill: #ddd;
    margin-bottom: 20px;
}

.sin-resultados p {
    font-size: 16px;
    margin: 0;
}

/* ==================== PAGINACIÓN ==================== */
.paginacion-alimentacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.paginacion-alimentacion .btn-pagina {
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paginacion-alimentacion .btn-pagina:hover {
    border-color: #64d96c;
    color: #64d96c;
}

.paginacion-alimentacion .btn-pagina.activa {
    background: #64d96c;
    color: #fff;
    border-color: #64d96c;
}

.paginacion-alimentacion .btn-prev,
.paginacion-alimentacion .btn-next {
    padding: 8px 12px;
}

.paginacion-alimentacion .btn-prev svg,
.paginacion-alimentacion .btn-next svg {
    width: 8px;
    height: 14px;
}

.paginacion-alimentacion .pagina-dots {
    color: #999;
    padding: 0 5px;
    user-select: none;
}

/* ==================== PUBLICACIONES - ACCIONES E IMÁGENES ==================== */
.page__alimentacion-en-espana .publicaciones-list .publication a,
.publicaciones-lists .publication a {
    text-decoration: none;
    color: #444;
}

.page__alimentacion-en-espana .publicaciones-list .publication .actions,
.publicaciones-lists .publication .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.page__alimentacion-en-espana .publicaciones-list .publication .category-label,
.publicaciones-lists .publication .actions .category-label,
.publication .actions .category-label {
    font-size: 14px;
}

.page__alimentacion-en-espana .publicaciones-list .publication .actions svg,
.publicaciones-lists .publication .actions svg {
    width: 30px;
    height: 30px;
    fill: #1F7A6E;
}

.page__alimentacion-en-espana .publicaciones-list .publication .actions svg:hover,
.publicaciones-lists .publication .actions svg:hover {
    fill: #4ED971;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper img,
.publicaciones-lists .publication .image-wrapper img {
    height: 100%;
    transition: all 0.6s ease;
    object-position: 50% 10%;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper:hover img,
.publicaciones-lists .publication .image-wrapper:hover img {
    opacity: .3;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper:hover:before,
.publicaciones-lists .publication .image-wrapper:hover:before {
    border-right: 30px solid #4ED971;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper:before,
.publicaciones-lists .publication .image-wrapper:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 30px solid #F75642;
    z-index: 1;
    position: absolute;
    transform: rotate(225deg);
    top: 0px;
    left: 17px;
    transition: all 0.6s ease;
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper:after,
.publicaciones-lists .publication .image-wrapper:after {
    content: "";
    background: #fff;
    width: 42px;
    height: 41px;
    position: absolute;
    top: 0px;
    left: 0;
}

.informacion-por-comunidad-autonoma .publication .image-wrapper:after,
.publicaciones-lists .publication .image-wrapper:after {
    background: #fcf9f3 !important
}

.page__alimentacion-en-espana .publicaciones-list .publication .image-wrapper:hover .actions,
.publicaciones-lists .publication .image-wrapper:hover .actions {
    margin-top: 0;
}

.action-icons {
    display: flex;
    gap: 5px;
}

/* ==================== CAROUSEL - ESTRUCTURA ==================== */
.carousel-wrapper {
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.left-section {
    background-color: #dbccad;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    min-width: 345px;
    flex-shrink: 0;
}

.left-section h2 {
    font-size: 38px;
    font-weight: 600;
    color: #5a5a5a;
    line-height: 1.15;
}

.arrows-section {
    display: none;
}

.carousel-section {
    flex: 1;
    background-color: #f2ead5;
    padding: 60px 60px;
    overflow: hidden;
    position: relative;
}

/* ==================== CAROUSEL - NAVEGACIÓN ==================== */
.arrows {
    width: 0;
    height: 0;
    border-style: solid;
    background: transparent !important;
    clip-path: border-box !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrows:hover:not(.swiper-button-disabled) {
    transform: translateY(-50%) scale(1.1);
}

.arrows-prev-mercasa {
    border-width: 15px 20px 15px 0;
    border-color: transparent #4eda71 transparent transparent;
    left: 15px;
}

.arrows-next-mercasa {
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent #4eda71;
    right: 15px;
}

.arrows.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==================== DATOS BÁSICOS - CAROUSEL ==================== */
.db-carousel-section {
    width: 100%;
    flex: 1;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: visible;
}

.db-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.db-nav-arrow {
    position: relative;
    flex-shrink: 0;
    width: clamp(40px, 3.5vw, 50px);
    height: clamp(40px, 3.5vw, 50px);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-nav-arrow.db-prev {
    justify-content: flex-start;
}

.db-nav-arrow.db-next {
    justify-content: flex-end;
}

.db-nav-arrow.db-prev {
    left: 0;
}

.db-nav-arrow.db-next {
    right: 0;
}

.db-nav-arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.db-nav-arrow.db-prev::before {
    border-width: clamp(13px, 1.2vw, 17px) clamp(19px, 1.7vw, 24px) clamp(13px, 1.2vw, 17px) 0;
    border-color: transparent #67b86b transparent transparent;
}

.db-nav-arrow.db-next::before {
    border-width: clamp(13px, 1.2vw, 17px) 0 clamp(13px, 1.2vw, 17px) clamp(19px, 1.7vw, 24px);
    border-color: transparent transparent transparent #67b86b;
}

/* ==================== SWIPER GENERAL ==================== */
.swiper {
    width: 100%;
    height: 100%;
}

.db-carousel-section .swiper {
    padding-left: 0px !important;
}

.swiper-wrapper {
    visibility: hidden;
}

.swiper-initialized .swiper-wrapper {
    visibility: visible;
}

.swiper-slide {
    height: auto;
}

.db-swiper {
    width: 100%;
    overflow: hidden;
}

.db-swiper .swiper-wrapper {
    align-items: stretch;
}

.db-swiper .swiper-slide {
    background-color: transparent !important;
    height: auto;
    display: flex;
}

/* ==================== COVER IMAGE ==================== */
.cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide:hover .cover-image {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ==================== DATOS BÁSICOS - CARDS ==================== */
.db-card {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.db-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.db-card-header {
    position: relative;
    background: white;
    padding: clamp(8px, 0.85vw, 12px) clamp(10px, 1.1vw, 15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.db-card-icons {
    display: flex;
    gap: clamp(6px, 0.65vw, 9px);
}

.db-card-icon {
    width: clamp(18px, 1.7vw, 24px);
    height: clamp(18px, 1.7vw, 24px);
    cursor: pointer;
    transition: opacity 0.3s;
}

.db-card-icon:hover {
    opacity: 0.65;
}

.db-icon-eye {
    fill: none;
    stroke: #999;
    stroke-width: 1.8;
}

.db-icon-pdf {
    fill: none;
    stroke: #999;
    stroke-width: 1.8;
}

.db-card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5/1;
    overflow: hidden;
    flex-shrink: 0;
}

.db-corner-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(35px, 3.8vw, 52px) clamp(35px, 3.8vw, 52px) 0 0;
    border-color: #67b86b transparent transparent transparent;
    z-index: 2;
}

.db-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-card-content {
    padding: clamp(10px, 1.1vw, 16px);
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* ==================== PRESENTACIÓN - SWIPER SLIDES ==================== */
.swiper-slide {
    /*background: white;*/
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* padding: 4vw 0;*/
    position: relative;
}

.slide-content {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 4vw;
    padding-left: 4vw;
    padding-right: 2vw;
}

.alimentacion-presentacion-section {
    padding: 4vw 0 !important;
}

/* ==================== PRESENTACIÓN - COLUMNA IZQUIERDA ==================== */
.alimentacion-presentacion-section .slide-content .left-column {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 29.2%;
    /* min-width: 250px; */
    gap: 2.5vw;
}

.red-bar {
    width: 2vw;
    max-width: 30px;
    min-width: 12px;
    background: #ed5742;
    height: 9vw;
    max-height: 145px;
    min-height: 80px;
    position: absolute;
    left: -4vw;
    top: 0.3vw;
}

.title-section {
    flex-shrink: 0;
}

.page__alimentacion-en-espana .title {
    color: #ed5742;
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0;
    margin-top: 0;
}

.year {
    color: #ed5742;
    font-size: clamp(26px, 3.2vw, 45px);
    font-weight: 700;
    line-height: 1;
    margin-top: 0.3vw;
}

/* ==================== PRESENTACIÓN - NAVEGACIÓN Y SUBTÍTULO ==================== */
.nav-subtitle-section {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    flex-shrink: 0;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5vw;
}

.nav-arrow {
    width: clamp(35px, 3.5vw, 50px);
    height: clamp(35px, 3.5vw, 50px);
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.nav-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.nav-arrow.prev::before {
    border-width: 1vw 1.4vw 1vw 0;
    border-color: transparent #1F7A6E transparent transparent;
}

.nav-arrow.next::before {
    border-width: 1vw 0 1vw 1.4vw;
    border-color: transparent transparent transparent #1F7A6E;
}

.nav-arrow:hover::before {
    opacity: 0.7;
}

.subtitle {
    color: #1F7A6E;
    font-size: clamp(22px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.3;
    text-align: end;
}

/* ==================== PRESENTACIÓN - CAROUSEL CONTAINER ==================== */
.carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.carousel-content {
    display: flex;
    gap: 4vw;
    align-items: stretch;
    height: 100%;
}

/* ==================== PRESENTACIÓN - COLUMNA CENTRAL ==================== */
.center-column {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.image-container {
    position: relative;
    width: clamp(300px, 30vw, 550px);
    height: clamp(260px, 27vw, 435px);
}

.corner-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5.5vw 5.5vw 0 0;
    border-color: #1F7A6E #ffffff #ffffff #ffffff;
    rotate: 180deg;
}

.main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* ==================== PRESENTACIÓN - COLUMNA DERECHA ==================== */
.right-column {
    /* flex: 0 0 auto; */
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1vw;
}

.right-column-top {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

.icons {
    display: flex;
    gap: 1vw;
}

.icons svg {
    width: 30px;
    height: 30px;
    fill: #1F7A6E;
}

.icon {
    width: clamp(30px, 2.8vw, 40px);
    height: clamp(30px, 2.8vw, 40px);
    flex-shrink: 0;
}

.icon-eye {
    fill: none;
    stroke: #1F7A6E;
    stroke-width: 2;
}

.icon-pdf {
    fill: none;
    stroke: #1F7A6E;
    stroke-width: 2;
}

.description {
    color: #2C3E50;
    font-size: clamp(15px, 1.5vw, 22px);
    line-height: 1.4;
    margin-bottom: 0.5vw;
}

.author-name {
    color: #1F7A6E;
    /* font-size: clamp(22px, 2.6vw, 30px); */
    font-size: clamp(0.9375rem, 0.6074rem + 1.0563vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5vw;
}

.author-title {
    color: #1F7A6E;
    font-size: clamp(14px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.4;
}

.right-column-bottom {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.7vw;
    background: #1F7A6E;
    color: white;
    padding: 0.8vw 1.7vw;
    text-decoration: none;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 600;
    border-radius: 3px;
    transition: background 0.3s;
    width: fit-content;
}

.read-more:hover {
    background: #148f77;
}

.read-more::after {
    content: '▶';
    font-size: clamp(12px, 1vw, 14px);
}

/* ==================== PRESENTACIÓN - SWIPER INTERNO ==================== */
.content-swiper {
    width: 100%;
    height: 100%;
}

.content-swiper .swiper-slide {
    padding: 0;
    height: 100%;
}


/* ==================== INFORMACIÓN POR SECTOR - LAYOUT ==================== */
.info-sector-section,
.info-por-comunidad-autonoma {
    display: flex;
    align-items: center;
    gap: 4.2vw;
    /* padding: 2vw 3.5vw; */
    /* background: #f5f5f5; */
}

.info-sector-left {
    flex: 0 0 clamp(240px, 32vw, 562px);
    height: 350px;
}

.info-sector-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6/1;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-sector-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-sector-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 5vw, 70px);
    height: clamp(50px, 5vw, 70px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.info-sector-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.05);
}

.info-sector-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(10px, 1vw, 14px) 0 clamp(10px, 1vw, 14px) clamp(16px, 1.6vw, 22px);
    border-color: transparent transparent transparent #ff5252;
    margin-left: 4px;
}

/* ==================== INFORMACIÓN POR SECTOR - CONTENIDO DERECHO ==================== */
.info-sector-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5vw;
}

.info-sector-content {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
    max-width: 620px;
}

.informacion-sector-section .content-posts-sector,
.informacion-por-comunidad-autonoma .content-posts-comunidad {
    padding: 50px 0 0 0 !important;
}

.info-sector-title {
    color: #F75642;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
}

.informacion-por-comunidad-autonoma .info-sector-title {
    color: #cfbe9b !important;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
}

.info-sector-description {
    color: #666;
    font-size: clamp(1rem, 0.956rem + 0.1408vw, 1.125rem);
    line-height: 1.5;
    margin: 0;
}

/* ==================== INFORMACIÓN POR SECTOR - BUSCADOR ==================== */
.info-sector-search {
    display: flex;
    gap: 0.8vw;
    align-items: center;
}

.info-sector-search-input {
    flex: 1;
    max-width: 355px;
    padding: 16px 20px !important;
    border: 1px solid #444444 !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-family: inherit;
    background: #fff !important;
    color: #444;
    outline: none;
    transition: border-color 0.3s;
}

.info-sector-search-input:focus {
    border-color: #F75642;
}

.info-sector-search-input::placeholder {
    color: #888;
}

.info-sector-select {
    width: clamp(180px, 16vw, 240px);
    padding: 16px 40px 16px 20px;
    border: 1px solid #444444;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #444;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: border-color 0.3s;
}

.info-sector-select:focus {
    border-color: #F75642;
}

.info-sector-btn {
    min-height: 53px !important;
    background: #444;
    border-radius: 10px;
    color: #fff;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.3s;
    white-space: nowrap;
}

.info-sector-btn:hover {
    background: #555;
}

/* ==================== CARROUSEL ==================== */


.db-spinner-container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.db-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: db-spin 1s linear infinite;
}

@keyframes db-spin {
    0% {
        transform: rotate(0deg);
    }

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

.db-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    width: 100%;
}

.db-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.db-no-results-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.db-no-results-text {
    font-size: 16px;
    color: #666;
}




/* ==================== GRID 5 COLUMNAS ==================== */
/* Clase personalizada para 5 columnas (20% cada una) */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

/* Para pantallas extra grandes, mantener 5 columnas */
@media (min-width: 1400px) {
    .col-xxl-2-4 {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}


/* ==================== RESPONSIVE TABLET (1024px) ==================== */
@media (max-width: 1024px) {
    .db-section {
        padding: 2.5vw;
    }

    .db-header {
        flex-direction: column;
        gap: 2vw;
    }

    .db-header-left {
        max-width: 100%;
    }

    .db-search-container {
        width: 100%;
        max-width: 450px;
    }

    .db-search-input {
        flex: 1;
    }

    .db-main-content {
        flex-direction: column;
        gap: 2.5vw;
    }

    .db-video-section {
        width: 100%;
        max-width: 400px;
    }

    .db-carousel-wrapper {
        padding: 0 clamp(30px, 3vw, 38px);
    }

    .alimentacion-presentacion-section .slide-content {
        max-height: 260px;
    }

    .left-column {
        min-width: 200px;
    }

    .image-container {
        width: clamp(205px, 28vw, 400px);
        height: 100%;
    }

    .corner-triangle {
        border-width: 4.5vw 4.5vw 0 0;
    }

    .right-column {
        min-width: 250px;
    }

    .info-por-comunidad-autonoma,
    .info-sector-section {
        flex-direction: column;
        gap: 2.5vw;
        padding: 2.5vw;
    }

    .info-sector-left {
        width: 100%;
        max-width: 100%;
    }

    .info-sector-right {
        width: 100%;
    }

    .info-sector-search {
        flex-wrap: wrap;
    }

    .info-sector-search-input {
        max-width: 100%;
    }

    .info-sector-select {
        width: calc(50% - 0.4vw);
        min-width: 180px;
    }

    .info-sector-btn {
        width: 100%;
    }
}

/* ==================== RESPONSIVE MÓVIL (768px) ==================== */
@media (max-width: 768px) {

    .info-sector-left {
        max-width: 100%;
    }

    .info-sector-video-container {
        aspect-ratio: 1.6/1;
    }

    .info-sector-play-button {
        width: 60px;
        height: 60px;
    }

    .info-sector-right {
        gap: 20px;
    }

    .info-sector-content {
        gap: 12px;
    }

    .info-sector-title {
        font-size: 34px;
    }

    .info-sector-description {
        font-size: 13px;
    }

    .info-sector-search {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .info-sector-search-input,
    .info-sector-select,
    .info-sector-btn {
        width: 100%;
        max-width: none;
    }


    .info-sector-section {
        padding: 0px;
        gap: 25px;
    }

    .info-sector-left {
        max-width: 100%;
    }

    .info-sector-video-container {
        aspect-ratio: 1.6/1;
    }

    .info-sector-play-button {
        width: 60px;
        height: 60px;
    }

    .info-sector-right {
        gap: 20px;
    }

    .info-sector-content {
        gap: 12px;
    }

    .info-sector-title {
        font-size: 34px;
    }

    .info-sector-description {
        font-size: 13px;
    }

    .info-sector-search {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .info-sector-search-input,
    .info-sector-select,
    .info-sector-btn {
        width: 100%;
        max-width: none;
    }
}

/* ==================== RESPONSIVE 992px ==================== */
@media (max-width: 992px) {
    .carousel-wrapper {
        flex-direction: column;
    }

    .left-section {
        padding: 25px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .left-section h2 {
        font-size: 32px;
    }

    .carousel-section {
        padding: 30px 40px;
        min-height: 350px;
    }

    .arrows-prev-mercasa {
        left: 10px;
    }

    .arrows-next-mercasa {
        right: 10px;
    }

    .page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .data .data-wrapper {
        width: 100% !important;
        background: #DBCCAD !important;
        padding: 30px 4% !important;
    }

    .page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .image-wrapper {
        width: 100%;
        max-width: 100% !important;
        margin-top: 0px !important;
        left: 0px !important;
    }

    .page__alimentacion-en-espana .mc-mod.mod-text-image .wrapper .image-wrapper img {
        width: 100% !important;
    }

    .page__alimentacion-en-espana .container-page--title {
        margin: 0 15px !important;
        bottom: 0px !important;
    }

    .page__alimentacion-en-espana .page--title {
        height: auto !important;
        padding: 50px 0px 0px !important;
        margin-top: -100px;
        padding-top: 100px !important;
    }

    .page__alimentacion-en-espana .breadcrumbs {
        margin-top: 5px;
        margin-left: 5px;
    }

    .buscador-alimentacion .buscador-campos {
        flex-direction: column;
    }

    .buscador-alimentacion .campo-busqueda,
    .buscador-alimentacion .campo-categoria,
    .buscador-alimentacion .campo-subcategoria {
        width: 100%;
        min-width: 100%;
    }

    .buscador-alimentacion .campo-boton {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .buscador-alimentacion .btn-buscar {
        flex: 1;
    }
}

/* ==================== RESPONSIVE MÓVIL (768px) ==================== */
@media (max-width: 768px) {
    .db-section {
        padding: 4%;
    }

    .db-header {
        margin-bottom: 25px;
        gap: 18px;
    }

    .db-title-main {
        font-size: 34px;
        margin-bottom: 12px;
    }

    .db-description-main {
        font-size: 13px;
    }

    .db-search-container {
        flex-direction: column;
        width: 100%;
        max-width: none;
        gap: 10px;
    }

    .db-search-input {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .db-search-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .db-main-content {
        gap: 25px;
        align-items: flex-start;
    }

    .db-video-section {
        max-width: 100%;
    }

    .db-video-container {
        aspect-ratio: 1.6/1;
    }

    .db-play-button {
        width: 60px;
        height: 60px;
    }

    .db-nav-arrow {
        width: 45px;
        height: 45px;
    }

    .db-nav-arrow.db-prev::before {
        border-width: 15px 22px 15px 0;
    }

    .db-nav-arrow.db-next::before {
        border-width: 15px 0 15px 22px;
    }

    .db-carousel-wrapper {
        padding: 0px;
    }

    .db-card-header {
        padding: 12px 14px;
    }

    .db-card-label {
        font-size: 11px;
    }

    .db-card-icons {
        gap: 8px;
    }

    .db-card-icon {
        width: 22px;
        height: 22px;
    }

    .db-corner-triangle {
        border-width: 45px 45px 0 0;
    }

    .db-card-content {
        padding: 14px;
    }

    .db-card-title {
        font-size: 13px;
    }

    .left-section {
        padding: 4%;
    }

    .left-section h2 {
        font-size: 28px;
    }

    .arrows-prev-mercasa {
        border-width: 12px 16px 12px 0;
        left: 5px;
    }

    .arrows-next-mercasa {
        border-width: 12px 0 12px 16px;
        right: 5px;
    }

    .carousel-section {
        padding: 25px 30px;
        min-height: 300px;
    }

    .buscador-alimentacion .buscador-campos {
        flex-direction: column;
        border-radius: 6px;
    }

    .buscador-alimentacion .campo-busqueda,
    .buscador-alimentacion .campo-categoria,
    .buscador-alimentacion .campo-subcategoria {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .buscador-alimentacion .btn-buscar {
        width: 100%;
        padding: 16px;
    }

    /* PRESENTACIÓN MÓVIL */
    .swiper-slide {
        padding: 30px 0;
        align-items: flex-start;
    }

    .slide-content {
        flex-direction: column;
        gap: 40px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .left-column {
        width: 100%;
        min-width: auto;
        gap: 30px;
    }

    .red-bar {
        width: 15px;
        height: 100px;
        left: -25px;
        top: 0;
    }

    .title {
        font-size: 36px;
    }

    .year {
        font-size: 32px;
    }

    .nav-subtitle-section {
        gap: 20px;
    }

    .navigation {
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow.prev::before {
        border-width: 12px 16px 12px 0;
    }

    .nav-arrow.next::before {
        border-width: 12px 0 12px 16px;
    }

    .subtitle {
        font-size: 28px;
        text-align: start;
    }

    .carousel-container {
        width: 100%;
    }

    .carousel-content {
        flex-direction: column;
        gap: 30px;
    }

    .center-column {
        width: 100%;
    }

    .image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .corner-triangle {
        border-width: 50px 50px 0 0;
    }

    .right-column {
        width: 100%;
        min-width: auto;
        max-width: none;
    }

    .right-column-top {
        gap: 15px;
    }

    .icons {
        gap: 12px;
    }

    .icon {
        width: 35px;
        height: 35px;
    }

    .description {
        font-size: 18px;
    }

    .author-name {
        font-size: 26px;
    }

    .author-title {
        font-size: 16px;
    }

    .read-more {
        padding: 10px 20px;
        font-size: 16px;
        gap: 8px;
    }
}

/* ==================== RESPONSIVE 576px ==================== */
@media (max-width: 576px) {
    .left-section {
        padding: 4%;
    }

    .left-section h2 {
        font-size: 24px;
    }

    .arrows-prev-mercasa {
        border-width: 10px 14px 10px 0;
        left: 3px;
    }

    .arrows-next-mercasa {
        border-width: 10px 0 10px 14px;
        right: 3px;
    }

    .carousel-section {
        padding: 20px 4%;
        min-height: 250px;
    }
}

/* ==================== RESPONSIVE 480px ==================== */
@media (max-width: 480px) {
    .db-section {
        padding: 4%;
    }

    .db-title-main {
        font-size: 30px;
    }

    .db-description-main {
        font-size: 12px;
    }

    .db-search-input,
    .db-search-button {
        font-size: 13px;
    }

    .db-video-container {
        aspect-ratio: 1.6/1;
    }

    .db-play-button {
        width: 55px;
        height: 55px;
    }

    .db-corner-triangle {
        border-width: 40px 40px 0 0;
    }

    .db-card-title {
        font-size: 12px;
    }

    .db-nav-arrow {
        width: 42px;
        height: 42px;
    }

    .db-nav-arrow.db-prev::before {
        border-width: 14px 21px 14px 0;
    }

    .db-nav-arrow.db-next::before {
        border-width: 14px 0 14px 21px;
    }

    .db-carousel-wrapper {
        padding: 0 30px;
    }

    /* PRESENTACIÓN MÓVIL PEQUEÑO */
    .swiper-slide {
        padding: 20px 0;
    }

    .slide-content {
        padding-left: 20px;
        padding-right: 15px;
        gap: 30px;
    }

    .red-bar {
        width: 12px;
        height: 80px;
        left: -20px;
    }

    .title {
        font-size: 28px;
    }

    .year {
        font-size: 26px;
    }

    .subtitle {
        font-size: 22px;
    }

    .corner-triangle {
        border-width: 40px 40px 0 0;
    }

    .description {
        font-size: 16px;
    }

    .author-name {
        font-size: 22px;
    }

    .author-title {
        font-size: 14px;
    }

    .read-more {
        padding: 8px 16px;
        font-size: 14px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .info-sector-section {
        padding: 18px 15px;
    }

    .info-sector-title {
        font-size: 30px;
    }

    .info-sector-description {
        font-size: 12px;
    }

    .info-sector-play-button {
        width: 55px;
        height: 55px;
    }

    .info-sector-search-input,
    .info-sector-select,
    .info-sector-btn {
        font-size: 13px;
    }
}