/* ============================================================
   FORMAS DE ALOJARSE — Page styles
   ============================================================ */

/* ── Page hero ── */
.formas-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.formas-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.formas-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.formas-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 5, 0.55) 0%,
    rgba(5, 14, 5, 0.78) 100%
  );
  z-index: 1;
}

.formas-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  padding: var(--sp-8) clamp(2rem, 7vw, 5rem);
}

.formas-hero__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-2);
}

.formas-hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--sp-3);
}

.formas-hero__intro {
  font-size: clamp(0.9rem, 1.2vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Sticky tab bar ── */
.formas-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.formas-tabs__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.formas-tabs__inner::-webkit-scrollbar { display: none; }

.formas-tab {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}

.formas-tab:hover { color: var(--clr-dark); }

.formas-tab.is-active {
  color: var(--clr-gold);
  border-bottom-color: var(--clr-gold);
}

/* ── Content sections — two-column split ── */
.formas-main {
  background: var(--clr-white);
}

.formas-section {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 7vw, 5rem);
  border-bottom: 1px solid #e8e3dc;
  align-items: center;
  background: var(--clr-white);
}

.formas-section:nth-child(even) {
  background: #fbf9f6;
}

.formas-section:last-child {
  border-bottom: none;
}

/* Text content column */
.formas-section__content {
  display: flex;
  flex-direction: column;
}

/* Big decorative number */
.formas-section__num {
  font-family: var(--ff-heading);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  color: rgba(196, 146, 42, 0.13);
  line-height: 1;
  margin-bottom: 0.25rem;
  display: block;
  letter-spacing: -0.02em;
}

/* Title */
.formas-section__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-3);
}

.formas-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: 2px;
}

/* Body paragraphs */
.formas-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.formas-section__body p {
  font-size: clamp(0.9rem, 1vw, 1.0625rem);
  color: #3a4a3a;
  line-height: 1.8;
}

/* Image column — contained box with gradient fade */
.formas-section__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* Gradient fade: left side dissolves into section background */
.formas-section__media::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.formas-section:nth-child(even) .formas-section__media::before {
  background: linear-gradient(to right, #fbf9f6 0%, transparent 100%);
}

.formas-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.formas-section:hover .formas-section__img {
  transform: scale(1.04);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .formas-section {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  }

  .formas-section__media {
    order: -1;
    height: 240px;
  }

  /* Left gradient becomes top gradient on mobile */
  .formas-section__media::before,
  .formas-section:nth-child(even) .formas-section__media::before {
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
  }

  .formas-section:nth-child(even) .formas-section__media::before {
    background: linear-gradient(to bottom, #fbf9f6 0%, transparent 100%);
  }
}

@media (max-width: 600px) {
  .formas-hero {
    height: auto;
    min-height: 300px;
    align-items: flex-end;
  }

  .formas-hero__content {
    padding: var(--sp-6) var(--sp-4);
  }

  .formas-tabs__inner {
    justify-content: flex-start;
    padding: 0 var(--sp-4);
  }

  .formas-tab {
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
  }

  .formas-section {
    padding: var(--sp-7) var(--sp-4);
  }

  .formas-section__media {
    height: 200px;
  }
}
