/* Carta y Carta secundaria — identidad visual Rincón de Pepe. */
.rdp-menu-shortcode {
  --rdp-carta-bg: #f7f5f0;
  --rdp-carta-surface: #fcf7ee;
  --rdp-carta-ink: #193343;
  --rdp-carta-muted: #556a76;
  --rdp-carta-primary: #786947;
  --rdp-carta-accent: #978455;
  --rdp-carta-line: #e2d8c6;
  --rdp-carta-white: #fffaf5;
  background: var(--rdp-carta-bg) !important;
  color: var(--rdp-carta-ink) !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.rdp-menu-shortcode a {
  color: var(--rdp-carta-ink) !important;
}

.rdp-menu-shortcode #content,
.rdp-menu-shortcode main#main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 5% 0%, rgba(226, 216, 198, .42), transparent 34rem),
    var(--rdp-carta-bg) !important;
  color: var(--rdp-carta-ink) !important;
}

.rdp-menu-shortcode .carta-wrapper {
  box-sizing: border-box;
  display: block;
  width: min(100%, 1040px);
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 64px) 96px;
}

/* Identidad principal sobre fondo claro. */
.rdp-menu-shortcode .carta-wrapper > .logo {
  display: grid;
  place-items: center;
  width: 197px;
  height: 88px;
  margin: 0 auto 22px;
  background: url("https://rdp.portavoz.com.es/wp-content/uploads/2025/05/logo-whitebg.svg") center / contain no-repeat;
}

.rdp-menu-shortcode .carta-wrapper > .logo > .logo-home-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.rdp-menu-shortcode .carta-wrapper > .logo > .logo-home-link:focus-visible {
  outline: 2px solid var(--rdp-carta-accent);
  outline-offset: 5px;
}

.rdp-menu-shortcode .carta-wrapper > .logo img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0;
}

.rdp-menu-shortcode .language-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 clamp(34px, 5vw, 56px);
}

.rdp-menu-shortcode .language-wrapper > a {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--rdp-carta-line);
  border-radius: 50%;
  background: rgba(255, 250, 245, .78);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.rdp-menu-shortcode .language-wrapper > a:hover,
.rdp-menu-shortcode .language-wrapper > a:focus-visible {
  border-color: var(--rdp-carta-accent);
  background: var(--rdp-carta-white);
  transform: translateY(-2px);
  outline: 2px solid transparent;
}

.rdp-menu-shortcode .language-wrapper svg {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.rdp-menu-shortcode .back-to-carta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 18px;
  color: var(--rdp-carta-muted) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.rdp-menu-shortcode h1,
.rdp-menu-shortcode h2,
.rdp-menu-shortcode .h1,
.rdp-menu-shortcode .h2 {
  color: var(--rdp-carta-ink) !important;
  font-family: "Gloock", Georgia, serif !important;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.025em;
  text-transform: none;
}

.rdp-menu-shortcode h1 {
  max-width: 16ch;
  margin: 0 0 24px !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  line-height: 1.02 !important;
  text-wrap: balance;
}

.rdp-menu-shortcode h2 {
  margin: clamp(52px, 7vw, 82px) 0 22px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--rdp-carta-line);
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.12;
  scroll-margin-top: 92px;
}

.rdp-menu-shortcode p,
.rdp-menu-shortcode .content {
  color: var(--rdp-carta-ink) !important;
}

.rdp-menu-shortcode .anchors {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 -4px 8px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rdp-carta-line) transparent;
}

.rdp-menu-shortcode .anchors a {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--rdp-carta-line);
  border-radius: 999px;
  background: rgba(255, 250, 245, .72);
  color: var(--rdp-carta-ink) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.rdp-menu-shortcode .anchors a:hover,
.rdp-menu-shortcode .anchors a:focus-visible {
  border-color: var(--rdp-carta-primary);
  background: var(--rdp-carta-primary);
  color: var(--rdp-carta-white) !important;
  outline: 2px solid transparent;
}

.rdp-menu-shortcode .dishes-wrapper {
  display: grid;
  gap: 0;
}

.rdp-menu-shortcode .dishes-wrapper .item {
  box-sizing: border-box;
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 20px 112px 20px 0;
  border-bottom: 1px solid var(--rdp-carta-line);
}

.rdp-menu-shortcode .dishes-wrapper .item:last-child {
  border-bottom: 0;
}

.rdp-menu-shortcode .dishes-wrapper .item .title {
  margin: 0;
  padding: 0 0 5px;
  color: var(--rdp-carta-ink);
  font-size: 17px;
  line-height: 1.35;
}

.rdp-menu-shortcode .dishes-wrapper .item .title strong {
  display: block;
  color: inherit;
  font-weight: 500;
}

.rdp-menu-shortcode .dishes-wrapper .content {
  position: static;
  margin: 0;
  padding: 0;
  color: var(--rdp-carta-muted) !important;
  font-size: 14px;
  line-height: 1.5;
}

.rdp-menu-shortcode .dishes-wrapper .item .info {
  padding: 0;
}

.rdp-menu-shortcode .dishes-wrapper .item p {
  margin: 0;
  color: var(--rdp-carta-muted) !important;
}

.rdp-menu-shortcode .dishes-wrapper .price {
  position: absolute;
  top: 20px;
  right: 0;
  min-width: 80px;
  color: var(--rdp-carta-primary);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.rdp-menu-shortcode .dishes-wrapper .price > span:not(:empty)::after {
  content: "€";
}

.rdp-menu-shortcode .dishes-wrapper .price > span:not(:empty) {
  display: inline-flex;
  align-items: baseline;
  gap: .25em;
}

.rdp-menu-shortcode .dishes-wrapper .allergens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.rdp-menu-shortcode .dishes-wrapper .allergens svg,
.rdp-menu-shortcode .allergens svg,
.rdp-menu-shortcode .info-wrapper svg {
  width: 21px;
  height: 21px;
  margin: 0;
  fill: var(--rdp-carta-primary) !important;
  color: var(--rdp-carta-primary) !important;
}

.rdp-menu-shortcode .dishes-wrapper .allergens svg *,
.rdp-menu-shortcode .allergens svg *,
.rdp-menu-shortcode .info-wrapper svg * {
  fill: currentColor !important;
  stroke: currentColor;
}

.rdp-menu-shortcode .dishes-wrapper img {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
}

.rdp-menu-shortcode .dishes-wrapper .item.has-image {
  min-height: 124px;
  padding-right: 112px;
}

.rdp-menu-shortcode .info-wrapper {
  margin-top: 48px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--rdp-carta-line);
  border-radius: 16px;
  background: rgba(255, 250, 245, .66);
}

.rdp-menu-shortcode .info-wrapper > h2 {
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  font-size: clamp(27px, 3vw, 32px) !important;
  line-height: 1.12 !important;
}

.rdp-menu-shortcode .info-wrapper > p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
}

.rdp-menu-shortcode .info-wrapper > p:last-of-type {
  margin-bottom: 18px;
}

.rdp-menu-shortcode .info-wrapper > strong {
  display: block;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rdp-carta-line);
  color: var(--rdp-carta-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
}

.rdp-menu-shortcode .info-wrapper > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.rdp-menu-shortcode .info-wrapper > div > div {
  width: auto;
  margin: 0;
  padding: 8px 6px;
  color: var(--rdp-carta-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.rdp-menu-shortcode .info-wrapper > div > div > svg {
  display: block;
  flex: 0 0 auto;
  margin: 0 auto 7px;
}

.rdp-menu-shortcode .cat-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.rdp-menu-shortcode .cat-wrapper > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--rdp-carta-line);
  border-radius: 12px;
  background: rgba(255, 250, 245, .76);
  color: var(--rdp-carta-ink) !important;
  font-family: "Gloock", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.rdp-menu-shortcode .cat-wrapper > a:hover,
.rdp-menu-shortcode .cat-wrapper > a:focus-visible {
  border-color: var(--rdp-carta-accent);
  background: var(--rdp-carta-white);
  transform: translateY(-2px);
  outline: 2px solid transparent;
}

@media (max-width: 767px) {
  .rdp-menu-shortcode .carta-wrapper,
  .rdp-menu-shortcode .carta-wrapper {
    width: 100%;
    padding: 26px 20px 72px;
    font-size: 15px;
  }

  .rdp-menu-shortcode .carta-wrapper > .logo,
  .rdp-menu-shortcode .carta-wrapper > .logo {
    width: 166px;
    height: 74px;
    margin-bottom: 14px;
  }

  .rdp-menu-shortcode .language-wrapper,
  .rdp-menu-shortcode .language-wrapper {
    padding-bottom: 30px;
  }

  .rdp-menu-shortcode h1 {
    max-width: none;
    margin-bottom: 20px !important;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.05 !important;
  }

  .rdp-menu-shortcode h2 {
    margin-top: 50px !important;
    padding-bottom: 13px !important;
    font-size: clamp(29px, 8.5vw, 38px);
  }

  .rdp-menu-shortcode .anchors {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-bottom: 14px;
    padding-left: 20px;
  }

  .rdp-menu-shortcode .anchors::after {
    content: "";
    flex: 0 0 10px;
  }

  .rdp-menu-shortcode .dishes-wrapper .item,
  .rdp-menu-shortcode .dishes-wrapper .item.has-image {
    min-height: 0;
    padding: 18px 112px 18px 0;
  }

  .rdp-menu-shortcode .dishes-wrapper .item .title {
    padding: 0;
    font-size: 16px;
  }

  .rdp-menu-shortcode .dishes-wrapper .content {
    margin-top: 4px;
    font-size: 13px;
  }

  .rdp-menu-shortcode .dishes-wrapper .allergens svg {
    width: 18px;
    height: 18px;
  }

  .rdp-menu-shortcode .dishes-wrapper .price {
    top: 18px;
    min-width: 80px;
    font-size: 14px;
  }

  .rdp-menu-shortcode .dishes-wrapper img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: 220px;
    margin-top: 14px;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
  }

  .rdp-menu-shortcode .dishes-wrapper .item.has-image {
    padding-right: 0;
  }

  .rdp-menu-shortcode .info-wrapper {
    margin-top: 36px;
    padding: 20px 16px;
  }

  .rdp-menu-shortcode .info-wrapper > h2 {
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
    font-size: 26px !important;
  }

  .rdp-menu-shortcode .info-wrapper > p {
    font-size: 14px;
  }

  .rdp-menu-shortcode .info-wrapper > h2,
  .rdp-menu-shortcode .info-wrapper > p,
  .rdp-menu-shortcode .info-wrapper > strong {
    text-align: center;
  }

  .rdp-menu-shortcode .info-wrapper > strong {
    margin-top: 16px;
    padding-top: 13px;
    font-size: 12px;
  }

  .rdp-menu-shortcode .info-wrapper > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rdp-menu-shortcode .cat-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rdp-menu-shortcode .cat-wrapper > a {
    min-height: 64px;
    padding: 16px 18px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rdp-menu-shortcode *,
  .rdp-menu-shortcode * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Integración en widgets Shortcode de Elementor. */
.rdp-menu-shortcode {
  box-sizing: border-box;
  width: 100%;
}

.rdp-menu-shortcode *,
.rdp-menu-shortcode *::before,
.rdp-menu-shortcode *::after {
  box-sizing: border-box;
}

.rdp-menu-shortcode .carta-wrapper {
  width: min(100%, 1520px);
  min-height: 0;
  padding-top: clamp(34px, 5vw, 76px);
}

.rdp-menu-shortcode--menu .anchors {
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.rdp-menu-shortcode--menu .anchors a {
  min-height: 50px;
  border-radius: 0;
  background: rgba(226, 216, 198, .88);
}

.rdp-menu-shortcode--menu .carta-wrapper > h2 {
  color: var(--e-global-color-primary) !important;
}

.rdp-menu-shortcode--room-service .room-service-notices {
  margin: 0 0 clamp(42px, 6vw, 76px);
  color: var(--rdp-carta-ink);
  text-align: center;
}

.rdp-menu-shortcode--room-service .room-service-notices p {
  margin: 0;
}

.rdp-menu-shortcode--room-service .room-service-notices p + p {
  margin-top: 6px;
}

.rdp-menu-shortcode--index {
  background: transparent !important;
}

.rdp-menu-shortcode--index .carta-wrapper {
  width: min(100%, 760px);
  padding-top: clamp(42px, 7vw, 96px);
  padding-bottom: clamp(42px, 7vw, 96px);
}

.rdp-menu-shortcode--index .cat-wrapper {
  grid-template-columns: 1fr;
  gap: 7px;
}

.rdp-menu-shortcode--index .cat-wrapper > a {
  min-height: 60px;
  border-radius: 0;
  background: rgba(226, 216, 198, .9);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 767px) {
  .rdp-menu-shortcode .carta-wrapper {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rdp-menu-shortcode--menu .anchors {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .rdp-menu-shortcode--index .cat-wrapper > a {
    min-height: 54px;
    font-size: 20px;
  }
}

.rdp-menu-shortcode--menu {
  padding: 0 !important;
  background: transparent !important;
}

.rdp-menu-shortcode--menu .carta-wrapper {
  padding: 0 !important;
  background: transparent !important;
}

/* Menú Ejecutivo — composición centrada tipo menú cerrado. */
#menu-ejecutivo .carta-wrapper > h2,
#menu-ejecutivo .carta-wrapper > .dishes-wrapper {
  width: min(100%, 760px);
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center;
}

#menu-ejecutivo .dishes-wrapper .item,
#menu-ejecutivo .dishes-wrapper .item.has-image {
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

#menu-ejecutivo .dishes-wrapper .item .title,
#menu-ejecutivo .dishes-wrapper .content,
#menu-ejecutivo .dishes-wrapper .item p {
  text-align: center;
}

#menu-ejecutivo .carta-wrapper > .dishes-wrapper:last-of-type .item:last-child .title {
  padding-top: 12px;
  font-size: 51px;
  font-weight: 700;
  line-height: 1.05;
}

#menu-ejecutivo .carta-wrapper > .dishes-wrapper:last-of-type .item:last-child .title strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  #menu-ejecutivo .carta-wrapper > .dishes-wrapper:last-of-type .item:last-child .title {
    font-size: 48px;
  }
}
