/* ========================================
   INDEPAR - Encabezado con foto y detalles visuales (IND-0376; v2 sin guinda, IND-0377)
   Ámate Hoy y Círculos: el texto a la izquierda y la foto a la derecha, con un marco dorado desfasado;
   en el celular la foto va arriba. Cada círculo lleva su color (el mismo de su tarjeta en /comunidad/circulos/).
   Solo diseño: ningún texto cambia. Usa los tokens de styles.vN.css.
   ======================================== */

/* --- Encabezado con foto ---
   v2 (IND-0377): fondo claro con el color de la sección (arena, durazno, rosa, terracota o gris).
   Sin guinda: el vino queda solo como acento pequeño (decisión del CEO, 12-nov-2026). */
.fhero {
  --fhero-color: var(--acento);
  position: relative;
  overflow: hidden;
  padding: 3.6rem 0 4rem;
  color: var(--texto);
  background: linear-gradient(135deg, color-mix(in srgb, var(--fhero-color) 30%, var(--blanco)) 0%, var(--fondo-alt) 72%);
  border-bottom: 1px solid var(--linea);
}

.fhero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--fhero-color) 22%, transparent) 0%, transparent 55%);
  pointer-events: none;
}

.fhero .container { position: relative; z-index: 1; }

.fhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.2rem;
  align-items: center;
}

.fhero__texto { text-align: left; }

.fhero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--acento-texto);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fhero__eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fhero__eyebrow a:hover { color: var(--texto); }

.fhero h1 {
  margin: 0;
  color: var(--texto);
  font-size: clamp(2.2rem, 4.4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.fhero .gold-line { margin: 1.15rem 0 0; background: var(--acento-texto); }

.fhero__frase {
  margin: 1.15rem 0 0;
  max-width: 36ch;
  color: var(--texto);
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

.fhero__meta {
  margin: 1.1rem 0 0;
  color: var(--texto-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.fhero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.fhero__foto {
  position: relative;
  display: block;
  margin: 0 14px 14px 0;
}

.fhero__foto::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid color-mix(in srgb, var(--fhero-color) 70%, var(--acento-texto));
  border-radius: 16px;
  opacity: 0.8;
}

.fhero__foto img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--foco, center);
  border-radius: 16px;
  box-shadow: 0 22px 44px rgb(var(--superficie-oscura-rgb) / 0.2);
}

/* Color por sección (paleta del logo sin el vino) */
.fhero--arena { --fhero-color: var(--acento); }
.fhero--durazno { --fhero-color: var(--acento-claro); }
.fhero--rosa { --fhero-color: var(--rosa); }
.fhero--terracota { --fhero-color: var(--acento-texto); }
.fhero--gris { --fhero-color: var(--gris-1); }

/* Círculos */
.fhero--descubre { --fhero-color: var(--rosa); }
.fhero--emprende { --fhero-color: var(--acento-claro); }
.fhero--construye { --fhero-color: var(--acento); }
.fhero--disena { --fhero-color: var(--acento-texto); }
.fhero--vive { --fhero-color: var(--gris-1); }

@media (max-width: 860px) {
  .fhero { padding: 1.6rem 0 2.6rem; }
  .fhero__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .fhero__foto { order: -1; margin: 0; }
  .fhero__foto::before { display: none; }
  .fhero__foto img { aspect-ratio: 16 / 10; border-radius: 12px; box-shadow: 0 12px 28px rgb(var(--superficie-oscura-rgb) / 0.18); }
  .fhero__frase { font-size: 1.15rem; }
  .fhero__btns .com__btn { width: 100%; text-align: center; }
}

/* --- Color de acento de cada círculo en el resto de su página --- */
.circ { --circ-acento: var(--acento-texto); }
.circ--descubre { --circ-acento: var(--rosa); }
.circ--emprende { --circ-acento: color-mix(in srgb, var(--acento-claro) 62%, var(--texto)); }
.circ--construye { --circ-acento: color-mix(in srgb, var(--acento) 58%, var(--texto)); }
.circ--disena { --circ-acento: var(--acento-texto); }
.circ--vive { --circ-acento: var(--gris-2); }

.circ .circ__estado { border-left-color: var(--circ-acento); }
.circ .circ__temario li::before { background: var(--circ-acento); }

/* «¿Es para ti?»: lista con íconos en dos columnas, sin cajas (más ligera que tarjetas) */
.circ .circ__tarjetas {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.4rem 2.4rem;
}

.circ .circ__tarjetas li {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  padding: 0.95rem 0 0.95rem 2.6rem;
  font-size: 1.05rem;
}

.circ .circ__tarjetas li::before {
  left: 0;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  background-color: var(--circ-acento);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.85rem;
}

/* Tarjetas de los cinco círculos con su foto */
.circ-card { overflow: hidden; padding-top: 0; }

.circ-card__foto {
  display: block;
  margin: 0 -1.5rem 0.6rem;
}

.circ-card__foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: var(--foco, center);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a.circ-card:hover .circ-card__foto img { transform: scale(1.03); }

/* Barra fija abajo con la invitación (como «Apartar mi lugar» en las actividades) */
.circ-barra {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.96);
  border-top: 1px solid var(--linea);
  box-shadow: 0 -6px 18px rgb(var(--superficie-oscura-rgb) / 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.circ-barra__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.circ-barra__txt { margin: 0; line-height: 1.3; }
.circ-barra__txt strong { display: block; font-family: 'Merriweather', Georgia, serif; color: var(--texto); font-size: 1rem; }
.circ-barra__txt span { color: var(--texto-2); font-size: 0.88rem; }
.circ-barra .com__btn { white-space: nowrap; }

@media (max-width: 520px) {
  .circ-barra__txt span { display: none; }
  .circ-barra .com__btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .circ-card__foto img { transition: none; }
  a.circ-card:hover .circ-card__foto img { transform: none; }
}
