/* =========================================================
   SIPCI TECHNOLOGIES
   COTIZADOR INTELIGENTE
   CSS COMPLETO
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --blue: #0E4DA4;
  --navy: #082D56;
  --yellow: #FFC107;

  --ink: #12233b;
  --muted: #65758b;

  --bg: #f4f7fb;
  --white: #ffffff;

  --line: #dce5ef;
  --soft: #f7faff;

  --ok: #14804a;
  --danger: #c62828;

  --radius: 18px;
  --shadow: 0 20px 55px rgba(8, 45, 86, .12);

  --transition: .2s ease;
}


/* =========================================================
   RESET LOCAL DEL COTIZADOR
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}


/* =========================================================
   CONTENEDOR DEL COTIZADOR
   ========================================================= */

.cotizador-container {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   HERO DEL COTIZADOR
   IMPORTANTE:
   No usamos .hero para evitar conflicto con base.css
   ========================================================= */

.cotizador-hero {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #082D56 0%,
      #0E4DA4 100%
    );

  color: #ffffff;

  padding: 64px 0 88px;
}


/* Decoración sutil del hero */

.cotizador-hero::before {
  content: "";
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background: rgba(255, 193, 7, .06);

  top: -220px;
  right: -120px;

  pointer-events: none;
}

.cotizador-hero::after {
  content: "";
  position: absolute;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background: rgba(255, 255, 255, .035);

  bottom: -180px;
  left: -120px;

  pointer-events: none;
}


/* =========================================================
   HERO GRID
   ========================================================= */

.cotizador-hero-grid {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(280px, .7fr);

  gap: 50px;

  align-items: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.cotizador-hero .eyebrow,
.cotizador-hero .step-kicker {
  display: inline-block;

  margin: 0;

  color: var(--yellow);

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2px;
  line-height: 1.4;

  text-transform: uppercase;
}


/* =========================================================
   HERO TITULO
   ========================================================= */

.cotizador-hero h1 {
  margin: 10px 0 18px;

  max-width: 850px;

  color: #ffffff;

  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;

  line-height: 1.08;
  letter-spacing: -.8px;
}

.cotizador-hero h1 strong {
  color: #ffffff;
}


/* =========================================================
   HERO TEXTO
   ========================================================= */

.cotizador-hero .hero-copy {
  max-width: 780px;

  margin: 0;

  color: #dce8f6;

  font-size: 18px;
  line-height: 1.7;
}


/* =========================================================
   HERO PUNTOS
   ========================================================= */

.cotizador-hero .hero-points {
  display: flex;

  flex-wrap: wrap;

  gap: 12px 24px;

  margin-top: 24px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
}

.cotizador-hero .hero-points span {
  display: inline-flex;
  align-items: center;

  gap: 5px;
}


/* =========================================================
   HERO CARD
   ========================================================= */

.cotizador-hero .hero-card {
  position: relative;

  padding: 28px;

  background: rgba(255, 255, 255, .09);

  border: 1px solid rgba(255, 255, 255, .22);

  border-radius: 20px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   HERO CARD ICON
   ========================================================= */

.cotizador-hero .hero-card-icon {
  display: grid;

  place-items: center;

  width: 48px;
  height: 48px;

  margin-bottom: 16px;

  background: var(--yellow);

  border-radius: 14px;

  color: var(--navy);

  font-size: 28px;
  font-weight: 700;
}


/* =========================================================
   HERO CARD TITULO
   ========================================================= */

.cotizador-hero .hero-card b {
  display: block;

  margin: 0;

  color: #ffffff;

  font-family: "Sora", Arial, sans-serif;

  font-size: 20px;
  font-weight: 700;

  line-height: 1.35;
}


/* =========================================================
   HERO CARD TEXTO
   ========================================================= */

.cotizador-hero .hero-card p {
  margin: 14px 0 0;

  color: #dce8f6;

  font-size: 15px;

  line-height: 1.65;
}


/* =========================================================
   CONTENEDOR PRINCIPAL DEL COTIZADOR
   ========================================================= */

.quote-shell {
  position: relative;
  z-index: 2;

  margin-top: -46px;
  margin-bottom: 70px;

  background: var(--white);

  border: 1px solid var(--line);

  border-radius: 24px;

  box-shadow: var(--shadow);

  overflow: hidden;
}


/* =========================================================
   PROGRESO
   ========================================================= */

.progress {
  display: flex;

  align-items: center;

  padding: 22px 28px;

  background: #fbfdff;

  border-bottom: 1px solid var(--line);
}

.progress-step {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #9aa9bc;

  font-size: 13px;

  white-space: nowrap;
}

.progress-step span {
  display: grid;

  place-items: center;

  width: 31px;
  height: 31px;

  border: 1px solid #c7d4e3;

  border-radius: 50%;

  font-weight: 700;

  flex-shrink: 0;
}

.progress-step.active,
.progress-step.done {
  color: var(--blue);
}

.progress-step.active span,
.progress-step.done span {
  background: var(--blue);

  border-color: var(--blue);

  color: #ffffff;
}

.progress-line {
  height: 1px;

  background: #d9e3ef;

  flex: 1;

  margin: 0 12px;
}


/* =========================================================
   PASOS
   ========================================================= */

.step {
  display: none;

  padding: 44px;
}

.step.active {
  display: block;
}


/* =========================================================
   ENCABEZADO DE SECCIÓN
   ========================================================= */

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 7px 0 9px;

  color: var(--ink);

  font-family: "Sora", Arial, sans-serif;

  font-size: 29px;
  font-weight: 700;

  line-height: 1.2;
}

.section-head p {
  max-width: 820px;

  margin: 0;

  color: var(--muted);

  line-height: 1.65;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.service-card {
  position: relative;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  gap: 16px;

  min-height: 116px;

  padding: 22px;

  text-align: left;

  background: #ffffff;

  border: 1px solid var(--line);

  border-radius: 17px;

  color: var(--ink);

  cursor: pointer;

  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  border-color: #9ebce1;

  transform: translateY(-1px);

  box-shadow: 0 8px 24px rgba(8, 45, 86, .06);
}

.service-card.selected {
  border: 2px solid var(--blue);

  background: #f5f9ff;

  box-shadow: 0 8px 24px rgba(14, 77, 164, .08);
}


/* =========================================================
   ICONOS SERVICIOS
   ========================================================= */

.service-icon {
  display: grid;

  place-items: center;

  width: 48px;
  height: 48px;

  background: #eaf2ff;

  border-radius: 14px;

  color: var(--blue);

  font-size: 23px;
  font-weight: 700;
}


/* =========================================================
   TEXTO SERVICIOS
   ========================================================= */

.service-card h3 {
  margin: 0 0 5px;

  color: var(--ink);

  font-family: "Sora", Arial, sans-serif;

  font-size: 18px;
  font-weight: 700;
}

.service-card p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.5;
}

.arrow {
  align-self: center;

  color: var(--blue);

  font-size: 22px;
}


/* =========================================================
   NOTA GUIADA
   ========================================================= */

.guided-note {
  display: flex;

  gap: 10px;

  margin-top: 20px;

  padding: 15px 18px;

  background: #f8fbff;

  border-left: 4px solid var(--yellow);

  border-radius: 10px;

  line-height: 1.5;
}

.guided-note b {
  font-weight: 700;
}

.guided-note span {
  color: var(--muted);
}


/* =========================================================
   SERVICIO SELECCIONADO
   ========================================================= */

.selected-service {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 22px;

  padding: 14px 16px;

  background: #f4f8fd;

  border: 1px solid var(--line);

  border-radius: 14px;
}

.selected-service > span {
  display: grid;

  place-items: center;

  width: 42px;
  height: 42px;

  background: #eaf2ff;

  border-radius: 12px;

  color: var(--blue);

  font-weight: 700;

  flex-shrink: 0;
}

.selected-service div {
  flex: 1;

  min-width: 0;
}

.selected-service b,
.selected-service small {
  display: block;
}

.selected-service b {
  color: var(--ink);
}

.selected-service small {
  margin-top: 3px;

  color: var(--muted);
}

.selected-service button {
  border: 0;

  background: transparent;

  color: var(--blue);

  font-weight: 700;

  cursor: pointer;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.field {
  margin: 0 0 21px;
}

.field label {
  display: block;

  margin-bottom: 8px;

  color: var(--ink);

  font-weight: 600;
}

.field em {
  color: #d22;

  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;

  padding: 13px 14px;

  background: #ffffff;

  border: 1px solid #cfdbe8;

  border-radius: 11px;

  outline: none;

  color: var(--ink);

  font: inherit;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(14, 77, 164, .10);
}

.field textarea {
  min-height: 96px;

  resize: vertical;
}

.field small {
  display: block;

  margin-top: 7px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.5;
}

.optional {
  color: var(--muted);

  font-weight: 400;
}


/* =========================================================
   DROPZONE
   ========================================================= */

.dropzone {
  padding: 28px;

  text-align: center;

  background: #fbfdff;

  border: 1.5px dashed #9db3ca;

  border-radius: 16px;
}

.dropzone input {
  display: none;
}

.drop-icon {
  margin-bottom: 6px;

  color: var(--blue);

  font-size: 30px;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone strong {
  color: var(--ink);
}

.dropzone span {
  margin: 6px 0 15px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.5;
}


/* =========================================================
   ARCHIVOS
   ========================================================= */

.file-list {
  display: grid;

  gap: 8px;

  margin-top: 12px;
}

.file-item {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  padding: 10px 12px;

  background: #f5f8fc;

  border-radius: 9px;

  font-size: 14px;
}

.file-item small {
  margin: 0;
}


/* =========================================================
   BOTONES
   ========================================================= */

.actions {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 28px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 0 20px;

  border: 1px solid transparent;

  border-radius: 11px;

  font: 600 15px "IBM Plex Sans", Arial, sans-serif;

  text-decoration: none;

  cursor: pointer;

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    filter var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--yellow);

  color: #172a43;
}

.btn.primary:hover {
  filter: brightness(.97);
}

.btn.primary:disabled {
  opacity: .45;

  cursor: not-allowed;

  transform: none;
}

.btn.secondary {
  background: #eaf2ff;

  border-color: #cfe0f6;

  color: var(--blue);
}

.btn.ghost {
  background: #ffffff;

  border-color: #ccd8e5;

  color: var(--ink);
}

.btn.whatsapp {
  background: #1fa463;

  color: #ffffff;
}


/* =========================================================
   RESUMEN
   ========================================================= */

.summary {
  display: grid;

  gap: 14px;
}

.summary-card {
  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 14px;
}

.summary-card h3 {
  margin: 0;

  padding: 15px 17px;

  background: #f5f8fc;

  color: var(--ink);

  font-family: "Sora", Arial, sans-serif;

  font-size: 17px;
  font-weight: 700;
}

.summary-row {
  display: grid;

  grid-template-columns:
    minmax(160px, .4fr)
    1fr;

  gap: 18px;

  padding: 11px 17px;

  border-top: 1px solid #e7edf4;

  line-height: 1.5;
}

.summary-row b {
  color: #61748a;
}

.summary-row span {
  white-space: pre-wrap;
}


/* =========================================================
   AVISOS
   ========================================================= */

.notice {
  margin-top: 20px;

  padding: 16px 18px;

  background: #fff8df;

  border-left: 4px solid var(--yellow);

  border-radius: 10px;

  line-height: 1.6;
}

.alert {
  margin-top: 15px;

  padding: 13px 15px;

  border-radius: 10px;
}

.alert.error {
  background: #fff0f0;

  color: #a12020;
}


/* =========================================================
   CONSENTIMIENTO
   ========================================================= */

.consent label {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  font-weight: 400;

  line-height: 1.5;
}

.consent input {
  margin-top: 4px;

  flex-shrink: 0;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.hp {
  position: absolute;

  left: -10000px;

  width: 1px;
  height: 1px;

  overflow: hidden;
}


/* =========================================================
   PANTALLA DE ÉXITO
   ========================================================= */

.success {
  padding: 30px 10px 45px;

  text-align: center;
}

.success-icon {
  display: grid;

  place-items: center;

  width: 72px;
  height: 72px;

  margin: 0 auto 20px;

  background: #e9f8f0;

  border-radius: 50%;

  color: var(--ok);

  font-size: 38px;
  font-weight: 700;
}

.success h2 {
  margin: 8px 0;

  color: var(--ink);

  font-family: "Sora", Arial, sans-serif;

  font-size: 31px;
  font-weight: 700;
}

.success p {
  max-width: 650px;

  margin: 10px auto;

  color: var(--muted);

  line-height: 1.65;
}

.success .eyebrow {
  color: var(--yellow);
}

.folio {
  display: inline-block;

  margin: 16px 0;

  padding: 12px 18px;

  background: #f3f7fc;

  border: 1px solid var(--line);

  border-radius: 10px;

  color: var(--blue);

  font-family: "IBM Plex Mono", monospace;

  font-size: 15px;
  font-weight: 700;
}

.success .btn {
  margin: 6px;
}


/* =========================================================
   FOOTER
   ========================================================= */

body > footer {
  padding: 30px 0;

  color: #65758b;

  font-size: 13px;

  text-align: center;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 800px) {

  .cotizador-hero {
    padding: 48px 0 76px;
  }

  .cotizador-hero-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .progress {
    overflow-x: auto;

    gap: 0;

    scrollbar-width: thin;
  }

  .progress-line {
    min-width: 22px;
  }

  .progress-step b {
    display: none;
  }

  .step {
    padding: 30px 20px;
  }

  .quote-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero-points {
    display: grid;

    gap: 9px;
  }

  .actions {
    flex-wrap: wrap;
  }

  .actions .btn {
    flex: 1 1 180px;
  }

  .phone {
    font-size: 13px;
  }
}


/* =========================================================
   RESPONSIVE CELULAR
   ========================================================= */

@media (max-width: 480px) {

  .cotizador-container {
    width: min(100% - 22px, 1120px);
  }

  .cotizador-hero {
    padding: 40px 0 68px;
  }

  .cotizador-hero h1 {
    font-size: 31px;

    letter-spacing: -.4px;
  }

  .cotizador-hero .hero-copy {
    font-size: 16px;

    line-height: 1.65;
  }

  .cotizador-hero .hero-card {
    padding: 22px;
  }

  .cotizador-hero .hero-card b {
    font-size: 18px;
  }

  .service-card {
    grid-template-columns:
      auto 1fr;
  }

  .service-card .arrow {
    display: none;
  }

  .step {
    padding: 26px 15px;
  }

  .quote-shell {
    border-radius: 17px;
  }

  .progress {
    padding: 17px 14px;
  }

  .progress-step span {
    width: 28px;
    height: 28px;
  }

  .summary-row {
    grid-template-columns: 1fr;

    gap: 5px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;

    flex: none;
  }

  .dropzone {
    padding: 22px 15px;
  }

  .success h2 {
    font-size: 27px;
  }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 193, 7, .65);

  outline-offset: 3px;
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}