/* pages/eventos/eventos.css
 * Estilos específicos de la página de eventos/cotizaciones.
 */

/* ===========================
   "¿Cómo funciona la cotización?"
   =========================== */
.mf-how {
  background: var(--mf-bg-3);
  border-radius: 24px;
  padding: 3rem 2rem 3.5rem;
  margin: 2rem auto 4rem;
  max-width: 1280px;
  scroll-margin-top: 80px;
}

.mf-how__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.mf-how__eyebrow {
  font-family: var(--mf-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--mf-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.8rem;
}

.mf-how__title {
  font-family: var(--mf-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mf-ink);
  margin: 0 0 0.8rem;
}
.mf-how__title em {
  font-style: italic;
  color: var(--mf-red);
}

.mf-how__lead {
  font-size: 1rem;
  color: var(--mf-ink-2);
  margin: 0;
  line-height: 1.5;
}

.mf-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

/* Línea conectora horizontal entre los pasos (desktop) */
.mf-how__steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--mf-line-2) 0 6px, transparent 6px 12px);
  z-index: 0;
}

.mf-how__step {
  position: relative;
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 1.8rem 1.5rem 1.6rem;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mf-how__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--mf-red);
}

.mf-how__num {
  font-family: var(--mf-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--mf-red);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.mf-how__step-title {
  font-family: var(--mf-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--mf-ink);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.mf-how__step-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mf-ink-2);
  margin: 0;
}
.mf-how__step-body strong {
  color: var(--mf-ink);
  font-weight: 700;
}

/* ---------- CTA al final de la sección ---------- */
.mf-how__cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mf-line);
  text-align: center;
}
.mf-how__cta > p {
  font-family: var(--mf-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--mf-ink);
  margin: 0 0 1.2rem;
  line-height: 1.4;
}

.mf-how__cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.mf-how__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mf-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mf-how__btn--primary {
  background: var(--mf-red);
  color: white;
  box-shadow: 0 6px 14px rgba(255, 49, 49, 0.25);
}
.mf-how__btn--primary:hover {
  background: var(--mf-red-2);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 49, 49, 0.35);
}
.mf-how__btn--wa {
  background: white;
  color: var(--mf-ink);
  border: 1px solid var(--mf-line);
}
.mf-how__btn--wa:hover {
  border-color: var(--mf-success);
  color: var(--mf-ink);
  transform: translateY(-1px);
}
.mf-how__btn--wa svg {
  color: var(--mf-success);
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .mf-how {
    padding: 2.2rem 1.25rem 2.5rem;
    border-radius: 18px;
  }
  .mf-how__head { margin-bottom: 2rem; }
  .mf-how__steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Quitamos la línea horizontal en móvil (los pasos van en columna) */
  .mf-how__steps::before { display: none; }
  .mf-how__step { padding: 1.4rem 1.2rem; }
  .mf-how__num { font-size: 1.8rem; margin-bottom: 0.5rem; }
  .mf-how__cta-buttons { flex-direction: column; align-items: stretch; }
  .mf-how__btn { justify-content: center; }
}

/* ===========================
   Carrito dentro del formulario de eventos
   (mismo lenguaje visual que /pages/carrito/carrito.css)
   =========================== */
.mf-events__cart {
  margin: 0.4rem 0 1.2rem;
  padding: 0.55rem;
  background: var(--mf-bg);
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.mf-events__cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.25rem 0.45rem 0.5rem;
  border-bottom: 1px solid var(--mf-line);
  margin-bottom: 0.5rem;
}

.mf-events__cart-title {
  font-family: var(--mf-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--mf-ink);
  margin: 0;
}

.mf-events__cart-count {
  font-size: 12px;
  color: var(--mf-mute);
  font-weight: 500;
}

.mf-events__cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mf-events__cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  background: var(--mf-bg);
  border-radius: 12px;
  padding: 0.5rem 0.5rem;
  transition: background 0.15s ease;
}
.mf-events__cart-item + .mf-events__cart-item {
  border-top: 1px solid var(--mf-line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 0.65rem;
}
.mf-events__cart-item:hover { background: var(--mf-bg-2); }

.mf-events__cart-item-media {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mf-bg-3);
  flex-shrink: 0;
}
.mf-events__cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-events__cart-item-info { min-width: 0; }
.mf-events__cart-item-name {
  font-family: var(--mf-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mf-ink);
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.mf-events__cart-item-meta {
  font-size: 11.5px;
  color: var(--mf-mute);
  margin: 0.15rem 0 0;
  font-weight: 500;
}

.mf-events__cart-item-subtotal {
  font-family: var(--mf-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--mf-ink);
  white-space: nowrap;
}

.mf-events__cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--mf-mute);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
.mf-events__cart-item-remove:hover {
  background: var(--mf-red-3);
  color: var(--mf-red);
}

.mf-events__cart-foot {
  margin: 0.6rem 0.1rem 0.1rem;
  padding: 0.55rem 0.4rem 0.1rem;
  border-top: 1px dashed var(--mf-line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--mf-ink-2);
  font-weight: 600;
}
.mf-events__cart-foot strong {
  color: var(--mf-red);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--mf-display);
}

/* Estado vacío */
.mf-events__cart-empty {
  text-align: center;
  padding: 0.9rem 0.5rem 0.4rem;
}
.mf-events__cart-empty-text {
  font-size: 13px;
  color: var(--mf-ink-2);
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.mf-events__cart-empty-text strong {
  color: var(--mf-ink);
}
.mf-events__cart-empty-cta {
  display: inline-flex;
  font-size: 13px;
  padding: 0.55rem 1rem;
}
