/*
  Organized (no functional changes) on 2026-01-08
  - Merged consecutive duplicate selectors
  - Removed exact duplicate declarations
*/

/* =========================
   QUIÉNES — FULL PAGE CSS
   ========================= */
/* Base helpers (only for this page) */
.about-grid p {
  text-align: center;
  margin: 0;
}

/* ===== Section dividers ===== */
.section-divider {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--sun), var(--accent));
  margin: 0 0 16px;
}

.subsection-divider {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--sun));
  opacity: 0.85;
  margin: 10px 0 10px;
}

/* =========================
   ABOUT / INTRO CARDS
   ========================= */
.about-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

.about-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  min-height: 100%;
}

.about-card p {
  line-height: 1.45;
  opacity: .92;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

/* Responsive about grid */
@media (max-width: 980px) {
  .about-card {
    grid-column: span 12;
  }
}

/* =========================
   TEAM SECTION — NEW MODEL
   ========================= */
.team {
  margin-top: 24px;
}

.team-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* Team Card */
.team-card {
  grid-column: span 4;
  /* 3 cards per row on desktop */
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

/* Image frame (this fixes "not fit") */
.team-media {
  width: 100%;
  height: 240px;
  /* desktop image height */
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,.06);
}

/* Supports BOTH HTML patterns:
   A) <img class="team-photo" ...>
   B) <div class="team-photo"><img ...></div>
*/
.team-media > img,
.team-media .team-photo,
.team-media .team-photo > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Team Body */
.team-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.team-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  color: #f6af17;
}

.team-role {
  color: #bbd370;
  margin-top: -2px;
  line-height: 1.2;
}

/* Bio/Social swap area */
.team-swap {
  margin-top: 8px;
  min-height: 84px;
  position: relative;
}

/* Bio */
.team-bio {
  margin: 0;
  line-height: 1.45;
  opacity: 1;
  transition: opacity .18s ease;
}

/* Social overlay */
.team-social {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.team-card:hover .team-bio {
  opacity: 0;
}

.team-card:hover .team-social {
  opacity: 1;
  pointer-events: auto;
}

.team-social a {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.75);
  transition: transform .15s ease;
}

.team-social a:hover {
  transform: translateY(-1px);
}

.team-social .icon {
  font-weight: 900;
  font-size: 18px;
}

/* Team Responsive */
@media (max-width: 980px) {
  .team-card {
    grid-column: span 6;
  }

  /* 2 per row */
  .team-media {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .team-card {
    grid-column: span 12;
  }

  /* 1 per row */
  .team-media {
    height: 210px;
  }
}

/* Optional: slightly taller images on big desktop */
@media (min-width: 1200px) {
  .team-media {
    height: 260px;
  }
}

/* =========================
   OPTIONAL ACCESSIBILITY
   ========================= */
.team-social a:focus-visible {
  outline: 3px solid rgba(169,200,91,.55);
  outline-offset: 4px;
  border-radius: 14px;
}

/* =========================
   TEAMX — NEW MODEL (SAFE)
   ========================= */
.teamX {
  margin-top: 26px;
}

.teamX-head {
  text-align: center;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.teamX-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: .2px;
}

.teamX-sub {
  margin: 0 auto;
  max-width: 52ch;
  opacity: .8;
  line-height: 1.35;
}

/* Grid */
.teamX-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* Card */
.teamX-card {
  grid-column: span 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(31,42,31,.12);
  background: rgba(255,255,255,.76);
  box-shadow: 0 22px 44px rgba(0,0,0,.10);
  display: grid;
  grid-template-rows: 230px 1fr;
  transition: transform .18s ease, box-shadow .18s ease;
}

.teamX-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(0,0,0,.14);
}

/* Image */
.teamX-media {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}

.teamX-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform .25s ease;
}

.teamX-card:hover .teamX-media img {
  transform: scale(1.07);
}

/* Readability overlay */
.teamX-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.42),
    rgba(0,0,0,.10) 60%,
    rgba(0,0,0,0)
  );
  pointer-events: none;
}

/* Body */
.teamX-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.teamX-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.teamX-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
}

.teamX-pill {
  font-size: .9rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,31,.12);
  background: rgba(207,226,138,.32);
  white-space: nowrap;
}

.teamX-bio {
  margin: 0;
  opacity: .82;
  line-height: 1.45;
}

/* Links */
.teamX-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.teamX-ico {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(31,42,31,.12);
  background: rgba(255,255,255,.88);
  text-decoration: none;
  font-weight: 900;
  transition: transform .15s ease;
  color: inherit;
}

.teamX-ico:hover {
  transform: translateY(-1px);
}

.teamX-ico:focus-visible {
  outline: 3px solid rgba(169,200,91,.55);
  outline-offset: 4px;
  border-radius: 14px;
}

/* Responsive */
@media (max-width: 980px) {
  .teamX-card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .teamX-card {
    grid-column: span 12;
    grid-template-rows: 240px 1fr;
  }
}

/* =========================
   TEAMZ — CREATIVE DESIGN (no cards, 3 per row, hover reveal)
   Uses Font Awesome icons (fa-*). Ensure FA is loaded in your <head>.
   ========================= */
.teamZ {
  margin-top: 26px;
  position: relative;
  isolation: isolate;
}

.teamZ::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  background: radial-gradient(900px 260px at 10% 0%, rgba(187,211,112,.22), transparent 60%),
    radial-gradient(900px 260px at 95% 10%, rgba(246,175,23,.18), transparent 60%),
    radial-gradient(1100px 320px at 50% 100%, rgba(169,200,91,.18), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
}

.teamZ-head {
  text-align: center;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.teamZ-kicker {
  margin: 0 auto;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,31,.12);
  background: rgba(255,255,255,.85);
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .9;
}

.teamZ-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: .2px;
}

.teamZ-sub {
  margin: 0 auto;
  max-width: 62ch;
  opacity: .82;
  line-height: 1.4;
}

/* 3 per row */
.teamZ-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: start;
}

.teamZ-item {
  display: grid;
  gap: 10px;
  justify-items: center;
}

/* Bigger organic photo shape (more forgiving for images) */
.teamZ-photoWrap {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 36% 64% 54% 46% / 44% 34% 66% 56%;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,.06);
  box-shadow: 0 18px 34px rgba(0,0,0,.14);
  outline: 1px solid rgba(31,42,31,.10);
  cursor: pointer;
}

.teamZ-front,
.teamZ-back {
  position: absolute;
  inset: 0;
}

.teamZ-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.04);
}

/* Subtle shading for readability + polish */
.teamZ-frontShade {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 240px at 20% 10%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,.22), rgba(0,0,0,0) 55%);
  pointer-events: none;
}

/* Back overlay shows bio + icons */
.teamZ-back {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  background: rgba(255,255,255,.92);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .22s ease, transform .22s ease;
}

.teamZ-photoWrap:hover .teamZ-back {
  opacity: 1;
  transform: scale(1);
}

/* Bio list */
.teamZ-bio {
  opacity: .9;
  line-height: 1.45;
}

.teamZ-bio ul {
  margin: 0;
  padding-left: 18px;
}

.teamZ-bio li {
  margin: 7px 0;
}

/* Icons */
.teamZ-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.teamZ-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(31,42,31,.12);
  background: rgba(255,255,255,.96);
  text-decoration: none;
  color: rgba(31,42,31,.92);
  transition: transform .15s ease;
}

.teamZ-ico i {
  font-size: 18px;
  line-height: 1;
}

.teamZ-ico:hover {
  transform: translateY(-1px);
}

/* Name/role OUTSIDE shape */
.teamZ-meta {
  text-align: center;
  display: grid;
  gap: 6px;
}

.teamZ-name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
  color: #f6af17;
}

.teamZ-role {
  margin: 0;
  font-weight: 900;
  opacity: .86;
  font-size: .95rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .teamZ-back {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .teamZ-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teamZ-photoWrap {
    width: min(360px, 100%);
  }
}

@media (max-width: 640px) {
  .teamZ-grid {
    grid-template-columns: 1fr;
  }

  .teamZ-photoWrap {
    width: min(360px, 100%);
  }

  /* On touch devices, keep back visible on tap/focus */
}

/* on touch screens: don't rely on hover — keep it readable */
.teamZ-inner {
  min-height: 520px;
}

}

  .teamZ-media {
  height: 220px;
}

.teamZ-card--featured .teamZ-media {
  height: 240px;
}

.teamZ-social {
  opacity: 1;
  transform: none;
}

}


/* Mobile click support */
.teamZ-photoWrap.is-active .teamZ-back {
  opacity: 1;
  transform: scale(1);
}
/* FIX social icons not clickable on mobile */
.team-social,
.team-social a {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .team-card::before,
  .team-card::after {
    pointer-events: none;
  }
}
.team-overlay {
  pointer-events: none;
}

.team-overlay a {
  pointer-events: auto;
}
