/**
 * BC Patrimonial — extensiones sobre site.css (Cooperativa Arrabal branding)
 */

/* Header claro desde el inicio (sin hero cinematográfico) */
.header--light {
  top: 2.15rem;
  background: rgba(249, 246, 241, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border-soft);
  box-shadow: 0 6px 24px rgba(18, 53, 62, 0.08);
}

.header--light.header--scrolled {
  top: 0;
}

.logo-mark--img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(26, 74, 86, 0.25);
  object-fit: cover;
}

.logo-text--stack {
  display: flex; flex-direction: column; gap: 0;
  line-height: 1.1; min-width: 0;
}
.logo-kicker {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--color-accent); font-weight: 700; }
.logo-sub {
  margin-top: 0.12rem;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-text-muted);
}
@media (max-width: 480px) {
  .logo-name { font-size: 1.08rem; }
  .logo-kicker { font-size: 0.55rem; letter-spacing: 0.1em; }
}

.hero--bc {
  padding-top: 6.5rem;
}

.hero--bc .hero-visual {
  aspect-ratio: 12 / 7;
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.hero--bc .hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero--bc .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero--bc .hero-card {
  overflow: hidden;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.55rem;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.pain-card .bc-card-media {
  margin: -1.35rem -1.4rem 1rem;
  border-radius: 0;
}

.bc-typo {
  overflow: hidden;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.bc-team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.bc-couple-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin: 0 0 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg-strong);
  align-items: stretch;
}

.bc-couple-feature__media {
  position: relative;
  min-height: 100%;
  background: var(--color-primary-dark);
}

.bc-couple-feature__media picture {
  display: block;
  height: 100%;
}

.bc-couple-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.bc-couple-feature__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background:
    linear-gradient(165deg, rgba(26, 74, 86, 0.08) 0%, rgba(249, 246, 241, 0.98) 55%),
    var(--color-bg-alt);
  border-left: 1px solid var(--glass-border-soft);
}

.bc-couple-feature__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
}

.bc-couple-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0;
}

.bc-couple-feature__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 34ch;
}

.profile-copy {
  max-width: 52rem;
}

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .bc-team-cards { grid-template-columns: 1fr; }

  .bc-couple-feature {
    grid-template-columns: 1fr;
  }

  .bc-couple-feature__caption {
    border-left: none;
    border-top: 1px solid var(--glass-border-soft);
    text-align: center;
    align-items: center;
  }

  .bc-couple-feature__lead {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .bc-couple-feature__media img {
    min-height: 280px;
    max-height: 420px;
    object-position: center 20%;
  }
}

.profile-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(18, 53, 62, 0.2);
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}

.profile-card .role {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.profile-highlights span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.profile-copy p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-section {
  background: var(--color-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-panel {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
}

.contact-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-list strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.contact-list a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.contact-form-wrap .mf-form {
  margin-top: 0;
}

.bc-legal-note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: #fff8e6;
  border: 1px solid #e8d5a0;
  font-size: 0.8125rem;
  color: #5c4a1a;
  line-height: 1.55;
}

.package-grid .step-card ul {
  list-style: none;
  margin-top: 0.85rem;
  text-align: left;
  display: grid;
  gap: 0.45rem;
}

.package-grid .step-card li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.package-grid .step-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ── Imágenes de refuerzo ── */
.bc-card-media {
  margin: -0.25rem -0.25rem 1rem;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) var(--radius-md) var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
}

.bc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pain-card:hover .bc-card-media img,
.step-card:hover .bc-card-media img,
.bc-typo:hover .bc-card-media img {
  transform: scale(1.03);
}

.bc-typo .bc-card-media {
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

.step-card .bc-card-media {
  margin: -1.35rem -1.35rem 1.1rem;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
}

.step-card--primary .bc-card-media {
  margin: -1.5rem -1.5rem 1.1rem;
}

.bc-visual-band {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.bc-visual-band__bg {
  position: absolute;
  inset: 0;
}

.bc-visual-band__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bc-visual-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.bc-deliverables__visual img,
.bc-compare__item img {
  height: auto;
}

.bc-visual-band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 31, 37, 0.92) 0%,
    rgba(18, 53, 62, 0.55) 45%,
    rgba(18, 53, 62, 0.88) 100%
  );
}

.bc-visual-band__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0;
  max-width: 46rem;
}

.bc-visual-band__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-sand-light);
  margin-bottom: 1rem;
}

.bc-visual-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.bc-visual-band__lead {
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.65;
  max-width: 42ch;
  margin-inline: auto;
}

.bc-deliverables {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .bc-deliverables {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.bc-deliverables__visual {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--glass-shadow);
  align-self: start;
  margin: 0;
}

.bc-deliverables__visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 8px);
  display: block;
}

@media (max-width: 768px) {
  .bc-deliverables__visual {
    padding: 0.5rem;
  }

  .bc-deliverables__visual img {
    aspect-ratio: 3 / 2;
    object-fit: contain;
    min-height: 0;
  }
}

.bc-deliverables__caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

.bc-deliverables__list {
  display: grid;
  gap: 0.85rem;
}

.bc-deliverable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.bc-deliverable__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.bc-deliverable h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.bc-deliverable p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bc-process-visual {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg-strong);
  padding: 0.65rem;
}

.bc-process-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 6px);
  object-fit: contain;
}

.bc-profiles-banner {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--color-bg-alt);
}

.bc-profiles-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.profile-avatar--photo {
  padding: 0;
  overflow: hidden;
  background: none;
}

.profile-avatar--photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.profile-avatar--carmen img {
  object-position: center 22%;
}

.bc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .bc-compare { grid-template-columns: 1fr; }
  .bc-visual-band { min-height: 44vh; }
}

.bc-compare__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg-strong);
}

.bc-compare__item picture {
  display: block;
  width: 100%;
}

.bc-compare__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.bc-compare__item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.bc-compare__item strong {
  display: block;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.bc-project-spotlight {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #eef3f4 100%);
}

.bc-project-spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.bc-project-spotlight__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.bc-project-spotlight__visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 768px) {
  .bc-project-spotlight__inner { grid-template-columns: 1fr; }
}

/* ── Móvil: imágenes e ilustraciones ── */
@media (max-width: 768px) {
  html { overflow-x: clip; }

  .header--light .nav-toggle {
    color: var(--color-primary-dark);
    background: var(--glass-bg);
    border-color: var(--glass-border-soft);
  }

  .hero--bc {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }

  .hero--bc .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--bc .hero-ctas .btn {
    width: 100%;
  }

  .hero--bc .hero-trust {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero--bc .trust-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-visual {
    aspect-ratio: 12 / 7;
  }

  .hero--bc .hero-visual img {
    object-fit: cover;
    object-position: center 10%;
  }

  .hero-card-footer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .mini-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .mini-stat:last-child {
    border-bottom: none;
  }

  .mini-stat strong {
    flex-shrink: 0;
  }

  .mini-stat span {
    text-align: right;
  }

  .bc-card-media {
    aspect-ratio: auto;
  }

  .bc-card-media img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }

  .bc-typo .bc-card-media {
    aspect-ratio: auto;
  }

  .bc-visual-band {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .bc-visual-band__bg {
    position: relative;
    inset: auto;
    order: 0;
  }

  .bc-visual-band__bg picture {
    display: block;
    height: auto;
  }

  .bc-visual-band__bg img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .bc-visual-band__shade {
    display: none;
  }

  .bc-visual-band__content {
    position: relative;
    order: 1;
    padding: 1.75rem 0 2.25rem;
    text-align: left;
    max-width: none;
  }

  .bc-visual-band:not(.bc-visual-band--photo) {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
  }

  .bc-visual-band:not(.bc-visual-band--photo) .bc-visual-band__eyebrow {
    color: var(--color-accent);
  }

  .bc-visual-band:not(.bc-visual-band--photo) .bc-visual-band__title {
    color: var(--color-primary-dark);
  }

  .bc-visual-band:not(.bc-visual-band--photo) .bc-visual-band__lead {
    color: var(--color-text-muted);
    opacity: 1;
    max-width: none;
    margin-inline: 0;
  }

  .bc-visual-band--photo {
    background: var(--color-primary-dark);
    color: #fff;
  }

  .bc-visual-band--photo .bc-visual-band__content {
    text-align: center;
  }

  .bc-visual-band--photo .bc-visual-band__bg img {
    object-fit: cover;
    max-height: 220px;
  }

  .bc-profiles-banner {
    padding: 0.5rem;
  }

  .bc-process-visual {
    padding: 0.5rem;
  }

  .bc-deliverables__visual img {
    aspect-ratio: auto;
  }

  .bc-compare__item img {
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--color-bg-alt);
  }
}

@media (max-width: 480px) {
  .hero--bc h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .bc-profiles-banner {
    margin-bottom: 1.25rem;
  }
}
