/* =====================================================
   ChipIt SwitchMod — Shared Stylesheet (v2)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --blue: #00b4ff;
  --blue-dark: #0080c0;
  --red: #ff2050;
  --red-dark: #c01040;
  --bg: #060610;
  --card: #0e0e1e;
  --card-hover: #14142a;
  --text: #dcdce8;
  --muted: #6e6e8e;
  --glow-blue: 0 0 40px rgba(0,180,255,.25);
  --glow-red: 0 0 40px rgba(255,32,80,.25);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1100px;
  --nav-h: 64px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }

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

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(6,6,16,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.logo {
  text-decoration: none;
  display: flex; align-items: center;
}
.logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.nav-links a {
  color: var(--muted); font-weight: 600;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,180,255,.5);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.6rem;
  cursor: pointer; padding: .25rem;
  line-height: 1;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 25% 40%, rgba(0,180,255,.08), transparent),
    radial-gradient(ellipse 500px 350px at 75% 60%, rgba(255,32,80,.06), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-text { text-align: center; }
.hero-badge {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  border: 1px solid rgba(0,180,255,.35);
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue);
  margin-bottom: 1rem;
  animation: pulse-border 2.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100% { border-color: rgba(0,180,255,.35); box-shadow: 0 0 8px rgba(0,180,255,.1); }
  50%     { border-color: rgba(0,180,255,.7); box-shadow: 0 0 18px rgba(0,180,255,.25); }
}
.hero-text h1 {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-text h1 .accent-b {
  color: var(--blue);
  text-shadow: 0 0 30px rgba(0,180,255,.6);
}
.hero-text h1 .accent-r {
  color: var(--red);
  text-shadow: 0 0 30px rgba(255,32,80,.6);
}
.hero-text p {
  color: var(--muted); font-size: clamp(.9rem, 2vw, 1.05rem);
  margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: .8rem 2rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; text-decoration: none;
  text-transform: uppercase; letter-spacing: .05em;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #000;
  box-shadow: var(--glow-blue);
}
.btn-primary:hover { box-shadow: 0 0 60px rgba(0,180,255,.45); }
.btn-secondary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: var(--glow-red);
}
.btn-secondary:hover { box-shadow: 0 0 60px rgba(255,32,80,.45); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid rgba(0,180,255,.4);
}
.btn-outline:hover {
  background: rgba(0,180,255,.08);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,180,255,.15);
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── STATS ── */
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06);
  justify-content: center; flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem; font-weight: 900;
  color: var(--blue);
  text-shadow: 0 0 15px rgba(0,180,255,.3);
}
.hero-stat-label { font-size: .75rem; color: var(--muted); }

/* ── SWITCH VISUAL ── */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.switch-svg {
  width: 100%;
  max-width: 560px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0,180,255,.12)) drop-shadow(0 0 60px rgba(255,32,80,.08));
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* ── SECTION ── */
section { padding: 4rem 0; }
section.alt-bg { background: var(--card); }
.section-header {
  text-align: center; margin-bottom: 2.5rem; padding: 0 1rem;
}
.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .5rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .95rem; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .3s, transform .2s, background .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  border-color: rgba(0,180,255,.3);
  transform: translateY(-4px);
  background: var(--card-hover);
}
.card:hover::before { opacity: 1; }

/* ── GRID LAYOUTS ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── TAGS ── */
.tag {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .75rem;
}
.tag-blue { background: rgba(0,180,255,.12); color: var(--blue); }
.tag-red  { background: rgba(255,32,80,.12); color: var(--red); }

/* ── CHIP CARDS ── */
.chips-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.chip-card .chip-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem;
}
.chip-card .chip-name.blue { color: var(--blue); }
.chip-card .chip-name.red  { color: var(--red); }
.chip-card .chip-tagline {
  font-size: .8rem; color: var(--muted); margin-bottom: 1rem;
}
.chip-card .chip-features { list-style: none; }
.chip-card .chip-features li {
  padding: .35rem 0; font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: .5rem;
}
.chip-card .chip-features li .dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.chip-card .chip-features li .dot.b { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.chip-card .chip-features li .dot.r { background: var(--red); box-shadow: 0 0 6px var(--red); }
.chip-card .chip-note {
  margin-top: 1.25rem; padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.04);
  font-size: .75rem; color: var(--muted); font-style: italic;
}

/* ── SERVICE CARDS ── */
.svc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.svc-card .svc-model { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.svc-card > p { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.svc-card .svc-includes { list-style: none; margin-bottom: 1.25rem; }
.svc-card .svc-includes li {
  font-size: .8rem; color: var(--muted); padding: .25rem 0;
  display: flex; align-items: center; gap: .5rem;
}
.svc-card .svc-includes li::before {
  content: '\2713'; color: var(--blue); font-weight: 700;
}
.svc-price {
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 1.4rem; margin-bottom: .15rem;
}
.svc-price.blue { color: var(--blue); }
.svc-price.red  { color: var(--red); }
.svc-price-note { font-size: .7rem; color: var(--muted); }

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.step {
  text-align: center; padding: 1.5rem 1rem;
}
.step-num {
  font-family: 'Orbitron', monospace;
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(180deg, var(--blue), rgba(0,180,255,.2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.step h4 { font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.step p { font-size: .8rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-size: .95rem; font-weight: 600;
  text-align: left; padding: 1rem 0;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  font-family: 'Inter', sans-serif;
}
.faq-q:hover { color: var(--blue); }
.faq-q .arrow {
  font-size: 1.1rem; transition: transform .2s;
  color: var(--muted); flex-shrink: 0;
}
.faq-q.open .arrow { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open { max-height: 400px; padding-bottom: 1rem; }
.faq-a p { color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* ── WARNING BOX ── */
.warning-box {
  max-width: 750px; margin: 2rem auto 0;
  background: rgba(255,32,80,.06);
  border: 1px solid rgba(255,32,80,.2);
  border-radius: 12px; padding: 1.25rem 1.5rem;
}
.warning-box h4 {
  font-family: 'Orbitron', monospace;
  font-size: .85rem; color: var(--red); margin-bottom: .5rem;
}
.warning-box ul { list-style: none; padding: 0; }
.warning-box ul li {
  color: var(--muted); font-size: .8rem; padding: .25rem 0;
  display: flex; align-items: flex-start; gap: .5rem;
}
.warning-box ul li::before {
  content: '\26A0'; color: var(--red); flex-shrink: 0;
}

/* ── TUTORIAL CARDS ── */
.tut-card {
  display: block; text-decoration: none; color: inherit;
  border: 2px dashed rgba(0,180,255,.2);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  background: rgba(0,180,255,.02);
  transition: all .3s; text-align: center;
}
.tut-card:hover {
  border-color: rgba(0,180,255,.4);
  background: rgba(0,180,255,.05);
  transform: translateY(-5px);
}
.tut-card .icon { font-size: 2.2rem; margin-bottom: .5rem; }
.tut-card h4 {
  font-family: 'Orbitron', monospace;
  font-size: .8rem; margin-bottom: .4rem; color: var(--blue);
}
.tut-card p { color: var(--muted); font-size: .8rem; }

/* ── Contacts ── */
/* ── CONTACT ── */

/* Caja principal que engloba a todo */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 32, 80, 0.12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Línea decorativa superior con degradado */
.contact-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.contact-wrap > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Contenedor flexible de los canales */
.contact-channels {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Cajas individuales dentro del contenedor */
.ch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;

  /* Estilo de caja interna */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 8px);
  min-width: 140px;
  color: inherit;

  transition: all 0.2s ease;
}

/* Título de la caja */
.ch-title {
  font-size: 0.95rem;
  font-weight: bold;
}

/* Subtexto dentro de la caja */
.ch-subtext {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: normal;
}

/* Efecto hover en las cajas individuales */
.ch-link:hover {
  background: rgba(0, 180, 255, 0.12);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Pie del bloque de contacto */
.contact-info {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.25rem;
}

.contact-info p {
  margin-bottom: 0.2rem;
}

/* ── ADDRESS & MAP ── */
.contact-address-section {
  max-width: 900px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.contact-address-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-map {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  height: 350px;
  width: 100%;
}

@media (min-width: 700px) {
  .contact-address-section { grid-template-columns: 1fr 1.4fr; }
}

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.04);
  color: var(--muted); font-size: .75rem;
  line-height: 1.8;
  margin-top: auto;
}
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── TUTORIAL PAGE STYLES ── */
.tutorial-page h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff; margin-bottom: 1.5rem; text-align: center;
}
.back-link {
  text-decoration: none;
  color: var(--blue); font-weight: 600; font-size: .85rem;
  display: flex; align-items: center; gap: .4rem;
  transition: color .2s;
}
.back-link:hover { color: #fff; }
.model-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
.model-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.model-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.model-card h3 {
  font-family: 'Orbitron', monospace;
  color: var(--blue); margin-top: 0; margin-bottom: .75rem; font-size: .95rem;
}
.model-card p { color: var(--muted); font-size: .85rem; }
.highlight { color: #fff; font-weight: 600; }
.step-container { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.step-block {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem;
  position: relative; transition: transform .2s;
}
.step-block:hover { transform: translateX(6px); border-color: var(--red); }
.step-block .step-num {
  font-family: 'Orbitron', monospace;
  color: var(--red); font-weight: 900; font-size: 1rem;
  margin-bottom: .75rem; display: block;
}
.step-block h3 { margin-top: 0; margin-bottom: .75rem; color: #fff; font-size: 1rem; }
.step-block p { color: var(--muted); font-size: .85rem; }
.tool-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem; margin-top: .75rem;
}
.tool-item {
  background: rgba(255,32,80,.1);
  border: 1px solid rgba(255,32,80,.2);
  padding: .4rem .75rem; border-radius: 8px;
  text-align: center; font-size: .8rem; color: var(--text);
}
.link-box {
  background: rgba(0,180,255,.05);
  border: 1px solid rgba(0,180,255,.2);
  padding: 1.25rem; border-radius: var(--radius);
  margin-top: 2.5rem; text-align: center;
}
.link-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem;
}
.btn-link {
  text-decoration: none; background: var(--blue); color: #000;
  padding: .6rem 1rem; border-radius: 8px;
  font-weight: 700; font-size: .8rem; transition: opacity .2s;
}
.btn-link:hover { opacity: .85; }
.cta-box {
  margin-top: 2.5rem;
  background: rgba(0,180,255,.05);
  border: 1px solid rgba(0,180,255,.2);
  padding: 2rem; border-radius: var(--radius); text-align: center;
}
.cta-box p { color: var(--text); font-weight: 600; margin-bottom: .5rem; }
.cta-box small { color: var(--muted); font-size: .8rem; display: block; margin-bottom: 1rem; }

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* ── TABLET (≥ 600px) ── */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .chips-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr 1fr; }
}

/* ── DESKTOP (≥ 900px) ── */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-text { text-align: left; }
  .hero-text p { margin-left: 0; }
  .hero-btns { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .switch-svg { max-width: 680px; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(6,6,16,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-links.open {
    max-height: 400px;
    padding: 1rem 0;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: .75rem 1rem;
    font-size: .85rem;
  }
  .nav-links a.active::after { display: none; }

  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
}
