*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(body) {
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

:where(h1, h2, h3, .wp-block-post-title, .wp-block-site-title) {
  text-wrap: balance;
}

:where(a, button, input, select, textarea, .wp-block-navigation-item__content):focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-1);
  outline-offset: 3px;
  border-radius: 2px;
}

:where(img, video) {
  max-width: 100%;
  height: auto;
}

.pentagrama {
  display: block;
  width: min(100%, 12rem);
  height: 1.8125rem;
  margin-inline: auto;
  border: 0;
  background-image: repeating-linear-gradient(to bottom, var(--wp--preset--color--accent-6) 0 1px, transparent 1px 0.4375rem);
  background-repeat: no-repeat;
}

.pentagrama.alignleft,
.pentagrama.has-text-align-left {
  margin-inline: 0;
}

.eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--accent-3);
}

.tarjeta {
  border: 1px solid var(--wp--preset--color--accent-6);
  border-radius: 0.375rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.tarjeta:hover {
  border-color: var(--wp--preset--color--accent-1);
  transform: translateY(-2px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: 1rem;
}

.chips li {
  margin: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--wp--preset--color--accent-6);
  border-radius: 999px;
  background: var(--wp--preset--color--base);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.4;
}

.horario {
  overflow-x: auto
}

.horario table {
  border-collapse: collapse;
  width: 100%;
  border: 0
}

.horario th,
.horario td {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--accent-6);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: baseline
}

.horario thead th {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--contrast-2);
  border-bottom: 2px solid var(--wp--preset--color--contrast)
}

.horario tbody td:first-child {
  font-weight: 600;
  color: var(--wp--preset--color--contrast)
}

.horario tbody td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--wp--preset--color--contrast-2)
}

.horario tbody tr:last-child td {
  border-bottom: 0
}

.no-under a {
  text-decoration: none
}

.no-under a:hover,
.no-under a:focus-visible {
  text-decoration: underline
}

.boton-cta .wp-block-button__link,
a.wp-block-button__link.boton-cta {
  border: 2px solid var(--wp--preset--color--accent-3);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease
}

.boton-cta .wp-block-button__link:not(.is-style-outline),
a.wp-block-button__link.boton-cta:not(.is-style-outline) {
  background-color: var(--wp--preset--color--accent-3);
  color: var(--wp--preset--color--base)
}

.boton-cta .is-style-outline>.wp-block-button__link,
.is-style-outline>a.wp-block-button__link.boton-cta {
  background-color: transparent;
  color: var(--wp--preset--color--accent-3)
}

.boton-cta .wp-block-button__link:hover,
a.wp-block-button__link.boton-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 26, 46, 0.22)
}

.boton-cta .wp-block-button__link:active,
a.wp-block-button__link.boton-cta:active {
  transform: translateY(0);
  box-shadow: none
}

.boton-cta .wp-block-button__link:not(.is-style-outline):hover,
a.wp-block-button__link.boton-cta:not(.is-style-outline):hover {
  background-color: var(--wp--preset--color--contrast) !important;
  border-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base) !important
}

.boton-cta .is-style-outline>.wp-block-button__link:hover,
.is-style-outline>a.wp-block-button__link.boton-cta:hover {
  background-color: var(--wp--preset--color--accent-3) !important;
  border-color: var(--wp--preset--color--accent-3);
  color: var(--wp--preset--color--base) !important
}

.agenda .tribe-common,
.agenda .tribe-events {
  --tec-color-text-primary: var(--wp--preset--color--contrast);
  --tec-color-text-secondary: var(--wp--preset--color--contrast-2);
  --tec-color-link-primary: var(--wp--preset--color--accent-1);
  --tec-color-link-accent: var(--wp--preset--color--accent-1);
  --tec-color-link-accent-hover: var(--wp--preset--color--accent-3);
  --tec-color-background-events: transparent;
  --tec-color-accent-primary: var(--wp--preset--color--accent-1);
  --tec-font-family-sans-serif: var(--wp--preset--font-family--body)
}

.fluentform .ff-btn-submit,
.fluentform button.ff-btn.ff-btn-submit {
  background-color: var(--wp--preset--color--accent-3) !important;
  color: var(--wp--preset--color--base) !important;
  border: 2px solid var(--wp--preset--color--accent-3) !important;
  border-radius: 0.25rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8em 1.6em;
  text-decoration: none;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease
}

.fluentform .ff-btn-submit:hover,
.fluentform button.ff-btn.ff-btn-submit:hover {
  background-color: var(--wp--preset--color--contrast) !important;
  border-color: var(--wp--preset--color--contrast) !important;
  color: var(--wp--preset--color--base) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 26, 46, 0.22)
}

.fluentform .ff-btn-submit:active,
.fluentform button.ff-btn.ff-btn-submit:active {
  transform: translateY(0);
  box-shadow: none
}

.fluentform .ff-btn-submit:disabled,
.fluentform button.ff-btn.ff-btn-submit:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  cursor: not-allowed
}

.fluentform input[type=text],
.fluentform input[type=email],
.fluentform input[type=tel],
.fluentform select,
.fluentform textarea {
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  border: 1px solid var(--wp--preset--color--accent-6) !important;
  border-radius: 0.25rem;
  background-color: var(--wp--preset--color--base) !important;
  color: var(--wp--preset--color--contrast) !important
}

.wp-site-blocks>header {
  position: relative;
  z-index: 100
}

.wp-site-blocks>header .wp-block-cover {
  overflow: visible
}

.wp-block-navigation__submenu-container {
  z-index: 101
}

/* ==========================================================================
   The Events Calendar — ficha de evento individual
   ========================================================================== */

/* Contenedor -------------------------------------------------------------- */

.tribe-events-single {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: var(--wp--preset--spacing--40);
}

/* Enlace de vuelta al listado --------------------------------------------- */

.tribe-events-single .tribe-events-back {
  font-size: var(--wp--preset--font-size--small);
  margin-bottom: var(--wp--preset--spacing--40);
}

.tribe-events-single .tribe-events-back a {
  color: var(--wp--preset--color--contrast-2);
  text-decoration: none;
}

.tribe-events-single .tribe-events-back a:hover {
  color: var(--wp--preset--color--accent-1);
  text-decoration: underline;
}

/* Título y fecha ---------------------------------------------------------- */

.tribe-events-single-event-title {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: var(--wp--preset--font-size--xx-large) !important;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--contrast);
  text-wrap: balance;
  margin-bottom: var(--wp--preset--spacing--20);
}

.tribe-events-single .tribe-events-schedule {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 var(--wp--preset--spacing--50);
}

.tribe-events-single .tribe-events-schedule h2,
.tribe-events-single .tribe-events-schedule div {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--accent-3);
}

/* Descripción ------------------------------------------------------------- */

.tribe-events-single .tribe-events-single-event-description {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.7;
  margin-bottom: var(--wp--preset--spacing--50);
}

/* Bloque de metadatos ------------------------------------------------------ */

.tribe-events-single .tribe-events-event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--base-2);
  border: 1px solid var(--wp--preset--color--accent-6);
  border-radius: 0.375rem;
  padding: var(--wp--preset--spacing--40) !important;
  margin-block: var(--wp--preset--spacing--50);
}

@media (min-width: 782px) {
  .tribe-events-single .tribe-events-event-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.tribe-events-single .tribe-events-meta-group {
  width: auto;
  float: none;
  padding: 0;
  margin: 0;
}

.tribe-events-single .tribe-events-single-section-title {
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: var(--wp--preset--font-size--small) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--contrast-2);
  margin: 0 0 0.75rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

.tribe-events-single .tribe-events-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tribe-events-single .tribe-events-meta-item {
  margin: 0 0 0.7rem !important;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.45;
}

.tribe-events-single .tribe-events-meta-item:last-child {
  margin-bottom: 0 !important;
}

.tribe-events-single .tribe-events-meta-label {
  display: block;
  font-weight: 700;
  color: var(--wp--preset--color--contrast-2);
  font-size: 0.8125rem;
  margin-bottom: 0.1rem;
}

.tribe-events-single .tribe-events-meta-value {
  color: var(--wp--preset--color--contrast);
}

/* Dirección del recinto ---------------------------------------------------- */

.tribe-events-single .tribe-events-address {
  font-style: normal;
  line-height: 1.6;
}

.tribe-events-single .tribe-events-gmap {
  display: inline-block;
  margin-top: var(--wp--preset--spacing--20);
  color: var(--wp--preset--color--accent-1);
}

/* Navegación anterior / siguiente ------------------------------------------ */

.tribe-events-single .tribe-events-nav-pagination {
  border: 0;
  margin-block: var(--wp--preset--spacing--40);
}

.tribe-events-single .tribe-events-sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--30);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
}

.tribe-events-single .tribe-events-sub-nav a {
  color: var(--wp--preset--color--accent-1);
  text-decoration: none;
}

.tribe-events-single .tribe-events-sub-nav a:hover {
  text-decoration: underline;
}

/* Botón "Añadir al calendario" — estilo contorno, igual que .boton-cta ------ */

.tribe-events-single .tribe-events-c-subscribe-dropdown__button {
  border: 2px solid var(--wp--preset--color--accent-3);
  border-radius: 0.25rem;
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

.tribe-events-single .tribe-events-c-subscribe-dropdown__button-text {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  color: var(--wp--preset--color--accent-3);
}

.tribe-events-single .tribe-events-c-subscribe-dropdown__button:hover {
  background: var(--wp--preset--color--accent-3);
}

.tribe-events-single .tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-text {
  color: var(--wp--preset--color--base);
}

/* Comentarios (si quedan abiertos en algún evento) -------------------------- */

.tribe-events-single #respond {
  margin-top: var(--wp--preset--spacing--60);
  padding-top: var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--accent-6);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 782px) {
  .tribe-events-single .tribe-events-event-meta {
    grid-template-columns: 1fr 1fr;
  }
}