/* Global GPS Perú — Tutoriales (paleta dark navy + azul GPS) */

:root {
  --navy: #0a1929;
  --navy-light: #142a47;
  --navy-soft: #1d3658;
  --blue: #0066ff;
  --blue-light: #3b82f6;
  --blue-soft: #dbeafe;
  --text: #1e293b;
  --text-light: #64748b;
  --text-on-dark: #cbd5e1;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --green: #10b981;
  --amber: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.tut-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tut-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tut-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.tut-logo span { font-weight: 400; opacity: .7; font-size: 14px; }
.tut-header-right { display: flex; align-items: center; gap: 14px; }
.tut-back {
  font-size: 13px;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tut-back:hover { color: #fff; text-decoration: none; }

/* Selector idioma */
.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 3px;
  font-size: 12px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-on-dark);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
}
.lang-btn.active { background: var(--blue); color: #fff; }
.lang-btn:hover:not(.active) { color: #fff; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 60px 24px 48px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-on-dark);
  max-width: 640px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(59,130,246,.2);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: .02em;
}

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

/* ─── Grid de planes (index) ─── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.plan-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
  text-decoration: none;
}
.plan-card .icon { font-size: 28px; margin-bottom: 4px; }
.plan-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.plan-card p { font-size: 13px; color: var(--text-light); flex: 1; }
.plan-card .arrow { color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 8px; }

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 36px 0 12px;
}
.section-title:first-of-type { margin-top: 8px; }

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin: 28px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }

.tab-panel { display: none; animation: fadeIn .25s; }
.tab-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── App banner ─── */
.app-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.app-banner .icon-app {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; flex-shrink: 0;
}
.app-banner-text { flex: 1; min-width: 200px; }
.app-banner h4 { font-size: 16px; margin-bottom: 2px; }
.app-banner small { color: var(--text-light); font-size: 13px; }
.app-banner .store-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.store-btn:hover { background: var(--navy-light); text-decoration: none; }

/* ─── Tutoriales (acordeón) ─── */
.tut-list { display: flex; flex-direction: column; gap: 10px; }
.tut-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.tut-item:hover { border-color: var(--blue-light); }
.tut-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}
.tut-summary::-webkit-details-marker { display: none; }
.tut-summary .num {
  width: 28px; height: 28px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tut-summary .title { flex: 1; }
.tut-summary .chev {
  color: var(--text-light); font-size: 14px;
  transition: transform .2s;
}
details[open] .chev { transform: rotate(180deg); }
.tut-body { padding: 0 20px 22px 62px; color: var(--text); font-size: 14px; }
.tut-body p { margin-bottom: 10px; color: var(--text); }
.tut-body ol { padding-left: 18px; margin: 12px 0; counter-reset: stepcount; }
.tut-body ol > li {
  margin-bottom: 10px;
  padding-left: 6px;
  position: relative;
}
.tut-body ol > li[data-marker] { cursor: pointer; transition: background .15s; padding: 6px 8px 6px 6px; border-radius: 6px; margin-left: -8px; }
.tut-body ol > li[data-marker]:hover { background: var(--blue-soft); }
.tut-body ol > li[data-marker].linked { background: var(--blue-soft); }
.tut-body h4 { margin: 16px 0 8px; font-size: 14px; color: var(--navy); }

.tut-body .video-placeholder {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #e0e7ff 100%);
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--blue);
  font-size: 13px;
  margin: 14px 0;
}
.tut-body .video-placeholder strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tut-body .pic-placeholder {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  margin: 10px 0;
}
.tut-body .note {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--navy);
}

/* ─── Imagen interactiva ─── */
.iimg {
  position: relative;
  margin: 14px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.iimg img {
  display: block;
  width: 100%;
  height: auto;
}
.iimg .marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: background .15s, transform .15s, box-shadow .15s;
  z-index: 2;
}
.iimg .marker:hover,
.iimg .marker.highlight {
  background: #f59e0b;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 6px rgba(245,158,11,.3), 0 2px 8px rgba(0,0,0,.4);
}
.iimg .marker.highlight {
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5), 0 2px 8px rgba(0,0,0,.4); }
  50% { box-shadow: 0 0 0 10px rgba(245,158,11,0), 0 2px 8px rgba(0,0,0,.4); }
}
@media (max-width: 640px) {
  .iimg .marker { width: 24px; height: 24px; font-size: 11px; border-width: 2px; }
}

/* Lightbox al click */
.iimg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.iimg-lightbox.show { display: flex; }
.iimg-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}
.iimg-lightbox .close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}

/* ─── Footer ─── */
.tut-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  text-align: center;
  padding: 32px 24px;
  margin-top: 60px;
  font-size: 13px;
}
.tut-footer a { color: #93c5fd; }
.tut-footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ─── Contact CTA ─── */
.cta-contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0 0;
}
.cta-contact h3 { color: #fff; margin-bottom: 8px; font-size: 20px; }
.cta-contact p { color: var(--text-on-dark); margin-bottom: 16px; font-size: 14px; }
.cta-contact .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: transform .12s, background .15s;
}
.cta-btn:hover { transform: translateY(-2px); text-decoration: none; background: var(--blue-light); }
.cta-btn.alt { background: rgba(255,255,255,.1); }
.cta-btn.alt:hover { background: rgba(255,255,255,.18); }

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .hero { padding: 44px 20px 36px; }
  .container { padding: 24px 16px; }
  .tut-body { padding: 0 16px 18px 16px; }
  .app-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .tut-header-inner { gap: 10px; }
  .tut-back { display: none; }
}
