/* ─── Community Section ──────────────────────────────────────────────
   "Únete a la Comunidad" — 2 cards 50/50 (Layout A)
   ─────────────────────────────────────────────────────────────────── */

.comm-section {
  background: #fff;
  padding-bottom: 80px;
}

/* ══════════════════════════════════════════════════════════════════
   HEADING — centrado
   ══════════════════════════════════════════════════════════════════ */
.comm-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

.comm-head__eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lifan-red);
  margin-bottom: 12px;
}

.comm-head__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--lifan-brand-dark);
  line-height: 1.1;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   GRID — 50/50
   ══════════════════════════════════════════════════════════════════ */
.comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════════════════ */
.comm-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 480px;
  cursor: pointer;
  outline: none;
}

/* Top gradient line — slides in on hover */
.comm-card__top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lifan-red), var(--lifan-blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: 3;
}
.comm-card:hover .comm-card__top-line,
.comm-card:focus-within .comm-card__top-line {
  transform: scaleX(1);
}

/* Background image */
.comm-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.comm-card:hover .comm-card__bg,
.comm-card:focus-within .comm-card__bg {
  transform: scale(1.06);
}

/* Dark overlay — gradient from bottom */
.comm-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,34,.9) 0%, rgba(10,8,34,.25) 55%, transparent 100%);
  transition: background .3s ease;
}
.comm-card:hover .comm-card__overlay,
.comm-card:focus-within .comm-card__overlay {
  background: linear-gradient(to top, rgba(10,8,34,.95) 0%, rgba(10,8,34,.5) 100%);
}

/* Body — pinned to bottom */
.comm-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  z-index: 2;
}

/* Label */
.comm-card__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lifan-red);
  display: block;
  margin-bottom: 8px;
}

/* Title */
.comm-card__title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}

/* Description — reveals on hover */
.comm-card__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.comm-card:hover .comm-card__desc,
.comm-card:focus-within .comm-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA */
.comm-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s ease;
}
.comm-card__cta:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .comm-card { height: 360px; }
}

@media (max-width: 640px) {
  .comm-grid { grid-template-columns: 1fr; }
  .comm-card { height: 320px; }
  .comm-card__desc { display: none; }
}
