/* ==========================================================
   Digital Shop · Página de enlaces
   Mobile first · escritorio desde 960px
   ========================================================== */

:root {
  /* Marca */
  --hero: #111113;          /* fondo del encabezado / panel */
  --orange: #FF5A1F;        /* naranja de marca */
  --orange-mid: #C9400E;    /* cara izquierda de los cubos */
  --orange-deep: #7C2608;   /* cara derecha de los cubos */
  --orange-text: #B23A0A;   /* naranja legible sobre blanco (íconos y textos) */
  --wa: #25D366;
  --wa-text: #0B5E34;

  /* Neutros */
  --bg: #FAF7F5;
  --white: #FFFFFF;
  --ink: #111113;
  --ink-soft: #3A3A40;
  --grey-text: #4A4A52;
  --muted: #5A5560;
  --on-dark: #CFC9C5;       /* texto secundario sobre negro */
  --chev: #9A918C;
  --line: #EDE3DD;
  --line-soft: #F4EEEA;
  --tint-orange: #FFE9DF;

  /* Sombras internas de los botones de acción */
  --glow-wa: inset 0 -18px 24px -18px rgba(37, 211, 102, .45);
  --glow-dark: inset 0 -18px 24px -18px rgba(17, 17, 19, .28);
  --glow-orange: inset 0 -18px 24px -18px rgba(255, 90, 31, .45);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 12px; }
h1, h2, p { margin: 0; }

/* ---------- Íconos ---------- */
.ic {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }
.ic-orange { color: var(--orange-text); }
.ic-chev { color: var(--chev); }

/* ---------- Layout base (móvil) ---------- */
.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.side { position: relative; }

/* ---------- Encabezado ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--white);
  padding: 40px 20px 76px;
  border-radius: 0 0 32px 32px;
  text-align: center;
}

.cube-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cube { position: absolute; height: auto; }

/* Copias del logo, atenuadas */
.cube-1 { width: 150px; top: -44px; right: -40px; opacity: .22; }
.cube-2 { width: 112px; top: 168px; left: -46px; opacity: .16; }
.cube-3 { width: 40px; top: 34px; left: 28px; opacity: .3; }
.cube-4 { width: 34px; top: 170px; right: 30px; opacity: .35; }

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo, .logo-img {
  width: 88px; height: 88px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(255, 90, 31, .35);
}
.logo {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 28px; letter-spacing: -1px;
  color: var(--ink);
}
.logo span { color: var(--orange); }
.logo-img { object-fit: contain; padding: 10px; }
/* Logo sin tarjeta: cubo en PNG transparente */
.logo-img {
  display: block; flex-shrink: 0;
  width: 112px; height: auto;
  padding: 0; border-radius: 0;
  background: none; box-shadow: none;
}

.intro { display: flex; flex-direction: column; gap: 6px; }
.intro h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px; letter-spacing: -.5px;
  line-height: 1.1;
}
.intro p { font-size: 15px; line-height: 1.5; color: var(--on-dark); max-width: 300px; margin: 0 auto; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px; font-weight: 500;
}
.chip .ic { width: 16px; height: 16px; color: var(--orange); }

/* ---------- Bloque de contacto ---------- */
.contact {
  position: relative;
  z-index: 2;
  margin: -48px 20px 0;
  padding: 16px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(17, 17, 19, .12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
  padding: 10px 16px 10px 12px;
  border-radius: 16px;
  background: var(--white);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.btn-icon .ic { width: 22px; height: 22px; }
.btn-icon img { width: 26px; height: 26px; object-fit: contain; }
.btn-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.btn-title { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); }
.btn-sub { font-size: 13px; line-height: 1.3; }

.btn-wa { border: 1px solid rgba(37, 211, 102, .28); box-shadow: var(--glow-wa); color: var(--wa-text); }
.btn-wa .btn-icon { background: var(--wa); }
.btn-wa .btn-icon .ic { width: 24px; height: 24px; }
.btn-wa .btn-icon { background: none; }
.btn-wa .btn-icon img { width: 100%; height: 100%; }

.btn-web { border: 1px solid rgba(17, 17, 19, .16); box-shadow: var(--glow-dark); color: var(--grey-text); }
.btn-web .btn-icon { background: var(--ink); }

.btn-credit { border: 1px solid rgba(255, 90, 31, .3); box-shadow: var(--glow-orange); color: var(--orange-text); }
.btn-credit .btn-icon { background: var(--orange); }

/* ---------- Contenido ---------- */
.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px 0;
}

.block { display: flex; flex-direction: column; gap: 12px; }
.block-head { display: flex; align-items: center; justify-content: space-between; }

.title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
}
.title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; }
.title-orange::before { background: var(--orange); }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 96px;
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600; font-size: 15px;
  transition: border-color .15s ease, transform .15s ease;
}
.cat:hover { border-color: var(--orange); transform: translateY(-1px); }
.cat-ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-orange); color: var(--orange-text);
}
/* Alternancia naranja/negro en 2 columnas: n k / k n / n k */
.cat:nth-child(4n+2) .cat-ic,
.cat:nth-child(4n+3) .cat-ic { background: var(--ink); color: var(--white); }

.see-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 15px;
}
.see-all-block { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); color: var(--ink); }
.see-all-inline { display: none; color: var(--orange-text); }

/* Soporte */
.support {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.sup {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 0 16px;
  font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.sup:last-child { border-bottom: 0; }
.sup span { flex-grow: 1; }
.sup:hover span { color: var(--orange-text); }

/* Pie */
.foot {
  margin-top: auto;
  padding: 8px 0 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.social { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.social-row { display: flex; gap: 12px; }
.soc {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.soc:hover { transform: translateY(-2px); background: var(--orange-text); }
.legal { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.legal-links { display: flex; justify-content: center; gap: 14px; }
.legal-links a { text-decoration: underline; }

/* ==========================================================
   Escritorio
   ========================================================== */
@media (min-width: 960px) {
  body { font-size: 16px; }

  .page {
    max-width: 1440px;
    display: grid;
    grid-template-columns: minmax(400px, 520px) minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
  }

  .side {
    position: sticky;
    top: 32px;
    align-self: start;
    height: calc(100vh - 64px);
    min-height: 760px;
    overflow: hidden;
    background: var(--hero);
    color: var(--white);
    border-radius: 28px;
    padding: 48px;
    display: flex;
    flex-direction: column;
  }

  .hero {
    position: static;       /* los cubos se posicionan contra .side */
    overflow: visible;
    background: none;
    padding: 0;
    border-radius: 0;
    text-align: left;
  }
  .cube-1 { width: 230px; top: -70px; right: -60px; }
  .cube-2 { width: 170px; top: 270px; right: -74px; left: auto; }
  .cube-3 { width: 58px; top: 40px; left: 52px; right: auto; }
  .cube-4 { width: 44px; top: 490px; right: 150px; }

  .hero-content { align-items: flex-start; gap: 20px; }
  .logo, .logo-img { width: 96px; height: 96px; border-radius: 26px; }
  .logo-img { width: 128px; height: auto; border-radius: 0; align-self: center; }
  .logo { font-size: 32px; }
  .intro { gap: 10px; }
  .intro h1 { font-size: 44px; letter-spacing: -1px; line-height: 1.05; }
  .intro p { font-size: 17px; line-height: 1.55; max-width: 380px; margin: 0; }
  .chip { font-size: 14px; }

  .contact {
    margin: auto 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    gap: 12px;
  }
  .btn { min-height: 76px; padding: 10px 20px 10px 14px; border-radius: 18px; gap: 16px; }
  .btn-icon { width: 48px; height: 48px; }
  .btn-icon .ic { width: 24px; height: 24px; }
  .btn-wa .btn-icon .ic { width: 26px; height: 26px; }
  .btn-web .btn-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
  .btn-title { font-size: 17px; }
  .btn-sub { font-size: 14px; }

  .content { padding: 16px 16px 0 0; gap: 32px; }
  .block { gap: 16px; }
  .title { font-size: 22px; gap: 12px; }
  .title::before { height: 24px; }

  .see-all-inline { display: flex; }
  .see-all-block { display: none; }

  .cats { gap: 14px; }
  .cat {
    flex-direction: row; align-items: center; gap: 14px;
    min-height: 0; padding: 20px; border-radius: 18px; font-size: 16px;
  }
  .cat-ic { width: 48px; height: 48px; border-radius: 12px; }
  .cat-ic .ic { width: 24px; height: 24px; }

  .support {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
    background: none; border: 0; border-radius: 0;
  }
  .sup {
    min-height: 68px; padding: 0 20px; font-size: 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  }
  .sup:last-child { border-bottom: 1px solid var(--line); }

  .foot {
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 20px 0 16px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .social-label { display: none; }
  .social-row { gap: 10px; }
  .soc { width: 48px; height: 48px; border-radius: 14px; }
  .soc .ic { width: 20px; height: 20px; }
  .legal { flex-direction: row; align-items: center; gap: 18px; font-size: 14px; }
  .legal-links { gap: 18px; }
}

/* Pie en escritorio angosto: no cabe en una fila, se apila */
@media (min-width: 960px) and (max-width: 1199px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .legal { flex-wrap: wrap; gap: 8px 18px; }
}

/* Alternancia naranja/negro en 3 columnas: n k n / k n k */
@media (min-width: 1200px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat:nth-child(n) .cat-ic { background: var(--tint-orange); color: var(--orange-text); }
  .cat:nth-child(even) .cat-ic { background: var(--ink); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
