/* Progresiones · estilos de la web — tokens del manual de marca 2026 */
:root {
  --paper: #F4F1EC;
  --surface: #FFFFFF;
  --paper-deep: #E8E3DA;
  --noche: #111111;
  --ink: #111111;
  --ink-inverse: #F4F1EC;
  --graphite: #4A4744;
  --muted: #625D57;
  --concreto: #A8A39B;
  --hairline: #D9D3C9;
  --terracota: #C0552F;
  --terracota-text: #A3441F;
  --on-terracota: #FFFFFF;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.625 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* Tipografía */
.display { font-weight: 600; font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
.display--sm { font-size: clamp(34px, 5.2vw, 60px); }
.h2 { font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -0.01em; }
.h3 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 34em; }
.body { color: var(--graphite); max-width: 36em; margin-top: 20px; }
.small { color: var(--graphite); font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.note { color: var(--muted); font-size: 12.5px; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow--accent { color: var(--terracota-text); }
.accent { color: var(--terracota); }
.num { display: block; font-size: 12px; color: var(--terracota-text); margin-bottom: 10px; }
.link { font: 600 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--terracota); padding-bottom: 3px; white-space: nowrap; }

/* Botones: un solo botón terracota por sección */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font: 600 13px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--terracota); color: var(--on-terracota); }
.btn--primary:hover { background: var(--terracota-text); }
.btn--ghost-light { border-color: var(--ink-inverse); color: var(--ink-inverse); }
.btn--ghost-light:hover { background: var(--ink-inverse); color: var(--noche); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.top__logo img { height: 34px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top__nav a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:not(.btn):hover { border-color: var(--ink); }
.top__nav .btn { min-height: 40px; padding: 0 16px; font-size: 12px; }
.top__menu { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.top__menu span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--noche); color: var(--ink-inverse); }
.hero__pattern { position: absolute; inset: 0 0 0 55%; background: url("assets/patron/PRG_patron_configuraciones_textura_oscuro.svg") center / 720px; opacity: .35; }
.hero__pattern::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--noche) 0%, rgba(17,17,17,0) 40%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.hero__in { position: relative; padding-top: clamp(80px, 13vw, 160px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero__in .display { max-width: 11em; }
.hero__soft { color: #8E8880; }
.hero__in .lead { margin-top: 28px; color: #D6D0C7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Secciones */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--deep { background: var(--paper-deep); }
.section--night { background: var(--noche); color: var(--ink-inverse); }
.section--night .small, .section--night .lead { color: #CFC9C0; }
.section--night .eyebrow--accent, .section--night .num { color: #E07A55; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }

/* Tarjetas de proyecto (4:3, ficha en mono) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.card__img { position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep) url("assets/patron/PRG_patron_configuraciones_textura_claro.svg") center / 420px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__tag { position: absolute; left: 12px; bottom: 12px; background: var(--surface); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; }
.card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card__type { font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terracota-text); margin-bottom: 8px; }
.card__ficha { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.card .small { margin: 8px 0 18px; }
.card--pendiente { border-style: dashed; }
.card--pendiente .h3, .card--pendiente .small { color: var(--muted); }

/* Banda "Míralo antes" */
.band { background: var(--paper-deep) url("assets/patron/PRG_patron_configuraciones_claro.svg") right center / 560px no-repeat; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band__in { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.band .h2, .band .lead { max-width: 18em; }
.lead--dark { color: var(--graphite); margin-top: 18px; max-width: 30em !important; background: rgba(232,227,218,.85); }

/* Servicios */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.service { display: flex; gap: 16px; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--hairline); }
.service img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; }

/* Columnas de 4 */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 44px; }
.col { padding-top: 20px; border-top: 1px solid var(--concreto); }
.section--night .col { border-color: #3A3734; }

/* Lab */
.lab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lab__item { background: var(--surface); border: 1px solid var(--hairline); padding: 26px 22px 30px; min-height: 190px; position: relative; }
.lab__item::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 30px; height: 30px; background: url("assets/iconos/lab.svg") center / contain no-repeat; opacity: .9; border-radius: 50%; }

/* Estudio */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.values > div { padding-top: 18px; border-top: 1px solid var(--concreto); }

/* Contacto */
.contact { position: relative; overflow: hidden; }
.contact__pattern { position: absolute; inset: 0 0 0 60%; background: url("assets/patron/PRG_patron_configuraciones_textura_oscuro.svg") center / 640px; opacity: .55; }
.contact__pattern::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--noche) 0%, rgba(17,17,17,0) 50%); }
.contact__in { position: relative; }
.contact__in .display { max-width: 13em; }
.contact__in .lead { margin-top: 24px; }
.contact__data { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #3A3734; font-size: 13.5px; }
.contact__data dt { color: #8E8880; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.contact__data a { text-decoration: none; border-bottom: 1px solid #8E8880; }

/* Pie */
.foot { background: var(--noche); color: #8E8880; border-top: 1px solid #2A2826; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.foot__logo { height: 28px; width: auto; }
.foot__meta { font-size: 12px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--terracota); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: var(--terracota-text); }

/* Tableta */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cols4, .lab { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact__data { grid-template-columns: repeat(2, auto); }
}

/* Celular */
@media (max-width: 760px) {
  .top__menu { display: block; }
  .top__nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 20px; display: none; }
  .top__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .top__nav .btn { margin-top: 16px; min-height: 46px; }
  .top.is-open .top__nav { display: flex; }
  .top.is-open .top__menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .top.is-open .top__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__logo img { height: 28px; }
  .hero__pattern { inset: auto 0 0 0; height: 38%; opacity: .45; }
  .hero__pattern::before { background: linear-gradient(180deg, var(--noche) 0%, rgba(17,17,17,0) 60%); }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__in { padding-bottom: 32px; }
  .stage { padding-bottom: 56px; }
  .stage__svg { width: 62%; }
  .cards, .services, .values, .lab { grid-template-columns: 1fr; }
  .cols4 { grid-template-columns: 1fr; gap: 24px; }
  .band { background-image: none; }
  .contact__pattern { display: none; }
  .contact__data { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* Línea de progreso */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--terracota); transform-origin: 0 50%; transform: scaleX(0); }

/* Inicio: el símbolo se dibuja */
.stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.stage__svg { width: min(100%, 360px); height: auto; overflow: visible; }
.stage__hex { fill: none; stroke: #6E6862; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease, opacity .6s; }
.stage__p { fill: none; stroke: var(--terracota); stroke-width: 19; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: 5 5; stroke-dashoffset: 5; transition: stroke-dashoffset .55s cubic-bezier(.6,0,.3,1), opacity .6s; }
.stage__logo { opacity: 0; transform: scale(.94); transform-origin: 0 0; transition: opacity .8s ease, transform .8s ease; }
.stage.is-done .stage__logo { opacity: 1; transform: none; }
.stage.is-done .stage__p, .stage.is-done .stage__hex { opacity: 0; }
.stage__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #5E5954; }
.stage__steps span { transition: color .3s; }
.stage__steps span + span::before { content: "→"; margin-right: 14px; color: #3A3734; }
.stage__steps span.is-on { color: #E07A55; }

/* Configurador */
.config { overflow: hidden; }
.config__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.config__text .lead { margin-top: 20px; }
.config__text .small { margin-top: 14px; max-width: 32em; }
.config__data { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 14px 40px; margin: 32px 0 4px; padding-top: 20px; border-top: 1px solid #3A3734; font-size: 15px; }
.config__data dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8E8880; margin-bottom: 4px; }
.config__data dd { color: var(--ink-inverse); }
.config__wide { grid-column: 1 / -1; }
.config__wide dd { color: #E07A55; font-size: 17px; }
.config .hero__cta { margin-top: 28px; }
.config .btn { cursor: pointer; background: transparent; }
.link--light { display: inline-block; margin-top: 28px; color: var(--ink-inverse); }
.config__board { position: relative; }
.config__board::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 30px var(--noche); }
#cfg-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.mod { cursor: pointer; }
.mod__hit { fill: transparent; }
.mod__p { fill: none; stroke: #6E6862; stroke-width: 4.8; stroke-linejoin: miter; transition: transform .5s cubic-bezier(.5,0,.2,1.2), stroke .3s; }
.mod:hover .mod__p, .mod.is-hot .mod__p { stroke: var(--ink-inverse); }
.mod--accent .mod__p { stroke: var(--terracota); }
.mod--accent { cursor: default; }
.only-touch { display: none; }
@media (hover: none) { .only-touch { display: inline; } .only-fine { display: none; } }

@media (max-width: 980px) {
  .config__grid { grid-template-columns: 1fr; }
  .config__board { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__p, .stage__hex, .stage__logo, .mod__p, .progress span { transition: none; }
}
