/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

strong{
	font-weight:500 !important;
}

/* =========================================
   ESTILOS PARA SHORTCODES (FAQS E INGREDIENTES)
   ========================================= */

/* --- 1. PREGUNTAS FRECUENTES --- */
div#preguntas_frecuentes h3 {
    margin: 0 0 10px 0;
    color: var(--e-global-color-primary);
}
.pregunta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--e-global-color-1a7afd1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pregunta-wrapper:hover {
    color: var(--e-global-color-primary);
}
.pregunta-wrapper h4,
.pregunta-wrapper span {
    margin: 0;
}
.pregunta-icons {
    margin-left: 15px;
    color: var(--e-global-color-primary);
    flex-shrink: 0;
}
.ocultar {
    display: none; /* Esto oculta la respuesta por defecto */
    padding: 10px 0 20px 0;
}
.menos {
    display: none;
}

/* --- 2. GRID DE INGREDIENTES --- */
#ingredientes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}
@media (max-width: 1199px) { #ingredientes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { #ingredientes { grid-template-columns: repeat(2, 1fr); } }

.tabs-dhyvana .ingrediente {
    position: relative;
    width: 100%;
    display: flex;
	flex-direction: column;
    background-color: var(--e-global-color-secondary) !important;
	border: 1px solid #E5DED5;
    border-radius: 12px !important;
    box-shadow: none;
    overflow: hidden !important;
    height: 100%;
    cursor: pointer;
}


.tabs-dhyvana .ingrediente-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px 14px !important;
    background: transparent !important;
}

.tabs-dhyvana .ingrediente > .thumbnail {
    position: static;
    width: 96px;
    height: 96px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 4px auto;
    z-index: 1;
    opacity: 1;
    transition: all 0.3s ease;
}

.tabs-dhyvana .ingrediente > .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.tabs-dhyvana .ingrediente:hover > .thumbnail {
	transform: translateY(-2px);
}

.tabs-dhyvana .excerpt-ingrediente {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.tabs-dhyvana .ingrediente-wrapper h3 {
    width: 100%;
    text-align: center;
    font-size: 16px;	
	margin: 0;
}

/* --- 3. POP-UP DE INGREDIENTES --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
    background-color: var(--e-global-color-secondary);
    padding: 20px;
    text-align: center;
    width: 60%;
    max-width: 600px;
    height: auto;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    position: relative;
	border-radius: 12px;
}
.pop-up-text {
    display: block;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 10px;
    text-align: left;
}
.close-button {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.relacionados-ingrediente ul {
	list-style:none;    
	padding: 0;
	margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.relacionados-ingrediente li {
    margin: 0;
    padding: 0;
}

.relacionados-ingrediente li a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--e-global-color-secondary);
    border: 1px solid #E5DED5;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.relacionados-ingrediente li a:hover {
    background-color: #F0ECE6;
    border-color: #E5DED5;
    font-size: 12px !important;
	line-height: 1.2 !important;
    transform: none !important;
}

@media (max-width: 767px) { .tabs-dhyvana .excerpt-ingrediente {display: none;} 
	
/* ==============================================================
   AJUSTES RESPONSIVE PARA EL POP-UP DE INGREDIENTES
   ============================================================== */
@media (max-width: 767px) {
    /* 1. Hacemos que la caja sea mucho más ancha en móviles */
    .popup-content {
        width: 92% !important; 
        max-height: 85vh !important; /* Limita el alto al 85% de la pantalla */
        padding: 20px 15px !important;
    }
    
    /* 2. Forzamos el scroll interno para que el fondo no se corte */
    .popup-scroll-area {
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        max-height: calc(85vh - 40px) !important; /* Se ajusta al tamaño de la pantalla */
        padding-right: 10px !important; /* Hueco para que la barra de scroll no tape el texto */
    }
    
    /* 3. Ajustamos el botón de cerrar para que no se monte en el texto */
    .close-button {
        top: 5px !important; 
        right: 10px !important;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* ==============================================================
   BADGES
   ============================================================== */

/* DHYVANA Badges */
.dhy-badges, .dhy-chip-group__chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:10px 0 16px !important;
}
.dhy-badge, .dhy-chip-group__chip{
  display:inline-flex !important;
  align-items:center !important;
  padding:6px 12px !important;
  border:1px solid rgba(0,0,0,.18) !important;
  border-radius:999px !important;
}

/* ==============================================================
   ESTILOS AVISO DE WOOCOMMERCE
   ============================================================== */
body .woocommerce-store-notice,
body p.demo_store,
body .demo_store {
    position: relative !important;
    display: block !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    background-color: #3A3A3A !important;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 6px 20px !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}