/* Tipografía base */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --color-topbar-bg: #3c3c3c;
  --color-topbar-text: #ffffff;
  --color-header-bg: #ffffff;
  --color-body-text: #333333;
  --color-accent: #ff7a00; /* naranja aproximado */
  --color-border: #e5e5e5;

  --header-max-width: 1200px;
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  height: 100%;
}

body {
 
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-body-text);

  display: flex;             /* 👈 convierte el body en flex */
  flex-direction: column;    /* elementos en columna */
  min-height: 100vh;         /* al menos la altura de la ventana */
}

.site-footer {
  margin-top: auto;
}

/* ========== TOP BAR ========== */

.top-bar {
  background-color: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.top-bar-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-message {
  margin: 0 auto;
  text-align: center;
  flex: 1;
}

.top-bar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--color-topbar-text);
  font-weight: 500;
  white-space: nowrap;
}

.contact-icon {
  font-size: 0.9rem;
}

/* Ocultar top-bar en tablet + móvil */
@media (max-width: 1024px) {
  .top-bar {
    display: none;
  }
}

/* ========== MAIN HEADER ========== */

.main-header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative; /* para anclar menú móvil */
}

.header-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo CENTRADO en escritorio (absoluto) */
.site-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
}

/* NAV ESCRITORIO: a la izquierda */
.primary-nav {
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #333333;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.has-submenu {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Iconos derecha */
.header-actions {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.icon-button {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-heart {
  font-size: 1.1rem;
  color: #555555;
}

.icon-cart {
  font-size: 1.1rem;
}

/* Badge carrito */
.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HAMBURGUESA (escritorio oculta) */
/* HAMBURGUESA (escritorio oculta) */
.nav-toggle {
  display: none;              /* solo se muestra en móvil por media query */
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;

  display: inline-flex;
  flex-direction: column;     /* líneas una debajo de la otra */
  justify-content: center;
  align-items: center;
  font-size: 0;               /* elimina cualquier espacio/texto fantasma */
  line-height: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333333;
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-line + .hamburger-line {
  margin-top: 4px;            /* separación entre líneas */
}

/* Animación X cuando está abierto */
.nav-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ========== HERO CONTACT ========== */

.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
}

.hero-contact {
  /* Sustituye esta URL por tu imagen real */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("/app/images/share-caida-importaciones-en-colombia.jpg");
  background-size: cover;
  background-position: center center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
}

.hero-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-breadcrumb {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-breadcrumb a {
  color: var(--color-accent); /* "Inicio" naranja */
  text-decoration: none;
}

.hero-breadcrumb span {
  color: #ffffff;
}

.breadcrumb-separator {
  margin: 0 6px;
  opacity: 0.8;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
  .header-inner {
    padding-inline: 24px;
  }

  .hero-contact {
    min-height: 260px;
    padding: 70px 16px;
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  /* HEADER: logo a la izquierda, iconos + hamburguesa a la derecha */
  .header-inner {
    padding: 14px 16px;
    justify-content: space-between;
  }

  /* Logo deja de ser absoluto: se va a la izquierda */
  .site-logo {
    position: static;
    transform: none;
  }

  .site-logo img {
    width: 80px;
    height: 80px;
  }

  /* Nav y acciones ya no ocupan flex:1 obligatoriamente */
  .primary-nav {
    flex: 0 0 auto;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  /* Hamburguesa visible en móvil */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Menú dropdown móvil */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px 20px;
    flex-direction: column;
    gap: 16px;
    display: none; /* cerrado por defecto */
    z-index: 20;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .hero-contact {
    padding: 60px 16px 70px;
    min-height: 220px;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

/* Ajuste de altura cómoda del header en escritorio */
@media (min-width: 769px) {
  .header-inner {
    padding-top: 62px;   /* puedes bajar a 32px si lo quieres menos alto */
    padding-bottom: 62px;
  }
}


/* ========== FOOTER ========== */

.site-footer {
  background-color: #f7f7f7;
  color: #555555;
  font-size: 0.9rem;
}

.footer-top {
  padding: 56px 16px 48px;
}

.footer-inner {
  max-width: 1200px; /* puedes cambiar a var(--header-max-width) si ya existe */
  margin: 0 auto;
}

/* ----- columnas superiores ----- */

.footer-top .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

.footer-col {
  min-width: 160px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #6b6b6b;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.8;
}

.footer-links a:hover {
  color: #ff7a00;
}

/* ----- columna de marca y redes ----- */

.footer-col-brand {
  text-align: center;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.footer-social-label {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #555555;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: #ff7a00;
  transform: translateY(-1px);
}

/* ----- parte inferior (copyright / terms) ----- */

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #888888;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
}

.footer-copy a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
}

.footer-copy a:hover {
  color: #ff7a00;
}

.footer-legal-link {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal-link:hover {
  color: #ff7a00;
}

/* ========== FOOTER RESPONSIVE ========== */

@media (max-width: 960px) {
  .footer-top .footer-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    padding: 40px 20px 32px;
  }

  .footer-top .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col-brand {
    text-align: left;
  }

  .footer-logo img {
    margin-left: 0;
  }

  .footer-social {
    margin-top: 8px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}



/* ========== QUOTE WIZARD ========== */

.quote-wizard {
  background-color: #ffffff;
  padding: 60px 16px 80px;
}

.quote-wizard__shell {
  max-width: 720px;
  margin: 0 auto;
}

.quote-card {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  padding: 28px 26px 26px;
}

/* ----- Header de pasos ----- */

.wizard-header {
  text-align: center;
  margin-bottom: 26px;
}

.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  width: 26px;
  height: 2px;
  background-color: #d9d9dc;
  transform: translateY(-50%);
}

.wizard-step:last-child::after {
  display: none;
}

.wizard-step__circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #d9d9dc;
  background-color: #f8f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555555;
}

.wizard-step.is-active .wizard-step__circle {
  border-color: #ff7a00;
  background-color: #ff7a00;
  color: #ffffff;
}

.wizard-step.is-completed .wizard-step__circle {
  border-color: #111111;
  background-color: #111111;
  color: #ffffff;
}

.wizard-step.is-completed::after {
  background-color: #111111;
}

.wizard-progress-text {
  margin: 0;
  font-size: 0.83rem;
  color: #777777;
}

/* ----- Pasos del formulario ----- */

.form-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step__title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
}

.form-step__subtitle {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #6b6b6b;
  text-align: center;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-fields--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

/* Campos */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333333;
}

.form-input,
.form-textarea,
.form-select {
  border-radius: 12px;
  border: 1px solid #dddddd;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b0b0;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  border-color: #ff7a00;
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

/* Errores */

.field-error {
  display: none;
  margin: 0;
  font-size: 0.78rem;
  color: #d93025;
}

.form-global-error {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: #d93025;
  text-align: center;
}

/* ----- Acciones ----- */

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.form-actions--right {
  justify-content: flex-end;
}

/* Botones genéricos (reutilizables con la calculadora) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: #ff7a00;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #e86f00;
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #111111;
  color: #111111;
}

/* ----- Paso 4 éxito ----- */

.form-step__success {
  text-align: center;
  padding: 10px 8px 4px;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background-color: #18a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.form-step__success .form-step__title {
  margin-bottom: 8px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .quote-card {
    padding: 22px 18px 22px;
  }

  .form-fields--grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-steps {
    gap: 18px;
  }

  .wizard-step::after {
    right: -18px;
    width: 18px;
  }

  .quote-wizard {
    padding: 40px 12px 60px;
  }
}

