/*
 * Estilos de las páginas interiores: Blog, artículos y Preguntas frecuentes.
 * Se cargan después de styles.css y reutilizan sus variables y componentes.
 */

/* Base de página interior */
.inner-page main {
  padding-top: var(--header-height);
}

.inner-page .site-header {
  background: rgba(251, 249, 248, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) 0 clamp(50px, 6vw, 80px);
  background:
    radial-gradient(circle at 88% 12%, rgba(194, 24, 91, 0.09), transparent 42%),
    var(--pearl);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 6.4vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-hero h1 em {
  font-style: italic;
}

.page-lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.page-hero-compact .page-lead {
  margin-bottom: 34px;
}

/* Lista del blog */
.blog-section {
  padding: clamp(60px, 7vw, 100px) 0;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 46px;
}

.category-filter a {
  padding: 8px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.category-filter a:hover {
  color: var(--fuchsia-deep);
  border-color: var(--fuchsia);
}

.category-filter a.is-active {
  color: var(--white);
  background: var(--fuchsia);
  border-color: var(--fuchsia);
}

.blog-empty {
  color: var(--muted);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.post-category {
  color: var(--fuchsia-deep);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-featured {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  margin-bottom: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-featured-mark {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(150deg, var(--fuchsia) 0%, var(--fuchsia-deep) 100%);
}

.post-featured-mark::before,
.post-featured-mark::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.post-featured-mark::before {
  width: 260px;
  height: 260px;
}

.post-featured-mark::after {
  width: 170px;
  height: 170px;
}

.post-featured-mark span {
  position: relative;
  color: var(--white);
  font-family: var(--serif);
  font-size: 3.4rem;
  font-style: italic;
  letter-spacing: -0.06em;
}

.post-featured-copy {
  display: flex;
  padding: clamp(32px, 4vw, 54px);
  flex-direction: column;
}

.post-featured-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
}

.post-featured-copy > p:not(.post-meta) {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
}

.post-featured-copy .text-link {
  align-self: flex-start;
  min-width: 220px;
}

.post-featured h2 a,
.post-card h2 a,
.post-card h3 a {
  transition: color 160ms ease;
}

.post-featured h2 a:hover,
.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--fuchsia);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px 0 0 1px;
}

.post-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  display: flex;
  min-height: 360px;
  padding: 32px 28px 28px;
  flex-direction: column;
  margin: -1px 0 0 -1px;
  border: 1px solid var(--line);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.post-card:hover {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.post-card h2,
.post-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  line-height: 1.15;
}

.post-card > p:not(.post-meta) {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Artículo */
.post-narrow {
  max-width: 760px;
}

.post-header {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(circle at 90% 0%, rgba(194, 24, 91, 0.08), transparent 45%),
    var(--pearl);
  border-bottom: 1px solid var(--line);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: var(--fuchsia-deep);
  font-size: 0.74rem;
  font-weight: 600;
}

.post-back svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.post-back:hover svg {
  transform: translateX(-4px);
}

.post-header h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.post-excerpt {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
}

.post-body {
  padding-top: clamp(46px, 6vw, 72px);
  padding-bottom: 20px;
  font-size: 1.06rem;
  line-height: 1.85;
}

.post-body > p {
  margin-bottom: 1.4em;
  color: #3d3437;
}

.post-body h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.post-body a {
  color: var(--fuchsia-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--fuchsia);
}

.post-body strong {
  color: var(--ink);
  font-weight: 600;
}

.post-body ul {
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.post-body li {
  position: relative;
  margin-bottom: 0.9em;
  padding-left: 30px;
  color: #3d3437;
}

.post-body li::before {
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--fuchsia);
  content: "";
}

.post-body blockquote {
  margin: 2.2em 0;
  padding: 6px 0 6px 30px;
  border-left: 2px solid var(--fuchsia);
}

.post-body blockquote p {
  margin: 0;
  color: var(--fuchsia-deep);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-style: italic;
  line-height: 1.35;
}

.post-body > p:last-child em {
  color: var(--muted);
  font-size: 0.88rem;
}

.post-author {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  margin-bottom: clamp(60px, 8vw, 100px);
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.post-author .brand-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  font-size: 1.05rem;
}

.post-author p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-author .post-author-name {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.post-author .text-link {
  min-width: 220px;
}

.related-posts {
  background: var(--silver-soft);
}

.related-title {
  margin-bottom: 42px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.related-title em {
  font-style: italic;
}

/* Bloque de invitación a la guía */
.page-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 120px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(194, 24, 91, 0.35), transparent 50%),
    var(--ink);
  text-align: center;
}

.page-cta-inner {
  max-width: 820px;
}

.page-cta .eyebrow {
  justify-content: center;
}

.page-cta h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.page-cta h2 em {
  color: #eda6c3;
  font-style: italic;
}

.page-cta-inner > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.04rem;
}

/* Preguntas frecuentes */
.faq-section {
  padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 9vw, 120px);
}

.faq-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.faq-index {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  display: flex;
  flex-direction: column;
}

.faq-index p {
  margin-bottom: 16px;
  color: var(--fuchsia-deep);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-index a {
  padding: 9px 0 9px 16px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 0.85rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.faq-index a:hover {
  color: var(--fuchsia-deep);
  border-color: var(--fuchsia);
}

.faq-group {
  scroll-margin-top: calc(var(--header-height) + 24px);
  margin-bottom: 64px;
}

.faq-group h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.35;
  list-style: none;
  transition: color 160ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
  color: var(--fuchsia-deep);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 4px;
}

.faq-item summary i {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 180ms ease, border-color 180ms ease;
}

.faq-item summary i::before,
.faq-item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary i {
  color: var(--white);
  background: var(--fuchsia);
  border-color: var(--fuchsia);
}

.faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-width: 720px;
  padding: 0 58px 26px 0;
  color: var(--muted);
}

.faq-answer p {
  margin-bottom: 14px;
}

.faq-answer ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-answer a {
  color: var(--fuchsia-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
}

.faq-more p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
}

/* Responsivo */
@media (max-width: 1060px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-index {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-index p {
    width: 100%;
    margin-bottom: 4px;
  }

  .faq-index a {
    padding: 8px 14px;
    border: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .post-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-featured-mark {
    min-height: 180px;
  }

  .post-featured-mark::before {
    width: 180px;
    height: 180px;
  }

  .post-featured-mark::after {
    width: 110px;
    height: 110px;
  }

  .post-featured-mark span {
    font-size: 2.6rem;
  }

  .post-grid,
  .post-grid-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card {
    min-height: 0;
  }

  .post-author {
    flex-direction: column;
    padding: 24px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .faq-more {
    padding: 26px;
  }

  .faq-more .button {
    width: 100%;
  }
}
