/* Landings por sector · iARTESANA
   Hoja compartida por las 6 páginas de /sector/. Mismo lenguaje visual que la presentación:
   fondo noche, acento esmeralda/cian y tipografía Plus Jakarta Sans. */

:root {
  color-scheme: dark;
  --bg: #090d16;
  --bg-2: #0e1420;
  --card: #111a29;
  --card-2: #152034;
  --line: #22304a;
  --text: #e8eef7;
  --muted: #9fb0c8;
  --soft: #6f819c;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-ink: #052e22;
  --warn: #fbbf24;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 13, 22, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 48, 74, .7);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 17px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(52, 211, 153, .55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(52, 211, 153, .75); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn small { font-weight: 600; opacity: .75; }

/* ---------- Banda de recomendación (?ref=) ---------- */
.ref-band { display: none; background: linear-gradient(90deg, rgba(52, 211, 153, .14), rgba(34, 211, 238, .12)); border-bottom: 1px solid rgba(52, 211, 153, .3); }
.ref-band.on { display: block; }
.ref-band .wrap { padding-top: 12px; padding-bottom: 12px; font-size: 15px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }

/* ---------- Portada ---------- */
.hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(52, 211, 153, .16), transparent 60%),
              radial-gradient(ellipse at 75% 30%, rgba(34, 211, 238, .12), transparent 55%);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding: 7px 14px; border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; background: rgba(52, 211, 153, .07);
}
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 22px 0 18px; font-weight: 900; max-width: 920px; }
.hero .sub { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 760px; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }

/* ---------- Títulos de sección ---------- */
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 900; }
.lead { color: var(--muted); font-size: 19px; max-width: 760px; margin: 0 0 40px; }

/* ---------- Dolores ---------- */
.pains { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; }
.pain h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.pain h3::before { content: "“"; color: var(--accent); font-size: 30px; line-height: 0; margin-right: 4px; vertical-align: -6px; }
.pain p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Herramientas sueltas vs propias ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--card); }
.panel h3 { margin: 0 0 6px; font-size: 20px; }
.panel .note { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.panel.today { background: repeating-linear-gradient(135deg, #0f1726, #0f1726 12px, #101a2b 12px, #101a2b 24px); }
.scatter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 12px; font-size: 15px; font-weight: 700; border: 1px dashed #3a4a66; color: #b7c4d8; background: #0c1320; }
.scatter .chip:nth-child(3n+1) { transform: rotate(-2.5deg); }
.scatter .chip:nth-child(3n+2) { transform: rotate(2deg) translateY(4px); }
.scatter .chip:nth-child(3n) { transform: rotate(-1deg) translateY(-3px); }
.panel.own { border-color: rgba(52, 211, 153, .45); background: linear-gradient(180deg, rgba(52, 211, 153, .08), rgba(34, 211, 238, .04)), var(--card); }
.hub { text-align: center; padding: 16px; border-radius: 16px; font-weight: 900; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: 14px; }
.hub small { display: block; font-weight: 700; font-size: 13px; opacity: .8; }
.joined { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; padding-top: 14px; }
.joined::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 14px; background: var(--accent); }
.joined .chip { border-style: solid; border-color: rgba(52, 211, 153, .5); color: var(--text); background: rgba(52, 211, 153, .08); }
.question { margin: 34px 0 0; padding: 28px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); }
.question h3 { margin: 0 0 8px; font-size: 24px; }
.question p { margin: 0; color: var(--muted); }

/* ---------- Qué construimos ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.build { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.build .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.build h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.build p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- Un día cualquiera ---------- */
.day { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .5; }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 36px; padding: 12px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 81px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); }
.timeline time { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); padding-top: 6px; }
.timeline p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }

/* ---------- La casa ---------- */
.house { max-width: 940px; margin: 0 auto; }
.roof {
  height: 120px; background: linear-gradient(90deg, rgba(52, 211, 153, .25), rgba(34, 211, 238, .25));
  clip-path: polygon(50% 0, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px; font-weight: 900; font-size: 18px;
}
.rooms { border: 1px solid var(--line); border-bottom: 0; background: var(--card); padding: 22px; }
.rooms-label, .found-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.rooms-label { color: var(--accent-2); }
.room-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.room { border: 1px dashed #3a4a66; border-radius: 12px; padding: 14px 10px; text-align: center; font-size: 15px; font-weight: 700; color: #c9d5e6; }
.room span { display: block; font-size: 22px; margin-bottom: 4px; }
.foundation { background: linear-gradient(180deg, #13372c, #0c2a22); border: 1px solid rgba(52, 211, 153, .45); padding: 22px; border-radius: 0 0 var(--radius) var(--radius); }
.found-label { color: var(--accent); }
.found-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stone { background: rgba(9, 13, 22, .55); border: 1px solid rgba(52, 211, 153, .3); border-radius: 12px; padding: 14px 10px; text-align: center; font-size: 14.5px; font-weight: 700; }
.stone span { display: block; font-size: 22px; margin-bottom: 4px; }
.house-note { text-align: center; color: var(--muted); max-width: 720px; margin: 26px auto 0; }

/* ---------- Casos reales ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.case { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mono { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.case h3 { margin: 0; font-size: 18px; }
.case p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.case.first { border-style: dashed; border-color: rgba(52, 211, 153, .5); }
.case.first .mono { background: transparent; border: 2px dashed var(--accent); color: var(--accent); }
.cases-note { color: var(--soft); font-size: 15px; margin-top: 18px; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.person img { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; flex: 0 0 104px; background: var(--card-2); }
.person h3 { margin: 0; font-size: 21px; }
.person .role { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 8px; }
.person p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.where { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.where div { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; font-size: 16px; color: var(--muted); }
.where strong { color: var(--text); display: block; }

/* ---------- Preguntas ---------- */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Cierre y formulario ---------- */
.final { background: radial-gradient(ellipse at 50% 0, rgba(52, 211, 153, .14), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cta-box { background: var(--card); border: 1px solid rgba(52, 211, 153, .45); border-radius: var(--radius); padding: 30px; }
.cta-box h3 { margin: 0 0 8px; font-size: 24px; }
.cta-box ul { margin: 14px 0 24px; padding: 0; list-style: none; color: var(--muted); }
.cta-box li { padding: 5px 0; }
.cta-box li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 10px; }
.cta-box .btn { width: 100%; }
.alt { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.alt a { color: var(--accent); font-weight: 700; }
.cta-box.alt-box { border-color: var(--line); }
.tag-free, .tag-paid {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.tag-free { color: var(--accent); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); }
.tag-paid { color: var(--accent-2); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .35); }

/* ---------- Diagnóstico ---------- */
.price-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-width: 760px;
  margin: 0 0 30px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(34, 211, 238, .4);
}
.price-card strong { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.price-card span { color: var(--muted); font-weight: 700; }
.price-card p { margin: 0; flex: 1 1 300px; color: var(--muted); font-size: 16px; }
.price-card p strong { font-size: inherit; color: var(--text); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain h3.no-quote::before { content: none; }
.timeline.steps time {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
}
.timeline.steps li::before { content: none; }
.timeline.steps::before { left: 17px; }
.timeline.steps li { grid-template-columns: 34px 1fr; gap: 20px; }

/* ---------- Pie ---------- */
footer { padding: 40px 0 110px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Botón fijo en móvil */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { gap: 12px; }
  .grid-3 .pain, .grid-3 .build { padding: 18px; }
  .room-grid, .found-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .final-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 60px; }
  .hero-ctas .btn { width: 100%; }
  .grid-2, .compare, .team, .where { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .room-grid, .found-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roof { height: 84px; font-size: 15px; padding-bottom: 12px; }
  .timeline::before { left: 62px; }
  .timeline li { grid-template-columns: 50px 1fr; gap: 26px; }
  .timeline li::before { left: 57px; }
  .timeline.steps::before { left: 17px; }
  .timeline.steps li { grid-template-columns: 34px 1fr; gap: 16px; }
  .price-card strong { font-size: 30px; }
  .person img { width: 84px; height: 84px; flex-basis: 84px; }
  .top .btn-sm { display: none; }
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  }
  .sticky-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Sección «9 consejos» (estilos en /consejos-ia.css) ---------- */
.cj-section { background: transparent; }  /* entre la banda de datos y la de problemas, para que se alternen */
.cj-section .cj-card { background: var(--card); }

/* ---------- Selector de subcategoría (Visión general · Tabernas · Restaurantes…) ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; }
.subnav span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.subnav-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.subnav-chip:hover { border-color: rgba(52, 211, 153, .55); }
.subnav-chip.on { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .6); color: var(--accent); }

/* ---------- Datos de impacto (páginas con «stats») ---------- */
.stats-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat-src { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.stat-num { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.stat-num.sm { font-size: 28px; margin-top: 4px; }
.stat-num span { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat-txt { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
