:root {
  --ep-navy: #172635;
  --ep-navy-2: #21384c;
  --ep-gold: #b49163;
  --ep-cream: #f5f1eb;
  --ep-line: #ddd5ca;
  --ep-text: #4f5b65;
  --ep-white: #fff;
  --ep-radius: 18px;
}

.ep-module,
.ep-module * { box-sizing: border-box; }
.ep-module {
  max-width: 920px;
  margin: 40px auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  background: var(--ep-white);
  color: var(--ep-text);
  box-shadow: 0 18px 50px rgba(23, 38, 53, .10);
}
.ep-module h2,
.ep-module h3,
.ep-module h4 { color: var(--ep-navy); line-height: 1.2; }
.ep-module h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); }
.ep-module h3 { font-size: 24px; }
.ep-module p { line-height: 1.65; }
.ep-eyebrow {
  margin: 0 0 10px !important;
  color: var(--ep-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ep-progress {
  height: 5px;
  margin: calc(clamp(24px, 5vw, 48px) * -1) calc(clamp(24px, 5vw, 48px) * -1) 34px;
  overflow: hidden;
  border-radius: var(--ep-radius) var(--ep-radius) 0 0;
  background: #eee9e2;
}
.ep-progress span { display: block; width: 10%; height: 100%; background: var(--ep-gold); transition: width .25s ease; }
.ep-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.ep-options button {
  min-height: 62px;
  padding: 15px 17px;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: var(--ep-white);
  color: var(--ep-navy);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ep-options button:hover,
.ep-options button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ep-gold);
  outline: none;
  background: #fbf8f4;
  box-shadow: 0 8px 20px rgba(23, 38, 53, .08);
}
.ep-module label { display: block; margin: 18px 0; color: var(--ep-navy); font-weight: 700; }
.ep-module input:not([type="checkbox"]),
.ep-module textarea,
.ep-module select {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #cec6bc;
  border-radius: 10px;
  background: var(--ep-white);
  color: var(--ep-navy);
  font: inherit;
}
.ep-module textarea { min-height: 110px; resize: vertical; }
.ep-module input:focus,
.ep-module textarea:focus,
.ep-module select:focus { border-color: var(--ep-gold); outline: 3px solid rgba(180, 145, 99, .17); }
.ep-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ep-actions button,
.ep-primary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ep-navy);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.ep-primary,
.ep-submit { background: var(--ep-navy); color: var(--ep-white) !important; }
.ep-back { background: var(--ep-white); color: var(--ep-navy); }
.ep-submit:disabled { opacity: .55; cursor: wait; }
.ep-consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.ep-consent input { flex: 0 0 auto; margin-top: 4px; }
.ep-legal,
.ep-updated { color: #6f7880; font-size: 13px; }
.ep-alert,
.ep-error {
  padding: 13px 15px;
  border-left: 4px solid var(--ep-gold);
  border-radius: 8px;
  background: #fff7e8;
  color: #68491d;
}
.ep-error { border-left-color: #a43e3e; background: #fff0f0; color: #792d2d; }
.ep-success { padding: 16px 0; text-align: center; }
.ep-success .ep-primary { margin-top: 12px; }
.ep-step-count { margin: 0 0 18px; color: #77818a; font-size: 14px; }
.ep-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.ep-result { margin-top: 28px; padding: clamp(20px, 4vw, 30px); border-radius: 14px; background: var(--ep-cream); }
.ep-result dl { margin: 22px 0; }
.ep-result dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #ddd4c8; }
.ep-result dd { margin: 0; color: var(--ep-navy); font-weight: 800; text-align: right; }
.ep-result .ep-total { padding-top: 16px; border-bottom: 0; font-size: 18px; }
.ep-price { color: var(--ep-navy); font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.ep-unavailable { background: var(--ep-cream); }

@media (max-width: 767px) {
  .ep-module { margin: 24px 0; padding: 26px 18px; border-radius: 14px; }
  .ep-progress { margin: -26px -18px 26px; border-radius: 14px 14px 0 0; }
  .ep-options,
  .ep-grid { grid-template-columns: 1fr; }
  .ep-options button { min-height: 56px; }
  .ep-actions { display: grid; grid-template-columns: 1fr; }
  .ep-actions button,
  .ep-primary { width: 100%; }
  .ep-back { order: 2; }
  .ep-result dl div { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-module * { scroll-behavior: auto !important; transition: none !important; }
}

/* Coherencia visual y semántica del sitio */
.single-post h1.entry_title {
  margin: 0 0 22px;
  padding: 0;
  color: var(--ep-navy);
  font-family: Montserrat, sans-serif;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
}

/* Artículos: lectura más clara, jerarquía editorial y sin redes heredadas */
.single-post .blog_single article {
  overflow: hidden;
  border: 1px solid var(--ep-line);
  border-radius: 20px;
  background: var(--ep-white);
  box-shadow: 0 16px 42px rgba(23, 38, 53, .08);
}
.single-post .blog_single article .post_image,
.single-post .blog_single article .post_image a { display: block; }
.single-post .blog_single article .post_image img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.single-post .blog_single article .post_text_inner { padding: 38px 44px 46px; }
.single-post .ep-post-date {
  display: inline-flex;
  margin: 0 0 14px !important;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ep-cream);
  color: var(--ep-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.single-post .blog_single .post_text_inner p,
.single-post .blog_single .post_text_inner li {
  color: var(--ep-text);
  font-size: 17px;
  line-height: 1.75;
}
.single-post .blog_single .post_text_inner h2 {
  margin: 38px 0 14px;
  color: var(--ep-navy);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.25;
}
.single-post .blog_single .post_text_inner h3 {
  margin: 28px 0 10px;
  color: var(--ep-navy);
  font-size: 22px;
  line-height: 1.3;
}
.single-post .post_info,
.single-post .blog_share,
.single-post .blog_like,
.single-post .qode_print_page,
.single-post .blog_social_and_comments,
.archive.category .post_info,
.archive.category .blog_share,
.archive.category .blog_like,
.archive.category .qode_print_page,
.archive.category .blog_social_and_comments { display: none !important; }

/* Categorías: encabezado legible y tarjetas consistentes */
.archive.category .title_outer { height: auto !important; background: var(--ep-cream) !important; }
.archive.category .title {
  height: auto !important;
  padding: 40px 0 30px !important;
  background: var(--ep-cream) !important;
}
.archive.category .title .title_holder { position: static !important; height: auto !important; padding: 0 !important; }
.archive.category .title h1 {
  margin: 0 !important;
  color: var(--ep-navy) !important;
  font-size: clamp(34px, 4vw, 46px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-shadow: none !important;
}
.archive.category .blog_holder.blog_large_image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 38px 0 58px;
}
.archive.category .blog_holder.blog_large_image article {
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid var(--ep-line);
  border-radius: 18px;
  background: var(--ep-white);
  box-shadow: 0 14px 36px rgba(23, 38, 53, .08);
}
.archive.category .blog_holder.blog_large_image .post_image,
.archive.category .blog_holder.blog_large_image .post_image a { display: block; }
.archive.category .blog_holder.blog_large_image .post_image img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.archive.category .blog_holder.blog_large_image .post_text_inner { padding: 28px 30px 32px; }
.archive.category .blog_holder.blog_large_image .entry_title {
  margin: 0 0 16px;
  color: var(--ep-navy);
  font-size: 25px;
  line-height: 1.28;
}
.archive.category .blog_holder.blog_large_image .entry_title .date {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ep-cream);
  color: var(--ep-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.archive.category .blog_holder.blog_large_image .entry_title a {
  display: block;
  color: var(--ep-navy);
  font-size: inherit;
  line-height: inherit;
}
.archive.category .blog_holder.blog_large_image .post_excerpt,
.archive.category .blog_holder.blog_large_image .post_text_inner > p {
  color: var(--ep-text);
  font-size: 16px;
  line-height: 1.65;
}
.archive.category .blog_holder.blog_large_image .post_more { margin-top: 22px; }
.archive.category .blog_holder.blog_large_image .post_more .qbutton {
  border-color: var(--ep-navy);
  border-radius: 999px;
  background: var(--ep-navy);
  color: var(--ep-white);
}

@media (min-width: 1001px) {
  .archive.category .content { margin-top: 108px !important; }
  .admin-bar.archive.category .content { margin-top: 140px !important; }
}

body.page-id-666 .blog_holder.masonry article .entry_title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.page-id-1162 .title_outer { height: auto !important; background: var(--ep-cream) !important; }
body.page-id-1162 .title { height: auto !important; padding: 42px 0 30px !important; background: var(--ep-cream) !important; }
body.page-id-1162 .title .title_holder { position: static !important; height: auto !important; padding: 0 !important; }
body.page-id-1162 .title h1 { height: auto !important; margin: 0 !important; color: var(--ep-navy) !important; font-size: 42px !important; line-height: 1.18 !important; font-weight: 600 !important; text-shadow: none !important; }
body.page-id-1162 .page_container_inner { padding-top: 14px !important; }
body.page-id-1162 .ep-module { margin-top: 24px; }

@media (min-width: 1001px) {
  body.page-id-1162 .content { margin-top: 108px !important; }
}

@media (max-width: 767px) {
  body.page-id-1162 .title { padding: 28px 0 20px !important; }
  body.page-id-1162 .title h1 { font-size: 30px !important; line-height: 1.2 !important; }
  body.page-id-1162 .page_container_inner { padding-top: 8px !important; }
  body.page-id-1162 .ep-module { margin-top: 18px; }

  .single-post .blog_single article { border-radius: 16px; }
  .single-post .blog_single article .post_image img { height: 190px; }
  .single-post .blog_single article .post_text_inner { padding: 25px 22px 32px; }
  .single-post h1.entry_title { font-size: 29px; line-height: 1.18; }
  .single-post .blog_single .post_text_inner p,
  .single-post .blog_single .post_text_inner li { font-size: 16px; line-height: 1.7; }

  .archive.category .title { padding: 28px 0 22px !important; }
  .archive.category .title h1 { font-size: 31px !important; }
  .archive.category .blog_holder.blog_large_image {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 0 42px;
  }
  .archive.category .blog_holder.blog_large_image .post_image img { height: 205px; }
  .archive.category .blog_holder.blog_large_image .post_text_inner { padding: 24px 22px 28px; }
  .archive.category .blog_holder.blog_large_image .entry_title { font-size: 23px; }
}
