/* ===== TIPOS DE VIAJE ===== */
#tipos {
  padding: 6rem 3rem;
  position: relative;
  background: var(--sand) !important;
}

#tipos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,55,41,0.12), rgba(208,93,62,0.30), rgba(27,55,41,0.12), transparent);
}

#tipos h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

#tipos .section-subtitle { color: var(--text-mid); }

/* ── Grid ── */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tipo-estudiantil { grid-column: span 2; }

/* ── Card base — teal ink sobre teal-mid ── */
.tipo-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(27,55,41,0.08);
  box-shadow: 0 4px 20px rgba(27,55,41,0.06);
  transition:
    transform    var(--duration-hover) var(--ease-out),
    box-shadow   var(--duration-hover) var(--ease-out),
    border-color var(--duration-hover) var(--ease-out);
  isolation: isolate;
}

@media (hover: hover) and (pointer: fine) {
  .tipo-card-v2:hover {
    transform: translateY(-7px);
    border-color: rgba(208,93,62,0.30);
  }
}
.tipo-card-v2:active { transform: scale(0.98); }

/* Gradient border via ::before — aparece en hover */
.tipo-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
}
.tipo-card-v2:hover::before { opacity: 1; }

/* Barra de acento — oculta (legacy) */
.tipo-v2-accent { display: none; }

/* ── Icon bubble ── */
.tipo-v2-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  margin: 1.8rem 0 0 1.8rem;
  flex-shrink: 0;
  transition:
    transform  var(--duration-base) var(--ease-bounce),
    box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  z-index: 1;
}
.tipo-card-v2:hover .tipo-v2-icon { transform: scale(1.12); }

/* ── Cuerpo ── */
.tipo-v2-body {
  padding: 1rem 1.8rem 0.9rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.tipo-v2-body h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  transition: color var(--duration-fast) var(--ease-out);
}
.tipo-card-v2:hover .tipo-v2-body h3 { color: var(--gold); }
.tipo-v2-body p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.68;
}

/* ── Footer ── */
.tipo-v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem 1.4rem;
  border-top: 1px solid rgba(27,55,41,0.08);
  transition: border-color var(--duration-base) var(--ease-out);
  position: relative;
  z-index: 1;
}
.tipo-card-v2:hover .tipo-v2-footer { border-color: rgba(208,93,62,0.18); }
.tipo-v2-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-light);
  opacity: 0.9;
}
.tipo-v2-footer svg {
  color: var(--gold);
  opacity: 0.55;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity   var(--duration-fast) var(--ease-out);
}
.tipo-card-v2:hover .tipo-v2-footer svg { transform: translateX(6px); opacity: 1; }

/* ── Por tipo: orbe + icon + gradient-border + hover con gold siempre presente ── */
/* ── Por tipo: orbe de color sobre base teal-ink ── */
.tipo-estudiantil {
  grid-column: span 2;
  background: radial-gradient(ellipse at 15% 15%, rgba(91,141,184,0.16) 0%, rgba(255,255,255,1) 60%);
}
.tipo-estudiantil .tipo-v2-icon {
  background: rgba(91,141,184,0.22);
  box-shadow: 0 0 20px rgba(91,141,184,0.18);
}
.tipo-estudiantil::before {
  background: linear-gradient(135deg, rgba(91,141,184,0.55) 0%, transparent 55%, rgba(208,93,62,0.10) 100%);
}
.tipo-estudiantil:hover {
  box-shadow: var(--glow-gold), 0 20px 52px rgba(91,141,184,0.20);
}

.tipo-empresarial {
  background: radial-gradient(ellipse at 15% 15%, rgba(208,93,62,0.14) 0%, rgba(255,255,255,1) 60%);
}
.tipo-empresarial .tipo-v2-icon {
  background: rgba(208,93,62,0.18);
  box-shadow: 0 0 20px rgba(208,93,62,0.16);
}
.tipo-empresarial::before {
  background: linear-gradient(135deg, rgba(208,93,62,0.60) 0%, transparent 55%, rgba(208,93,62,0.12) 100%);
}
.tipo-empresarial:hover {
  box-shadow: var(--glow-gold), 0 20px 52px rgba(208,93,62,0.20);
}

.tipo-amigos {
  background: radial-gradient(ellipse at 15% 15%, rgba(232,176,96,0.14) 0%, rgba(255,255,255,1) 60%);
}
.tipo-amigos .tipo-v2-icon {
  background: rgba(232,176,96,0.20);
  box-shadow: 0 0 20px rgba(232,176,96,0.16);
}
.tipo-amigos::before {
  background: linear-gradient(135deg, rgba(232,176,96,0.55) 0%, transparent 55%, rgba(208,93,62,0.10) 100%);
}
.tipo-amigos:hover {
  box-shadow: var(--glow-gold), 0 20px 52px rgba(232,176,96,0.18);
}

.tipo-solteros {
  background: radial-gradient(ellipse at 15% 15%, rgba(104,144,200,0.13) 0%, rgba(255,255,255,1) 60%);
}
.tipo-solteros .tipo-v2-icon {
  background: rgba(104,144,200,0.20);
  box-shadow: 0 0 20px rgba(104,144,200,0.14);
}
.tipo-solteros::before {
  background: linear-gradient(135deg, rgba(104,144,200,0.55) 0%, transparent 55%, rgba(208,93,62,0.10) 100%);
}
.tipo-solteros:hover {
  box-shadow: var(--glow-gold), 0 20px 52px rgba(104,144,200,0.18);
}

.tipo-deportivo {
  background: radial-gradient(ellipse at 15% 15%, rgba(200,112,72,0.13) 0%, rgba(255,255,255,1) 60%);
}
.tipo-deportivo .tipo-v2-icon {
  background: rgba(200,112,72,0.20);
  box-shadow: 0 0 20px rgba(200,112,72,0.14);
}
.tipo-deportivo::before {
  background: linear-gradient(135deg, rgba(200,112,72,0.55) 0%, transparent 55%, rgba(208,93,62,0.10) 100%);
}
.tipo-deportivo:hover {
  box-shadow: var(--glow-gold), 0 20px 52px rgba(200,112,72,0.18);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .tipo-estudiantil { grid-column: span 2; }
}
@media (max-width: 560px) {
  .tipos-grid       { grid-template-columns: 1fr; }
  .tipo-estudiantil { grid-column: span 1; }
  #tipos            { padding: 4rem 1.5rem; }
}
