/* FAQ · Preguntas frecuentes con sistema visual homogéneo */
.faq-page .page-hero .narrow {
  width: min(1040px, var(--container));
}

.faq-page .page-hero h1 {
  max-width: 980px;
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.faq-page .page-hero p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(16px, 1.28vw, 18px);
  line-height: 1.76;
  text-align: center;
  text-align-last: center;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: normal;
}

.faq-main-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(58px, 6.4vw, 88px);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 115, 51, .07), transparent 32%),
    radial-gradient(circle at 92% 45%, rgba(184, 115, 51, .052), transparent 30%),
    linear-gradient(180deg, #fffdfb 0%, #fff9f4 58%, #fffdfb 100%);
}

.faq-main-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 92px, rgba(184, 115, 51, .034) 93px, transparent 94px),
    linear-gradient(180deg, transparent 0 88px, rgba(184, 115, 51, .016) 89px, transparent 90px);
  background-size: 94px 100%, 100% 90px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  opacity: .55;
}

.faq-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
  width: min(1120px, calc(100% - 40px));
}

.faq-editorial-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .68fr);
  column-gap: clamp(36px, 6vw, 88px);
  row-gap: 12px;
  align-items: end;
  padding-top: clamp(30px, 3.4vw, 44px);
  border-top: 0;
}

.faq-editorial-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 115, 51, .82), transparent);
  box-shadow: 0 0 12px rgba(184, 115, 51, .14);
  pointer-events: none;
}

.faq-editorial-head .eyebrow {
  grid-column: 1;
  display: block;
  width: fit-content;
  margin: 0 0 16px;
  line-height: 1.35;
}

.faq-editorial-head h2 {
  grid-column: 1;
  max-width: 700px;
  margin: 0;
  color: var(--color-brown);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.024em;
}

.faq-editorial-head p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 620px;
  margin: 0 0 5px;
  padding: clamp(6px, .7vw, 12px) 0 0 22px;
  border-left: 1px solid rgba(184, 115, 51, .30);
  color: var(--color-text);
  font-size: clamp(15px, 1.04vw, 16px);
  line-height: 1.84;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: .01em;
}

.faq-list {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  width: 100%;
}

.faq-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 251, .98), rgba(255, 249, 244, .98));
  border: 1px solid rgba(74, 52, 40, .115);
  box-shadow: 0 18px 46px rgba(74, 52, 40, .065);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.faq-item::before {
  content: none;
}

.faq-item::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 58px;
  height: 36px;
  border-top: 1px solid rgba(184, 115, 51, .20);
  border-right: 1px solid rgba(184, 115, 51, .13);
  pointer-events: none;
  opacity: .50;
  transition: opacity .24s ease, transform .24s ease, border-color .24s ease;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    transform: translateY(-2px);
  }
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(184, 115, 51, .34);
  background: linear-gradient(180deg, rgba(255, 253, 251, 1), rgba(255, 246, 238, 1));
  box-shadow: 0 22px 48px rgba(74, 52, 40, .105);
}

.faq-item:hover::after,
.faq-item.is-open::after {
  opacity: .86;
  transform: translate(-2px, 2px);
}

.faq-question {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(24px, 2.8vw, 32px) clamp(24px, 3vw, 36px);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-brown);
  text-align: left;
}

.faq-number {
  display: inline-flex;
  width: fit-content;
  color: rgba(184, 115, 51, .92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1;
}

.faq-number::after {
  content: none;
}

.faq-question-text {
  min-width: 0;
  max-width: 880px;
  color: var(--color-brown);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.faq-question strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid rgba(184, 115, 51, .30);
  background: rgba(184, 115, 51, .08);
  color: var(--color-copper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform .22s ease,
    background-color .22s ease,
    color .22s ease,
    border-color .22s ease;
}

.faq-answer {
  position: relative;
  z-index: 1;
  height: 0;
  overflow: hidden;
  transition: height .22s cubic-bezier(.22, 1, .36, 1);
  will-change: height;
  contain: layout paint;
}

.faq-answer p {
  min-height: 0;
  max-width: 980px;
  margin: 0;
  padding: 0 clamp(24px, 3vw, 36px) clamp(22px, 2.5vw, 30px) calc(clamp(24px, 3vw, 36px) + 48px);
  color: var(--color-text);
  font-size: 15.1px;
  line-height: 1.82;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: normal;
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition:
    opacity .12s ease,
    transform .18s cubic-bezier(.22, 1, .36, 1);
}

.faq-item.is-open .faq-answer p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-item.is-open .faq-question strong {
  transform: rotate(45deg);
  background: var(--color-copper);
  border-color: var(--color-copper);
  color: var(--color-white);
}

.faq-note-section {
  background: linear-gradient(180deg, rgba(184, 115, 51, .065), rgba(184, 115, 51, .024));
  color: var(--color-text);
}

.faq-note-section .prose {
  max-width: 900px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.faq-note-section .prose::before {
  content: none;
}

.faq-note-section .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.faq-note-section .prose h2 {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--color-brown);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-align: center;
}

.faq-note-section .prose p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
  line-height: 1.72;
  text-align: center;
  text-align-last: center;
  hyphens: none;
  overflow-wrap: break-word;
}

@media (max-width: 1080px) {
  .faq-editorial-head {
    grid-template-columns: 1fr;
  }

  .faq-editorial-head .eyebrow,
  .faq-editorial-head h2,
  .faq-editorial-head p {
    grid-column: 1;
    grid-row: auto;
  }

  .faq-editorial-head p {
    max-width: 760px;
    margin-top: 4px;
  }
}

@media (max-width: 680px) {
  .faq-page .page-hero h1 {
    font-size: clamp(33px, 9.4vw, 44px);
  }

  .faq-page .page-hero p,
  .faq-editorial-head p,
  .faq-answer p {
    text-align: left;
    text-align-last: left;
  }

  .faq-content {
    width: min(100% - 28px, 1120px);
    gap: 26px;
  }

  .faq-editorial-head {
    padding-top: 24px;
  }

  .faq-question {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 22px;
  }

  .faq-number {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .faq-question strong {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .faq-answer p {
    padding-left: 22px;
    padding-right: 22px;
    font-size: 14.9px;
  }

  .faq-note-section .prose p {
    text-align: center;
    text-align-last: center;
  }
}

@media (max-width: 420px) {
  .faq-question {
    padding: 20px;
  }

  .faq-answer p {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item::after,
  .faq-question strong,
  .faq-answer,
  .faq-answer p {
    transition: none;
  }

  .faq-item:hover,
  .faq-item.is-open {
    transform: none;
  }
}
