/* ══════════════════════════════════════════
   MODELOS DE SERVICIO — OPEX vs CAPEX
══════════════════════════════════════════ */
#modelos {
  background: #f6f5f1;
  padding: 7rem 15%;
  position: relative;
  overflow: hidden;
}

/* Fondo decorativo */
#modelos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 20% 50%, rgba(59,130,246,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 80% 50%, rgba(217,119,87,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Header */
.modelos-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.modelos-header .sec-label {
  justify-content: center;
  color: var(--accent);
}
.modelos-header .sec-label::before { background: var(--accent); }
.modelos-header .sec-title {
  color: var(--dark);
  text-align: center;
  margin: 0 auto 0.9rem;
}
.modelos-header .sec-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 auto;
}

/* Grid de dos columnas */
.modelos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  position: relative;
}

/* Separador "VS" central */
.modelos-vs {
  display: none; /* solo desktop lo mostramos con pseudo */
}
.modelos-grid::before {
  content: 'VS';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 42px; height: 42px;
  background: #f6f5f1;
  border: 1px solid rgba(20,20,19,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(20,20,19,0.35);
  box-shadow: 0 0 0 6px #f6f5f1;
}

/* ── CARD BASE ── */
.modelo-card {
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.modelo-card:hover {
  transform: translateY(-6px);
}

/* Glow superior en hover */
.modelo-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--m-glow);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 28px 28px 0 0;
}
.modelo-card:hover::after { opacity: 1; }

/* ── OPEX ── */
.modelo-card--opex {
  background: #13131f;
  border: 1px solid rgba(59,130,246,0.14);
  box-shadow: 0 4px 32px rgba(59,130,246,0.06);
  --m-accent: #3b82f6;
  --m-accent-soft: rgba(59,130,246,0.12);
  --m-glow: linear-gradient(90deg, transparent, #3b82f6, transparent);
  --m-text: rgba(200,210,255,0.7);
}
.modelo-card--opex:hover {
  box-shadow: 0 16px 48px rgba(59,130,246,0.14), 0 0 0 1px rgba(59,130,246,0.2);
}

/* ── CAPEX ── */
.modelo-card--capex {
  background: #18130f;
  border: 1px solid rgba(217,119,87,0.18);
  box-shadow: 0 4px 32px rgba(217,119,87,0.06);
  --m-accent: #d97757;
  --m-accent-soft: rgba(217,119,87,0.12);
  --m-glow: linear-gradient(90deg, transparent, #d97757, transparent);
  --m-text: rgba(232,210,190,0.65);
}
.modelo-card--capex:hover {
  box-shadow: 0 16px 48px rgba(217,119,87,0.14), 0 0 0 1px rgba(217,119,87,0.22);
}

/* ── Top row: badge + frecuencia ── */
.modelo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.modelo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  border: 1px solid color-mix(in srgb, var(--m-accent) 30%, transparent);
}
.modelo-frequency {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(232,230,220,0.3);
  letter-spacing: 0.3px;
}

/* ── Título y tagline ── */
.modelo-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.55rem;
}
.modelo-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--m-text);
  margin-bottom: 1.75rem;
}

/* ── Divisor ── */
.modelo-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 1.75rem;
  border-radius: 1px;
}

/* ── Lista de features ── */
.modelo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  margin-bottom: 1.75rem;
}
.modelo-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(232,230,220,0.7);
}
.modelo-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.modelo-check svg { display: block; }

/* ── Ideal para ── */
.modelo-ideal {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.75rem;
}
.modelo-ideal-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--m-accent);
  margin-bottom: 0.35rem;
  opacity: 0.8;
}
.modelo-ideal-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(232,230,220,0.55);
}

/* ── CTA ── */
.modelo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--m-accent);
  color: #fff;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--m-accent) 35%, transparent);
}
.modelo-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--m-accent) 45%, transparent);
}
.modelo-cta-arrow {
  transition: transform 0.2s ease;
}
.modelo-cta:hover .modelo-cta-arrow {
  transform: translateX(4px);
}

/* ── Nota inferior ── */
.modelos-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(20,20,19,0.38);
  position: relative;
}
.modelos-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.modelos-note a:hover {
  color: #e8906e;
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .modelos-grid {
    grid-template-columns: 1fr;
  }
  .modelos-grid::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
