* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #657086;
  --primary: #2447d8;
  --primary-dark: #1733ab;
  --border: #e4e9f2;
  --shadow: 0 14px 40px rgba(22, 37, 71, 0.08);
  --shadow-hover: 0 22px 55px rgba(22, 37, 71, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(36, 71, 216, 0.10),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f7f9fc 0%,
      var(--bg) 100%
    );
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 32px;
}


/* HEADER */

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 42px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(
    135deg,
    var(--primary),
    #6885ff
  );
  box-shadow: 0 18px 40px rgba(36, 71, 216, 0.24);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}


/* GRID */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}


/* TARJETAS */

.app-card {
  position: relative;
  min-height: 245px;
  display: flex;
  gap: 20px;
  padding: 28px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 71, 216, 0.24);
  box-shadow: var(--shadow-hover);
}


/* ICONOS */

.app-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-soft);
  font-size: 28px;
}


/* CONTENIDO */

.app-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 15px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(36, 71, 216, 0.09);
  font-size: 12px;
  font-weight: 700;
}

.app-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.app-card p {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.app-link {
  margin-top: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}


/* BOTONES VICIDIAL MORADO */

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.app-button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.app-button-secondary {
  color: var(--primary);
  background: rgba(36, 71, 216, 0.09);
}

.app-button-secondary:hover {
  background: rgba(36, 71, 216, 0.16);
}


/* DESHABILITADO */

.disabled {
  opacity: 0.67;
  cursor: default;
}

.disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.disabled .app-badge {
  color: #6c7484;
  background: #eef1f5;
}

.disabled .app-link {
  color: #8a93a3;
}


/* FOOTER */

footer {
  padding-top: 34px;
  text-align: center;
  color: #8790a0;
  font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 760px) {

  .page-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 38px;
  }

  .hero {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 20px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: auto;
    padding: 22px;
  }
}

@media (max-width: 470px) {

  .hero {
    flex-direction: column;
  }

  .app-card {
    flex-direction: column;
  }

  .app-actions {
    width: 100%;
  }

  .app-button {
    width: 100%;
  }
}