/* FacturaLaguna — landing pública (look & feel del login, tema Diamond)
   Aprobado en docs/marketing/landing-mockup.html (PR #291).
   Misma tipografía Nunito y misma paleta que la app para continuidad visual. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/nunito-v12-latin-ext_latin-regular.woff2") format("woff2"),
       url("assets/fonts/nunito-v12-latin-ext_latin-regular.woff") format("woff");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/nunito-v12-latin-ext_latin-600.woff2") format("woff2"),
       url("assets/fonts/nunito-v12-latin-ext_latin-600.woff") format("woff");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/nunito-v12-latin-ext_latin-700.woff2") format("woff2"),
       url("assets/fonts/nunito-v12-latin-ext_latin-700.woff") format("woff");
}

* { box-sizing: border-box; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #495057;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

a { color: #1468B0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / hero (patrón del login) ---------- */
.d-header {
  position: relative;
  background: url("assets/img/bg-login.jpg") center/cover no-repeat;
  padding: 18px 5% 26px;
}
.d-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,88,119,.90) 0%, rgba(43,102,80,.88) 100%);
}
.d-header > * { position: relative; }

.d-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.d-logo { display: flex; align-items: center; color: #fff; font-weight: 600; font-size: 20px; }
.d-logo img { height: 38px; margin-right: 10px; }
.d-menu { display: flex; gap: 22px; color: #f0faf0; font-size: 13px; flex-wrap: wrap; }
.d-menu a { color: #f0faf0; text-decoration: none; }
.d-menu a:hover { text-decoration: underline; }

.landing-btn {
  border-radius: 4px;
  background: #ffffff;
  padding: 9px 28px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #2a7d94;
  font-family: inherit;
  font-size: 14px;
  display: inline-block;
  text-decoration: none;
}
.landing-btn:hover { background: #d9f0f5; text-decoration: none; }
.landing-btn.solid { background: #2a7d94; color: #fff; }
.landing-btn.solid:hover { background: #246a7e; }

/* Acciones del topbar: "Iniciar sesión" (secundario) + "Empieza gratis" (primario).
   El botón fantasma va en blanco porque el topbar va sobre el degradado oscuro. */
.d-acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.landing-btn.ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .8);
  padding: 7.5px 22px;
}
.landing-btn.ghost:hover { background: rgba(255, 255, 255, .16); border-color: #ffffff; }
@media (max-width: 860px) { .d-acciones { justify-content: center; } }

.d-hero { text-align: center; color: #fff; padding: 46px 10% 30px; }
.d-hero h1, .d-hero h2 { font-size: 30px; margin: 0 0 10px; font-weight: 600; }
.d-hero p { font-size: 15px; color: #f0faf0; max-width: 640px; margin: 0 auto 20px; }
.d-hero .stats { font-size: 12.5px; color: #e8f7ee; margin-top: 16px; }
.d-hero-login { font-size: 13.5px; color: #f0faf0; margin: 14px 0 0; }
.d-hero-login a { color: #ffffff; font-weight: 600; text-decoration: underline; }
.d-hero-login a:hover { color: #d9f0f5; }

/* ---------- Secciones ---------- */
.wrap { max-width: 1040px; margin: 0 auto; }
.section { padding: 34px 5%; border-bottom: 1px solid #f1f2f6; }
.section h3 { font-size: 18px; color: #2a7d94; margin: 0 0 14px; }
.section h3 a { color: inherit; }

.cols { display: flex; gap: 14px; flex-wrap: wrap; }
.card {
  flex: 1;
  min-width: 220px;
  border: 1px solid #dfe6e9;
  border-radius: 6px;
  padding: 18px;
  background: #fff;
}
.card b { color: #1f2937; font-size: 14.5px; }
.card p { font-size: 13px; color: #6c757d; margin: 6px 0 0; }
.card .step { font-size: 22px; font-weight: 700; color: #2a7d94; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; color: #6c757d; border-bottom: 2px solid #dfe6e9; padding: 6px; text-transform: uppercase; letter-spacing: .4px; }
td { padding: 8px 6px; border-bottom: 1px solid #f1f2f6; }
tr.hl td { background: #eef7fd; font-weight: 600; }

.note { background: #eef7fd; border-left: 3px solid #1468B0; border-radius: 4px; padding: 10px 12px; font-size: 13px; margin: 12px 0; color: #495057; }
.note-warn { background: #fef9ef; border-left-color: #f5a623; }

.pill { display: inline-block; background: #eef7fd; color: #1468B0; border-radius: 12px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.pill.green { background: #e8f7ee; color: #2a7d54; }

/* ---------- FAQ ---------- */
.faq .q { font-weight: 600; color: #1f2937; margin: 14px 0 2px; font-size: 14px; }
.faq .a { color: #6c757d; margin: 0 0 8px; font-size: 13.5px; }

/* ---------- CTA y footer ---------- */
.cta-strip {
  background: linear-gradient(135deg, #7fb77a, #39a4be);
  color: #fff;
  text-align: center;
  padding: 34px 5%;
  font-size: 18px;
  font-weight: 600;
}
.cta-strip .landing-btn { margin-top: 14px; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #6c757d;
  padding: 18px 5% 26px;
}
.footer a { color: #6c757d; }

/* ---------- Guías ---------- */
.guide-layout { display: flex; gap: 26px; align-items: flex-start; padding: 30px 5%; }
.guide-main { flex: 1; min-width: 0; }
.guide-side { width: 260px; flex-shrink: 0; position: sticky; top: 20px; }
.guide-main h1 { font-size: 24px; color: #1f2937; margin: 0 0 8px; line-height: 1.3; }
.guide-meta { font-size: 12.5px; color: #6c757d; margin-bottom: 18px; }
.error-card { border: 1px solid #dfe6e9; border-radius: 8px; padding: 16px 18px; margin: 0 0 14px; }
.error-card h2 { font-size: 15.5px; margin: 0 0 4px; color: #1f2937; }
.error-card h2 .code { color: #1468B0; font-weight: 700; }
.error-card p { font-size: 13.5px; color: #495057; margin: 6px 0 0; }
.error-card .fix { background: #f3f8fb; border-radius: 4px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.error-card .fix b { color: #2a7d54; }
.breadcrumb { font-size: 12.5px; color: #6c757d; margin-bottom: 12px; }

/* ---------- Legal ---------- */
.legal { padding: 30px 5% 40px; }
.legal h1 { font-size: 24px; color: #1f2937; }
.legal h2 { font-size: 16px; color: #2a7d94; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 13.5px; color: #495057; }
.legal .updated { font-size: 12px; color: #6c757d; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .d-hero h1, .d-hero h2 { font-size: 24px; }
  .guide-layout { flex-direction: column; }
  .guide-side { width: 100%; position: static; }
  .d-topbar { justify-content: center; }
  .d-menu { justify-content: center; }
}
