/* Identidad visual compartida por las páginas y entradas interiores. */
:root {
  --ti-ink: #1b1b1b;
  --ti-sun: #f0bd2f;
  --ti-paper: #fbfaf6;
  --ti-sand: #f4f0e6;
  --ti-muted: #686868;
  --ti-line: rgba(25, 25, 25, .14);
  --ti-radius: 24px;
  --ti-shadow: 0 24px 60px rgba(20, 20, 20, .12);
}

html { scroll-behavior: smooth; }

body:not(.home) {
  color: var(--ti-ink);
  background: var(--ti-paper);
  font-family: Montserrat, Arial, sans-serif !important;
  overflow-x: hidden;
}

body:not(.home) p,
body:not(.home) li,
body:not(.home) input,
body:not(.home) textarea,
body:not(.home) select,
body:not(.home) button {
  font-family: Montserrat, Arial, sans-serif;
}

body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3,
body:not(.home) h4,
body:not(.home) h5,
body:not(.home) h6,
body:not(.home) .entry-title {
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: -.035em;
}

body:not(.home) a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

/* La cabecera antigua pasa a ser la misma pieza flotante de la portada. */
body:not(.home) #masthead {
  position: absolute !important;
  inset: 14px 0 auto !important;
  z-index: 9999 !important;
  width: 100%;
  background: transparent !important;
}

body.admin-bar:not(.home) #masthead { top: 46px !important; }

body:not(.home) #masthead .main-header-bar-wrap,
body:not(.home) #masthead .ast-primary-header-bar,
body:not(.home) #masthead .site-primary-header-wrap,
body:not(.home) #masthead .ast-builder-grid-row-container,
body:not(.home) #masthead .ast-builder-grid-row-container-inner {
  background: transparent !important;
}

body:not(.home) #masthead .main-header-bar,
body:not(.home) #masthead .ast-primary-header-bar {
  width: min(1240px, calc(100% - 28px)) !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #fff !important;
  background: rgba(18, 18, 18, .86) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body:not(.home) #masthead .ast-container,
body:not(.home) #masthead .ast-builder-grid-row {
  width: 100% !important;
  max-width: none !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 9px 14px 9px 22px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 22px !important;
}

body:not(.home) #masthead .site-branding,
body:not(.home) #masthead .ast-site-identity {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.home) #masthead .site-logo-img img,
body:not(.home) #masthead .custom-logo {
  width: auto !important;
  max-width: 168px !important;
  max-height: 54px !important;
  object-fit: contain;
}

body:not(.home) #masthead .ast-mobile-header-wrap { width: 100%; }

body:not(.home) #masthead .main-navigation,
body:not(.home) #masthead .ast-main-header-bar-alignment,
body:not(.home) #masthead .site-header-primary-section-right {
  margin-left: auto !important;
}

body:not(.home) #masthead .main-header-menu,
body:not(.home) #masthead .main-header-menu > .menu-item,
body:not(.home) #masthead .main-header-menu > .menu-item > .menu-link {
  background: transparent !important;
}

body:not(.home) #masthead .main-header-menu > .menu-item > .menu-link,
body:not(.home) #masthead .ast-builder-menu-1 .menu-item > .menu-link {
  min-height: 48px !important;
  padding: 0 10px !important;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .88) !important;
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

body:not(.home) #masthead .main-header-menu > .menu-item > .menu-link:hover,
body:not(.home) #masthead .main-header-menu > .current-menu-item > .menu-link {
  color: var(--ti-sun) !important;
}

body:not(.home) #masthead a[href*="/reservas/"] {
  min-height: 44px !important;
  margin: 2px 6px !important;
  padding: 0 17px !important;
  justify-content: center;
  color: var(--ti-ink) !important;
  background: var(--ti-sun) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(240, 189, 47, .24);
}

body:not(.home) #masthead .sub-menu {
  padding: 10px !important;
  background: rgba(22, 22, 22, .97) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24) !important;
}

body:not(.home) #masthead .sub-menu .menu-link {
  color: rgba(255, 255, 255, .86) !important;
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-size: 13px !important;
  border-radius: 10px;
}

body:not(.home) #masthead .sub-menu .menu-link:hover {
  color: var(--ti-sun) !important;
  background: rgba(255, 255, 255, .07) !important;
}

body:not(.home) #masthead .gt_switcher-popup,
body:not(.home) #masthead .menu-item-gtranslate > a {
  color: #fff !important;
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-weight: 700 !important;
}

body:not(.home) #masthead .search-form,
body:not(.home) #masthead .ast-search-icon,
body:not(.home) #masthead .search-icon { color: #fff !important; }

/* El contenido comienza detrás de la cabecera, igual que en el hero del inicio. */
body:not(.home) #content,
body:not(.home) .site-content { margin-top: 0 !important; }

body:not(.home).elementor-page #primary,
body:not(.home).elementor-page #main,
body:not(.home).elementor-page .entry-content { margin-top: 0 !important; padding-top: 0 !important; }

body:not(.home) .elementor-widget-heading h1,
body:not(.home) .elementor-widget-heading h2,
body:not(.home) .elementor-widget-heading h3 {
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-style: normal !important;
}

body:not(.home) .elementor-widget-button .elementor-button,
body:not(.home) a.elementor-button,
body:not(.home) input[type="submit"],
body:not(.home) button[type="submit"] {
  min-height: 48px;
  padding: 14px 22px;
  color: var(--ti-ink) !important;
  background: var(--ti-sun) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: Poppins, Montserrat, Arial, sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 28px rgba(240, 189, 47, .22);
}

body:not(.home) .elementor-widget-button .elementor-button:hover,
body:not(.home) a.elementor-button:hover { transform: translateY(-2px); }

body:not(.home) .elementor-widget-image img,
body:not(.home) .wp-post-image { border-radius: 20px; }

body:not(.home) .elementor-widget-text-editor p { color: var(--ti-muted); }

body:not(.home) .entry-content a:not(.elementor-button) { text-decoration-color: var(--ti-sun); }

/* Pie coherente con la portada. */
body:not(.home) #colophon,
body:not(.home) .site-footer {
  color: rgba(255, 255, 255, .76) !important;
  background: var(--ti-ink) !important;
}

body:not(.home) #colophon h2,
body:not(.home) #colophon h3,
body:not(.home) #colophon h4,
body:not(.home) #colophon a,
body:not(.home) .site-footer a { color: #fff !important; }

body:not(.home) #colophon a:hover,
body:not(.home) .site-footer a:hover { color: var(--ti-sun) !important; }

@media (max-width: 1180px) {
  body:not(.home) #masthead .main-header-menu > .menu-item > .menu-link,
  body:not(.home) #masthead .ast-builder-menu-1 .menu-item > .menu-link {
    padding-inline: 7px !important;
    font-size: 11px !important;
  }

  body:not(.home) #masthead .site-logo-img img,
  body:not(.home) #masthead .custom-logo { max-width: 145px !important; }
}

@media (max-width: 921px) {
  body:not(.home) #masthead { inset: 10px 0 auto !important; }
  body.admin-bar:not(.home) #masthead { top: 56px !important; }

  body:not(.home) #masthead .main-header-bar,
  body:not(.home) #masthead .ast-primary-header-bar {
    width: calc(100% - 20px) !important;
    min-height: 64px !important;
    border-radius: 19px !important;
  }

  body:not(.home) #masthead .ast-container,
  body:not(.home) #masthead .ast-builder-grid-row {
    min-height: 64px !important;
    padding: 7px 12px 7px 16px !important;
  }

  body:not(.home) #masthead .site-logo-img img,
  body:not(.home) #masthead .custom-logo {
    max-width: 136px !important;
    max-height: 46px !important;
  }

  body:not(.home) #masthead .menu-toggle,
  body:not(.home) #masthead .ast-mobile-menu-trigger-minimal {
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
  }

  body:not(.home) #masthead .main-header-menu,
  body:not(.home) #masthead .ast-nav-menu {
    margin-top: 10px !important;
    padding: 10px !important;
    background: rgba(22, 22, 22, .98) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28) !important;
  }

  body:not(.home) #masthead .main-header-menu .menu-link,
  body:not(.home) #masthead .ast-nav-menu .menu-link {
    min-height: 46px !important;
    color: #fff !important;
    background: transparent !important;
    font-family: Poppins, Montserrat, Arial, sans-serif !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar:not(.home) #masthead { top: 60px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* ===== Fichas de lugares (Qué ver): Guayadeque, La Pasadilla, El Burrero, Cascos Antiguos ===== */
.ti-lugar { padding: 70px 0 80px !important; background: var(--ti-paper) !important; }
.ti-lugar > .elementor-container { gap: 34px; align-items: flex-start; }
.ti-lugar .ti-lugar-content > .elementor-widget-wrap { background: #fff; border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 44px 48px !important; }
.ti-lugar .ti-lugar-content h2, .ti-lugar .ti-lugar-content h3 { color: var(--ti-ink) !important; }
.ti-lugar .ti-lugar-content .elementor-widget-heading:not(:first-child) { margin-top: 18px; }
.ti-lugar .ti-lugar-content .elementor-widget-heading:not(:first-child) .elementor-heading-title { font-size: clamp(22px, 2.2vw, 28px) !important; padding-bottom: 12px; position: relative; }
.ti-lugar .ti-lugar-content .elementor-widget-heading:not(:first-child) .elementor-heading-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; border-radius: 4px; background: var(--ti-sun); }
.ti-lugar .ti-lugar-content p { font-size: 16px; line-height: 1.75; color: #3d3d3d; }
.ti-lugar .ti-lugar-content .elementor-widget-text-editor { max-width: 72ch; }
.ti-lugar .ti-lugar-content .elementor-image-carousel-wrapper, .ti-lugar .ti-lugar-content .swiper { border-radius: 20px; overflow: hidden; }
.ti-lugar .ti-lugar-content .elementor-widget-divider { display: none; }
.ti-lugar .elementor-toggle .elementor-tab-title { padding: 16px 18px !important; border: 0 !important; border-radius: 14px; background: var(--ti-sand); margin-top: 10px; font-weight: 600; }
.ti-lugar .elementor-toggle .elementor-tab-content { border: 0 !important; padding: 16px 18px !important; }
.ti-lugar .elementor-posts-container .elementor-post { border-radius: 18px; overflow: hidden; background: var(--ti-sand); }
.ti-lugar .elementor-posts-container .elementor-post__thumbnail img, .ti-lugar .elementor-posts-container img { border-radius: 18px; transition: transform .35s ease; }
.ti-lugar .elementor-posts-container .elementor-post:hover img { transform: scale(1.04); }
.ti-lugar .ti-lugar-side > .elementor-widget-wrap { background: var(--ti-sand) !important; border-radius: var(--ti-radius); padding: 30px 26px !important; position: sticky; top: 130px; }
.ti-lugar .ti-lugar-side { background: transparent !important; }
.ti-lugar .ti-lugar-side .elementor-section, .ti-lugar .ti-lugar-side .elementor-column-wrap, .ti-lugar .ti-lugar-side .elementor-widget-wrap { background-color: transparent !important; }
.ti-lugar .ti-lugar-side .elementor-icon-list-text { font-size: 14px; line-height: 1.55; }
.ti-lugar .ti-lugar-side iframe { border-radius: 16px; }
.ti-lugar .ti-maps-btn .elementor-button { background: var(--ti-sun) !important; color: var(--ti-ink) !important; border-radius: 999px !important; font-weight: 700; padding: 15px 20px !important; box-shadow: 0 12px 30px rgba(240,189,47,.25); }
.ti-lugar .elementor-widget-table-of-contents .elementor-toc__header { background: transparent; border: 0; }
.ti-lugar .elementor-widget-table-of-contents .elementor-toc__body { padding-top: 0; }
.ti-lugar .elementor-widget-table-of-contents { border: 0 !important; background: transparent !important; }
@media (max-width: 1024px) {
  .ti-lugar { padding: 40px 0 50px !important; }
  .ti-lugar .ti-lugar-content > .elementor-widget-wrap { padding: 28px 22px !important; }
  .ti-lugar .ti-lugar-side > .elementor-widget-wrap { position: static; margin-top: 10px; }
}

/* Fichas de lugares: una sola columna (contenido y debajo Cómo llegar) */
.ti-lugar > .elementor-container { flex-direction: column !important; flex-wrap: nowrap !important; max-width: 940px !important; gap: 28px !important; }
.ti-lugar > .elementor-container > .elementor-column { width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; }
.ti-lugar .ti-lugar-side > .elementor-widget-wrap { position: static !important; top: auto !important; background: #fff !important; box-shadow: var(--ti-shadow); padding: 40px 48px !important; display: flex; flex-direction: column; gap: 6px; }
.ti-lugar .ti-lugar-side .elementor-widget-table-of-contents { display: none !important; }
.ti-lugar .ti-lugar-side .elementor-widget-heading .elementor-heading-title { font-size: clamp(22px, 2.2vw, 28px) !important; padding-bottom: 12px; position: relative; }
.ti-lugar .ti-lugar-side .elementor-widget-heading .elementor-heading-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; border-radius: 4px; background: var(--ti-sun); }
.ti-lugar .ti-lugar-side .elementor-icon-list-text { font-size: 15px; }
.ti-lugar .ti-lugar-side .ti-maps-btn .elementor-button-wrapper { max-width: 340px; }
.ti-lugar .ti-lugar-side iframe { width: 100% !important; height: 380px !important; border-radius: 18px; }
.ti-lugar .ti-lugar-side .elementor-section > .elementor-container { max-width: 100% !important; }
.ti-lugar .ti-lugar-side .elementor-column { width: 100% !important; }
@media (max-width: 767px) { .ti-lugar .ti-lugar-side > .elementor-widget-wrap { padding: 28px 22px !important; } .ti-lugar .ti-lugar-side iframe { height: 300px !important; } }

.ti-lugar .ti-lugar-side .elementor-section, .ti-lugar .ti-lugar-side .elementor-column > .elementor-widget-wrap { border: 0 !important; box-shadow: none; }
.ti-lugar .ti-lugar-side .elementor-section .elementor-widget-wrap { padding: 0 !important; }
.ti-lugar .ti-lugar-content .elementor-widget-text-editor { max-width: none; }

/* Reservas Turitop - Páginas de reserva (Turitop): separar el contenido de la cabecera flotante */
body.page-id-18144 .site-content, body.page-id-18152 .site-content, body.page-id-18175 .site-content { padding-top: 150px; }
@media (max-width: 921px) { body.page-id-18144 .site-content, body.page-id-18152 .site-content, body.page-id-18175 .site-content { padding-top: 120px; } }
