/* Bodegas.com · estilos globales: menú y pie de página (se cargan en todo el sitio) */
:root { --bdgg-v: #1b7900; --bdgg-v2: #145c00; --bdgg-claro: #88bf40; --bdgg-fondo: #eef5e4; }

/* Menú: botón "Anuncia tu bodega" */
.elementor-nav-menu li.bdg-menu-cta > a.elementor-item,
.elementor-nav-menu--dropdown li.bdg-menu-cta > a {
  background: var(--bdgg-v) !important; color: #fff !important; border-radius: 0;
  padding: 10px 20px !important; margin-left: 8px; line-height: 1.2;
}
.elementor-nav-menu li.bdg-menu-cta > a.elementor-item:hover { background: var(--bdgg-v2) !important; }
.elementor-nav-menu li.bdg-menu-cta > a.elementor-item::before,
.elementor-nav-menu li.bdg-menu-cta > a.elementor-item::after { display: none !important; }
.elementor-nav-menu--dropdown li.bdg-menu-cta > a { margin: 10px 16px; justify-content: center; }

/* Pie de página */
.bdg-pie { background: #16310f; color: #d4e4c6; font-size: 15px; line-height: 1.6; }
body .bdg-pie a, .elementor-location-footer .bdg-pie a { color: #d4e4c6 !important; text-decoration: none; }
body .bdg-pie a:hover { color: #fff !important; text-decoration: underline; }
.bdg-pie__in { max-width: 1200px; margin: 0 auto; padding: 56px 20px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.bdg-pie__marca img { height: auto; max-width: 180px; margin-bottom: 12px; }
.bdg-pie__marca p { margin: 0 0 6px; }
.bdg-pie h3 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 14px; }
.bdg-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bdg-pie__legal { max-width: 1200px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: #9fb592; }
body .bdg-pie__legal a { color: #b4c8a8 !important; }
@media (max-width: 860px) { .bdg-pie__in { grid-template-columns: 1fr 1fr; } .bdg-pie__marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .bdg-pie__in { grid-template-columns: 1fr; padding-top: 40px; } }
/* El contenedor de Elementor del pie no debe añadir márgenes */
.elementor-location-footer .bdg-pie-wrap, .elementor-location-footer .elementor-widget-shortcode, .elementor-location-footer .elementor-widget-container { margin: 0 !important; padding: 0 !important; }

/* Esquinas rectas en todo el sitio (el logo de Bodegas.com es cuadrado) */
.elementor-button, .elementor-field, .elementor-field-textual, .elementor-form input, .elementor-form select, .elementor-form textarea,
.elementor-nav-menu--dropdown, .elementor-menu-toggle, .elementor-image img, .elementor-widget-image img, .e-con, .elementor-section,
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], select, textarea, button, .button { border-radius: 0 !important; }

/* ===================== Menú principal ===================== */
.elementor-location-header { position: sticky; top: -32px; z-index: 999; }
.admin-bar .elementor-location-header { top: 0; }
.elementor-location-header .bdg-hdr-wrap, .elementor-location-header .bdg-hdr-wrap > .e-con-inner, .elementor-location-header .elementor-widget-shortcode, .elementor-location-header .elementor-widget-shortcode .elementor-widget-container, .elementor-location-header .elementor-shortcode { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100%; }
.bdg-hdr { --h-v: #1b7900; --h-v2: #145c00; --h-claro: #88bf40; --h-fondo: #eef5e4; --h-tx: #1d2327; --h-tx2: #5a6168; --h-borde: #e1e5da;
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--h-tx); background: #fff; border-bottom: 1px solid var(--h-borde); position: relative; }
.bdg-hdr *, .bdg-hdr *::before, .bdg-hdr *::after { box-sizing: border-box; }
.bdg-hdr__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; }
.bdg-hdr__top { background: var(--h-fondo); color: #2d4a1f; font-size: 13px; font-weight: 600; height: 32px; }
.bdg-hdr__top .bdg-hdr__in { height: 32px; justify-content: center; gap: 0; }
.bdg-hdr__top span { display: inline-flex; align-items: center; }
.bdg-hdr__top span + span::before { content: ""; width: 5px; height: 5px; background: var(--h-claro); margin: 0 14px; }
.bdg-hdr__bar .bdg-hdr__in { height: 72px; gap: 8px; transition: height .2s; }
.bdg-hdr.is-compacto .bdg-hdr__bar .bdg-hdr__in { height: 60px; }
.bdg-hdr.is-compacto { box-shadow: 0 4px 16px rgba(16, 24, 16, .08); }
.bdg-hdr__logo { flex: none; margin-right: 20px; display: block; line-height: 0; }
.bdg-hdr__logo img { width: 170px; height: auto; transition: width .2s; }
.bdg-hdr.is-compacto .bdg-hdr__logo img { width: 150px; }
.bdg-hdr__nav { display: flex; align-items: center; height: 100%; }
.bdg-hdr__mm { height: 100%; display: flex; align-items: center; }
body .bdg-hdr__link { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; background: none !important; border: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  color: var(--h-tx) !important; font: 600 15px/1 Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; letter-spacing: 0; text-transform: none; }
body .bdg-hdr__link:hover, .bdg-hdr__mm.is-on .bdg-hdr__link { color: var(--h-v) !important; border-bottom-color: var(--h-v); }
.bdg-hdr__mmbtn svg { transition: transform .15s; }
.bdg-hdr__mm.is-on .bdg-hdr__mmbtn svg { transform: rotate(180deg); }
.bdg-hdr__link:focus-visible, .bdg-hdr__op:focus-visible, .bdg-hdr__q button:focus-visible { outline: 2px solid var(--h-v); outline-offset: -2px; }
.bdg-hdr__q { margin-left: auto; display: flex; height: 40px; border: 1px solid var(--h-borde); background: #fff; opacity: 1; transition: opacity .2s; }
.bdg-hdr__q input { width: 190px; border: 0 !important; background: transparent !important; padding: 0 12px !important; font-size: 14px; color: var(--h-tx); outline: none; box-shadow: none !important; min-height: 0 !important; height: 100%; }
.bdg-hdr__q:focus-within { border-color: var(--h-v); }
body .bdg-hdr__q button { border: 0; background: var(--h-v) !important; color: #fff !important; font: 700 14px/1 Roboto, sans-serif; padding: 0 16px; cursor: pointer; }
body .bdg-hdr__q button:hover { background: var(--h-v2) !important; }
.bdg-hdr--home:not(.is-q) .bdg-hdr__q { opacity: 0; pointer-events: none; }
.bdg-hdr--mapa .bdg-hdr__op { margin-left: auto; }
body .bdg-hdr__op { flex: none; margin-left: 10px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--h-v); color: var(--h-v) !important; background: #fff; font: 700 14px/1 Roboto, sans-serif; text-decoration: none; white-space: nowrap; }
body .bdg-hdr__op:hover { background: var(--h-v) !important; color: #fff !important; }
.bdg-hdr .bdg-hdr__burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 12px 10px; border: 0 !important; background: transparent !important; cursor: pointer; flex-direction: column; justify-content: space-between; }
.bdg-hdr__burger span { display: block; height: 2px; background: var(--h-tx); transition: transform .2s, opacity .2s; }
.bdg-hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.bdg-hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bdg-hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Desplegable */
.bdg-mm { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--h-borde); box-shadow: 0 18px 40px rgba(16, 24, 16, .14);
  display: grid; grid-template-columns: 1.3fr 1.2fr .9fr; max-width: 1240px; margin: 0 auto; }
.bdg-mm[hidden] { display: none; }
.bdg-mm__col { padding: 28px 28px 32px; }
.bdg-mm__col + .bdg-mm__col { border-left: 1px solid var(--h-borde); }
.bdg-mm__t { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-tx2); }
.bdg-mm__ciudades, .bdg-mm__tams { list-style: none; margin: 0; padding: 0; }
.bdg-mm__ciudades { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
body .bdg-mm__ciudades a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; margin: 0 -10px; color: var(--h-tx) !important; text-decoration: none; font-size: 15px; }
.bdg-mm__ciudades a:hover { background: var(--h-fondo); }
.bdg-mm__ciudades span { color: var(--h-v); font-size: 13px; font-weight: 600; white-space: nowrap; }
.bdg-mm__tams { display: grid; gap: 6px; }
body .bdg-mm__tams a { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; color: var(--h-tx) !important; text-decoration: none; }
.bdg-mm__tams a:hover { background: var(--h-fondo); }
.bdg-ico-tam { flex: none; }
.bdg-mm__tams span, .bdg-movil__tams span { display: flex; flex-direction: column; gap: 2px; }
.bdg-mm__tams strong, .bdg-movil__tams strong { font-size: 15px; }
.bdg-mm__tams small, .bdg-movil__tams small { font-weight: 400; color: var(--h-tx2); font-size: 13px; }
.bdg-mm__tams em, .bdg-movil__tams em { font-style: normal; font-size: 13px; color: var(--h-tx2); }
.bdg-mm__col--cta { background: var(--h-fondo); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.bdg-mm__num { margin: 0; font-size: 15px; color: #2d4a1f; line-height: 1.4; }
.bdg-mm__num strong { display: block; font-size: 34px; font-weight: 800; color: var(--h-v); line-height: 1.05; font-variant-numeric: tabular-nums; }
body .bdg-mm__cerca, body .bdg-movil__cerca { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; background: var(--h-v) !important; color: #fff !important; font: 700 15px/1 Roboto, sans-serif; cursor: pointer; }
body .bdg-mm__cerca:hover { background: var(--h-v2) !important; }
body .bdg-mm__mapa { color: var(--h-v) !important; font-weight: 600; text-decoration: none; font-size: 15px; }
.is-cargando { opacity: .6; cursor: progress !important; }

/* Celular */
.bdg-movil { position: fixed; left: 0; right: 0; top: 92px; bottom: 0; background: #fff; overflow-y: auto; padding: 16px 20px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--h-borde); }
.bdg-hdr.is-compacto .bdg-movil { top: 60px; }
.bdg-movil[hidden] { display: none; }
.bdg-movil-on, .bdg-movil-on body { overflow: hidden; }
.bdg-movil__q { display: flex; height: 48px; border: 1px solid var(--h-borde); margin-bottom: 10px; }
.bdg-movil__q input { flex: 1; min-width: 0; border: 0 !important; padding: 0 14px !important; font-size: 16px; background: transparent !important; outline: none; }
body .bdg-movil__q button { border: 0; background: var(--h-v) !important; color: #fff !important; font-weight: 700; padding: 0 18px; }
body .bdg-movil__cerca { width: 100%; }
.bdg-movil__t { margin: 24px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-tx2); }
.bdg-movil__ciudades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .bdg-movil__ciudades a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--h-borde); color: var(--h-tx) !important; text-decoration: none; height: 100%; }
.bdg-movil__ciudades strong { font-size: 15px; }
.bdg-movil__ciudades span { font-size: 13px; color: var(--h-v); font-weight: 600; }
.bdg-movil__tams { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body .bdg-movil__tams a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--h-borde); color: var(--h-tx) !important; text-decoration: none; }
.bdg-movil__links { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--h-borde); }
body .bdg-movil__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--h-borde); color: var(--h-tx) !important; text-decoration: none; font-weight: 600; font-size: 16px; }
body .bdg-movil__op { display: block; margin-top: 20px; padding: 14px; border: 2px solid var(--h-v); color: var(--h-v) !important; text-align: center; font-weight: 700; text-decoration: none; }

.bdg-barra-movil { display: none; }
@media (max-width: 1180px) { .bdg-hdr .bdg-hdr__q { display: none; } .bdg-hdr__nav { margin-right: auto; } }
@media (max-width: 1000px) {
  .bdg-hdr .bdg-hdr__nav, body .bdg-hdr .bdg-hdr__op { display: none; }
  .bdg-hdr .bdg-hdr__burger { display: flex; }
  .bdg-hdr__bar .bdg-hdr__in { height: 60px; }
  .bdg-hdr__logo img, .bdg-hdr.is-compacto .bdg-hdr__logo img { width: 150px; }
  .bdg-hdr__top-x { display: none !important; }
  .bdg-barra-movil { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; background: #fff; border-top: 1px solid #e1e5da; box-shadow: 0 -6px 18px rgba(16, 24, 16, .08); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  body .bdg-barra-movil a, body .bdg-barra-movil button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; font: 700 15px/1 Roboto, -apple-system, sans-serif; text-decoration: none; cursor: pointer; }
  body .bdg-barra-movil a { background: #1b7900 !important; color: #fff !important; }
  body .bdg-barra-movil button { background: #fff !important; color: #1b7900 !important; border: 2px solid #1b7900; }
  body:has(.bdg-barra-movil) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .bdg-movil-on .bdg-barra-movil { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bdg-hdr *, .bdg-hdr { transition: none !important; } }
