/* Link in bio de TECNOPROMOS. Mobile-first: se diseña para el pulgar en un
   celular, y en pantallas grandes solo se centra la misma columna. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --marca: #00cccc;
  --tinta: #0b1220;
  --gris: #64748b;
  --linea: #e2e8f0;
  --wa: #25d366;
  --wa-osc: #128c7e;
  --radio: 16px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tinta);
  background: #0b1220;
  /* Fondo de marca: un degradado profundo con un halo cian arriba. */
  background-image:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--marca) 45%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  /* Sitio para el botón flotante, y respeto a la barra del iPhone. */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.hoja { width: 100%; max-width: 520px; margin: 0 auto; padding: 30px 18px 10px; }

/* ---- Cabecera ---- */
.cab { text-align: center; margin-bottom: 22px; }
.avatar {
  width: 118px; height: 118px; object-fit: contain; border-radius: 28px;
  background: #fff; padding: 12px; display: block; margin: 0 auto 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .38), 0 0 0 3px color-mix(in srgb, var(--marca) 55%, transparent);
}
.cab h1 {
  font-size: clamp(25px, 7vw, 31px); font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.tagline {
  margin-top: 7px; font-size: 14.5px; color: #cbd5e1; max-width: 22em;
  margin-left: auto; margin-right: auto;
}

/* ---- Fila de redes ---- */
.redes { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.red {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); transition: transform .15s, background .15s, border-color .15s;
}
.red svg { width: 24px; height: 24px; }
.red:hover, .red:focus-visible { background: var(--marca); border-color: var(--marca); color: #06232b; transform: translateY(-2px); }

/* ---- CTA de WhatsApp: lo más visible de la página ---- */
.wa-cta {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--wa), var(--wa-osc));
  color: #fff; border-radius: var(--radio); padding: 17px 18px; margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .34);
  animation: latido 2.6s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(37, 211, 102, .34); }
  50% { transform: scale(1.018); box-shadow: 0 16px 38px rgba(37, 211, 102, .46); }
}
.wa-cta:active { transform: scale(.985); }
.wa-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.wa-ico svg { width: 26px; height: 26px; }
.wa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-txt b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.wa-txt small { font-size: 13px; opacity: .93; margin-top: 2px; }
.wa-flecha { font-size: 27px; opacity: .85; line-height: 1; }

/* ---- Promo con cuenta regresiva ---- */
.promo {
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  border: 1px solid color-mix(in srgb, var(--marca) 45%, transparent);
  border-radius: var(--radio); padding: 16px; margin-bottom: 20px; text-align: center;
}
.promo-tit { font-weight: 800; font-size: 15.5px; color: var(--marca); letter-spacing: .02em; }
.promo-txt { font-size: 13.5px; color: #cbd5e1; margin-top: 4px; }
.cuenta { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.cuenta > div {
  background: rgba(0, 0, 0, .34); border-radius: 11px; padding: 8px 6px; min-width: 58px;
  border: 1px solid rgba(255, 255, 255, .1);
}
.cuenta b { display: block; font-size: 21px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cuenta span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin-top: 1px; }
.promo.terminada .cuenta { opacity: .45; }
.promo-btn {
  display: inline-block; margin-top: 12px; background: var(--marca); color: #06232b;
  font-weight: 800; font-size: 14px; text-decoration: none; padding: 11px 22px; border-radius: 11px;
}

/* ---- Bloques de enlaces ---- */
.enlaces { display: flex; flex-direction: column; gap: 11px; }
.enlace {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta);
  background: #fff; border-radius: var(--radio); padding: 15px 17px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s;
}
.enlace:hover, .enlace:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.enlace:active { transform: scale(.99); }
.enlace-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.enlace-txt b { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.enlace-txt small { font-size: 12.5px; color: var(--gris); margin-top: 3px; }
.enlace-flecha { font-size: 24px; color: #cbd5e1; line-height: 1; }
/* El destacado se pinta con el cian de la marca. */
.enlace.destacado {
  background: linear-gradient(135deg, var(--marca), color-mix(in srgb, var(--marca) 55%, #003d47));
  color: #04222a;
}
.enlace.destacado .enlace-txt small { color: rgba(4, 34, 42, .78); }
.enlace.destacado .enlace-flecha { color: rgba(4, 34, 42, .55); }

.pie { text-align: center; margin-top: 26px; font-size: 12px; color: #94a3b8; }

/* ---- Botón flotante ---- */
.wa-flota {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--wa); color: #fff; font-weight: 800; font-size: 14.5px;
  padding: 13px 19px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
}
.wa-flota svg { width: 22px; height: 22px; }
.wa-flota:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .wa-cta { animation: none; }
  .enlace, .red, .wa-flota { transition: none; }
}

/* ---- Panel de edición ---- */
.panel-body { background: #f1f5f9; color: var(--tinta); padding-bottom: 40px; }
.panel { max-width: 860px; margin: 0 auto; padding: 26px 18px; }
.panel h1 { font-size: 22px; margin-bottom: 18px; }
.panel .tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin-bottom: 12px; }
.panel .ayuda { font-size: 13px; color: var(--gris); margin-bottom: 12px; }
.panel .ok { background: #dcfce7; color: #15803d; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.panel .vacio { color: var(--gris); font-size: 13.5px; }
.panel textarea {
  width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
  border: 1px solid var(--linea); border-radius: 10px; padding: 12px; resize: vertical; background: #fbfcfd;
}
.panel .acciones { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.panel button {
  background: var(--marca); color: #06232b; border: 0; border-radius: 10px;
  padding: 11px 20px; font-weight: 800; font-size: 14px; cursor: pointer;
}
.panel .btn-sec { color: var(--gris); font-size: 13.5px; text-decoration: none; font-weight: 600; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); border-bottom: 1px solid var(--linea); padding: 7px 6px; }
.tabla td { padding: 9px 6px; border-bottom: 1px solid #f1f5f9; }
