/* Royma Informática — estilos de la web.
   Layout: una columna de 1160px, bandas alternas blanco / gris / azul marino, tarjetas solo donde agrupan contenido.
   Aspecto claro elegido a propósito para la web de un negocio local: fondo y colores fijados explícitamente. */
:root {
  --ink: #16181D;
  --ink-2: #2E3340;
  --muted: #4A5160;
  --soft: #555C6B;
  --bg: #FFFFFF;
  --surface: #F4F5F7;
  --tint: #EEF2F8;
  --line: #E3E5EA;
  --navy: #253E71;
  --on-navy: #DCE3F0;
  --dark: #16181D;
  --dark-line: #3A3F4B;
  --dark-muted: #C9CDD6;
  --wa: #15803D;
  --ok: #15803D;
  --font: system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--ink); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid #008EEF; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; }
[id] { scroll-margin-top: 90px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.band { padding-block: 88px; }
.band-gray { background: var(--surface); }
.band-dark { background: var(--dark); color: #FFFFFF; }
@media (max-width: 640px) { .band { padding-block: 64px; } }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: #1C3160; color: #FFFFFF; }
.btn-dark { background: var(--dark); color: #FFFFFF; }
.btn-dark:hover { background: #000000; color: #FFFFFF; }
.btn-line { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { color: var(--navy); }

/* Cabecera */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { height: 30px; width: auto; display: block; }
.brand span { font-size: 13px; line-height: 1.25; color: var(--soft); border-left: 1px solid var(--line); padding-left: 14px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-size: 15px; font-weight: 600; }
.menu a { text-decoration: none; color: var(--ink-2); padding: 10px 0; }
.menu a:hover { color: var(--navy); }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .top .wrap { flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px;
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 6px; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 4px; border-top: 1px solid var(--line); }
  .top .btn-wa-top { display: none; }
}

/* Portada */
.hero { padding-block: 80px 72px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 56px; }
.hero .stack { gap: 22px; flex: 999 1 520px; min-width: 0; }
.hero-img { flex: 1 1 360px; min-width: 0; max-width: 560px; }
.hero-img img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hours { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--muted); }
.hours b { color: var(--ink); }

/* Servicios */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.card .art { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--surface); }
.tag { display: flex; align-items: center; gap: 10px; }
.tag i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.card h3 { font-size: 23px; line-height: 1.2; font-weight: 800; }
.card p { color: var(--muted); }
.card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.more { margin-top: auto; font-weight: 700; }

/* ClassicGes */
.cg-top { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.cg-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cg-logo { width: 300px; max-width: 100%; height: auto; display: block; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: var(--tint); padding: 7px 14px; border-radius: 999px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px 24px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.cg-box { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; align-items: center; background: var(--tint); border-radius: 28px; padding: 40px 24px; }
.cg-box img { width: 250px; max-width: 100%; height: auto; display: block; }
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.sector { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.sector h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.sector p { color: var(--muted); font-size: 15px; }
.demo { background: var(--navy); color: #FFFFFF; border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.demo .txt { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.demo h3 { font-size: 24px; font-weight: 800; }
.demo p { color: var(--on-navy); }
.demo .code-box { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.demo .code-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy); }
.code-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.code { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: 0.12em; background: #FFFFFF; color: var(--ink); padding: 9px 16px; border-radius: 10px; user-select: all; }
.copy { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.12); }

/* Novedades */
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.news { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.news .date { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
.news h3 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.news p { color: var(--muted); }

/* Fibra */
.band-dark .lead { color: var(--dark-muted); }
.ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.op { border: 1px solid var(--dark-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.op b { font-size: 22px; font-weight: 800; }
.op span { color: var(--dark-muted); }

/* Soporte */
.support { background: var(--surface); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.support .txt { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.support h2 { font-size: 24px; font-weight: 800; }
.support p { color: var(--muted); }

/* Contacto */
.contact { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field .k { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.field .v { font-weight: 700; font-size: 17px; }
.field a.v { text-decoration: none; }
.map {
  flex: 1.4 1 420px; min-width: 0; min-height: 340px; border-radius: 20px; padding: 32px;
  background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.map b { font-size: 18px; }
.map p { color: var(--muted); max-width: 400px; }

/* Pie */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-block: 32px 40px; font-size: 14px; color: var(--soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--soft); }

/* Botones flotantes */
.float {
  position: fixed; z-index: 25;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}
.fab { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; box-shadow: 0 6px 18px rgba(22, 24, 29, 0.22); text-decoration: none; border: 0; cursor: pointer; }
.fab:hover { color: #FFFFFF; }
.fab-wa { background: var(--wa); }
.fab-up { background: var(--navy); }

/* Mapa al pulsar */
.map.on { padding: 0; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.map p a { color: var(--navy); }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding-block: 56px 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 800; margin-bottom: 8px; }
.legal .upd { color: var(--soft); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--soft); font-weight: 700; width: 34%; }
.table-box { overflow-x: auto; }
.back { display: inline-flex; margin-bottom: 24px; font-weight: 700; }
