/* ============================================================
   Creadores de Sitios — Contact Wizard
   Editorial Tech aesthetic · warm cream + ink + coral accent
   ============================================================ */

:root {
  /* palette */
  --bg: #F1ECE2;
  --bg-2: #eaeaea;
  --ink: #0E0E10;
  --ink-soft: #1C1C1F;
  --muted: #6B6A66;
  --line: rgba(14, 14, 16, 0.12);
  --line-strong: rgba(14, 14, 16, 0.28);
  --accent: #6a65f2;
  --accent-ink: #1A0700;
  --paper: #fff;
  --shadow-sm: 0 1px 0 rgba(14, 14, 16, 0.06);
  --shadow-md: 0 12px 32px -16px rgba(14, 14, 16, 0.18);
  --shadow-lg: 0 30px 60px -28px rgba(14, 14, 16, 0.35);

  /* type */
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }


/* ===== Shell ===== */
.shell {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1310px;
	margin: 0 auto;
	padding: 15px;
	min-height: 100svh;
	/*display: flex;
	flex-direction: column;*/
}

/* ===== Wizard ===== */
.wizard {
  margin-top: 0px;
  background: var(--paper);
  /*border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);*/
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Progress ===== */
.progress-barra {
  padding: 22px clamp(22px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.progress__list {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.progress__item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 4px;
  color: var(--muted);
  border-top: 1px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.progress__item.is-active,
.progress__item.is-done { color: var(--ink); }

.progress__num {
	font-size: 11px;
  font-weight: 500;
}
.progress__label { font-size: 13px; font-weight: 500; }

.progress__bar {
  height: 3px; background: var(--bg-2); border-radius: 999px;
  overflow: hidden; margin-bottom: 18px;
}
.progress__fill {
  height: 100%; width: var(--p, 25%);
  background: var(--accent);
  border-radius: 999px;
  transition: width .55s var(--ease);
  box-shadow: 0 0 18px rgba(255, 77, 31, 0.5);
}

/* ===== Form ===== */
.form {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* ===== Steps ===== */
.step {
  border: 0; padding: clamp(28px, 4vw, 56px); margin: 0;
  display: none;
  animation: stepIn .55s var(--ease) both;
  flex: 1;
}
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__head { max-width: 760px; margin-bottom: 36px; }
.step__kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 16px;
    font-weight: 500;
}
.step__title {
    font-weight: 700;
    font-size: clamp(32px, 5.6vw, 51px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.step__title em {
  color: var(--accent);
    font-style: normal;	
}
.step__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 56ch;
  margin: 0;
}

/* ===== Grids ===== */
.grid { display: grid; gap: 14px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--pills    { grid-template-columns: repeat(4, 1fr); }

/* ===== Service Cards ===== */
.card-contacto {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
}
.card-contacto input { position: absolute; opacity: 0; pointer-events: none; }
.card__inner {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition:
    transform .35s var(--ease),
    border-color .25s var(--ease),
    background .35s var(--ease),
    box-shadow .35s var(--ease);
  min-height: 200px;
  overflow: hidden;
}
.card-contacto__inner::after {
  content: "";
  position: absolute; inset: auto -40% -60% auto;
  width: 200px; height: 200px;
  background: radial-gradient(closest-side, rgba(255, 77, 31, 0.18), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card-contacto:hover .card__inner {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card-contacto:hover .card__inner::after { opacity: 1; }

.card__top {
  display: flex; align-items: center; justify-content: space-between;
}
.card__index {
font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted);
}
.card__icon { width: 30px; height: 30px; color: var(--ink); }
.card__title {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.card__desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.45;
  max-width: 28ch;
	font-weight: 400;
}
.card__check {
    position: absolute;
    top: 21px;
    right: 23px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 1.5px solid rgb(14 14 16 / 0%);
    display: grid;
    place-items: center;
    color: transparent;
    transition: all .3s var(--ease);
    background: transparent;
}
.card__check svg { width: 14px; height: 14px; }

/* checked state */
.card-contacto input:checked ~ .card__inner {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.card-contacto input:checked ~ .card__inner .card__index,
.card-contacto input:checked ~ .card__inner .card__desc { color: rgba(251, 248, 241, 0.65); }
.card-contacto input:checked ~ .card__inner .card__icon { color: var(--accent); }
.card-contacto input:checked ~ .card__inner .card__check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.card-contacto input:focus-visible ~ .card__inner {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* tilt micro-animation on press */
.card-contacto:active .card__inner { transform: translateY(-1px) scale(0.995); }

/* ===== Pills ===== */
.pill { position: relative; display: block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill__inner {
  position: relative;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: all .3s var(--ease);
  min-height: 108px;
}
.pill__inner::before {
  content: "";
  position: absolute; top: 16px; right: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: all .3s var(--ease);
}
.pill:hover .pill__inner { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.pill__value {
font-weight: 700;
    font-size: clamp(24px, 3.6vw, 34px);
    /* letter-spacing: -0.02em; */
    line-height: 1;
    margin-top: auto;
}
.pill__unit {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.pill__tag {
  font-size: 12px; color: var(--ink-soft);
  margin-top: 6px;
  align-self: flex-start;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.pill input:checked ~ .pill__inner {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pill input:checked ~ .pill__inner .pill__unit { color: rgba(251, 248, 241, 0.6); }
.pill input:checked ~ .pill__inner .pill__tag {
  background: var(--accent); color: var(--paper); border-color: var(--accent);
}
.pill input:checked ~ .pill__inner::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.pill input:focus-visible ~ .pill__inner {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ===== Form fields (Step 4) ===== */
.fields {
  display: grid; gap: 18px;
  max-width: 720px;
}
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field--row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px;
}
.field label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 90%, transparent); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
}
.select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none; color: var(--muted);
}

.phone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.phone:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}
.phone__code {
  display: flex; align-items: center;
  padding: 0 14px;
 font-size: 14px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.phone input {
  border: 0; background: transparent;
  border-radius: 0;
}
.phone input:focus { box-shadow: none; }

.field__counter {
  position: absolute; right: 0; bottom: -22px;
 font-size: 11px; color: var(--muted);
}
.field__error {
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--accent);
  min-height: 14px;
}
.field input.has-error,
.field select.has-error,
.field textarea.has-error,
.phone.has-error { border-color: var(--accent); }

.error {
  ont-size: 12px; color: var(--accent);
  margin: 14px 0 0; min-height: 14px;
}

.check {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--muted);
  cursor: pointer; user-select: none;
  margin-top: 4px;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  position: relative;
  transition: all .25s var(--ease);
  margin-top: 1px;
}
.check__box::after {
  content: ""; position: absolute; inset: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' fill='none' stroke='%23FBF8F1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  opacity: 0; transform: scale(0.6);
  transition: all .25s var(--ease);
}
.check input:checked ~ .check__box {
  background: var(--ink); border-color: var(--ink);
}
.check input:checked ~ .check__box::after { opacity: 1; transform: scale(1); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Summary ===== */
.summary {
  margin-top: 28px;
  display: grid;
  gap: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 4px 18px;
  background: color-mix(in srgb, var(--bg-2) 50%, transparent);
}
.summary__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary__row:last-child { border-bottom: 0; }
.summary__row span {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.summary__row strong { font-weight: 500; text-align: right; max-width: 70%; }

/* ===== Nav ===== */
.nav-contacto {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(22px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.nav-contacto__step {
  justify-self: center;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--muted);
}
.nav-contacto__step span:first-child { color: var(--ink); }
.nav-contacto__sep { margin: 0 4px; opacity: 0.5; }

/* ===== Buttons ===== */
.btn {
display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn--primary {
  background: var(--ink); color: var(--paper);
}
.btn--primary:not(:disabled):hover {
  background: var(--accent); color: var(--paper);
  transform: translateX(2px);
}
.btn--primary:not(:disabled):active { transform: translateX(0) scale(0.98); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:not(:disabled):hover {
  border-color: var(--ink); transform: translateX(-2px);
}

/* ===== Success ===== */
.success {
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: stepIn .55s var(--ease) both;
}
.success[hidden] { display: none; }
.success__mark { width: 80px; height: 80px; color: var(--accent); }
.success__mark svg { width: 100%; height: 100%; }
.success__title {
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  max-width: 18ch;
}
.success__title em { color: var(--accent); font-style: normal; }
.success__sub { color: var(--muted); max-width: 50ch; margin: 0; }
.success__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ===== Footer ===== */
.foot {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}
.foot a:hover { color: var(--ink); }
.foot__sep { opacity: 0.5; }

/* ===== Reveal animation for direction-aware navigation ===== */
.step.is-leaving { animation: stepOut .35s var(--ease) both; display: block; }
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--pills    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
.wizard {
    margin-top: 0px;
    background: none;
    border: 0px solid var(--line);
    border-radius: 0px;
    box-shadow: none;
}
	
.topbar { grid-template-columns: 1fr auto; }
  .topbar__meta { display: none; }
	
.progress-barra { display: none; }
  .progress__list { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .progress__label { display: none; }
  .progress__item { padding: 10px 2px 8px; }

  .step { padding: 0px; }
  .step__title { font-size: clamp(30px, 8vw, 42px); }

  .field--row { grid-template-columns: 1fr; }

  .card__inner { min-height: 170px; padding: 18px; }
  .card__title { font-size: 22px; }
  .card__desc { font-size: 13px; }

  .pill__inner { min-height: 138px; padding: 20px; }

  .nav-contacto { padding: 14px 18px; gap: 8px; }
  .btn { padding: 12px 16px; font-size: 13px; }
}

@media (max-width: 420px) {
  .grid--services { grid-template-columns: 1fr; }
  .grid--pills    { grid-template-columns: 1fr 1fr; }
  .card__inner { min-height: auto; }
  .pill__inner { min-height: 120px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
