/* Tramontana — Equipo */
/* Todo acotado a .tre-sec */

.tre-sec,
.tre-sec *,
.tre-sec *::before,
.tre-sec *::after { box-sizing: border-box; }

.tre-sec {
  width: 100%;
  font-family: Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.tre-sec a { text-decoration: none; }
.tre-sec h2, .tre-sec h3 { margin: 0; }
.tre-i { width: 17px; height: 17px; flex: 0 0 auto; transition: transform .22s ease; }

/* encabezado */
.tre-sec .tre-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 48px;
}

.tre-sec .tre-head__txt { max-width: 700px; flex: 1 1 420px; }

.tre-sec span.tre-eyebrow {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  color: #0b4f8a;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tre-sec h2.tre-titulo {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.3px;
  text-transform: none;
  color: #122238;
}

.tre-sec a.tre-todos {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0b4f8a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.tre-sec a.tre-todos:hover .tre-i { transform: translateX(5px); }

/* grid — --tre-cols viene de Elementor (1–5) */
.tre-grid {
  --tre-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--tre-cols), minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

/* tarjeta */
.tre-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tre-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(6, 26, 46, .12);
}

.tre-foto {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5; /* misma proporción “buena” que en 4 columnas */
  min-height: 260px;
  overflow: hidden;
  background: #e8eef4;
}

.tre-ph {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.tre-card:hover .tre-ph { transform: scale(1.05); }

.tre-body {
  padding: 24px;
  text-align: center;
}

.tre-sec .tre-body h3 {
  margin: 0 0 4px;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.2px;
  text-transform: none;
  color: #122238;
}

.tre-sec .tre-body h3 a { color: inherit; }
.tre-sec .tre-body h3 a:hover { color: #0b4f8a; }

.tre-cargo {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #7b8b9e;
}

/* botones */
.tre-acc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tre-sec .tre-acc a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e9f1;
  border-radius: 6px;
  color: #0b4f8a;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.tre-sec .tre-acc a:hover {
  background: #0b4f8a;
  border-color: #0b4f8a;
  color: #fff;
}

/* responsive — no pisar --tre-cols de Elementor en tablet */
@media (max-width: 1180px) {
  .tre-sec h2.tre-titulo { font-size: 38px; letter-spacing: -.9px; }
  .tre-foto { min-height: 240px; }
}

@media (max-width: 767px) {
  .tre-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tre-sec .tre-head { margin-bottom: 32px; }
  .tre-sec h2.tre-titulo { font-size: 30px; letter-spacing: -.6px; }
  .tre-grid { gap: 16px; }
  .tre-foto {
    aspect-ratio: 4 / 5;
    min-height: 280px;
  }
  .tre-body { padding: 20px; }
}


/* ---------- estilo 2: con contador y datos ---------- */

.tre-card--2 {
  border-radius: 12px;
}

.tre-card--2 .tre-foto {
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 280px;
}

.tre-card--2 .tre-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 18, 34, .5), transparent 45%);
  pointer-events: none;
}

.tre-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #122238;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(6, 26, 46, .18);
}

.tre-badge b { font-weight: 800; }
.tre-badge .tre-i { width: 14px; height: 14px; color: #0b4f8a; }

.tre-card--2 .tre-body {
  padding: 26px;
  text-align: left;
}

.tre-sec .tre-card--2 .tre-body h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -.3px;
}

.tre-card--2 .tre-cargo {
  margin-bottom: 18px;
  font-size: 13px;
}

.tre-datos {
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid #e2e9f1;
  border-bottom: 1px solid #e2e9f1;
  list-style: none;
}

.tre-sec .tre-datos li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4f5f73;
}

.tre-sec .tre-datos li + li { margin-top: 9px; }
.tre-datos .tre-i { width: 16px; height: 16px; color: #0f71c4; margin-top: 2px; }

.tre-acc--2 {
  justify-content: stretch;
  margin-top: auto;
}

.tre-sec .tre-acc--2 a {
  flex: 1;
  width: auto;
  min-width: 46px;
}

.tre-sec .tre-acc--2 a.tre-wa {
  flex: 1.5;
  gap: 9px;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.tre-sec .tre-acc--2 a.tre-wa:hover {
  background: #1fb757;
  border-color: #1fb757;
  color: #fff;
}

.tre-acc--2 .tre-i { width: 18px; height: 18px; }

@media (max-width: 1180px) {
  .tre-card--2 .tre-foto { height: 300px; }
}

@media (max-width: 767px) {
  .tre-card--2 .tre-foto { height: 320px; }
  .tre-card--2 .tre-body { padding: 22px; }
  .tre-sec .tre-card--2 .tre-body h3 { font-size: 18px; }
}
