/* ===============================
   TICsupport – Landing Page CSS
   Compatible con CSP estricta
   =============================== */

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
  line-height: 1.6;
}

/* ===============================
   Header / Hero
   =============================== */
header {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 24px;
}

header p {
  font-size: 1.1rem;
  max-width: 920px;
  margin: 0 auto;
  opacity: 0.92;
}

/* Hero background image */
.hero-bg {
  /* IMPORTANTE: usa .jpg si ese es el archivo real */
  background-image: url("/sa/assets/img/hero-platform.png");
  background-size: cover;
  background-position: center;
}

/* Overlay para contraste (CSP OK) */
header.hero-bg {
  position: relative;
}

header.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.88) 0%,
    rgba(2, 6, 23, 0.78) 45%,
    rgba(2, 6, 23, 0.62) 100%
  );
  z-index: 1;
}

header.hero-bg > * {
  position: relative;
  z-index: 2;
}

header.hero-bg h1 {
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

header.hero-bg p {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* Logo + botón hero */
.hero-logo{
  width: 78px;
  height: auto;
  display: block;
  margin: 0 auto 18px auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.35));
}

.hero-btn{
  display: inline-block;
  margin-top: 22px;
  background: #22c55e;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.hero-btn:hover{
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
}

/* ===============================
   Layout
   =============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: #020617;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ===============================
   Grid & Cards
   =============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #020617;
}

/* ===============================
   Badge
   =============================== */
.badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===============================
   Media (imágenes)
   =============================== */
.img-soft {
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(2,6,23,.25);
}

/* contenedor para evitar sobredimensionado */
.media{
  margin-top: 28px;
  overflow: hidden;
  border-radius: 14px;
}

.media img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;   /* ajusta: 420-620 según gusto */
  object-fit: cover;
}

/* ===============================
   Plans – versión visual mejorada
   =============================== */
.plans {
  position: relative;
  background: radial-gradient(
    1200px 600px at 10% 0%,
    #1e293b 0%,
    #020617 60%
  );
  color: #ffffff;
  overflow: hidden;
}

/* brillo decorativo */
.plans::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 80% 20%, rgba(37,99,235,.16), transparent 62%),
    radial-gradient(340px 220px at 20% 85%, rgba(34,197,94,.13), transparent 62%);
  pointer-events: none;
  z-index: 0; /* clave */
}

/* elevar contenido sobre el brillo */
.plans > * {
  position: relative;
  z-index: 1;
}

.plans h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 36px;
  text-shadow: 0 6px 25px rgba(0,0,0,.55);
}

.plans .card {
  position: relative;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148,163,184,.16);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.plans .card:hover {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

.plans .card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.plans .card p {
  color: #e5e7eb;
}

.plans .price {
  display: block;
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #22c55e;
}

/* Plan recomendado */
.plans .card.featured {
  border-color: rgba(34,197,94,.75);
  box-shadow:
    0 38px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(34,197,94,.35);
  transform: translateY(-10px);
}

.plans .card.featured::before {
  content: "RECOMENDADO";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: #022c22;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* ===============================
   CTA – versión premium
   =============================== */
.cta {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 220px at 50% 0%, rgba(255,255,255,.16), transparent 72%);
  pointer-events: none;
}

.cta h2,
.cta p,
.cta a {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.cta p {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.96;
  font-size: 1.05rem;
  margin-top: 14px;
  margin-bottom: 34px;
}

.cta a {
  display: inline-block;
  margin-top: 0;
  background: #22c55e;
  color: #ffffff;
  padding: 16px 42px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    0 0 0 0 rgba(34,197,94,.6);
}

.cta a:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0,0,0,.35),
    0 0 0 6px rgba(34,197,94,.25);
}

/* ===============================
   Footer
   =============================== */
footer {
  background: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.9rem;
}

/* ===============================
   Responsive tweaks
   =============================== */
@media (max-width: 640px) {
  header {
    padding: 60px 16px;
  }

  .container {
    padding: 48px 16px;
  }

  .cta {
    padding: 70px 16px;
  }

  .plans .card.featured {
    transform: none;
  }
}
/* ===============================
   Modals + Helpers (Landing)
   Agregar al FINAL del landing.css
   =============================== */

body.modal-open { overflow: hidden; }

/* Contenedores de acciones (hero y CTA) */
.hero-actions,
.cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 18px;
}

/* Botones tipo "mini" para acciones secundarias */
.btn-mini{
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-mini:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

.btn-mini.ghost{
  background: transparent;
}

/* Botón secundario en hero para que combine con tu hero-btn */
.hero-btn.ghost{
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
.hero-btn.ghost:hover{
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

/* Encabezado de planes (título + botones) */
.plans-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.plans-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Acciones inline (dentro de cards) */
.inline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* Player row (para tus 2 imágenes del player) */
.player-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
}
.player-row img{
  max-width:420px;
  width:100%;
}

/* Nota reutilizable */
.note{ opacity:.82; margin-top:14px; }

/* ===== Modal base ===== */
.ts-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.ts-modal[aria-hidden="false"]{ display:block; }

.ts-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.ts-modal__dialog{
  position: relative;
  max-width: 720px;
  margin: 6vh auto;
  width: calc(100% - 24px);

  /* para que combine con tu sección plans oscura */
  background: rgba(2, 6, 23, 0.92);
  color: #ffffff;

  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 18px;
}

.ts-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ts-modal__head h3{
  margin: 0;
  font-size: 1.15rem;
}

.ts-modal__close{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.86);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ts-modal__body{ padding: 8px 2px 2px; }

/* ===== Form dentro del modal ===== */
.ts-form__row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin: 12px 0;
}
.ts-form__row.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ts-form label{
  font-size: .92rem;
  opacity: .95;
}

.ts-form input,
.ts-form select,
.ts-form textarea{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(255,255,255,.92);
  outline: none;
}

.ts-form input:focus,
.ts-form select:focus,
.ts-form textarea:focus{
  border-color: rgba(34,197,94,.55);
}

.ts-form__actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 12px;
}

.ts-form__hint{
  margin-top: 10px;
  opacity: .9;
  min-height: 18px;
}

.ts-list{
  margin: 10px 0 0 18px;
  opacity:.95;
}

@media (max-width: 640px){
  .ts-form__row.two{ grid-template-columns: 1fr; }
}

.ts-form select option {
  background-color: #0f172a;
  color: #ffffff;
}
/* ===============================
   CTA – Enterprise SaaS Version
   =============================== */

.cta {
  position: relative;
  text-align: center;
  padding: 110px 20px;

  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 60%,
    #0b1220 100%
  );

  color: #ffffff;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(37,99,235,.18), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.88;
  font-size: 1.05rem;
  margin-bottom: 38px;
  line-height: 1.7;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

/* Botón primario */
.cta a {
  background: #22c55e;
  color: #ffffff;
  padding: 16px 42px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: all .25s ease;
}

.cta a:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* Botón secundario */
.cta .cta-btn.ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.55);
  color: #ffffff;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  transition: all .25s ease;
}

.cta .cta-btn.ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ===============================
   Footer Enterprise
   =============================== */

.footer-enterprise {
  background: #020617;
  color: #9ca3af;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(148,163,184,.15);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-enterprise strong {
  color: #ffffff;
}

.footer-legal {
  margin-top: 10px;
  font-size: .9rem;
  opacity: .7;
}