/* Gualamba V29.9.4 · presentación de línea propia y catálogo compacto. Sin cambios comerciales. */
.g-beef-home-promo{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:18px;max-width:1180px;margin:0 auto 20px;padding:18px 23px;border:1px solid rgba(211,172,106,.46);border-radius:21px;background:linear-gradient(105deg,#0e211b,#19382b 62%,#273a2a);color:#f7f1e6;box-shadow:0 13px 36px rgba(0,0,0,.14)}
.g-beef-home-promo__mark{width:64px;height:64px;border:1px solid rgba(238,203,147,.4);border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e5c48b;background:radial-gradient(circle at 50% 0%,rgba(202,159,91,.2),transparent 65%)}
.g-beef-home-promo__mark span{font:700 38px/1 Georgia,serif}.g-beef-home-promo__mark small{font-size:9px;letter-spacing:3px;font-weight:850}
.g-beef-home-promo__eyebrow{display:block;color:#ddc391;font:800 10px/1.35 system-ui;letter-spacing:1.55px}
.g-beef-home-promo__copy h2{font:800 clamp(23px,2vw,30px)/1.12 system-ui;margin:4px 0 6px;color:#f6f2ea}
.g-beef-home-promo__copy p{margin:0;color:#d4dfd6;font:500 13px/1.55 system-ui}
.g-beef-home-promo__link{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 17px;min-height:46px;box-sizing:border-box;border-radius:12px;background:#d2a664;color:#15291f!important;text-decoration:none!important;font:850 13px/1.2 system-ui;white-space:nowrap}
.g-beef-home-promo__link:focus-visible{outline:3px solid #fff;outline-offset:4px}
/* A search with one result must not expand it to a poster the width of the entire desktop. */
@media(min-width:1101px){.g-primary-explore .g-explore-feed{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:701px) and (max-width:1100px){.g-primary-explore .g-explore-feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.g-primary-explore .g-explore-feed{align-items:start!important}
.g-primary-explore .g-specialized-card{width:100%;min-width:0}
.g-primary-explore .g-specialized-card-open,.g-primary-explore .g-specialized-card-static{min-width:0}
@media(min-width:680px){.g-primary-explore .g-specialized-card-open .g-specialized-card-media,.g-primary-explore .g-specialized-card-static .g-specialized-card-media{width:100%;height:auto;min-height:0;aspect-ratio:16/9;max-height:185px}.g-primary-explore .g-specialized-card-media img{height:100%;max-height:185px;object-fit:cover}.g-primary-explore .g-specialized-card-media-empty{font-size:1.7rem!important}}
@media(max-width:700px){.g-beef-home-promo{grid-template-columns:48px 1fr;gap:11px;padding:15px;margin:0 0 16px;border-radius:17px}.g-beef-home-promo__mark{width:48px;height:52px}.g-beef-home-promo__mark span{font-size:29px}.g-beef-home-promo__mark small{font-size:7px;letter-spacing:2px}.g-beef-home-promo__copy h2{font-size:22px}.g-beef-home-promo__copy p{font-size:12px}.g-beef-home-promo__link{grid-column:1/-1;width:100%;min-height:44px}.g-primary-explore .g-explore-feed{grid-template-columns:minmax(0,1fr)!important}.g-primary-explore .g-specialized-card-open,.g-primary-explore .g-specialized-card-static{grid-template-columns:108px minmax(0,1fr)!important}.g-primary-explore .g-specialized-card-open .g-specialized-card-media,.g-primary-explore .g-specialized-card-static .g-specialized-card-media{height:100%;min-height:140px;aspect-ratio:auto}.g-primary-explore .g-specialized-card-body{padding:12px}.g-primary-explore .g-specialized-card h4{font-size:17px}}
@media(max-width:380px){.g-primary-explore .g-specialized-card-open,.g-primary-explore .g-specialized-card-static{grid-template-columns:93px minmax(0,1fr)!important}.g-primary-explore .g-specialized-card-body{padding:10px}.g-primary-explore .g-specialized-card-commercial{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.g-beef-home-promo *{transition:none!important}}

.g-beef-explore-link{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 15px;padding:11px 14px;border:1px solid #6b5c3b;border-radius:12px;background:#222d20;color:#f1d49e;text-decoration:none;font-size:13px;font-weight:900}.g-beef-explore-link span{color:#c8d1bd;font-size:11px;font-weight:500}.g-beef-explore-link:hover{background:#304431}.g-beef-explore-link:focus-visible{outline:3px solid #efdcaa;outline-offset:2px}

/* RC7.7 · Beef is a lower-priority coming-soon teaser, placed after the primary content. */
.g-beef-home-promo{margin-top:20px;margin-bottom:10px}
.g-beef-home-promo__copy h2{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.g-beef-home-promo__status{display:inline-flex;align-items:center;min-height:27px;padding:4px 10px;border-radius:999px;border:1px solid #e3c48c;background:rgba(227,196,140,.12);color:#f0d59e;font:800 11px/1.2 system-ui;letter-spacing:.4px;white-space:nowrap}
@media(max-width:700px){.g-beef-home-promo{margin-top:17px;margin-bottom:8px}.g-beef-home-promo__copy h2{gap:7px}.g-beef-home-promo__status{font-size:10px}}

/* Mejoras de legibilidad para los gráficos del Decision Studio */
.apexcharts-text, 
.apexcharts-xaxis-label, 
.apexcharts-yaxis-label {
    font-size: 13px !important;
    fill: #d1d5db !important;
}

/* Darle aire al título del gráfico para que no pise los números */
.pro-section h3, 
.pro-section-head h4 {
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}

/* Mejorar la caja de la fuente de datos */
.g-tools-workspace .g-source-box,
.g-tools-workspace p:contains("Fuente") {
    margin-top: 20px !important;
    padding: 15px !important;
    background: rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
}

/* =========================================
   FIX EXTREMO: Gráficos de Herramientas
   ========================================= */

/* 1. Ocultar la caja flotante de MAG (la que se superpone) */
/* Buscamos cualquier div que esté posicionado de forma absoluta dentro del gráfico y lo borramos */
.apexcharts-canvas div[style*="position: absolute"],
.apexcharts-canvas div[style*="z-index"],
.g-tools-workspace div[style*="position: absolute"] {
    display: none !important;
}

/* 2. Arreglar los textos aplastados (CAC/BCRReferencia y FuenteCámara) */
/* Usamos ::after para forzar saltos de línea visuales */
.g-tools-workspace p, 
.g-tools-workspace span, 
.g-tools-workspace div {
    line-height: 1.6 !important;
    word-spacing: 2px !important; /* Separa un poco las palabras */
}

/* 3. Arreglar los botones grises (Probar un escenario, Comparar cultivos) */
/* Apuntamos a todos los botones que no sean de navegación principal */
.g-tools-workspace button:not(.g-tools-workspace-close):not(.site-theme-toggle),
.g-tools-workspace .g-buttons-row button {
    background-color: #12271d !important; /* Verde oscuro */
    border: 1px solid #d0a15b !important; /* Borde dorado */
    color: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: background 0.2s ease !important;
}

/* 4. Separar el texto "FuenteCámara" de "Ver detalles" */
/* Si están en la misma línea, forzamos un bloque abajo del otro */
.g-tools-workspace .chart-footer, 
.g-tools-workspace .g-series-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 20px !important;
}