/* =========================================================================
   SOMOS ERA — Páginas internas (Colabora · Contacto)
   Reusa tokens de styles.css. Calma, aire, serif y oro.
   ========================================================================= */

.page {
  position: relative;
  z-index: 10;
  padding: clamp(120px, 18vh, 200px) var(--gutter) 0;
}

/* ---- Hero interno (calmo, no es el descenso del home) ---- */
.page-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(80px, 14vh, 160px);
}
.page-hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--oro-soft);
  opacity: 0.85;
  margin-bottom: 30px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1.04;
  color: var(--beige);
  margin-bottom: 30px;
}
.page-hero h1 em { color: var(--oro-soft); font-style: italic; }
.page-hero__lead p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.6;
  color: rgba(240,230,210,0.86);
  margin: 0 auto 18px;
  max-width: 600px;
}
.page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero__actions { margin-top: 42px; }

/* ---- Secciones genéricas ---- */
.page-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) 0;
  position: relative;
}
.page-section + .page-section { border-top: 1px solid rgba(201,162,74,0.14); }

.page-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vh, 80px);
}
.page-section__head .page-hero__eyebrow { margin-bottom: 22px; }
.page-section__head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  color: var(--beige);
}
.page-section__head h2 em { color: var(--oro-soft); font-style: italic; }
.page-section__head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(240,230,210,0.8);
  line-height: 1.6;
  margin-top: 18px;
}

/* ---- Listado vertical "experiencias reales" ---- */
.era-litany {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.era-litany p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(240,230,210,0.92);
  margin: 0;
}
.era-litany span {
  display: block;
  font-style: italic;
  color: var(--beige);
  margin: 6px 0;
}
.era-litany .era-litany__close {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--oro-soft);
  margin-top: 40px;
}

/* ---- Valores: con quién colaboramos (4) ---- */
.colab-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 900px;
  margin: 0 auto;
}
.colab-value { text-align: center; }
.colab-value__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  color: var(--oro-soft);
}
.colab-value__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.colab-value h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--beige);
  margin-bottom: 12px;
}
.colab-value p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(240,230,210,0.72);
  max-width: 320px;
  margin: 0 auto;
}

/* ---- Cómo funciona (3 pasos) ---- */
.colab-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: 940px;
  margin: 0 auto;
}
.colab-step { text-align: center; }
.colab-step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 7vw, 72px);
  color: var(--oro);
  line-height: 1;
  display: block;
  margin-bottom: 22px;
  opacity: 0.9;
}
.colab-step p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: rgba(240,230,210,0.88);
  max-width: 260px;
  margin: 0 auto;
}

/* ---- Formulario (cajas institucionales, legibles) ---- */
.era-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.era-field { text-align: left; }
.era-field--full { grid-column: 1 / -1; }
.era-field label.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.era-field input,
.era-field select,
.era-field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--beige);
  background: rgba(240,230,210,0.03);
  border: 1px solid rgba(201,162,74,0.30);
  border-radius: 8px;
  padding: 15px 18px;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  cursor: auto;
}
.era-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.era-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A24A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}
.era-field select option { background: var(--cosmos-deep); color: var(--beige); }
.era-field input::placeholder,
.era-field textarea::placeholder { color: rgba(240,230,210,0.4); }
.era-field input:focus,
.era-field select:focus,
.era-field textarea:focus {
  outline: none;
  border-color: var(--oro);
  background: rgba(240,230,210,0.05);
}

.era-form__submit { grid-column: 1 / -1; margin-top: 14px; text-align: center; }
.era-form__submit .era-btn { min-width: 230px; }

/* ---- Confirmación post-envío ---- */
.era-confirm {
  max-width: 600px;
  margin: clamp(56px, 9vh, 110px) auto 0;
  text-align: center;
}
.era-confirm__ornament {
  font-family: var(--serif);
  color: var(--oro);
  letter-spacing: 0.4em;
  font-size: 16px;
  margin-bottom: 28px;
  opacity: 0.8;
}
.era-confirm p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.65;
  color: rgba(240,230,210,0.82);
  margin: 0 auto 16px;
}
.era-confirm p:first-of-type {
  font-size: clamp(22px, 3vw, 30px);
  font-style: normal;
  color: var(--beige);
}

/* Mensaje que aparece tras enviar el formulario */
.era-sent {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vh, 70px) 0;
}
.era-sent.is-shown { display: block; animation: eraFade 0.9s ease both; }
@keyframes eraFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.era-sent .era-confirm__ornament { margin-bottom: 24px; }

/* ---- Prosa editorial (Conoce ERA / Políticas) ---- */
.era-prose {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.era-prose p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240,230,210,0.86);
  margin: 0 auto 20px;
}
.era-prose p:last-child { margin-bottom: 0; }
.era-prose strong { color: var(--beige); font-weight: 400; }
.era-prose a { color: var(--oro-soft); border-bottom: 1px solid rgba(201,162,74,0.4); }

/* ---- Preguntas y respuestas (resumen IA-first / ayuda) ---- */
.era-qa {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px);
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.era-qa__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 25px);
  color: var(--oro-soft);
  margin-bottom: 10px;
}
.era-qa__item p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(240,230,210,0.74);
}
@media (max-width: 680px){ .era-qa { grid-template-columns: 1fr; } }

/* ---- FAQ acordeón mínimo ---- */
.faq { max-width: 720px; margin: 0 auto; text-align: left; }
.faq__item { border-bottom: 1px solid rgba(201,162,74,0.18); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); color: var(--beige);
  padding: 22px 36px 22px 0; position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--oro); font-family: var(--sans); font-weight: 300; transition: transform .3s; }
.faq__item.open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq__item.open .faq__a { max-height: 360px; padding-bottom: 22px; }
.faq__a p { font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; color: rgba(240,230,210,0.74); }

/* ---- Colabora · dos caminos ---- */
.colab-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 30px);
  max-width: 980px;
  margin: 0 auto;
}
.colab-card {
  background: rgba(240,230,210,0.03);
  border: 1px solid rgba(201,162,74,0.22);
  border-radius: 16px;
  padding: clamp(30px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: border-color .4s, background .4s;
}
.colab-card:hover { border-color: rgba(201,162,74,0.5); background: rgba(240,230,210,0.05); }
.colab-card__icon { width: 68px; height: 68px; margin: 0 auto 22px; border: 1px solid rgba(201,162,74,0.42); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--oro-soft); }
.colab-card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.colab-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3vw, 32px); color: var(--beige); margin-bottom: 16px; }
.colab-card > p { font-family: var(--sans); font-weight: 300; font-size: 15.5px; line-height: 1.7; color: rgba(240,230,210,0.74); margin: 0 auto 26px; max-width: 360px; }
.colab-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 28px; }
.colab-perk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(240,230,210,0.7); line-height: 1.45; }
.colab-perk svg { width: 22px; height: 22px; display: block; margin: 0 auto 8px; fill: none; stroke: var(--oro-soft); stroke-width: 1.4; }
.colab-card .era-btn { margin-top: auto; align-self: center; }

/* Colabora · forma de colaborar (5 valores) */
.colab-forma { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1060px; margin: 0 auto; }
.colab-forma__item { text-align: center; padding: 0 16px; border-right: 1px solid rgba(201,162,74,0.14); }
.colab-forma__item:last-child { border-right: 0; }
.colab-forma__icon { width: 62px; height: 62px; margin: 0 auto 18px; border: 1px solid rgba(201,162,74,0.42); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--oro-soft); }
.colab-forma__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.colab-forma h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 2.2vw, 24px); color: var(--beige); margin-bottom: 10px; }
.colab-forma p { font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.6; color: rgba(240,230,210,0.68); }

/* Colabora · selector del formulario */
.era-choice { grid-column: 1 / -1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.era-choice label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240,230,210,0.7); cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(201,162,74,0.3); border-radius: 999px; padding: 11px 20px; transition: .3s;
}
.era-choice label:has(input:checked) { border-color: var(--oro); color: var(--beige); background: rgba(201,162,74,0.08); }
.era-choice input { accent-color: var(--oro); }
.era-field[data-mode] { display: none; }
.era-field[data-mode].is-active { display: block; }

@media (max-width: 780px) {
  .colab-paths { grid-template-columns: 1fr; }
  .colab-forma { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .colab-forma__item:nth-child(2n){ border-right: 0; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 92px var(--gutter) 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,230,210,0.45);
}
.breadcrumb a { color: rgba(240,230,210,0.6); transition: color .3s; }
.breadcrumb a:hover { color: var(--oro-soft); }
.breadcrumb + .page { padding-top: clamp(40px, 7vh, 90px); }

/* ---- Bloque destacado (propuesta única / phygital) ---- */
.era-highlight {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 5vh, 50px) clamp(24px, 4vw, 52px);
  border-top: 1px solid rgba(201,162,74,0.28);
  border-bottom: 1px solid rgba(201,162,74,0.28);
}
.era-highlight p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.7vw, 28px);
  line-height: 1.55;
  color: var(--beige);
  margin: 0;
}
.era-highlight strong { font-style: normal; color: var(--oro-soft); font-weight: 400; }

/* ---- Lista editorial ---- */
.era-list {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  list-style: none;
}
.era-list li {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(240,230,210,0.86);
  padding: 13px 0 13px 30px;
  position: relative;
  border-bottom: 1px solid rgba(201,162,74,0.12);
}
.era-list li:last-child { border-bottom: 0; }
.era-list li::before { content: "✦"; position: absolute; left: 0; top: 17px; color: var(--oro); font-size: 12px; }
.era-list strong { color: var(--beige); font-weight: 400; }

/* ---- Frase cierre (Contacto) ---- */
.era-quote {
  text-align: center;
  padding: clamp(90px, 16vh, 180px) var(--gutter);
  position: relative;
  z-index: 10;
}
.era-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.4;
  color: var(--beige);
  max-width: 760px;
  margin: 0 auto;
}

/* ---- Volver ---- */
.page-back {
  position: fixed;
  top: 26px;
  left: var(--gutter);
  z-index: 60;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}
.page-back:hover { opacity: 1; color: var(--oro); }
.page-back::before { content: "← "; }

@media (max-width: 760px) {
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-hero {
    max-width: 100%;
  }
  .page-hero__lead {
    width: min(100%, 280px);
    margin: 0 auto;
  }
  .page-hero__lead p {
    max-width: 100%;
    font-size: clamp(17px, 4.6vw, 19px);
  }
  .colab-values { grid-template-columns: 1fr; gap: 44px; }
  .colab-steps { grid-template-columns: 1fr; gap: 48px; }
  .page-back { position: absolute; }
}
