/* family57.com: las páginas para buscadores (fuente/web/construir.py). Mismas letras y colores que la familia. */
@font-face { font-family: "Brico"; src: url("/m/85f55a58a31e61a2e19e.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/m/c940764593d0fe5d596b.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/m/29bf2691317290c0693d.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #f6f7fb; --card: #fff; --ink: #0f172a; --ink-2: #475569; --ink-3: #64748b; --line: rgba(15, 23, 42, .09);
  --c: #4f46e5; --c2: #0e8f86; --noche: #0b1020;
  --fam: linear-gradient(100deg, #0e8f86, #0b6f9e 30%, #4f46e5 55%, #8b3fe0 78%, #e0662f);
  --r: 18px; --sombra: 0 1px 0 rgba(15, 23, 42, .04), 0 18px 40px -24px rgba(15, 23, 42, .28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ojo { font: 600 13px/1 "Mono", ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; color: var(--c);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.ojo::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: "Brico", "Avenir Next", system-ui, sans-serif; letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 760; }
h3 { font-size: 1.32rem; font-weight: 720; }
h1 em, h2 em { font-style: normal; background: linear-gradient(110deg, var(--c), var(--c2)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.intro { color: var(--ink-2); max-width: 70ch; margin-top: 14px; }

/* ---- cabecera ---- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 251, .82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.cab .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { font: 800 1.45rem/1 "Brico"; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo b, .marca b { background: var(--fam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--noche); display: grid; place-items: center; font: 800 13px/1 "Brico";
  color: #fff; font-style: normal; box-shadow: inset 0 -3px 0 #4f46e5; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .menu summary { font-weight: 560; font-size: .96rem; color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: 10px;
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .6; }
.menu > a:hover, .menu summary:hover, .menu details[open] summary { background: rgba(15, 23, 42, .05); color: var(--ink); }
.menu details { position: relative; }
.caja { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 340px; padding: 10px; background: #fff;
  border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(15, 23, 42, .35); display: grid; gap: 2px; }
.caja a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.caja a:hover { background: var(--bg); }
.caja b { display: block; font-weight: 640; font-size: .95rem; }
.caja span { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.35; }
.caja .ic { color: var(--k, var(--c)); margin-top: 2px; }
.boton { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-weight: 640; font-size: .98rem;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.boton.lleno { background: var(--noche); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .7); }
.boton.lleno:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(15, 23, 42, .7); }
.boton.borde { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.boton.borde:hover { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .25); }
.cab .boton { padding: 10px 16px; font-size: .92rem; }
.movil { display: none; }
@media (max-width: 980px) {
  .menu { display: none; }
  .movil { display: block; margin-left: auto; }
  .movil summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
  .movil summary::-webkit-details-marker { display: none; }
  .movil[open] summary { background: rgba(15, 23, 42, .06); }
  .movil nav { position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; max-height: calc(100vh - 66px); overflow: auto; box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .4); }
  .movil nav p { font: 600 12px/1 "Mono"; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 6px; }
  .movil nav a { display: block; padding: 10px 4px; text-decoration: none; font-weight: 560; border-bottom: 1px solid var(--line); }
  .cab .boton.lleno { display: none; }
}

/* ---- portada de cada página ---- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 86px) 0 clamp(40px, 6vw, 70px); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; z-index: -1; }
.hero::before { width: 620px; height: 620px; background: var(--c); right: -160px; top: -260px; }
.hero::after { width: 520px; height: 520px; background: var(--c2); left: -260px; bottom: -300px; opacity: .2; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.puntos { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.puntos li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.puntos .ic { color: var(--c); width: 20px; height: 20px; margin-top: 3px; }
.escena { position: relative; min-height: 380px; }
.portatil { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line),
  0 50px 90px -40px rgba(15, 23, 42, .5); transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: 30% 50%; }
.portatil .barra { height: 26px; background: #eef0f5; display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.portatil .barra i { width: 9px; height: 9px; border-radius: 50%; background: #d3d8e2; }
.cel { position: absolute; width: 31%; max-width: 210px; right: -2%; bottom: -8%; padding: 7px; border-radius: 30px; background: var(--noche);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .6), inset 0 0 0 2px #2a3140; transform: rotate(4deg); }
.cel img { border-radius: 24px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; }
.solo-cel { display: flex; justify-content: center; gap: 22px; }
.solo-cel .cel { position: relative; right: auto; bottom: auto; width: 46%; max-width: 250px; }
.solo-cel .cel:first-child { transform: rotate(-4deg) translateY(10px); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .escena { min-height: 0; margin: 10px 4px 30px; }
}

/* ---- secciones ---- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec.blanca { background: #fff; border-block: 1px solid var(--line); }
.sec.noche { background: var(--noche); color: #e2e8f0; position: relative; overflow: hidden; }
.sec.noche h2, .sec.noche h3 { color: #fff; }
.sec.noche .intro, .sec.noche .lead { color: #94a3b8; }
.sec.noche::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: var(--c); filter: blur(130px);
  opacity: .22; right: -250px; top: -300px; }
.sec.noche .wrap { position: relative; }
.cabeza { max-width: 820px; margin-bottom: clamp(30px, 4vw, 48px); }
.rejilla { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.tarjeta { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--sombra), 0 0 0 1px var(--line); }
.sec.blanca .tarjeta { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.tarjeta h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.tarjeta p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.tarjeta .ic { color: var(--k, var(--c)); width: 26px; height: 26px; }
.tarjeta .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--k, var(--c)) 11%, #fff); }
a.tarjeta { text-decoration: none; display: block; transition: transform .18s ease, box-shadow .18s ease; }
a.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -26px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .12); }
.mas { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 640; font-size: .93rem; color: var(--k, var(--c)); }
.mas .ic { width: 17px; height: 17px; }
.dolor { border-left: 3px solid var(--c); }
.dolor h3 { margin-top: 0; }

.pasos { counter-reset: paso; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.paso { counter-increment: paso; background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--line); position: relative; }
.paso::before { content: counter(paso, decimal-leading-zero); font: 700 13px/1 "Mono"; color: var(--c); letter-spacing: .1em; }
.paso h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.paso p { margin: 0; font-size: .93rem; color: var(--ink-2); }

.vista { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.vista + .vista { margin-top: clamp(56px, 7vw, 92px); }
.vista.al-reves > :first-child { order: 2; }
.vista h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.vista p { color: var(--ink-2); }
.pantalla { position: relative; }
.pantalla .marco { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(15, 23, 42, .5); }
.pantalla figcaption { font-size: .84rem; color: var(--ink-3); margin-top: 12px; }
.pantalla .cel { width: 28%; max-width: 190px; right: -3%; bottom: -10%; }
@media (max-width: 900px) {
  .vista { grid-template-columns: 1fr; }
  .vista.al-reves > :first-child { order: 0; }
  .pantalla { margin-bottom: 26px; }
}

.cifras { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cifra { padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cifra b { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1 "Brico"; letter-spacing: -.03em; background: linear-gradient(110deg, #fff, #c7d2fe);
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.cifra span { color: #cbd5e1; font-size: .96rem; }
.cifra small { display: block; color: #64748b; margin-top: 8px; font-size: .82rem; }
.nota { font-size: .86rem; color: var(--ink-3); margin-top: 22px; }
.sec.noche .nota { color: #64748b; }

.tabla { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); font-size: .97rem; }
.tabla th, .tabla td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { font: 600 12.5px/1.2 "Mono"; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); }
.tabla tr:last-child td { border-bottom: 0; }
.tabla td:last-child { color: var(--ink); font-weight: 520; }
.tabla td:first-child { color: var(--ink-3); }
.tabla .ic { color: var(--c); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.desliza { overflow-x: auto; }

.texto { max-width: 760px; }
.texto h2 { margin-bottom: 18px; }
.texto h3 { margin: 30px 0 10px; }
.texto p, .texto li { color: var(--ink-2); }
.texto ul { padding-left: 20px; }

.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 640; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 26px/1 "Inter"; color: var(--c); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

.llamado { padding: clamp(56px, 8vw, 96px) 0; }
.llamado .caja-ll { position: relative; overflow: hidden; border-radius: 28px; background: var(--noche); color: #fff; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.llamado .caja-ll::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: var(--fam); filter: blur(90px); opacity: .45; }
.llamado .caja-ll > * { position: relative; }
.llamado h2 { color: #fff; margin-bottom: 12px; }
.llamado p { color: #cbd5e1; margin: 0; max-width: 56ch; }
.llamado .boton.lleno { background: #fff; color: var(--noche); }
.llamado .boton.borde { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.llamado .acciones { margin: 0; flex-direction: column; align-items: stretch; }
@media (max-width: 760px) { .llamado .caja-ll { grid-template-columns: 1fr; } .llamado .acciones { flex-direction: row; flex-wrap: wrap; } }

.migas { font-size: .86rem; color: var(--ink-3); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--ink); }
.migas span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---- calculadoras ---- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.calc.ancha { grid-template-columns: 1.55fr 1fr; }
.calc .tarjeta { padding: 26px; }
.calc label { display: grid; gap: 6px; font-size: .9rem; font-weight: 560; color: var(--ink-2); margin-bottom: 14px; }
.calc input, .calc select { font: 500 1rem/1.2 "Inter"; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .16); background: #fff;
  color: var(--ink); width: 100%; font-variant-numeric: tabular-nums; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--c); outline-offset: 1px; border-color: transparent; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.calc .resultado { position: sticky; top: 86px; }
.total { font: 800 clamp(2rem, 4vw, 2.8rem)/1 "Brico"; letter-spacing: -.03em; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.calc table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.calc td, .calc th { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.calc td:last-child, .calc th:last-child { text-align: right; }
.calc th { font: 600 12px/1.2 "Mono"; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.calc .norma { font-size: .84rem; color: var(--ink-3); margin-top: 14px; }
.fila-ing { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr .8fr 34px; gap: 8px; align-items: end; margin-bottom: 8px; }
.fila-ing label { margin: 0; font-size: .78rem; }
.fila-ing button, .agregar { border: 0; background: var(--bg); border-radius: 10px; height: 44px; cursor: pointer; color: var(--ink-2); font: 600 .92rem "Inter"; }
.agregar { width: 100%; margin: 6px 0 16px; border: 1px dashed rgba(15, 23, 42, .2); }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc .resultado { position: static; }
  .fila-ing { grid-template-columns: 1fr 1fr; padding: 12px; border-radius: 12px; background: var(--bg); }
  .fila-ing button { grid-column: 1 / -1; }
}

/* ---- pie ---- */
.pie { background: var(--noche); color: #94a3b8; padding: 64px 0 34px; font-size: .94rem; }
.pie .cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.pie h4 { font: 600 12px/1 "Mono"; letter-spacing: .12em; text-transform: uppercase; color: #e2e8f0; margin: 6px 0 14px; }
.pie a { display: block; text-decoration: none; padding: 4px 0; color: #94a3b8; }
.pie a:hover { color: #fff; }
.pie .logo { color: #fff; margin-bottom: 14px; display: flex; }
.pie a.correo { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pie a.correo .ic { width: 18px; height: 18px; }
.pie .fin { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: .85rem; }
@media (max-width: 900px) { .pie .cols { grid-template-columns: 1fr 1fr; } .pie .cols > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: sube .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .12s; }
  @keyframes sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
