/* ============================================================
   Asesoría de color — estilos de la página
   (usa las variables definidas en styles.css)
   ============================================================ */

/* ---------- Hero de la página ---------- */
.ac-hero {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 60%, var(--blue-600));
  color: #fff;
}
.ac-hero__inner { padding: 40px 24px 48px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; opacity: .6; }
.ac-hero h1 { font-size: 38px; font-weight: 700; letter-spacing: -.5px; }
.ac-hero p { font-size: 16px; color: rgba(255,255,255,.85); max-width: 720px; margin-top: 14px; line-height: 1.6; }
.ac-hero__steps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ac-hero__steps span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.ac-hero__steps i { background: #fff; color: var(--navy-800); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* ---------- Barra de color seleccionado (sticky) ---------- */
.ac-current {
  position: sticky; top: 72px; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ac-current__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; flex-wrap: wrap; }
.ac-current__left { display: flex; align-items: center; gap: 14px; }
.ac-current__swatch { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px #fff; }
.ac-current__meta { display: flex; flex-direction: column; line-height: 1.3; }
.ac-current__meta strong { font-size: 15px; color: var(--navy-700); }
.ac-current__meta span { font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.ac-current__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-picker {
  position: relative; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px;
}
.ac-picker:hover { border-color: var(--blue-500); color: var(--blue-500); }
.ac-picker input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Secciones ---------- */
.ac-section { margin: 52px 0; }
.ac-section__head { margin-bottom: 24px; }
.ac-section__head h2 { font-size: 24px; font-weight: 700; color: var(--navy-700); display: flex; align-items: center; gap: 12px; }
.ac-section__head p { font-size: 14px; color: var(--ink-500); margin-top: 8px; }
.ac-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--blue-500); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
}
.ac-num--icon { background: var(--green-500); font-size: 15px; }

/* ---------- Productos en este color ---------- */
#productos-color .product__media { position: relative; }
.product__badge--match { background: var(--green-500); }
.pc-colorline { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-500); margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; }
.pc-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.product__price small { font-size: 11px; font-weight: 600; color: var(--ink-500); }
.pc-empty { font-size: 13px; color: var(--ink-500); margin-top: 16px; text-align: center; font-style: italic; }

/* ---------- 1. Catálogo ---------- */
.ac-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.ac-tab {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-700); transition: all .15s;
}
.ac-tab:hover { border-color: var(--blue-500); color: var(--blue-500); }
.ac-tab.is-active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.ac-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch {
  cursor: pointer; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s;
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.swatch.is-selected { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.swatch__color { height: 96px; }
.swatch__info { padding: 10px 12px; }
.swatch__name { font-size: 12px; font-weight: 700; color: var(--ink-900); display: block; }
.swatch__hex { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- 2. Combinador ---------- */
.combiner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.combiner__base { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.combiner__chip { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line); }
.combiner__base strong { display: block; font-size: 15px; color: var(--navy-700); }
.combiner__base span { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; }

.harmonies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.harmony { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.harmony__title { font-size: 13px; font-weight: 700; color: var(--ink-900); padding: 12px 14px 8px; display: flex; align-items: center; gap: 8px; }
.harmony__title i { color: var(--blue-500); }
.harmony__desc { font-size: 11px; color: var(--ink-500); padding: 0 14px 12px; }
.harmony__row { display: flex; height: 64px; }
.harmony__cell { flex: 1; position: relative; cursor: pointer; transition: flex .2s; }
.harmony__cell:hover { flex: 1.6; }
.harmony__cell span {
  position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: .3px; opacity: 0; transition: opacity .15s;
}
.harmony__cell:hover span { opacity: 1; }

/* ---------- 3. Visualizador ---------- */
.viz { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.viz__stage { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; }
.viz__svg { display: block; width: 100%; height: auto; }
.viz__svg rect, .viz__svg polygon { transition: fill .25s; }
.viz__controls { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.viz__controls h3 { font-size: 16px; font-weight: 700; color: var(--navy-700); margin-bottom: 16px; }
.viz__control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.viz__control input[type="color"] { width: 52px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; padding: 2px; }
.viz__controls .btn { width: 100%; margin-top: 8px; }

/* ---------- 4. Formulario ---------- */
.ac-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.ac-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 14px; color: var(--ink-900);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(8,119,232,.12); }
.field input.is-error, .field select.is-error { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(215,5,5,.1); }
.field textarea { resize: vertical; }
.field__color { position: relative; display: flex; align-items: center; }
.field__color input { flex: 1; padding-right: 46px; }
.field__swatch { position: absolute; right: 8px; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); }
.ac-form__submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.ac-form__note { font-size: 12px; color: var(--ink-500); display: inline-flex; align-items: center; gap: 6px; }
.ac-form__note i { color: var(--green-500); }

/* Botones extra usados aquí */
.btn--lg { padding: 14px 28px; font-size: 14px; }
.btn--outline { background: #fff; color: var(--blue-500); border-color: var(--blue-500); }
.btn--outline:hover { background: var(--blue-500); color: #fff; }
.btn--ghost-dark { background: var(--bg); color: var(--ink-700); border-color: var(--line-2); }
.btn--ghost-dark:hover { background: var(--line); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; color: #fff; }
.btn--whatsapp i { font-size: 1.15em; }

/* ---------- Éxito ---------- */
.ac-success { text-align: center; padding: 20px; }
.ac-success__icon { font-size: 56px; color: var(--green-500); }
.ac-success__icon--wa { color: #25D366; }
.ac-success h3 { font-size: 22px; color: var(--navy-700); margin: 12px 0 6px; }
.ac-success p { font-size: 14px; color: var(--ink-500); margin-bottom: 18px; max-width: 460px; margin-left: auto; margin-right: auto; }
.ac-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--navy-800); color: #fff; font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 100; display: flex; align-items: center; gap: 8px;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--green-400); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ac-swatches { grid-template-columns: repeat(4, 1fr); }
  .viz { grid-template-columns: 1fr; }
  .harmonies { grid-template-columns: 1fr; }
  .ac-hero h1 { font-size: 30px; }
  .ac-current { top: 0; }
}
@media (max-width: 600px) {
  .ac-swatches { grid-template-columns: repeat(2, 1fr); }
  .ac-form { grid-template-columns: 1fr; }
  .ac-current__inner { flex-direction: column; align-items: flex-start; }
  .ac-current__actions { width: 100%; }
  .ac-current__actions .btn { flex: 1; }
}
