/* islaPC rebranding 2026 — "islaPC funciona"
   Concepto: oferta clara en primer plano (ticket de precio), bloques limpios, azul islaPC + sol para lo destacado. */
@font-face { font-family: "Plex"; src: url("assets/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/plex-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --ink: #0c1726;
  --navy: #0d2a52;
  --blue: #1769e0;
  --blue-deep: #0f4fb0;
  --blue-soft: #eaf2ff;
  --sun: #3d8bff;
  --sun-soft: #e6f0ff;
  --paper: #f4f7fb;
  --line: #dde5ef;
  --muted: #566377;
  --white: #ffffff;
  --wa: #1fa855;
  --display: "Plex", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(12, 23, 38, .10);
}

body { font-family: var(--body); color: var(--ink); background: var(--white); }
h1, h2, h3, .brand span, .price-big, .rb-price { font-family: var(--display); letter-spacing: -.01em; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px max(20px, calc((100% - 1160px) / 2));
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: blur(14px);
  left: auto; right: auto;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.site-header .brand img { width: 34px; height: 34px; }
.site-header .nav { display: flex; gap: 6px; margin-left: auto; font-size: 15px; }
.site-header .nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-header .nav a:hover { background: var(--paper); color: var(--blue); }
.site-header .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-deep); }
.site-header .header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px; text-decoration: none;
  white-space: nowrap;
}
.site-header .header-cta:hover { filter: brightness(.96); }
.site-header .menu-toggle { display: none; }
@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-header .nav { display: none; }
  .site-header .header-cta { margin-left: auto; padding: 9px 13px; font-size: 13px; }
  .site-header .menu-toggle { display: block; }
  .site-header.menu-open .nav { display: flex; flex-direction: column; width: 100%; margin: 4px 0 6px; gap: 2px; }
  .site-header.menu-open .nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
}
@media (max-width: 350px) { .site-header .brand span { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sun { background: var(--sun); color: var(--white); box-shadow: 0 10px 26px rgba(61, 139, 255, .35); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 26px rgba(23, 105, 224, .28); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }

/* ---------- Estructura ---------- */
.rb-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.rb-section { padding-block: 84px; }
.rb-section.paper { background: var(--paper); }
.rb-eyebrow { display: inline-block; margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rb-head { max-width: 720px; margin-bottom: 40px; }
.rb-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; }
.rb-head p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

/* ---------- Hero ---------- */
.rb-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #1f4f99 0%, transparent 60%), var(--navy);
  color: var(--white);
}
.rb-hero .rb-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 76px 84px; }
.rb-hero .rb-eyebrow { color: #8fc1ff; }
.rb-hero h1 { margin: 0 0 18px; font-size: clamp(40px, 6.4vw, 74px); line-height: .98; font-weight: 800; }
.rb-hero h1 em { font-style: normal; color: #6fb0ff; }
.rb-hero .lead { max-width: 560px; margin: 0 0 28px; color: #c9d6ea; font-size: 19px; line-height: 1.55; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-hero-note { margin: 18px 0 0; color: #9fb2cf; font-size: 14px; }

/* Ticket de precio (oferta estrella) */
.rb-ticket {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.rb-ticket::before, .rb-ticket::after {
  content: ""; position: absolute; top: 118px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy);
}
.rb-ticket::before { left: -13px; }
.rb-ticket::after { right: -13px; }
.rb-badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rb-ticket h2 { margin: 14px 0 4px; font-size: 22px; }
.rb-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 18px; font-size: 64px; font-weight: 700; line-height: 1; }
.rb-price small { font-family: var(--body); font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.rb-ticket-split { display: grid; gap: 10px; padding-top: 18px; border-top: 2px dashed var(--line); }
.rb-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.rb-opt strong { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.rb-opt.best { background: var(--sun-soft); outline: 2px solid var(--blue); }
.rb-ticket .btn { width: 100%; margin-top: 18px; }
.rb-fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Franja de valores */
.rb-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.rb-strip .rb-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.rb-strip div.item { padding: 26px 24px; border-left: 1px solid var(--line); }
.rb-strip div.item:first-child { border-left: 0; padding-left: 0; }
.rb-strip strong { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 4px; }
.rb-strip span { color: var(--muted); font-size: 15px; }

/* Ofertas */
.rb-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.rb-offer { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.rb-offer.star { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.rb-offer h3 { margin: 0; font-size: 24px; }
.rb-offer .rb-price { margin: 0; font-size: 46px; }
.rb-offer p { margin: 0; color: var(--muted); line-height: 1.55; }
.rb-offer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rb-offer li { position: relative; padding-left: 26px; line-height: 1.45; }
.rb-offer li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231769e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.rb-offer .btn { margin-top: auto; }
.rb-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rb-offer.star .rb-tag { background: var(--blue); color: var(--white); }

/* Soluciones */
.rb-solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rb-sol { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.rb-sol:hover { border-color: var(--blue); transform: translateY(-2px); }
.rb-sol .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.rb-sol .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rb-sol h3 { margin: 4px 0 0; font-size: 20px; }
.rb-sol p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.rb-sol .more { margin-top: auto; color: var(--blue); font-weight: 800; font-size: 14px; }

/* Pasos */
.rb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.rb-step { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.rb-step::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; }
.rb-step h3 { margin: 0 0 6px; font-size: 20px; }
.rb-step p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Clientes */
.rb-clients { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-client { flex: 1 1 220px; padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.rb-client strong { display: block; font-family: var(--display); font-size: 20px; }
.rb-client span { color: var(--muted); font-size: 15px; }

/* Tabla de precios */
.rb-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.rb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.rb-row:first-child { border-top: 0; }
.rb-row strong { font-family: var(--display); font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-two h3 { margin: 0 0 14px; font-size: 22px; }
.rb-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.rb-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rb-list li { padding: 14px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }

/* CTA final */
.rb-cta { background: var(--ink); color: var(--white); }
.rb-cta .rb-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 72px; }
.rb-cta h2 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; }
.rb-cta p { margin: 0; color: #b8c4d6; font-size: 18px; line-height: 1.55; }
.rb-channels { display: grid; gap: 10px; }
.rb-channel { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--white); text-decoration: none; }
.rb-channel:hover { background: rgba(255, 255, 255, .1); }
.rb-channel b { display: block; font-size: 16px; }
.rb-channel small { color: #b8c4d6; font-size: 14px; }
.rb-channel img, .rb-channel .at { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.rb-channel .at { display: grid; place-items: center; background: var(--blue); font-weight: 800; }

/* Cabecera de páginas internas */
.page-hero { width: 100%; max-width: none; margin: 0; padding: 64px max(20px, calc((100% - 1160px) / 2)) 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero-content { max-width: 780px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.eyebrow { color: var(--blue); }
.button.primary { background: var(--blue); color: var(--white); border-radius: 12px; }
.button.secondary { border-radius: 12px; }

/* ---------- Pie ---------- */
.footer { width: 100%; max-width: none; margin: 0; padding: 56px max(20px, calc((100% - 1160px) / 2)) 110px; background: var(--navy); color: #c9d6ea; border: 0; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h2 { margin: 0 0 12px; color: var(--white); font-family: var(--body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer a, .footer span { display: block; padding: 4px 0; color: #c9d6ea; font-size: 15px; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer .brand img { width: 32px; height: 32px; }
.footer p { margin: 0; font-size: 15px; line-height: 1.55; }
.footer-legal { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8ea2c0; font-size: 14px !important; }

/* WhatsApp flotante */
.wa-float { background: var(--wa); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rb-hero .rb-wrap, .rb-cta .rb-wrap, .rb-two { grid-template-columns: 1fr; }
  .rb-offers, .rb-solutions, .rb-steps { grid-template-columns: 1fr 1fr; }
  .rb-offer.star { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rb-section { padding-block: 60px; }
  .rb-hero .rb-wrap { padding-block: 44px 56px; gap: 36px; }
  .rb-hero .lead { font-size: 17px; }
  .rb-actions .btn { width: 100%; }
  .rb-offers, .rb-solutions, .rb-steps, .footer-grid { grid-template-columns: 1fr; }
  .rb-strip .rb-wrap { grid-template-columns: 1fr; }
  .rb-strip div.item { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .rb-strip div.item:first-child { border-top: 0; }
  .rb-price { font-size: 54px; }
  .rb-ticket { padding: 24px 20px 22px; }
  .rb-row { flex-direction: column; gap: 4px; padding: 14px 18px; }
  .rb-row strong { white-space: normal; }
  .rb-opt { flex-direction: column; gap: 2px; }
}

/* Nombre visible junto al logo */
.site-header .brand span, .footer .brand span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
@media (max-width: 350px) { .site-header .brand span { display: none; } }
@media (max-width: 960px) {
  .site-header .header-cta { font-size: 13px; }
  .site-header .header-cta::after { content: none; }
}
@media (max-width: 960px) {
  .site-header .header-cta { width: auto; grid-column: auto; }
}
.site-header .brand span { display: inline; }
@media (max-width: 350px) { .site-header .brand span { display: none; } }

.rb-price { color: var(--ink); }

/* Área de clientes y opciones del ticket como enlaces */
.site-header .header-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-header .header-login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header .header-login:hover { color: var(--blue); }
a.rb-opt { color: inherit; text-decoration: none; transition: outline-color .15s, background .15s; }
a.rb-opt:hover { outline: 2px solid var(--blue); }
@media (max-width: 960px) {
  .site-header .header-login { margin-left: auto; padding: 8px 6px; }
  .site-header .header-login + .header-cta { margin-left: 0; }
}
@media (max-width: 480px) { .site-header .header-login span { display: none; } }

/* ---- v3: tabla de 3 columnas, calculadora, FAQ ---- */
.rb-row-head { background: var(--paper); font-weight: 700; }
.rb-table .rb-row:has(> :nth-child(3)) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.rb-table .rb-row:has(> :nth-child(3)) strong { text-align: right; }
.rb-static { cursor: default; }
.rb-static:hover { transform: none; border-color: var(--line); }
.rb-calc { padding: 28px; border-radius: 20px; background: var(--white); border: 2px solid var(--blue); box-shadow: var(--shadow); display: grid; gap: 12px; }
.rb-calc h3 { margin: 0; font-size: 22px; }
.rb-calc label[for] { font-weight: 700; font-size: 15px; }
.rb-calc-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; }
.rb-calc-row input { min-height: 52px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font: 700 22px var(--display); color: var(--ink); background: var(--paper); width: 100%; }
.rb-step-btn { min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 24px; font-weight: 700; color: var(--blue); cursor: pointer; }
.rb-step-btn:hover { border-color: var(--blue); }
.rb-calc-mode { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.rb-calc-mode legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.rb-calc-mode label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rb-calc-mode label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.rb-calc-total { margin: 6px 0 0; font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rb-calc-total small { font-family: var(--body); font-size: 18px; color: var(--muted); margin-left: 4px; }
.rb-calc .btn { width: 100%; }
.rb-faq { border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin-bottom: 12px; }
.rb-faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 19px; list-style: none; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; float: right; color: var(--blue); font-size: 24px; line-height: 1; }
.rb-faq[open] summary::after { content: "−"; }
.rb-faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.6; font-size: 17px; }
.legal-readable h2 { font-size: 22px; margin: 28px 0 8px; }
.legal-readable p { line-height: 1.65; color: var(--ink); }
.rb-hero .rb-actions .btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .rb-table .rb-row:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr) auto auto; font-size: 14px; gap: 8px; }
  .rb-calc { padding: 22px 18px; }
}
.rb-price-line { margin: 2px 0 4px; color: var(--blue-deep); font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.rb-sol .rb-price-line { font-size: 20px; }
.rb-offer p.rb-price-line, .rb-sol p.rb-price-line { color: var(--blue); }
.rb-price, .rb-price-line, .rb-row strong, .rb-opt strong { font-variant-numeric: tabular-nums; }
.rb-offer p.rb-price-two, .rb-sol p.rb-price-two { font-size: 19px; line-height: 1.35; }
[hidden] { display: none !important; }
