/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* ==========================================================================
   VARIABLES GLOBALES Y BASE (Para todo MercaRancho)
   ========================================================================== */
:root {
    --mr-green: #125b29;        
    --mr-green-hover: #0d441e;
    --mr-red: #c3002f;          
    --mr-red-hover: #a00026;
    --mr-gray-bg: #f9f9f9;
    --mr-text-dark: #333333;
    --mr-text-light: #666666;
}

body {
    margin: 0; 
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--mr-green);
    overflow-x: hidden;
}

.mr-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* ==========================================================================
   COMPONENTES UI GLOBALES REUTILIZABLES
   ========================================================================== */

/* Títulos de sección genéricos */
.section-title { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    padding-bottom: 12px; 
    border-bottom: 2px solid #e0e0e0; 
}
.section-title h2 { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--mr-green); 
    margin: 0; 
}

/* Botón global "Ver catálogo" o "Ver más" (Diseño de píldora) */
.btn-ver-todo { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 18px; 
    font-size: 13px; 
    font-weight: 600; 
    text-decoration: none; 
    color: var(--mr-green) !important; 
    background-color: transparent; 
    border: 1.5px solid var(--mr-green); 
    border-radius: 25px; 
    transition: all 0.3s ease; 
}
.btn-ver-todo:hover { 
    background-color: var(--mr-green); 
    color: #ffffff !important; 
    box-shadow: 0 4px 8px rgba(18, 91, 41, 0.2); 
    transform: translateY(-1px); 
}
.icon-arrow { 
    transition: transform 0.3s ease; 
}
.btn-ver-todo:hover .icon-arrow { 
    transform: translateX(4px); 
}

/* ==========================================================================
   RESPONSIVO GLOBAL (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ajuste de contenedores y márgenes en móviles */
    .mr-container {
        padding: 0 20px;
    }

    /* Ajuste de títulos y botones en móviles */
    .section-title { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
        padding-bottom: 8px; 
    }
    .section-title h2 { 
        font-size: 18px; 
    }
    .btn-ver-todo { 
        padding: 6px 14px; 
        font-size: 12px; 
    }
}