/* 
----------------------------------------------------
  GLOBAL.CSS - Estilos comunes a todo el sitio
----------------------------------------------------

Este archivo se carga en todas las páginas.

Para agregar estilos específicos por página, crear un archivo en la carpeta /css/ 
con el nombre del slug de la página:

Ejemplos:
  Página Inicio (slug: inicio)         → /css/inicio.css
  Página Nosotros (slug: nosotros)     → /css/nosotros.css
  Página Contacto (slug: contacto)     → /css/contacto.css

No hace falta modificar functions.php, el sistema los carga automáticamente.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
    overflow-x: hidden !important;
}

:root {
    --primary: #22c55e !important;
    --primary-dark: #16a34a !important;
    --primary-light: #4ade80 !important;
    --secondary: #008752 !important;
    --accent: #f59e0b !important;
    --success: #10b981 !important;
    --warning: #f59e0b !important;
    --error: #ef4444 !important;
    --nature-green: #166534 !important;
    --field-green: #15803d !important;
    --leaf-green: #22c55e !important;
    --earth-brown: #a3a3a3 !important;
    --gold: #f59e0b !important;
    --gray-50: #f9fafb !important;
    --gray-100: #f3f4f6 !important;
    --gray-200: #e5e7eb !important;
    --gray-300: #d1d5db !important;
    --gray-400: #9ca3af !important;
    --gray-500: #6b7280 !important;
    --gray-600: #4b5563 !important;
    --gray-700: #374151 !important;
    --gray-800: #1f2937 !important;
    --gray-900: #111827 !important;
    --white: #ffffff !important;
    --black: #000000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    color: var(--gray-900) !important;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 800 !important;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 700 !important;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
}

h5 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem) !important;
}

h6 {
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
}

p {
    margin-bottom: 1rem !important;
    line-height: 1.7 !important;
    color: var(--gray-600) !important;
    font-size: 1.125rem !important;
}

a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: var(--primary-dark) !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem !important;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem !important;
    }
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-height: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3) !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4) !important;
}

.btn-secondary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.btn-secondary:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3) !important;
}

.btn-white {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-white:hover {
    background: var(--gray-50) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.section {
    padding: 5rem 0 !important;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0 !important;
    }
}

.section-dark {
    background: var(--gray-900) !important;
    color: white !important;
}

.section-light {
    background: var(--gray-50) !important;
}

.card {
    background: white !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--gray-100) !important;
}

.card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .card {
        padding: 2rem !important;
    }
}

/* Grid System */
.grid {
    display: grid !important;
    gap: 2rem !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr) !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {

    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .grid {
        gap: 1.5rem !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

.inline-flex {
    display: inline-flex !important;
}

.items-center {
    align-items: center !important;
}

.items-start {
    align-items: flex-start !important;
}

.items-end {
    align-items: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-8 {
    gap: 2rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-6 {
    margin-top: 1.5rem !important;
}

.mt-8 {
    margin-top: 2rem !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }

    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out !important;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
}

/* Loading states */
.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Image optimization */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: var(--gray-100) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--primary) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark) !important;
}

.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner .logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/** footer styles */
.footer {
    background: var(--primary)!important;
    color: white!important;
    padding: 3rem 0 1rem!important;
}

.footer-content {
    display: grid!important;
    grid-template-columns: 2fr 1fr 1fr 1fr!important;
    gap: 3rem!important;
    margin-bottom: 2rem!important;
}

.footer-section h4 {
    color: white!important;
    margin-bottom: 1.5rem!important;
    font-size: 1.125rem!important;
    font-weight: 700!important;
    text-transform: uppercase!important;
    letter-spacing: 1px!important;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8)!important;
    line-height: 1.6!important;
    margin-bottom: 1.5rem!important;
}

.footer-section ul {
    list-style: none!important;
}

.footer-section ul li {
    margin-bottom: 0.75rem!important;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8)!important;
    transition: color 0.2s ease;
    font-weight: 500!important;
}

.footer-section ul li a:hover {
    color: white!important;
}

.social-links {
    display: flex!important;
    gap: 1rem!important;
    margin-top: 1.5rem!important;
}

.social-links a {
    width: 40px!important;
    height: 40px!important;
    background: rgba(255, 255, 255, 0.1)!important;
    border-radius: 50%!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    color: rgba(255, 255, 255, 0.8)!important;
    transition: all 0.2s ease!important;
}

.social-links a:hover {
    background: var(--gold);
    color: white!important;
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 0.75rem!important;
    font-size: 0.9rem!important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem!important;
    display: flex!important;
    justify-content: space-between!important;
    align-items: center!important;
    flex-wrap: wrap!important;
    gap: 1rem!important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8)!important;
    margin: 0!important;
    font-size: 0.875rem!important;
}

.footer-links {
    display: flex!important;
    gap: 2rem!important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8)!important;
    font-size: 0.875rem!important;
    transition: color 0.2s ease;
    font-weight: 500!important;
}

.footer-links a:hover {
    color: white!important;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr!important;
        gap: 2rem!important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem!important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem!important;
    }

    .footer-bottom {
        flex-direction: column!important;
        text-align: center!important;
        gap: 1rem!important;
    }

    .footer-links {
        gap: 1rem!important;
        flex-wrap: wrap!important;
        justify-content: center!important;
    }
}
/*Header Styles*/
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    min-height: 85px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-item {
    position: relative;
}

.dropdown-container {
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-text {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.dropdown-arrow {
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.nav-indicator {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-text,
.dropdown-container:hover .nav-text {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover .nav-indicator,
.dropdown-container:hover .nav-indicator {
    width: 100%;
}

.dropdown-container:hover .dropdown-arrow {
    color: var(--primary);
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: -2rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-width: 750px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.asociados-dropdown {
    min-width: 800px;
    left: -2rem;
}

.private-area-dropdown {
    min-width: 750px;
    left: -3rem;
}

.private-area-dropdown .dropdown-content {
    grid-template-columns: 2.8fr 1fr;
    gap: 3rem;
}

.private-area-dropdown .dropdown-section:first-child {
    padding-right: 3rem;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 2.5rem;
}

.dropdown-section {
    padding: 0 3rem;
}

.dropdown-section:not(:last-child) {
    border-right: 1px solid var(--gray-100);
}

.dropdown-section h4 {
    color: var(--gray-900);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    line-height: 1.2;
    white-space: normal;
    text-align: left;
    min-height: 48px;
    align-items: flex-start;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.dropdown-link span {
    display: block;
    line-height: 1.3;
    max-width: 140px;
    word-wrap: break-word;
    hyphens: auto;
}

.dropdown-link:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-link.featured {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    min-height: 52px;
    align-items: center;
}

.dropdown-link.featured span {
    max-width: 120px;
    text-align: center;
    margin: 0 auto;
}

.dropdown-link.featured:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.dropdown-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Estilos específicos para el formulario de login en dropdown */
.login-form-dropdown {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.form-group-compact {
    margin-bottom: 1rem;
}

.form-group-compact label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-container-compact {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container-compact svg {
    position: absolute;
    left: 0.75rem;
    color: var(--gray-400);
    z-index: 1;
}

.input-container-compact input {
    width: 100%!important;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem!important;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.input-container-compact input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.login-btn-compact {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-btn-compact:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Estilos para mobile */
.mobile-login-form {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-group-mobile {
    margin-bottom: 0.75rem;
}

.form-group-mobile input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
}

.form-group-mobile input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-btn-mobile {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn-mobile:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.lang-text {
    font-weight: 600;
    font-size: 0.8rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white !important;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 10rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 60px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.search-results {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 120px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.lang-option:last-child {
    border-bottom: none;
}

.flag {
    font-size: 1.125rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid var(--gray-200);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    max-height: 100vh;
}

.mobile-nav-content {
    padding: 2rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    width: 100%;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 1rem;
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--gray-50);
    margin: 0 -2rem;
    padding: 0 2rem;
}

.mobile-submenu.active {
    max-height: 500px;
    padding: 1rem 2rem;
}

.mobile-submenu-link {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    color: var(--primary);
    padding-left: 1.5rem;
}

.mobile-submenu-link.featured {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-bottom: none;
}

.mobile-submenu-link.featured:hover {
    background: var(--primary-dark);
}

.mobile-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .desktop-nav {
        gap: 2rem;
    }

    .nav-text {
        font-size: 0.8rem;
    }

    .asociados-dropdown {
        min-width: 700px;
    }

    .dropdown-content {
        grid-template-columns: 1fr 1fr;
        min-width: 600px;
        padding: 2rem;
    }

    .dropdown-menu {
        min-width: 650px;
    }

    .dropdown-section:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--gray-100);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        padding: 1.5rem 2rem 0;
    }
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .icon-btn .lang-text {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .cta-btn {
        display: none;
    }

    .lang-dropdown {
        right: 80px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .logo img {
        height: 45px;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .icon-btn {
        padding: 0.625rem;
    }

    .search-container {
        padding: 1rem;
        padding-top: 8rem;
    }

    .search-box {
        padding: 1.25rem 1.5rem;
    }

    .search-input {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .search-btn {
        display: none;
    }

    .lang-dropdown {
        right: 20px;
        left: 20px;
        min-width: auto;
    }

}
/*1. Espaciados y alineaciones del menú principal (desktop-nav):*/
/* Más separación entre ítems del menú y alineado centrado vertical */
.desktop-nav {
    gap: 3.5rem !important;
    /* Puedes subir o bajar este valor según referencia visual */
    align-items: center !important;
    height: 85px !important;
    /* Altura estándar de header de diseñador */
}

.nav-link {
    padding: 1.15rem 0 !important;
    font-size: 1.04rem !important;
}

.nav-text {

    letter-spacing: 1px !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/*2. Flecha de menú: tamaño y animación*/
.dropdown-arrow {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.2s cubic-bezier(.4, 0, .2, 1), color 0.2s;
}

.dropdown-container:hover .dropdown-arrow {
    color: var(--primary) !important;
    transform: rotate(180deg) !important;
    visibility: visible;
}
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 1000;
    position: relative;
    top: 0px;
}

/*3. Fondo y sombra de los menús desplegables (dropdown): */
.dropdown-menu {
    background: #fff !important;
    box-shadow: 0 14px 48px 0 rgba(20, 92, 50, 0.12), 0 1.5px 5px 0 rgba(0, 0, 0, 0.05) !important;
    border-radius: 28px !important;
    border: none !important;
    padding: 0 !important;
}

.dropdown-content {
    padding: 2.5rem 2.75rem !important;
    gap: 0.5rem !important;
}

.dropdown-section {
    padding: 0 2rem !important;
}

.dropdown-section h4 {
    /*color: var(--primary) !important;
    font-weight: 900 !important;
    letter-spacing: 1.3px !important;*/
    font-size: 1.08rem !important;
    /*border: none !important;
    margin-bottom: 1.6rem !important;*/
}

/*4.Items de submenu, hover y featured*/
.dropdown-link {
    padding: 0.7rem 1.4rem !important;
    font-size: 1.01rem !important;
    border-radius: 10px !important;
    color: var(--gray-700) !important;
    font-weight: 600 !important;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background: var(--primary-light) !important;
    color: #fff !important;
    transform: translateX(5px) scale(1.04) !important;
}

.dropdown-link svg {
    margin-top: 3px !important;
}

.dropdown-link.featured {
    background: linear-gradient(90deg, var(--primary) 60%, var(--primary-light)) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .18) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

.dropdown-link.featured:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
}

/*5.Submenús - posición y animación */
.dropdown-menu {
    top: calc(100% + 18px) !important;
    left: -1.2rem !important;
    min-width: 730px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1);
}

.dropdown-container:hover .dropdown-menu,
.dropdown-container:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}
/* 6. Indicador inferior de hover en ítem principal */
.nav-indicator {
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
    border-radius: 4px !important;
    width: 0;
    transition: width 0.18s cubic-bezier(.4, 0, .2, 1);
}

.nav-link:hover .nav-indicator,
.dropdown-container:hover .nav-indicator {
    width: 100% !important;
}

/* 7. Responsive: ancho de menú para mobile y espaciado vertical */
@media (max-width: 1024px) {

    .dropdown-menu,
    .asociados-dropdown,
    .private-area-dropdown {
        min-width: 97vw !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .dropdown-content {
        grid-template-columns: 1fr !important;
        padding: 1rem 0.5rem !important;
    }
}
/*8. Extras visuales (opcional para "detalle Figma")*/
.nav-link,
.dropdown-link {
    transition: color .2s, 
    background .2s, transform .18s cubic-bezier(.4, 0, .2, 1);
}

.dropdown-menu {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateY(10px);
    transition: all .25s cubic-bezier(.16, 1, .3, 1);
}

.dropdown-container:hover .dropdown-content .dropdown-menu,
.dropdown-container:focus-within .dropdown-content .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.page-id-4404 .page-hero {
    margin-top: 0 !important;
}

/* base cerrada */
.lang-dropdown {
    position: absolute;
    /* ajústalo según tu layout */
    right: 7.5rem;
    /* o donde vaya debajo del botón */
    top: 72px;
    /* iguala la altura del header */
    display: none;
    opacity: 0;
    pointer-events: none;
    z-index: 4000;
    transition: opacity .15s ease;
}

.lang-dropdown.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
/* ============================================
   DROPDOWN MENUS - ESTILO UNIFICADO
   ============================================ */

/* Base: posición, tamaños y transición */
.dropdown-menu {
    position: absolute !important;
    /*top: calc(100% + 18px) !important;*/
    left: -1.2rem !important;
    /*min-width: 730px !important;*/
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-16px) !important;
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1),
        transform .22s cubic-bezier(.4, 0, .2, 1) !important;
    z-index: 1100 !important;

    /* Apariencia */
    background: #fff !important;
    box-shadow: 0 14px 48px rgba(20, 92, 50, .12),
        0 1.5px 5px rgba(0, 0, 0, .05) !important;
    border-radius: 28px !important;
    border: none !important;
    padding: 0 !important;
}

/* Mostrar menú en hover/focus o si tiene clase active */
.dropdown-container:hover>.dropdown-menu,
.dropdown-container:focus-within>.dropdown-menu,
.dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Ajustes específicos por tipo de menú */
.asociados-dropdown {
    min-width: 800px !important;
    left: -2rem !important;
}

.private-area-dropdown {
    min-width: 750px !important;
    left: -3rem !important;
}

/* ====== PUENTE ANTI-GAP SOLO PARA APROSE ====== */
.gap-fix-aprose {
    position: relative !important;
}

/* “Puente” invisible para evitar cierre por gap */
.gap-fix-aprose::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    height: 14px !important;
    /* subí/bajá para ajustar tolerancia */
    background: transparent !important;
    pointer-events: auto !important;
    /* captura el hover */
    z-index: 1000 !important;
}

/* Asegurar que el dropdown quede por encima del puente */
#aprose-dropdown {
    z-index: 1101 !important;
}

/* ============================================
   ESTILOS INTERNOS DE LINKS (opcional, ajusta a tu gusto)
   ============================================ */

.dropdown-menu .dropdown-link {
   /* display: block !important;*/
    padding: 1rem 1.5rem !important;
    /*color: #333 !important;*/
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: background .2s, color .2s !important;
    background-color:white!important;
    white-space: nowrap!important;
    display: flex !important;
}

.dropdown-menu .dropdown-link:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #145c32 !important;
}

/* Asegura contexto de posicionamiento */
.nav .dropdown-container {
    position: relative!important;
}

.nav .dropdown-menu {
    position: absolute!important;
    left: 0!important;
    top: calc(100% + 12px)!important;
    /* aire visual si querés */
    margin-top: 0!important;
}

/* zona invisible que rellena el gap para que el mouse no “caiga” */
.nav .dropdown-menu::before {
    content: ""!important;
    position: absolute!important;
    left: 0!important;
    right: 0!important;
    height: 12px!important;
    /* igual que el gap */
    top: -12px!important;
    /* ocupa el hueco */
    background: transparent!important;
    /* pointer-events por defecto ya sirve; si tienes clicks, usa pointer-events:auto */
}
/* Lang Dropdown */
.lang-dropdown {
    display: none;
}

.lang-dropdown.active {
    display: block;
}
/* Forzar el modal por encima de todo */
.df-lightbox,
.dflip,
.dflip-main,
.dflip-overlay,
.dflip-book-wrapper {
    z-index: 999999 !important;
}
/* Scope solo para esta sección */
.aprose-privado .categoria-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

/* Evitar que estilos globales estiren los SVG */
.aprose-privado .categoria-btn svg {
    width: 24px !important;
    height: 24px !important;
    max-width: none !important;
    flex-shrink: 0;
}

/* Tarjeta interna */
.aprose-privado .categoria-btn .tw-card {
    position: relative;
    border-radius: 1rem;
    /* rounded-2xl */
}

/* Overlay */
.aprose-privado .categoria-btn .tw-card>.tw-absolute {
    pointer-events: none;
    border-radius: inherit;
}
/* --- GRID --- */
.categorias-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile: 1 por fila */
    gap: 16px;
}

@media (min-width:1024px) {

    /* desktop: 4 por fila */
    .categorias-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- BOTÓN / CARD --- */
.aprose-privado .categoria-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
    text-align: left;
    cursor: pointer;
}

.aprose-privado .cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.aprose-privado .cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

/* Icono fijo a 24px y sin deformaciones del theme */
.aprose-privado .cat-icon svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    max-width: none !important;
}

.aprose-privado .cat-text {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
}

/* --- PALETA POR CATEGORÍA (gradientes) --- */
.aprose-privado .cat-junta {
    background: linear-gradient(90deg, #16a34a, #065f46);
}

.aprose-privado .cat-industriales {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.aprose-privado .cat-cereales {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.aprose-privado .cat-maices {
    background: linear-gradient(90deg, #16a34a, #065f46);
}

.aprose-privado .cat-leguminosas {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.aprose-privado .cat-frutales {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.aprose-privado .cat-obtentores {
    background: linear-gradient(90deg, #16a34a, #065f46);
}

.aprose-privado .cat-horticolas {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}
.test-barra {
    background: red;
    height: 40px;
}

/* ===== Base alert ===== */
.alert {
    /* Design tokens (can be overridden per-variant) */
    --_bg: #f8f9fa;
    --_text: #1f2732;
    --_border: #dfe3e6;
    --_accent: #6b7785;

    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .9rem 1rem;
    border: 1px solid var(--_border);
    border-left: .4rem solid var(--_accent);
    border-radius: .6rem;
    background: var(--_bg);
    color: var(--_text);
    line-height: 1.35;
    font-size: .95rem;
}

/* Optional icon (uses an emoji for simplicity & accessibility) */
.alert::before {
    content: "ℹ️";
    flex: 0 0 auto;
    margin-top: .05rem;
}

/* Links inside alert */
.alert a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Close button (works with Bootstrap's .btn-close or your own) */
.alert .btn-close,
.alert .alert-close {
    position: absolute;
    top: .55rem;
    right: .6rem;
    border: 0;
    background: none;
    font-size: 1.1rem;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

.alert .btn-close:hover,
.alert .alert-close:hover {
    opacity: 1;
}

/* ===== Variants ===== */

/* Danger (error/critico) */
.alert-danger {
    --_bg: #fff5f5;
    /* soft red */
    --_text: #7a1e1e;
    /* deep red text */
    --_border: #f1aeb5;
    /* pale border */
    --_accent: #e03131;
    /* left bar */
}

.alert-danger::before {
    content: "⛔";
}

/* Warning (atención) */
.alert-warning {
    --_bg: #fff9db;
    /* soft yellow */
    --_text: #7a4c00;
    /* warm brown */
    --_border: #ffe08a;
    /* pale border */
    --_accent: #f08c00;
    /* left bar */
}

.alert-warning::before {
    content: "⚠️";
}


/* Recuadro de focus apagado*/
/* quita el recuadro exterior en todos los botones */
.btn:focus,
.btn:focus-visible,
.btn:active:focus,
.btn-check:focus+.btn,
.btn-check:focus-visible+.btn,
button:focus,
button:focus-visible,
.categoria-btn:focus,
.categoria-btn:focus-visible {
    box-shadow: none !important;
    outline: 0 !important;
}

/* Evita el flash al tocar en móviles */
button,
.btn {
    -webkit-tap-highlight-color: transparent;
}