/* Red Guinet — tema GUINET: misma identidad visual del portal del hotspot.
   Claro por defecto, oscuro cuando el teléfono/PC está en modo oscuro (igual que el portal). */
:root {
  color-scheme: light;
  --ink: #120a2e;
  --txt: #2a2346;
  --muted: #5b5478;
  --deep: #f3efff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-bright: #f6f2ff;
  --line: #e6defd;
  --cyan: #6d28d9;
  --blue: #4f46e5;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --success: #15803d;
  --warning: #b45309;
  --error: #be123c;
  --shadow: 0 18px 40px -14px rgba(124, 58, 237, .38), 0 6px 14px -8px rgba(192, 38, 211, .25);
  --gn-head: radial-gradient(120% 90% at 0% 0%, #d946ef 0%, rgba(217, 70, 239, 0) 55%), radial-gradient(120% 100% at 100% 100%, #06b6d4 0%, rgba(6, 182, 212, 0) 55%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 45%, #4f46e5 100%);
  --gn-page: radial-gradient(60% 40% at 100% 0%, rgba(34, 211, 238, .18), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(217, 70, 239, .14), transparent 70%), #f3efff;
  --gn-border: linear-gradient(135deg, #d946ef 0%, #7c3aed 50%, #22d3ee 100%);
  --gn-btn: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 38%, #5b21b6 100%);
  --gn-btn3d: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 5px 0 #3b0f7a, 0 12px 22px -6px rgba(91, 33, 182, .55);
  --gn-card: #ffffff;
  --gn-input: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5f3ff; --txt: #e4e0fa; --muted: #b4acd8; --deep: #070617;
    --surface: #14112f; --surface-raised: #14112f; --surface-bright: #1c1842; --line: #2e2760;
    --cyan: #d8b4fe; --blue: #a5b4fc; --violet: #a78bfa; --violet-deep: #7c3aed;
    --success: #4ade80; --warning: #fcd34d; --error: #fb7185;
    --shadow: 0 18px 44px -16px rgba(0, 0, 0, .7);
    --gn-page: radial-gradient(60% 40% at 100% 0%, rgba(34, 211, 238, .10), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(217, 70, 239, .12), transparent 70%), #070617;
    --gn-card: #14112f; --gn-input: #0d0a22;
  }
}

body { background: var(--gn-page); background-attachment: scroll; min-height: 100vh; color: var(--txt); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body::before, body::after { display: none; }
h1, h2, h3 { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; }
.page-intro h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h1 em { color: var(--violet); }
.lead, p { color: var(--muted); }
a { color: var(--cyan); }
a:hover { color: var(--violet-deep); }
.icon { fill: none; }
.hero { gap: 56px; }
.hero-copy .lead { font-size: 1.12rem; }

/* Cabecera con degradado y logo, como el portal */
.site-header { background: var(--gn-head); border: 0; border-radius: 0 0 26px 26px; box-shadow: 0 16px 34px -18px rgba(76, 29, 149, .7); position: relative; overflow: hidden; }
.site-header::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 36px; background: rgba(255, 255, 255, .12); transform: rotate(18deg); pointer-events: none; }
.header-inner { min-height: 84px; position: relative; z-index: 1; }
.brand { color: #fff; }
.brand img { display: block; height: 40px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.site-nav a { color: rgba(255, 255, 255, .86); padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.site-nav a[aria-current="page"] { background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); color: #4c1d95; }
.site-nav { gap: 6px; }

.eyebrow, .card-number { color: var(--violet); }
.hero-kicker { color: var(--violet); }

/* Tarjetas con borde de degradado */
.network-card, .location-panel, .network-status-panel, .info-card, .lookup-panel, .voucher-result, .help-chooser, .help-panel {
  background: linear-gradient(var(--gn-card), var(--gn-card)) padding-box, var(--gn-border) border-box;
  border: 2px solid transparent; border-radius: 22px; box-shadow: var(--shadow);
}
.network-card strong, .network-status-panel h2 { color: var(--ink); }
.network-card-top { color: var(--muted); }
.signal-graphic span { background: linear-gradient(180deg, #d946ef, #7c3aed 60%, #22d3ee); opacity: .9; }
.feature-grid { border-top: 1px solid var(--line); }
.feature-card { border-color: var(--line); }
.feature-icon, .section-icon { color: var(--violet); }
.feature-card p { color: var(--muted); }

/* Botones 3D violeta como el hotspot */
.button { border-radius: 14px; font-size: .95rem; min-height: 52px; }
.button-primary { background: var(--gn-btn); border-color: transparent; box-shadow: var(--gn-btn3d); color: #fff; }
.button-primary:hover { color: #fff; box-shadow: var(--gn-btn3d); filter: brightness(1.06); }
.button-primary:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 #3b0f7a; }
.button-secondary { background: var(--gn-card); border: 2px solid var(--violet); color: var(--violet-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button-secondary { color: #e9d5ff; border-color: #a78bfa; } }
.button-secondary:hover { background: var(--surface-bright); color: var(--violet-deep); }

.location-link { color: var(--ink); }
.location-link:hover { background: var(--surface-bright); color: var(--violet-deep); }
.location-link small { color: var(--muted); }
.status-retry { background: var(--surface-bright); border-color: var(--line); color: var(--ink); min-height: 44px; }

/* Formularios */
input, .lookup-panel select, textarea, .lookup-panel input, .help-chat-entry input { background: var(--gn-input); border: 2px solid var(--line); border-radius: 12px; color: var(--ink); min-height: 52px; }
input:hover, .lookup-panel select:hover { border-color: var(--violet); }
input:focus, .lookup-panel select:focus, .lookup-panel input:focus, .help-chat-entry input:focus { background: var(--gn-input); border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
label { color: var(--ink); }
.mode-help { background: var(--surface-bright); border-left-color: var(--violet); }
.voucher-assistance, .voucher-camera { background: var(--surface-bright); border: 1px solid var(--line); box-shadow: none; }
.help-visual-button { background: var(--surface-bright); border: 1px solid var(--line); }
input[type="file"] { background: var(--gn-input); }
input[type="file"]::file-selector-button { background: var(--surface-bright); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); margin-right: 10px; padding: 8px 12px; cursor: pointer; font: inherit; }

/* Asistente */
.help-widget-launcher { background: var(--gn-btn); border: 0; box-shadow: var(--gn-btn3d); color: #fff; }
.help-widget-icon, .help-chat-avatar { background: #fff; color: #6d28d9; }
.help-widget-greeting { background: var(--gn-card); border: 2px solid var(--violet); color: var(--ink); }
.help-chat { background: linear-gradient(var(--gn-card), var(--gn-card)) padding-box, var(--gn-border) border-box; border: 2px solid transparent; color: var(--txt); }
.help-chat-close { background: var(--surface-bright); color: var(--ink); }
.help-chat-warning { background: var(--surface-bright); border-left-color: var(--warning); color: var(--txt); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .footer-inner span:first-child { color: var(--ink); }

@media (max-width: 720px) {
  .site-header { border-radius: 0 0 22px 22px; }
  .header-inner { padding-bottom: 12px; }
  .brand img { height: 36px; }
  .site-nav a { padding: 8px 12px; font-size: .8rem; }
}
