/* =========================================================
   AlexMart Shipping LLC — Página de Pre-Alerta
   ========================================================= */

/* ---- Hero ---- */
.prealert-hero {
  background: var(--heading-color);
  padding: 130px 0 60px;
  color: #fff;
  position: relative;
}
.prealert-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent-color);
}
.prealert-hero-content { max-width: 780px; margin: 0 auto; text-align: center; }
.prealert-hero .section-badge { background: rgba(255, 255, 255, .12); color: #fff; }
.prealert-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: .8rem 0 1rem; }
.prealert-hero p { color: rgba(255, 255, 255, .82); margin: 0 auto; }

/* ---- Layout ---- */
.prealert-section { background: var(--bg-soft); }
.prealert-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .prealert-layout { grid-template-columns: 1fr; } }

/* ---- Panel informativo ---- */
.prealert-info { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border-color); }
@media (min-width: 901px) { .prealert-info { position: sticky; top: 110px; } }
.prealert-info-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-color-light); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.1rem;
}
.prealert-info h3 { font-size: 1.15rem; }
.prealert-info > p { font-size: .9rem; color: var(--default-color); margin-bottom: 1.4rem; }
.prealert-info-dest { display: flex; gap: .8rem; align-items: flex-start; background: var(--bg-soft); border-radius: 12px; padding: 1rem; }
.prealert-info-dest i { color: var(--accent-color); margin-top: .2rem; }
.prealert-info-dest strong { display: block; font-size: .78rem; color: var(--heading-color); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2rem; }
.prealert-info-dest span { font-size: .88rem; color: var(--default-color); }

/* ---- Tarjeta del formulario ---- */
.prealert-card { background: #fff; border-radius: var(--radius); padding: 2.2rem; border: 1px solid var(--border-color); }
.prealert-step-title { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; color: var(--heading-color); margin-bottom: 1.4rem; }
.prealert-step-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .9rem; font-family: var(--font-heading); font-weight: 700; flex-shrink: 0;
}

.prealert-search-row { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.prealert-field { flex: 1; min-width: 200px; }
.prealert-field label, .prealert-label { display: block; font-size: .85rem; font-weight: 600; color: var(--heading-color); margin-bottom: .4rem; }
.prealert-field input, .prealert-input, .prealert-select {
  width: 100%; border: 2px solid var(--border-color); border-radius: 10px; padding: .7rem 1rem;
  font-size: .95rem; color: var(--heading-color); font-weight: 500; outline: none; transition: border-color .2s; background: #fff;
}
.prealert-field input:focus, .prealert-input:focus, .prealert-select:focus { border-color: var(--accent-color); }
.prealert-input[readonly] { background: var(--bg-soft); color: var(--default-color); }
.prealert-search-row .btn { padding: .75rem 1.7rem; white-space: nowrap; }

.prealert-manual-link {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: none; color: var(--accent-color);
  font-size: .85rem; font-weight: 600; margin-top: 1rem; padding: 0; cursor: pointer;
}
.prealert-manual-link:hover { color: var(--accent-color-dark); text-decoration: underline; }

.prealert-manual-banner {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: var(--accent-color-light); color: var(--accent-color-dark);
  border-radius: 12px; padding: .9rem 1.2rem; margin: 0 0 1.6rem; font-size: .88rem; font-weight: 600;
}
.prealert-manual-banner button {
  margin-left: auto; background: none; border: none; color: var(--accent-color-dark); text-decoration: underline;
  font-size: .82rem; font-weight: 600; cursor: pointer;
}

.prealert-client-badge {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--success-color); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .35rem .9rem; border-radius: 50px; margin-bottom: .3rem;
}

.prealert-fixed-dest {
  display: flex; align-items: center; gap: .6rem; background: var(--bg-soft); border: 2px dashed var(--border-color);
  border-radius: 10px; padding: .7rem 1rem; font-size: .88rem; font-weight: 600; color: var(--heading-color); height: calc(100% - 1.6rem);
}
.prealert-fixed-dest i { color: var(--accent-color); }

.prealert-tracking-row { display: flex; gap: .6rem; }
.prealert-tracking-row input { flex: 1; }
.prealert-icon-btn {
  width: 46px; height: 46px; border-radius: 10px; border: none; background: var(--accent-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: background .2s;
}
.prealert-icon-btn:hover { background: var(--accent-color-dark); }

.prealert-tracking-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.prealert-tracking-empty { color: #9aa7b4; font-size: .85rem; margin: .5rem 0 0; }
.prealert-tag {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--accent-color-light); color: var(--accent-color-dark);
  font-weight: 600; font-size: .85rem; padding: .45rem .5rem .45rem 1rem; border-radius: 50px;
}
.prealert-tag button {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .6); color: var(--accent-color-dark);
  display: flex; align-items: center; justify-content: center; font-size: .68rem; cursor: pointer; transition: background .2s;
}
.prealert-tag button:hover { background: #fff; }

.prealert-submit { width: 100%; justify-content: center; margin-top: 1.8rem; padding: .9rem; font-size: 1rem; }

@media (max-width: 480px) {
  .prealert-search-row { flex-direction: column; align-items: stretch; }
}
