/**
* Theme Name: Agribusiness Child
* Description: This is a child theme of Agribusiness.
* Author: <a href="https://cmsmasters.net/">cmsmasters</a>
* Template: agribusiness
* Version: 1.0.0
* Tested up to: 6.6
* Requires PHP: 7.4
* License:
* License URI:
* Text Domain: agribusiness-child
* Copyright: cmsmasters 2025 / All Rights Reserved
*/
.mapa-boton-header {
	background: #5AAB33;
	border-radius:5px !important;
    padding-right:10px !important;
}
.mapa-boton-header a{
	color:#fff !important;
}
.mapa-boton-header:hover{
	background:#00643A;
}
.cda-mapa-zonas-contenedor svg path{
	stroke-width:3px !important;
}

.e-atomic-element .e-tab-base svg {
    filter:grayscale(1) !important;
}

.e-atomic-element .e-tab-base.e--selected svg {
    filter:grayscale(0) !important;
}


/* ==========================================================================
   Gráfica KG - Estilos Responsivos
   ========================================================================== */

.gkg-wrapper {
    background-color: #174b26; /* Fondo verde oscuro */
    border-radius: 20px;
    padding: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    /*max-width: 1000px;*/
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gkg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    gap: 20px;
}

.gkg-titles {
    max-width: 60%;
}

.gkg-tag {
    color: #a3d658; /* Verde limón */
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.gkg-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.2;
}

.gkg-subtitle {
    color: #a1bca8; /* Verde grisáceo claro */
    font-size: 1.05rem;
    margin: 0;
    font-weight: 400;
}

.gkg-total-box {
    text-align: right;
    min-width: 250px;
}

.gkg-total-number {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.9;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    color: #ffffff;
}

.gkg-total-number span {
    color: #a3d658;
    font-size: 2.2rem;
    font-weight: 800;
}

.gkg-total-text {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
    color: #ffffff;
}

.gkg-total-years {
    color: #a1bca8;
    font-size: 0.85rem;
    margin-top: 2px;
}

.gkg-chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    padding: 20px 20px 10px 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .gkg-wrapper {
        padding: 25px;
    }
    
    .gkg-header {
        flex-direction: column;
    }

    .gkg-titles, .gkg-total-box {
        max-width: 100%;
        text-align: left;
    }

    .gkg-total-number {
        justify-content: flex-start;
        font-size: 3.5rem;
    }
    
    .gkg-total-number span {
        font-size: 1.8rem;
    }

    .gkg-title {
        font-size: 1.8rem;
    }

    .gkg-chart-container {
        height: 250px;
        padding: 10px;
    }
}
.elementor-widget-n-tabs .e-n-tabs-heading button:before, .elementor-widget-n-tabs .e-n-tabs-heading button:after{
    background:#fffdf8 !important;
    border-bottom:1px solid #dfdfdf;
    border-top:1px solid #dfdfdf;
    
}

.caja-etapas {
	min-height: 445px;
}

.caja-titulo {
	min-height: 275px;
}

.caja-etapas .elementor-icon-box-wrapper {
	min-height: 80px;
}
.elementor-button span{
	text-align:left;
}

@media (max-width: 767px) {
    /* 1. Comportamiento de Scroll SOLO para el menú "etapas" */
    .e-tabs-menu-base {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        gap: 0px !important; 
        padding-bottom: 15px !important; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }

    /* Ocultar barra de scroll nativa */
    .e-tabs-menu-base::-webkit-scrollbar {
        display: none;
    }

    /* 2. Ancho específico (75%) y prohibición de comprimirse */
    .e-tabs-menu-base.menu-etapas > * {
        flex-shrink: 0 !important; 
        max-width: none !important; 
        width: 75% !important; 
        min-width: 75% !important; 
    }

	.e-tabs-menu-base > * {
        flex-shrink: 0 !important; 
        max-width: none !important; 
        width: 40% !important; 
        min-width: 40% !important; 
    }
	.caja-etapas {
	min-height: 340px;
		}
	p{
		margin-bottom:0px 0px 0px 0.5rem;
	}
		.elementor-icon-box-description{
			font-size:16px;
		}	
	.elementor .e-tabs-base{
		gap:0px;
	}
	.caja-titulo {
	min-height: auto;
}
	.caja-etapas .elementor-icon-box-wrapper{
		min-height:auto;
	}

}
}