/* ==========================================================================
   Mangawik: visual refresh (phase 3)
   Keeps the brand (logo + purple→pink gradient) and modernises typography,
   cards, buttons and spacing. Loaded after the Wilcity and Elementor styles.
   ========================================================================== */

:root {
  --mw-purple: #6200d4;
  --mw-pink: #da4673;
  --mw-gradient: linear-gradient(90deg, #6200d4 0%, #da4673 100%);
  /* Brand green from the logo letters (also the theme's original button colour) */
  --mw-green: #00a99d;
  --mw-green-dark: #008a80;
  --mw-ink: #1d2133;
  --mw-text: #4b5167;
  --mw-muted: #7a8097;
  --mw-soft: #f6f4fb;
  --mw-line: #ebe8f2;
  --mw-radius: 14px;
  --mw-radius-sm: 10px;
  --mw-shadow: 0 4px 18px rgba(29, 33, 51, .07);
  --mw-shadow-hover: 0 14px 34px rgba(29, 33, 51, .14);
}

/* ---------- Base typography ---------- */
body {
  color: var(--mw-text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--mw-ink);
  letter-spacing: -0.01em;
}

a { transition: color .2s ease; }

:focus-visible {
  outline: 3px solid rgba(98, 0, 212, .45);
  outline-offset: 2px;
}

/* Avoid the few pixels of sideways scroll caused by sliders and decorations.
   `clip` (unlike `hidden`) doesn't create a scroll container, so the sticky header keeps working. */
html, body { overflow-x: clip; }

/* ---------- Header ---------- */
.header_module__Snpib {
  box-shadow: 0 2px 14px rgba(29, 33, 51, .18);
}

/* "Entrar" / "Registrarse" keep their original green colours (owner's choice: green is a brand colour). */

/* ---------- Section headings built with the Elementor text widget ---------- */
.elementor-widget-text-editor h4[style*="text-align: center"] {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.elementor-widget-text-editor h4[style*="text-align: center"]::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--mw-green);
}

.elementor-widget-text-editor h4[style*="text-align: center"] + p {
  font-size: 15px;
  color: var(--mw-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* The original layout pulled the grid up under these titles (container margin-bottom: -40px). With the bigger
   titles and the accent line the subtitle grew and the loading cards (z-index 9) covered its last line.
   Give the title block its real height back. */
.elementor-widget-text-editor:has(h4[style*="text-align: center"]) > .elementor-widget-container,
.elementor-widget-text-editor:has(+ .elementor-widget[class*="elementor-widget-wilcity"]) > .elementor-widget-container {
  margin-bottom: 0 !important;
}

/* "Ver todos" links next to the section subtitles */
.elementor-widget-text-editor h4 + p a,
.elementor-widget-text-editor h4 + p a[style] {
  color: var(--mw-green-dark) !important;
  font-weight: 600;
  white-space: nowrap;
}
.elementor-widget-text-editor h4 + p a:hover { color: var(--mw-green) !important; }
.elementor-widget-text-editor h4 + p span[style] { color: inherit !important; }

/* ---------- Homepage notice ("Anuncio importante", section 072c486) ---------- */
/* Space under the card so it doesn't touch the edge of the grey band (owner request). */
.elementor-element-072c486 {
  padding-bottom: 36px !important;
}
.elementor-element-072c486 .elementor-widget-wrap { padding: 0 !important; }
.elementor-element-072c486 .elementor-widget:last-child,
.elementor-element-072c486 .elementor-widget:last-child .elementor-heading-title { margin-bottom: 0 !important; }
.elementor-element-072c486 > .elementor-container {
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--mw-line);
  border-left: 5px solid var(--mw-pink);
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-shadow);
  padding: 18px 26px;
}
.elementor-element-072c486 .elementor-heading-title {
  color: var(--mw-ink) !important;
  text-align: left !important;
}
.elementor-element-072c486 .elementor-widget-heading:first-child .elementor-heading-title {
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mw-pink) !important;
  margin-bottom: 4px;
}
.elementor-element-072c486 .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--mw-text) !important;
}

/* ---------- Cards (listings, events, sliders, grids) ---------- */
.wil-shadow,
.listing_module__2EnGq,
.event_module__2zicF {
  border-radius: var(--mw-radius) !important;
  overflow: hidden;
  box-shadow: var(--mw-shadow) !important;
  border: 1px solid var(--mw-line);
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}

@media (hover: hover) {
  .wil-shadow:hover,
  .listing_module__2EnGq:hover,
  .event_module__2zicF:hover {
    transform: translateY(-4px);
    box-shadow: var(--mw-shadow-hover) !important;
  }
}

/* Category tiles ("¿Qué te apetece comer hoy?") */
.textbox-1_module__bn5-O,
.textbox-1_module__bn5-O > a {
  border-radius: var(--mw-radius);
  overflow: hidden;
}
.textbox-1_module__bn5-O { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .textbox-1_module__bn5-O:hover { transform: translateY(-3px); box-shadow: var(--mw-shadow-hover); }
}

/* Image boxes in Elementor (homepage category tiles at the top) */
.elementor-widget-wil-post-types .elementor-widget-container > div [class*="col-"] > div,
.elementor-widget-image-box .elementor-image-box-wrapper {
  border-radius: var(--mw-radius);
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.wil-btn,
.elementor-button {
  border-radius: var(--mw-radius-sm) !important;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.wil-btn:hover,
.elementor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 33, 51, .15);
}

/* Main action button (e.g. "Reservar", "Entrar"): brand green from the logo, darker on hover. */
.wil-btn--primary2 {
  background-color: var(--mw-green) !important;
  border-color: var(--mw-green) !important;
  color: #fff !important;
}
.wil-btn--primary2:hover {
  background-color: var(--mw-green-dark) !important;
  border-color: var(--mw-green-dark) !important;
}

/* ---------- Listing page (ficha de negocio) ---------- */
/* Header block with logo, name and tagline */
.listing-detail_title__2cR-R {
  font-size: clamp(24px, 2.6vw, 32px) !important;
  font-weight: 700 !important;
  color: var(--mw-ink) !important;
  line-height: 1.2;
}
.listing-detail_tagline__3u_9y { color: var(--mw-muted); font-size: 15px; }
.listing-detail_logo__3fI4O {
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(29, 33, 51, .18);
}

/* Sticky tab bar (Inicio, Menú, Fotos…) */
.detail-navtop_module__zo_OS {
  box-shadow: 0 4px 16px rgba(29, 33, 51, .06);
  border-bottom: 1px solid var(--mw-line);
}
.detail-navtop_nav__1j1Ti a {
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.detail-navtop_nav__1j1Ti a:hover { background: var(--mw-soft); color: var(--mw-purple); }

/* Content boxes (Descripción, Fotos, Horario, sidebar widgets) */
.content-box_module__333d9 {
  border-radius: var(--mw-radius) !important;
  border: 1px solid var(--mw-line);
  box-shadow: var(--mw-shadow);
  overflow: hidden;
}
.content-box_header__xPnGx { border-bottom: 1px solid var(--mw-line); }
.content-box_title__1gBHS {
  color: var(--mw-ink) !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}
.content-box_title__1gBHS i { color: var(--mw-purple); }

/* Photo grid inside the listing */
.listing-detail_sliderItem__3k2pH,
.content-box_body__3tSRB .gallery-item,
.content-box_body__3tSRB img {
  border-radius: var(--mw-radius-sm);
}

/* Opening hours: highlight today */
.listing-hours_todayhouritem__2WBlQ { border-radius: var(--mw-radius-sm) var(--mw-radius-sm) 0 0; }

/* Related listings in the sidebar */
.widget-listing2_module__2KKG0 { border-radius: var(--mw-radius-sm); }
.widget-listing2_thumb__1GXhh { border-radius: var(--mw-radius-sm); overflow: hidden; }

/* "Información sin actualizar" notice in the listing sidebar (nucleo/inc/aviso-actualizado.php) */
.mw-aviso-actualizado {
  border-left: 5px solid #f39200 !important;
  background: #fffaf2 !important;
}
.mw-aviso-actualizado .content-box_body__3tSRB {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mw-aviso-actualizado .mw-aviso-icono {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: #f39200;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-aviso-actualizado strong {
  display: block;
  color: #b35f00;
  font-size: 15px;
  margin-bottom: 4px;
}
.mw-aviso-actualizado p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mw-text);
}

/* ---------- Main menu dropdowns ---------- */
.header_module__Snpib .sub-menu {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(29, 33, 51, .18) !important;
  border: 1px solid var(--mw-line);
  padding: 6px 0 !important;
}
.header_module__Snpib .sub-menu a { transition: background-color .15s ease, color .15s ease, padding-left .15s ease; }
.header_module__Snpib .sub-menu a:hover { background: var(--mw-soft); color: var(--mw-purple) !important; padding-left: 22px; }

/* ---------- Footer ---------- */
.footer_module__1uDav { position: relative; }
.footer_module__1uDav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--mw-gradient);
}
.footer_module__1uDav .widget-title,
.footer_module__1uDav h3, .footer_module__1uDav h4 {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer_module__1uDav .nav-menu a,
.footer_module__1uDav .menu-item a {
  transition: color .2s ease, padding-left .2s ease;
}
.footer_module__1uDav .nav-menu a:hover,
.footer_module__1uDav .menu-item a:hover { padding-left: 4px; }
.footer_textWrap__Xc_Ht { border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.elementor-section .elementor-widget-heading h1.elementor-heading-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="url"], input[type="password"], textarea, select {
  border-radius: var(--mw-radius-sm);
}


/* ---------- Google Translate floating button: smaller and on-brand ---------- */
#glt-translate-trigger {
  background: var(--mw-gradient) !important;
  border-radius: 999px 999px 0 0 !important;
  box-shadow: 0 -2px 14px rgba(29, 33, 51, .2) !important;
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .elementor-widget-text-editor h4[style*="text-align: center"] { font-size: 22px; }
  .elementor-section .elementor-widget-heading h1.elementor-heading-title { font-size: 34px !important; line-height: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .wil-shadow:hover, .listing_module__2EnGq:hover, .event_module__2zicF:hover, .textbox-1_module__bn5-O:hover { transform: none; }
}

/* ---------- Section headers: Elementor block "Mangawik · Encabezado de sección" ----------
   (nucleo/inc/elementor-mangawik.php): badge + title + subtitle + small link. */
.mw-cabecera {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 10px;
}
.mw-cabecera--izquierda {
    text-align: left;
    margin-left: 0;
}
.mw-cabecera .mw-insignia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(98, 0, 212, .08);
    color: var(--mw-purple, #6200d4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.mw-cabecera .mw-titulo {
    margin: 0 0 12px !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    background: var(--mw-gradient, linear-gradient(90deg, #6200d4 0%, #da4673 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}
.mw-cabecera .mw-titulo::after { /* no accent bar under this title: the badge does that job */
    display: none !important;
}
.mw-cabecera--oscuro .mw-titulo {
    background: none;
    color: var(--mw-ink, #1d2133) !important;
    -webkit-text-fill-color: currentColor;
}
.mw-cabecera--blanco .mw-titulo,
.mw-cabecera--blanco .mw-subtitulo {
    background: none;
    color: #fff !important;
    -webkit-text-fill-color: currentColor;
}
.mw-cabecera--blanco .mw-insignia {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.mw-cabecera--blanco .mw-enlace {
    color: #fff !important;
}
.mw-cabecera .mw-subtitulo {
    margin: 0 auto 14px !important;
    font-size: 17px;
    line-height: 1.6;
    color: var(--mw-text, #4b5167);
}
.mw-cabecera .mw-enlace {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-green-dark, #008a80) !important;
    text-decoration: none !important;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color .2s;
}
.mw-cabecera .mw-enlace:hover {
    color: var(--mw-pink, #da4673) !important;
}
@media (max-width: 767px) {
    .mw-cabecera .mw-subtitulo { font-size: 15px; }
}
