/* === Barra Brava Global Variables === */
:root {
  --color-primary: #24B6AE;    /* Teal */
  --color-accent: #FF6900;     /* Coral accent */
  --color-bg-light: #F9F9F9;   /* Light background */
  --border-radius: 6px;        /* Rounded corners */
  --section-padding: 2.5rem;   /* Consistent spacing */
}

/*
    Theme Name: Barra Brava
    Theme URI:
    Description: Tema custom para web en WordPress
    Author: David Rosado
    Version: 1.0
    License: GNU General Public License v2 or Later
    Tags: Wordpress
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.footer .top-footer::after {
  z-index: 1 !important;
}

.item-banner video {
  width: 100%;
  max-height: 900px;
  object-fit: cover;
}

/* === Footer Copyright Customization (Cross-Browser Stable) === */
.footer .copyright .col-12.copyright-flex {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: left;
  padding: 10px 0;
  width: 100%;
}

.footer .copyright .copyright-left {
  flex: 1 1 auto;
  font-size: 14px;
  color: #fff;
  text-align: left;
}

.footer .copyright .copyright-right {
  flex: 1 1 auto;
  font-size: 14px;
  color: #fff;
  text-align: right;
}

.footer .copyright .copyright-right a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.footer .copyright .copyright-right a:hover {
  text-decoration: underline;
}

/* === Mobile: Center Everything Consistently === */
@media (max-width: 767px) {
  .footer .copyright .col-12.copyright-flex {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center !important;
    gap: 8px;
    padding: 15px 0;
  }

  .footer .copyright .copyright-left,
  .footer .copyright .copyright-right {
    flex: none !important;
    width: 100%;
    text-align: center !important;
    font-size: 13px;
    line-height: 1.4;
  }

  .footer .copyright .copyright-right a {
    display: inline-block;
    margin: 0 6px;
  }
}

/* === Customer Review Section Responsive Fix (Smaller Font Optimized) === */
.customer-review {
  font-weight: 700;
  font-size: clamp(1.2rem, 3.8vw, 1.7rem);
  line-height: 1.25;
  text-transform: uppercase;
  color: #24B6AE;
  letter-spacing: 0.8px;
  text-align: center;
  display: inline-block;
  white-space: normal;       /* allow wrapping if very narrow */
  word-break: keep-all;
  margin: 1rem auto;
}

@media (max-width: 420px) {
  .customer-review {
    font-size: clamp(1rem, 5vw, 1.4rem);
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-align: center;
  }
}

/* === Customer Reviews Title – Match Orange Line with Other Sections === */
#reviews-home h2 {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2;
  color: #24B6AE;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1rem 0;
  text-align: center;
}

/* Orange underline (same style as other sections) */
#reviews-home h2::after {
  content: "";
  display: block;
  width: 100px;               /* 👈 longer to match theme titles */
  height: 4px;
  background-color: #ff6900;  /* theme orange */
  margin: 10px auto 0;        /* centers and adds space below */
  border-radius: 2px;
}

/* === Mobile-friendly scaling === */
@media (max-width: 767px) {
  #reviews-home h2 {
    font-size: 1.6rem;      /* slightly smaller for small screens */
    line-height: 1.8;
  }

  #reviews-home h2::after {
    width: 80px;            /* slightly shorter for mobile */
    height: 3px;
    margin-top: 8px;
  }
}

/* === Customer Reviews Section Unified Styling === */
#reviews-home h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #24B6AE;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 2;
  position: relative;
  margin-bottom: 1rem;
}

/* orange underline like other titles */
#reviews-home h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background-color: #ff6900;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* === ReputationHub Widget Wrapper (Expanded width) === */
.reputationhub-wrapper {
  max-width: 1140px; /* matches other sections’ container width */
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  transition: all 0.3s ease;
}

.reputationhub-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
  vertical-align: bottom;
  line-height: 0;
}

/* === Tablet === */
@media (max-width: 991px) {
  .reputationhub-wrapper {
    max-width: 90%;
  }
}

/* === Mobile === */
@media (max-width: 767px) {
  #reviews-home h2 {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  #reviews-home h2::after {
    width: 80px;
    height: 3px;
    margin-top: 6px;
  }

  .reputationhub-wrapper {
    max-width: 100%;
    border-radius: 0;
  }

  .reputationhub-wrapper iframe {
    min-height: 450px;
  }
}

/* Subscribe CTA Button - Barra Brava Style */
.subscribe-btn {
  display: inline-block;
  background-color: var(--color-primary); /* Teal */
  color: #fff !important;
  padding: 14px 32px; /* Perfect padding */
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px; /* Stylish pill shape */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

/* Hover effect using Barra Brava accent orange */
.subscribe-btn:hover {
  background-color: var(--color-accent); /* Orange */
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Eventos date styling – match promotions section */
#eventos-home .item-evento .row_i h3 {
  font-family: "bronicebold", Arial, sans-serif;
  font-size: 12px;
  color: #28a89d;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

/* ============================================
   MENU — MOBILE CONTROL CENTER (≤ 520px)
   Clear labels for every section
   ============================================ */
@media (max-width: 520px) {

  /* --------------------------------------------------
     1) TURN OFF BOOTSTRAP COLUMNS INSIDE THE MENU
     -------------------------------------------------- */
  #menu .item-menu .col-md-8,
  #menu .item-menu .col-md-4,
  #menu .item-menu .col-12 {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    display: block !important;
  }

  /* --------------------------------------------------
     2) MAIN ROW: TEXT + IMAGE SIDE BY SIDE
     -------------------------------------------------- */
  #menu .item-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;   /* keeps equal height */
    flex-wrap: nowrap !important;      /* side-by-side layout */
    margin-bottom: 20px !important;    /* space between menu sections */
    padding-bottom: 15px !important;   /* inside spacing */
    box-shadow: none !important;       /* remove shadow on entire row */
  }

  /* --------------------------------------------------
     3) TEXT COLUMN (LEFT SIDE)
     -------------------------------------------------- */
  #menu .item-menu .text-item {
    width: 70% !important;             /* keeps text wider */
    padding-right: 12px !important;    /* space before image */
    font-size: 14px;
    line-height: 1.3;
    align-self: stretch !important;
  }

  /* --------------------------------------------------
     4) IMAGE COLUMN (RIGHT SIDE)
     -------------------------------------------------- */
  #menu .item-menu .picture-item {
    width: 30% !important;             /* image takes smaller area */
    display: block !important;
    margin-bottom: 10px !important;    /* adjust to preference */
    background: transparent !important;/* remove any background */
    border: none !important;           /* remove any inherited border */
    box-shadow: none !important;       /* remove any box-shadow */
  }

  #menu .item-menu .picture-item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 70px !important;    /* space between menu sections */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;       /* remove any image shadows */
  }

  /* --------------------------------------------------
     5) TYPOGRAPHY CONTROLS
     -------------------------------------------------- */
  #menu .text-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  #menu .title-row {
    font-size: 15.7px;
  }

  #menu .price-row {
    font-size: 12px;
  }

  #menu p.second-row {
    font-size: 12px;
    line-height: 1.25;
  }

  /* --------------------------------------------------
     6) CONTAINER SPACING (Left/Right padding)
     -------------------------------------------------- */
  #menu .container {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

/* ✅ Prevent horizontal overflow from Bootstrap row */
  #menu .container > .row,
  #menu .row {
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
  /* --------------------------------------------------
     7) TOP & BOTTOM SPACING FOR MENU SECTIONS
     -------------------------------------------------- */
  #contenido-menu.seccion-top {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #menu.seccion {
    padding-top: 40px !important;
    padding-bottom: 10px !important;
  }

  /* --------------------------------------------------
     8) CHROME SHADOW FIX — FINAL WORKING VERSION
     -------------------------------------------------- */
} 

/* Keep dotted lines for items WITH prices, hide only if empty */
#menu .item-menu .first-row:has(.price-row:not(:empty)) {
  background: inherit !important;
}

#menu .item-menu .first-row:has(.price-row:empty) {
  background: none !important;
}

#menu .item-menu .first-row:has(.price-row:empty)::before,
#menu .item-menu .first-row:has(.price-row:empty)::after {
  content: none !important;
}

#menu .item-menu .first-row:has(.price-row:empty) .price-row {
  display: none !important;
}/* END MOBILE BLOCK */

/* ===============================
   MOBILE MAIN NAV – ALIGNMENT + SUBMENU
   =============================== */
@media (max-width: 767px) {

  /* Center the main top-level items (HOME, ABOUT US, MENU, etc.) */
  .header_nav-content .ul_menu {
      text-align: center;
      padding: 0;
      margin: 0;
  }

  .header_nav-content .ul_menu > li {
      display: block;
      margin: 5px 0;              /* space between HOME / ABOUT / MENU / LOCATIONS */
  }

  .header_nav-content .ul_menu > li > a {
      display: inline-block;
  }

  /* Space between "MENU" pill and the orange submenu block */
  .header_nav-content .ul_menu .menu-item-has-children > a {
      display: inline-block;
      margin-bottom: 0px;          /* adjust this for tighter/looser gap */
  }

  /* Submenu block under "MENU" – orange card */
  .header_nav-content .ul_menu .sub-menu {
      list-style: none;
      margin: 0 auto 0px;          /* top 0 = tight to pill, bottom 18px = gap below */
      padding: 5px 5px;           /* inner padding of orange card */
      width: auto;                   /* width of orange card */
      max-width: 420px;             /* optional maximum width */
      border-radius: 32px;
  }

  /* Submenu items inside the orange card */
  .header_nav-content .ul_menu .sub-menu > li {
      margin: 12px 0;               /* space between submenu links */
      text-align: center;
  }

  .header_nav-content .ul_menu .sub-menu a {
      display: block;
  }

} /* END MOBILE NAV */
/* =========================
   MOBILE "MENU" SUBMENU TOGGLE
   ========================= */
@media (max-width: 767px) {

  /* Allow MENU (menu-item-21) to be clickable on mobile */
  #menu-item-21 > a:first-of-type {
      pointer-events: auto;
  }

  /* Hide submenus by default on mobile */
  .header_nav-content .ul_menu .menu-item-has-children > .sub-menu {
      display: none !important;
  }

  /* Show submenu ONLY when JS adds .submenu-open to the <li> */
  .header_nav-content .ul_menu .menu-item-has-children.submenu-open > .sub-menu {
      display: block !important;
  }
}
/* === Mobile/Desktop Banner Swap (ACF Custom Banner) === */
.banner-page img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.banner-page .mobile-banner {
  display: none;
}

@media (max-width: 767px) {
  .banner-page .desktop-banner {
    display: none !important;
  }
  .banner-page .mobile-banner {
    display: block !important;
  }
}