/**
 * Landing editorial panorámica (propuesta 02) — IPT v1.0.2.
 * Aislado bajo .ipt-ep; SIN carga ni declaración de tipografías nuevas.
 * Los textos usan las clases globales font-mont / font-nunito del theme.
 */
.ipt-ep {
  --ipt-ep-blue: #4b65e9;
  --ipt-ep-green: #58b069;
  --ipt-ep-deep: #097051;
  --ipt-ep-ink: #26302c;
  --ipt-ep-muted: #62746c;
  --ipt-ep-border: #e2eae5;
  --ipt-ep-soft: #f6f8f7;
  color: var(--ipt-ep-ink);
  background: #fff;
}
.ipt-ep *, .ipt-ep *::before, .ipt-ep *::after { box-sizing: border-box; }
.ipt-ep-container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.ipt-ep a { text-decoration: none; }
.ipt-ep a:focus-visible, .ipt-ep button:focus-visible, .ipt-ep select:focus-visible,
.ipt-ep input:focus-visible, .ipt-ep textarea:focus-visible,
.ipt-ep summary:focus-visible { outline: 3px solid var(--ipt-ep-green); outline-offset: 3px; }
.ipt-ep .ipt-ep-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.ipt-ep .ipt-ep-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 21px; border: 1px solid var(--ipt-ep-blue); border-radius: 8px;
  font-size: 13px; font-weight: 800; line-height: 1.4;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.ipt-ep .ipt-ep-button:hover { transform: translateY(-2px); }
.ipt-ep .ipt-ep-button-primary { color: #fff; background: var(--ipt-ep-blue); }
.ipt-ep .ipt-ep-button-primary:hover { color: #fff; background: var(--ipt-ep-deep); border-color: var(--ipt-ep-deep); }
.ipt-ep .ipt-ep-button-light { color: var(--ipt-ep-deep); background: #fff; border-color: #fff; white-space: nowrap; }
.ipt-ep .ipt-ep-button-light:hover { color: var(--ipt-ep-blue); }

/* Hero: its photo comes only from the current WordPress featured image. */
.ipt-ep .ipt-ep-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: stretch; min-height: 610px; color: #fff;
  background: #0d141b; /* Dark fallback when there is no featured image. */
}
.ipt-ep .ipt-ep-hero-media, .ipt-ep .ipt-ep-hero-shade { position: absolute; inset: 0; z-index: -1; }
.ipt-ep .ipt-ep-hero-media .ipt-ep-hero-image {
  display: block; width: 100%; height: 100%; min-height: 100%;
  max-width: none; object-fit: cover; object-position: center;
}
.ipt-ep .ipt-ep-hero-shade { background: linear-gradient(90deg, rgb(0 0 0 / 45%), rgb(0 0 0 / 5%) 53%, rgba(2, 24, 38, .37)); }
.ipt-ep .ipt-ep-hero-inside {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 45px; padding-top: clamp(55px,7vw,100px); padding-bottom: 28px;
}
.ipt-ep .ipt-ep-hero-copy { max-width: 890px; }
.ipt-ep .ipt-ep-hero-copy .ipt-ep-eyebrow { color: #d3e9e0; }
.ipt-ep .ipt-ep-hero-title {
  margin: 15px 0 18px; max-width: 880px; color: #fff;
  font-size: clamp(36px, 5.1vw, 70px); font-weight: 800;
  line-height: 1.09; letter-spacing: -.04em;
  overflow-wrap: break-word;
}
.ipt-ep .ipt-ep-hero-description { margin: 0 0 23px; max-width: 650px; font-size: clamp(15px,1.55vw,18px); line-height: 1.65; color: #edf8f3; }
.ipt-ep .ipt-ep-quicknav { min-width: 0; width: 100%; }
.ipt-ep .ipt-ep-quicknav-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.ipt-ep .ipt-ep-quicknav-heading span:first-child { text-transform: uppercase; }
.ipt-ep .ipt-ep-quicknav-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ipt-ep .ipt-ep-quicknav-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 117px;
  padding: 18px 18px 20px 20px; border-top: 5px solid var(--ipt-ep-green);
  border-bottom: 5px solid #164bfe; background: #fff; color: #132c59;
  transition: transform .2s ease, border-top-color .2s ease;
}
.ipt-ep .ipt-ep-quicknav-card:hover { transform: translateY(-4px); border-top-color: #2d9259; }
.ipt-ep .ipt-ep-quicknav-kicker { margin-bottom: 6px; font-size: 11px; font-weight: 800; line-height: 1.3; color: #194dfa; text-transform: uppercase; }
.ipt-ep .ipt-ep-quicknav-title { padding-right: 18px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.ipt-ep .ipt-ep-quicknav-desc { padding-top: 5px; padding-right: 18px; font-size: 11px; line-height: 1.5; color: #52647a; }
.ipt-ep .ipt-ep-quicknav-arrow { position: absolute; right: 16px; bottom: 15px; font-size: 17px; line-height: 1; }

/* Gutenberg owns all editorial content in the left column. */
.ipt-ep .ipt-ep-catalog { padding: 68px 0 82px; scroll-margin-top: 18px; }
.ipt-ep .ipt-ep-section-heading { margin-bottom: 20px; color: var(--ipt-ep-deep); }
.ipt-ep .ipt-ep-catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 342px; gap: 31px; align-items: start; }
.ipt-ep .ipt-ep-main { min-width: 0; }
.ipt-ep .ipt-ep-editor { min-width: 0; }
.ipt-ep .ipt-ep-editor > *:first-child { margin-top: 0; }
.ipt-ep .ipt-ep-editor > *:last-child { margin-bottom: 0; }
.ipt-ep .ipt-ep-editor h2, .ipt-ep .ipt-ep-tours-heading { margin: 0 0 16px; font-size: clamp(27px,3vw,40px); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.ipt-ep .ipt-ep-editor h3 { margin: 20px 0 10px; font-size: 21px; font-weight: 750; line-height: 1.35; }
.ipt-ep .ipt-ep-editor p { margin: 0 0 18px; line-height: 1.75; }
.ipt-ep .ipt-ep-editor .wp-block-image img { height: auto; }
.ipt-ep .ipt-ep-editor .wp-block-details { margin: 0 0 12px; padding: 18px 20px; border: 1px solid var(--ipt-ep-border); border-radius: 10px; background: #fff; }
.ipt-ep .ipt-ep-editor .wp-block-details summary { cursor: pointer; font-weight: 750; line-height: 1.5; }
.ipt-ep .ipt-ep-editor .wp-block-details[open] { border-color: var(--ipt-ep-green); }
.ipt-ep .ipt-ep-editor .wp-block-details > *:not(summary) { margin: 12px 0 0; }
.ipt-ep .ipt-ep-editor .wp-block-group { max-width: 100%; }
.ipt-ep .ipt-ep-editor .wp-block-columns { gap: 20px; }
.ipt-ep .ipt-ep-editor .wp-block-button__link { border-radius: 8px; }

/* Existing Fluent Forms 12/13 are embedded, not replaced by demo form fields. */
.ipt-ep .ipt-ep-aside { 
    min-width: 0;
    position: sticky;
    top: 100px;
    align-self: start;
    z-index: 5;
}
.ipt-ep .ipt-ep-form-panel {
  position: sticky; top: 25px; padding: 25px 23px 27px;
  background: #f8faf8; border: 1px solid #dce9df; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,42,28,.065);
}
.ipt-ep .ipt-ep-form-panel .ipt-ep-eyebrow { color: var(--ipt-ep-deep); }
.ipt-ep .ipt-ep-form-title { margin: 8px 0 10px; font-size: 27px; line-height: 1.2; font-weight: 800; color: var(--ipt-ep-ink); }
.ipt-ep .ipt-ep-form-description { margin: 0 0 22px; font-size: 14px; color: var(--ipt-ep-muted); line-height: 1.6; }
.ipt-ep .ipt-ep-form-panel .ff-el-group { margin-bottom: 15px; }
.ipt-ep .ipt-ep-form-panel .ff-el-input--label label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; line-height: 1.4; }
.ipt-ep .ipt-ep-form-panel .ff-el-form-control,
.ipt-ep .ipt-ep-form-panel input:not([type="checkbox"]):not([type="radio"]),
.ipt-ep .ipt-ep-form-panel select,
.ipt-ep .ipt-ep-form-panel textarea {
  width: 100%; max-width: 100%; min-height: 43px; border: 1px solid #d3e0d8;
  background: #fff; border-radius: 8px; padding: 10px 12px;
  color: var(--ipt-ep-ink); font-size: 14px;
}
.ipt-ep .ipt-ep-form-panel textarea { min-height: 90px; resize: vertical; }
.ipt-ep .ipt-ep-form-panel .ff-btn-submit, .ipt-ep .ipt-ep-form-panel button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border: 1px solid var(--ipt-ep-deep);
  border-radius: 8px; padding: 11px 20px; background: var(--ipt-ep-deep);
  color: #fff; font-weight: 800; cursor: pointer;
}
.ipt-ep .ipt-ep-form-panel .ff-btn-submit:hover { background: var(--ipt-ep-blue); border-color: var(--ipt-ep-blue); }
.ipt-ep .ipt-ep-form-notice { margin-bottom: 14px; color: #8c3a14; }

/* IPT v1.0.2: duration-only Gutenberg tour filters (ACF duracion). */
.ipt-ep .ipt-ep-tour-block { margin: 0 0 36px; }
.ipt-ep .ipt-ep-tours-heading { margin: 0 0 10px; }
.ipt-ep .ipt-ep-tours-intro { margin: 0 0 25px !important; max-width: 720px; color: var(--ipt-ep-muted); font-size: 15px; }
.ipt-ep .ipt-ep-filters { margin: 0 0 22px; padding: 18px 20px 13px; border: 1px solid var(--ipt-ep-border); border-radius: 12px; background: #f7faf8; }
.ipt-ep .ipt-ep-filters-head { margin-bottom: 14px; font-size: 14px; font-weight: 800; }
.ipt-ep .ipt-ep-filters-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ipt-ep .ipt-ep-filter-label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; }
.ipt-ep .ipt-ep-filter-label select { width: 100%; height: 39px; padding: 0 9px; background: #fff; border: 1px solid #dce6dd; border-radius: 6px; font-size: 12px; color: var(--ipt-ep-ink); }
.ipt-ep .ipt-ep-filter-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ipt-ep-muted); }
.ipt-ep .ipt-ep-filter-summary button { border: 0; background: none; padding: 4px; color: var(--ipt-ep-deep); font-weight: 800; cursor: pointer; }
.ipt-ep .ipt-ep-tour-list { display: grid; row-gap: 32px; column-gap: 30px; }
.ipt-ep .ipt-ep-tour-card { 
    display: grid; 
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr); 
    min-height: 213px; 
    background: #fff; 
    border: 1px solid #0464457a; 
    overflow: hidden; 
    transition: box-shadow .2s ease, transform .2s ease; 
    
}
.ipt-ep .ipt-ep-tour-card:hover { box-shadow: 0 16px 36px rgba(10,60,40,.08); transform: translateY(-2px); }
.ipt-ep .ipt-ep-tour-card[hidden] { display: none !important; }

.ipt-ep .ipt-ep-tour-image-link { 
    position: relative; 
    min-height: 0px; 
    background: #d3e5d9; 
    overflow: hidden; 
    
}
    
.ipt-ep .ipt-ep-tour-image { 
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.ipt-ep .ipt-ep-tour-tag { position: absolute; top: 12px; left: 12px; padding: 7px 9px; color: var(--ipt-ep-deep); background: #fff; border-radius: 5px; font-size: 10px; line-height: 1.3; font-weight: 800; }
.ipt-ep .ipt-ep-tour-info { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 19px 22px; }
.ipt-ep .ipt-ep-tour-meta { color: var(--ipt-ep-deep); font-size: 11px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.ipt-ep .ipt-ep-tour-title { margin: 7px 0 10px; font-size: 22px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.ipt-ep .ipt-ep-tour-title a { color: var(--ipt-ep-ink); }
.ipt-ep .ipt-ep-tour-title a:hover { color: var(--ipt-ep-blue); }
.ipt-ep .ipt-ep-tour-desc { margin: 0 0 13px !important; font-size: 13px; line-height: 1.55; color: var(--ipt-ep-muted); }
.ipt-ep .ipt-ep-tour-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.ipt-ep .ipt-ep-tour-price { color: var(--ipt-ep-deep); font-size: 20px; font-weight: 800; line-height: 1.25; }
.ipt-ep .ipt-ep-tour-price small { display: block; margin-bottom: 4px; color: var(--ipt-ep-muted); font-size: 10px; font-weight: 600; }
.ipt-ep .ipt-ep-tour-link { padding: 10px 11px; border-radius: 7px; color: #fff; background: var(--ipt-ep-blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ipt-ep .ipt-ep-tour-link:hover { color: #fff; background: var(--ipt-ep-deep); }
.ipt-ep .ipt-ep-no-results { padding: 20px; background: var(--ipt-ep-soft); border-radius: 8px; }
.ipt-ep .ipt-ep-no-results[hidden] { display: none; }
.ipt-ep .ipt-ep-empty-block { padding: 15px 20px; color: var(--ipt-ep-muted); border: 1px dashed #a9beb1; }

/* Shared sections after the Gutenberg column. */
.ipt-ep .ipt-ep-experiences { padding: 72px 0; background: #f6faf7; }
.ipt-ep .ipt-ep-experiences-heading { margin-bottom: 30px; }
.ipt-ep .ipt-ep-experiences-heading .ipt-ep-eyebrow { color: var(--ipt-ep-deep); }
.ipt-ep .ipt-ep-experiences-title { max-width: 780px; margin: 10px 0 12px; font-size: clamp(28px,3.25vw,43px); line-height: 1.18; font-weight: 800; }
.ipt-ep .ipt-ep-experiences-heading p { margin: 0; max-width: 770px; line-height: 1.7; font-size: 15px; color: var(--ipt-ep-muted); }
.ipt-ep .ipt-ep-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ipt-ep .ipt-ep-benefit { min-width: 0; padding: 28px; border: 1px solid var(--ipt-ep-border); background: #fff; border-radius: 12px; }
.ipt-ep .ipt-ep-benefit-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; color: var(--ipt-ep-deep); background: #e5f2e8; font-size: 24px; }
.ipt-ep .ipt-ep-benefit h3 { margin: 17px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.ipt-ep .ipt-ep-benefit p { margin: 0; color: var(--ipt-ep-muted); line-height: 1.65; font-size: 14px; }
.ipt-ep .ipt-ep-reviews { margin-top: 30px; padding: 25px; background: #fff; border: 1px solid var(--ipt-ep-border); border-radius: 12px; }
.ipt-ep .ipt-ep-final-cta { background: var(--ipt-ep-deep); padding: 62px 0; color: #fff; }
.ipt-ep .ipt-ep-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ipt-ep .ipt-ep-final-title { max-width: 730px; margin: 12px 0; color: #fff; font-size: clamp(26px,3.1vw,41px); line-height: 1.2; font-weight: 800; }
.ipt-ep .ipt-ep-final-cta p { margin: 0; max-width: 740px; color: #e4f3ea; line-height: 1.6; }

@media (max-width: 1080px) {
  .ipt-ep .ipt-ep-catalog-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 24px; }
  .ipt-ep .ipt-ep-quicknav-card { padding: 15px 12px; }
  .ipt-ep .ipt-ep-quicknav-title { font-size: 14px; }
}
@media (max-width: 900px) {
  .ipt-ep .ipt-ep-hero { min-height: 590px; }
  .ipt-ep .ipt-ep-catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .ipt-ep .ipt-ep-aside { margin-top: 20px; }
  .ipt-ep .ipt-ep-form-panel { position: static; max-width: 700px; }
  .ipt-ep .ipt-ep-quicknav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ipt-ep .ipt-ep-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ipt-ep .ipt-ep-benefit:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ipt-ep-container { width: calc(100% - 30px); }
  .ipt-ep .ipt-ep-hero { min-height: 620px; }
  /* Keep the requested dark, green-free hero gradient on mobile too. */
  .ipt-ep .ipt-ep-hero-inside { gap: 34px; padding-top: 40px; padding-bottom: 23px; }
  .ipt-ep .ipt-ep-hero-title { font-size: clamp(33px,9.5vw,50px); letter-spacing: -.025em; }
  .ipt-ep .ipt-ep-hero-description { font-size: 15px; }
  .ipt-ep .ipt-ep-quicknav-heading { font-size: 10px; line-height: 1.35; }
  .ipt-ep .ipt-ep-quicknav-heading span:last-child { text-align: right; }
  .ipt-ep .ipt-ep-quicknav-grid {
    gap: 10px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; 
    padding: 3px 1px 7px; 
    -webkit-overflow-scrolling: touch;
  }
  .ipt-ep .ipt-ep-quicknav-card { scroll-snap-align: start; min-height: 124px; padding: 15px; }
  .ipt-ep .ipt-ep-catalog { padding: 44px 0 56px; }
  .ipt-ep .ipt-ep-editor h2 { font-size: 28px; }
  .ipt-ep .ipt-ep-filters-grid { grid-template-columns: 1fr; }
  .ipt-ep .ipt-ep-tour-card { grid-template-columns: minmax(0,1fr); }
  .ipt-ep .ipt-ep-tour-image-link { min-height: 200px; height: 200px; }
  .ipt-ep .ipt-ep-tour-info { padding: 18px; }
  .ipt-ep .ipt-ep-tour-title { font-size: 20px; }
  .ipt-ep .ipt-ep-benefits { grid-template-columns: 1fr; }
  .ipt-ep .ipt-ep-benefit:last-child { grid-column: auto; }
  .ipt-ep .ipt-ep-experiences { padding: 54px 0; }
  .ipt-ep .ipt-ep-final-cta { padding: 50px 0; }
  .ipt-ep .ipt-ep-final-cta-inner { flex-direction: column; align-items: flex-start; gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .ipt-ep .ipt-ep-quicknav-card, .ipt-ep .ipt-ep-button, .ipt-ep .ipt-ep-tour-card { transition: none; }
}
