/* Portal de Tecmano RD (decisión T7). Mismos colores que la app (decisión S9). */
:root {
  --bg: #f4f7fd;
  --surface: #ffffff;
  --text: #0b1b3f;
  --muted: #5a6b8c;
  --border: #e3eaf6;
  --primary: #1d4ed8;
  --primary-deep: #1a3fb8;
  --primary-soft: #eaf1ff;
  --accent: #3b82f6;
  --gold: #f5b301;
  --navy: #0b1b3f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 27, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 820px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

/* --- Botones --- */
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  transition: background 0.15s;
}

.button:hover {
  background: var(--primary-deep);
}

.button.light {
  background: #fff;
  color: var(--primary);
}

.button.light:hover {
  background: var(--primary-soft);
}

.button.small {
  padding: 10px 16px;
  font-size: 0.95rem;
}

/* --- Barra superior --- */
.topbar {
  background: var(--navy);
  color: #c9d6ee;
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  align-items: center;
}

.topbar nav {
  display: flex;
  gap: 20px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

/* --- Encabezado --- */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
}

.brand strong {
  color: var(--primary);
}

.brand.light {
  color: #fff;
}

.brand.light strong {
  color: #bfd3ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.menu nav a:hover {
  color: var(--primary);
}

.menu nav a.button {
  color: #fff;
}


/* --- Portada --- */
.hero {
  background: radial-gradient(circle at 85% 20%, #3b82f6 0, transparent 45%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 55%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #bfd3ff;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 17ch;
}

.lead {
  font-size: 1.15rem;
  color: #dbe6ff;
  max-width: 58ch;
  margin: 18px 0 0;
}

.pick {
  margin: 28px 0 10px;
  font-weight: 700;
}

.trade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-pills a {
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
}

.trade-pills a:hover {
  background: var(--primary-soft);
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #dbe6ff;
  font-size: 0.95rem;
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 800;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

/* --- Secciones --- */
.section {
  padding: 88px 0;
}

.section.tinted {
  background: var(--bg);
}

.section.dark {
  background: var(--navy);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

/* Subrayado de acento bajo cada título, como en un portal institucional. */
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--primary);
  margin: 16px auto 0;
}

.section-head.left h2::after {
  margin-left: 0;
}

.section.dark .section-head h2::after {
  background: var(--gold);
}

.section-head p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.section.dark .section-head p {
  color: #c9d6ee;
}

/* Qué hacemos */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 27, 63, 0.88) 38%);
}

.feature-overlay h3 {
  font-size: 1.6rem;
}

.feature-overlay p {
  margin: 10px 0 18px;
  color: #dbe6ff;
}

/* Servicios */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 260;
  object-fit: cover;
}

.service h3 {
  font-size: 1.2rem;
  padding: 18px 20px 0;
}

.service ul {
  margin: 10px 0 0;
  padding: 0 20px 0 38px;
  color: var(--muted);
  flex: 1;
}

.service a {
  padding: 16px 20px 20px;
  font-weight: 700;
  text-decoration: none;
}

/* Cómo funciona */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  display: grid;
  gap: 8px;
}

.steps li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.steps strong {
  font-size: 1.1rem;
}

.steps span {
  color: var(--muted);
}

/* Garantía */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillars article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
}

.pillars .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.pillars h3 {
  font-size: 1.12rem;
}

.pillars p {
  color: #c9d6ee;
  margin: 8px 0 0;
}

.section.dark .note {
  text-align: center;
  color: #c9d6ee;
  margin: 32px auto 0;
  max-width: 70ch;
}

.section.dark .note a {
  color: #fff;
}

/* Para técnicos */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.checks li {
  padding-left: 32px;
  position: relative;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.plan {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 26px;
  margin-top: 18px;
}

.plan-ribbon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border: 3px solid var(--surface);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan-overline {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.plan-pill {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  margin: 14px 0 6px;
  font-size: 1.6rem;
  color: var(--navy);
}

.plan-desc {
  margin: 0;
  color: var(--muted);
}

.plan-price {
  margin: 22px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.plan-price span {
  color: var(--muted);
}

.plan-highlight {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}

.plan-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.plan-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.plan-features strong {
  color: var(--navy);
}

.plan-icon {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.plan-icon-check {
  background: #e7f8ef;
  color: #067647;
}

.plan .button {
  display: block;
  margin-top: 24px;
  text-align: center;
}

.plan-promo {
  margin: 0.4rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #fff4e5;
  color: #b54708;
  font-size: 0.92rem;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}

.plan-foot {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

/* Preguntas */
.section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.section summary {
  cursor: pointer;
  font-weight: 700;
}

.section details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Llamado final */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta p {
  color: #dbe6ff;
  margin: 12px 0 26px;
}

/* Pie */
.footer {
  background: var(--navy);
  color: #c9d6ee;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer p {
  margin: 14px 0 0;
  max-width: 34ch;
}

.footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer nav a {
  color: #c9d6ee;
  text-decoration: none;
}

.footer nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.9rem;
}

/* Páginas legales */
.legal {
  max-width: 70ch;
  padding: 64px 20px;
  margin: 0 auto;
}

/* --- Tableta --- */
@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
    gap: 5px;
    padding: 10px;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--text);
  }
  .menu > nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 20px 20px;
  }
  .menu.open > nav {
    display: flex;
  }
  .menu nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .menu nav a.button {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
  }
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-art {
    justify-self: center;
    max-width: 380px;
  }
  .steps,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Teléfono --- */
@media (max-width: 640px) {
  .topbar-inner > span {
    display: none;
  }
  .topbar-inner {
    justify-content: flex-end;
  }
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero-art {
    max-width: 280px;
  }
  .section {
    padding: 64px 0;
  }
  .feature-cards,
  .service-grid,
  .steps,
  .pillars,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 420px;
  }
  .plan-price strong {
    font-size: 2.2rem;
  }
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
}

.legal .lead-dark {
  font-size: 1.1rem;
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 16px 18px;
}
