/* Red Noble · identidad v1.0 · soyrednoble.com */
@font-face {
  font-family: "Bricolage Red Noble";
  src: url("/assets/fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --tinta: #0E1B2C;
  --noche: #132743;
  --oro: #C9A24A;
  --oro-claro: #E7D3A1;
  --oro-hondo: #7A5C17;   /* oro para texto sobre papel (contraste AA) */
  --papel: #F7F4EE;
  --cal: #FFFDF8;
  --texto: #1B2738;
  --texto-suave: #4B5667;
  --linea: #E2DACB;
  --mar: #0F3B4C;
  --display: "Bricolage Red Noble", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --cuerpo: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ancho: 72rem;
  --margen: clamp(1.25rem, 5vw, 3rem);
  --radio: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.salto { position: absolute; left: -999px; top: 0; background: var(--oro); color: var(--tinta); padding: .6rem 1rem; z-index: 10; }
.salto:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 6.4vw, 3.75rem); font-stretch: 84%; }
h3 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); font-stretch: 92%; font-weight: 700; }
p { margin: 0; }

.envoltura { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }
.seccion { padding-block: clamp(4rem, 11vw, 7.5rem); }
.seccion--pegada { padding-top: 0; }
.whatsapp__figura { margin: 0; }
.pie__lema { margin-top: 1rem; max-width: 22rem; }
.intro { max-width: 38rem; margin-top: 1.1rem; color: var(--texto-suave); font-size: 1.125rem; }

/* Botón principal */
.boton {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: 1.2rem;
  text-decoration: none; color: var(--tinta); background: var(--oro);
  padding: 1rem 1.5rem 1rem 1.25rem; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -12px rgba(201,162,74,.9);
  transition: background-color .15s ease, transform .15s ease;
}
.boton:hover { background: var(--oro-claro); }
.boton:active { transform: translateY(1px); }
.boton svg { width: 1.45rem; height: 1.45rem; flex: none; }
.boton--chico { font-size: 1rem; padding: .62rem 1.05rem .62rem .9rem; box-shadow: none; }
.boton--chico svg { width: 1.15rem; height: 1.15rem; }

/* Cabecera */
.cabecera { background: var(--tinta); color: var(--papel); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.cabecera .logo img { height: 40px; width: auto; }
@media (max-width: 30rem) { .cabecera .boton--chico span { display: none; } .cabecera .boton--chico { padding: .62rem; } }

/* Portada */
.portada { position: relative; background: var(--tinta); color: var(--papel); overflow: hidden; isolation: isolate; }
.portada__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5rem) 0; position: relative; z-index: 2; }
.portada h1 {
  font-size: clamp(4.4rem, 19vw, 10.5rem); font-stretch: 76%; line-height: .86; letter-spacing: -.02em;
  color: var(--cal);
}
.portada__frase {
  font-family: var(--display); font-weight: 700; font-stretch: 90%;
  font-size: clamp(1.55rem, 4.8vw, 2.35rem); line-height: 1.08; color: var(--oro-claro);
  margin-top: 1.1rem; max-width: 22ch;
}
.portada__respuesta { margin-top: 1.4rem; max-width: 34rem; color: #D7DCE4; font-size: 1.1rem; }
.portada__accion { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.portada__nota { color: #AEB7C4; font-size: .95rem; }
.portada__ilustracion { position: relative; z-index: 1; margin-top: 1.5rem; }
.portada__ilustracion::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 20%; background: linear-gradient(var(--tinta), rgba(14,27,44,0)); z-index: 1; pointer-events: none; }
.portada__ilustracion img { width: 100%; height: clamp(15rem, 42vw, 30rem); object-fit: cover; object-position: 30% 100%; }

/* Adhesivo «Soy Red Noble · escanéame» */
.adhesivo { justify-self: center; width: min(78vw, 19rem); aspect-ratio: 1; position: relative; transform: rotate(-7deg); filter: drop-shadow(0 22px 30px rgba(0,0,0,.45)); }
.adhesivo__sello { width: 100%; height: 100%; }
.adhesivo__sello text { font-family: var(--display); font-weight: 800; font-stretch: 86%; font-size: 17.5px; letter-spacing: .06em; fill: var(--tinta); }
.adhesivo .qr { position: absolute; inset: 27%; width: 46%; height: 46%; border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .adhesivo { animation: pegar .9s cubic-bezier(.2,.9,.25,1.2) .25s both; }
  @keyframes pegar { from { opacity: 0; transform: rotate(-22deg) scale(.6) translateY(30px); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
}
@media (min-width: 56rem) {
  .portada__grid { grid-template-columns: 1.35fr 1fr; align-items: center; }
  .adhesivo { width: 21rem; }
  .portada__ilustracion { margin-top: -1rem; }
  .portada__ilustracion img { object-position: 50% 100%; }
}

/* Cómo funciona */
.pasos { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: paso; }
.paso { counter-increment: paso; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.paso::before {
  content: counter(paso);
  font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: 5rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--oro-hondo);
}
.paso p { margin-top: .5rem; color: var(--texto-suave); }
@media (min-width: 56rem) {
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .paso { grid-template-columns: 1fr; border-top: 2px solid var(--tinta); padding-top: 1.4rem; }
  .paso::before { font-size: 6.5rem; margin-bottom: .6rem; }
}

/* Qué puedes recomendar */
.marcas { list-style: none; margin: 2.75rem 0 0; padding: 0; border-top: 2px solid var(--tinta); }
.marca { display: grid; grid-template-columns: 3.25rem 1fr; gap: .25rem 1.1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--linea); align-items: center; }
.marca svg { width: 3.25rem; height: 3.25rem; grid-row: span 2; }
.marca h3 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-stretch: 84%; font-weight: 800; }
.marca p { color: var(--texto-suave); grid-column: 2; }
@media (min-width: 56rem) {
  .marca { grid-template-columns: 4rem 20rem 1fr; padding-block: 1.75rem; }
  .marca svg { width: 4rem; height: 4rem; grid-row: auto; }
  .marca p { grid-column: auto; font-size: 1.15rem; }
}

/* Cómo te pagamos */
.pago { background: var(--tinta); color: var(--papel); }
.pago__grid { display: grid; gap: 3rem; align-items: center; }
.pago h2 { color: var(--cal); }
.pago .intro { color: #C9D0DA; }
.recibo {
  background: var(--cal); color: var(--tinta); border-radius: 6px; padding: 1.75rem 1.5rem 2rem;
  position: relative; max-width: 27rem; width: 100%; justify-self: center;
  box-shadow: 0 30px 50px -25px rgba(0,0,0,.7);
}
.recibo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background: linear-gradient(135deg, var(--cal) 33%, transparent 33.5%) 0 0 / 16px 12px repeat-x, linear-gradient(225deg, var(--cal) 33%, transparent 33.5%) 0 0 / 16px 12px repeat-x; }
.recibo__cabeza { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px dashed #CFC6B4; }
.recibo__cabeza strong { font-family: var(--display); font-size: 1.5rem; font-stretch: 86%; }
.recibo__cabeza img { width: 2.6rem; height: 2.6rem; }
.recibo dl { margin: 0; }
.recibo__fila { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .95rem; border-bottom: 1px solid var(--linea); }
.recibo__fila:last-child { border-bottom: 0; }
.recibo dt { color: var(--texto-suave); font-size: .95rem; }
.recibo dd { margin: 0; font-weight: 600; }
.recibo__hora { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2.6rem; line-height: 1; display: block; }
@media (min-width: 56rem) { .pago__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Tu cliente */
.cliente__grid { display: grid; gap: 2rem; align-items: end; }
.cliente__cifra { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(7rem, 30vw, 15rem); line-height: .78; color: var(--tinta); letter-spacing: -.03em; }
.cliente__cifra span { display: block; font-size: .3em; font-stretch: 86%; letter-spacing: 0; margin-top: .9rem; color: var(--oro-hondo); }
.cliente__texto p + p { margin-top: 1rem; }
.cliente__texto p { color: var(--texto-suave); }
.aviso-nivel { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--oro); background: var(--cal); color: var(--texto); }
@media (min-width: 56rem) { .cliente__grid { grid-template-columns: auto 1fr; gap: 4.5rem; } }

/* Niveles */
.niveles { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1rem; }
.nivel { padding: 1.6rem 1.5rem 1.75rem; border-radius: var(--radio); border: 1.5px solid var(--linea); background: var(--cal); }
.nivel h3 { display: flex; align-items: center; gap: .7rem; }
.nivel p { margin-top: .7rem; color: var(--texto-suave); }
.nivel__marca { width: 1.6rem; height: 1.6rem; flex: none; }
.nivel--fundador { background: var(--tinta); border-color: var(--tinta); color: var(--papel); position: relative; overflow: hidden; }
.nivel--fundador p { color: #C9D0DA; }
.nivel--fundador h3 { color: var(--oro-claro); }
.nivel__cupo { display: inline-block; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--tinta); background: var(--oro); padding: .3rem .75rem; border-radius: 999px; }
@media (min-width: 56rem) {
  .niveles { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .nivel:nth-child(2) { padding-top: 3rem; }
  .nivel:nth-child(3) { padding-top: 4.5rem; }
}

/* Todo por WhatsApp */
.whatsapp { background: #EFE9DD; }
.whatsapp__grid { display: grid; gap: 3rem; align-items: center; }
.ventajas { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.ventajas li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .9rem; }
.ventajas svg { width: 1.75rem; height: 1.75rem; margin-top: .1rem; }
.ventajas strong { display: block; font-size: 1.1rem; }
.ventajas span { color: var(--texto-suave); }
.telefono { justify-self: center; width: min(100%, 20rem); background: var(--tinta); border-radius: 2.4rem; padding: .7rem; box-shadow: 0 40px 60px -30px rgba(14,27,44,.6); }
.telefono__pantalla { background: #ECE5D8; border-radius: 1.8rem; overflow: hidden; }
.telefono__barra { background: var(--noche); color: var(--papel); display: flex; align-items: center; gap: .65rem; padding: 1.5rem 1rem .8rem; }
.telefono__barra img { width: 2.2rem; height: 2.2rem; border-radius: 50%; }
.telefono__barra strong { display: block; font-size: .95rem; }
.telefono__barra span { font-size: .78rem; color: #AEB7C4; }
.chat { padding: 1rem .8rem 1.3rem; display: grid; gap: .55rem; font-size: .86rem; line-height: 1.4; }
.burbuja { max-width: 84%; padding: .55rem .75rem; border-radius: 14px; background: var(--cal); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.burbuja--yo { justify-self: end; background: #DCEFD9; border-bottom-right-radius: 4px; }
.burbuja--solvira { border-bottom-left-radius: 4px; }
.telefono__pie { text-align: center; font-size: .8rem; color: var(--texto-suave); margin-top: .9rem; }
@media (min-width: 56rem) { .whatsapp__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

/* Preguntas */
.preguntas { margin-top: 2.5rem; border-top: 2px solid var(--tinta); max-width: 52rem; }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: 1.3rem; line-height: 1.2; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .8rem; height: .8rem; border-right: 2.5px solid var(--oro-hondo); border-bottom: 2.5px solid var(--oro-hondo); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.preguntas details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.preguntas details p { padding: 0 0 1.4rem; color: var(--texto-suave); max-width: 44rem; }

/* Cierre */
.cierre { background: var(--tinta); color: var(--papel); text-align: left; }
.cierre__grid { display: grid; gap: 2.5rem; align-items: center; }
.cierre h2 { color: var(--cal); font-size: clamp(2.6rem, 9vw, 5rem); font-stretch: 78%; line-height: .95; }
.cierre h2 span { display: block; }
.cierre p { margin-top: 1.25rem; color: #C9D0DA; max-width: 30rem; }
.cierre .boton { margin-top: 2rem; }
.cierre__qr { display: none; }
@media (min-width: 56rem) {
  .cierre__grid { grid-template-columns: 1fr auto; }
  .cierre__qr { display: block; width: 13rem; text-align: center; color: #AEB7C4; font-size: .9rem; }
  .cierre__qr .qr { border-radius: 14px; margin-bottom: .8rem; border: 6px solid var(--oro); }
}

/* Pie */
.pie { background: #091320; color: #AEB7C4; font-size: .95rem; padding-block: 3rem 2.5rem; }
.pie__grid { display: grid; gap: 2rem; }
.pie img { height: 34px; width: auto; }
.pie h2 { font-family: var(--cuerpo); font-size: .95rem; font-weight: 600; color: var(--papel); margin-bottom: .6rem; letter-spacing: 0; font-stretch: 100%; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--oro-claro); text-decoration: underline; }
.pie__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1E2C40; display: grid; gap: .5rem; font-size: .85rem; }
@media (min-width: 48rem) { .pie__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Páginas legales */
.legal { padding-block: clamp(3rem, 8vw, 5rem); }
.legal .envoltura { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); font-stretch: 80%; color: var(--tinta); }
.legal__meta { margin-top: 1rem; color: var(--texto-suave); }
.legal__resumen { margin-top: 2rem; background: var(--cal); border: 1.5px solid var(--linea); border-radius: var(--radio); padding: 1.4rem 1.5rem; }
.legal__resumen ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.legal h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); font-stretch: 90%; margin-top: 2.75rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.legal p, .legal li { color: var(--texto); }
.legal p { margin-top: .9rem; }
.legal ul, .legal ol { margin: .8rem 0 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .6rem; border-bottom: 1px solid var(--linea); }
.legal th { font-weight: 600; background: var(--cal); }
.legal a { color: var(--oro-hondo); }

/* 404 */
.no-existe { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; background: var(--tinta); color: var(--papel); }
.no-existe h1 { font-size: clamp(3rem, 12vw, 6rem); font-stretch: 78%; color: var(--cal); }
.no-existe p { margin: 1rem auto 2rem; color: #C9D0DA; max-width: 28rem; }
.no-existe img.iso { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; }
