:root {
      /* Colores institucionales tipo bomberos: rojo + amarillo + fondo oscuro */
      --bg1: #111827;
      --bg2: #020617;
      --accent: #dc2626; /* rojo principal */
      --accent-soft: rgba(248, 113, 113, 0.35);
      --accent-strong: #b91c1c;
      --accent-yellow: #facc15; /* amarillo */
      --text-main: #f9fafb;
      --text-soft: #d1d5db;
      --card-bg: rgba(15, 23, 42, 0.96);
      --border-soft: rgba(248, 113, 113, 0.35);
      --success: #22c55e;
      --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
      --radius-xl: 24px;
      --transition-fast: 0.18s ease-out;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      width: 100%;
      height: 100%;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at top, #1f2937, #020617 70%);
      color: var(--text-main);
      overflow-y: auto;    /* deja ver todo el contenido en pantallas bajas */
      overflow-x: hidden;  /* evita scroll lateral */
    }

    .background-orbs {
      position: fixed;
      inset: -20%;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.4;
      mix-blend-mode: screen;
      animation: float 18s ease-in-out infinite alternate;
    }

    .orb:nth-child(1) {
      width: 440px;
      height: 440px;
      background: rgba(220, 38, 38, 0.9); /* rojo */
      top: -5%;
      left: 10%;
    }

    .orb:nth-child(2) {
      width: 520px;
      height: 520px;
      background: rgba(250, 204, 21, 0.9); /* amarillo */
      bottom: -10%;
      right: 5%;
      animation-delay: 4s;
    }

    .orb:nth-child(3) {
      width: 360px;
      height: 360px;
      background: rgba(239, 68, 68, 0.85);
      top: 40%;
      left: -10%;
      animation-delay: 8s;
    }

    @keyframes float {
      0% {
        transform: translate3d(0, 0, 0) scale(1);
      }
      50% {
        transform: translate3d(20px, -30px, 0) scale(1.05);
      }
      100% {
        transform: translate3d(-10px, 10px, 0) scale(0.95);
      }
    }

    .wrapper {
      width: 100%;
      max-width: 1200px;
      padding: 24px;
      margin: 32px auto;
    }

    .card {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 32px;
      border-radius: var(--radius-xl);
      background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.25), transparent 50%),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 55%),
        var(--card-bg);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-soft);
      padding: 32px 32px 28px;
      backdrop-filter: blur(18px);
      transform: translateY(12px);
      opacity: 0;
      animation: fadeInUp 0.8s ease-out forwards;
    }

    @keyframes fadeInUp {
      from {
        transform: translateY(24px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Columna izquierda: texto principal */
    .left {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px 4px 4px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid var(--accent-soft);
      backdrop-filter: blur(10px);
      width: fit-content;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent-yellow);
    }

    .badge-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: var(--accent-yellow);
      box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
      animation: pulse 1.6s ease-out infinite;
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
      }
      70% {
        box-shadow: 0 0 0 16px rgba(250, 204, 21, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
      }
    }

    h1 {
      font-size: clamp(2.1rem, 3vw, 2.6rem);
      line-height: 1.15;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    h1 span {
      display: inline-block;
      background: linear-gradient(120deg, #f97316, #facc15);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .subtitle {
      font-size: 0.98rem;
      color: var(--text-soft);
      max-width: 600px;
    }

    .highlight-box {
      margin-top: 4px;
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid rgba(248, 250, 252, 0.18);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.98));
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
      font-size: 0.86rem;
      color: var(--text-soft);
    }

    .highlight-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(248, 113, 113, 0.4);
    }

    .highlight-pill-icon {
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 1px solid rgba(248, 250, 252, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
    }

    .progress {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.8rem;
      color: var(--text-soft);
    }

    .progress-bar {
      position: relative;
      width: 100%;
      height: 7px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      overflow: hidden;
      border: 1px solid rgba(248, 113, 113, 0.7);
    }

    .progress-fill {
      position: absolute;
      inset: 0;
      width: 0;
      background: linear-gradient(90deg, #b91c1c, #f97316, #facc15);
      border-radius: inherit;
      transform-origin: left center;
      animation: progressFill 3s ease-out infinite;
    }

    @keyframes progressFill {
      0% {
        transform: scaleX(0.1);
      }
      40% {
        transform: scaleX(0.55);
      }
      75% {
        transform: scaleX(0.93);
      }
      100% {
        transform: scaleX(0.1);
      }
    }

    .meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
      margin-top: 10px;
      font-size: 0.8rem;
      color: var(--text-soft);
    }

    .meta-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .meta-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--accent-yellow);
    }

    .cta-row {
      margin-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .btn-primary {
      border: none;
      border-radius: 999px;
      padding: 10px 18px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      background: linear-gradient(120deg, #b91c1c, #f97316, #facc15);
      color: #111827;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 10px 30px rgba(248, 113, 113, 0.45);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        filter var(--transition-fast);
    }

    .btn-primary:hover {
      transform: translateY(-1px) scale(1.01);
      box-shadow: 0 18px 40px rgba(248, 113, 113, 0.7);
      filter: brightness(1.05);
    }

    .btn-primary-icon {
      font-size: 1rem;
    }

    .status-text {
      font-size: 0.8rem;
      color: var(--text-soft);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--accent-yellow);
    }

    /* Columna derecha: ilustración y loader */
    .right {
      position: relative;
      padding: 4px 4px 4px 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .device {
      position: relative;
      width: 100%;
      max-width: 320px;
      aspect-ratio: 9 / 16;
      border-radius: 32px;
      border: 1px solid rgba(248, 250, 252, 0.3);
      background: radial-gradient(circle at top, #0b1120, #020617 70%);
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.95);
      padding: 18px 14px;
      overflow: hidden;
    }

    .device-notch {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 40%;
      height: 10px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.98);
    }

    .device-inner {
      position: relative;
      height: 100%;
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.2), transparent 55%),
        radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.22), transparent 60%),
        rgba(15, 23, 42, 0.98);
      padding: 18px 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .device-tag {
      font-size: 0.7rem;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.96);
      color: var(--text-soft);
      border: 1px solid rgba(248, 250, 252, 0.3);
      width: fit-content;
    }

    .device-title {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: -0.02em;
    }

    .device-text {
      font-size: 0.78rem;
      color: var(--text-soft);
    }

    .loader {
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .loader-dots {
      display: inline-flex;
      gap: 4px;
    }

    .loader-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: rgba(248, 250, 252, 0.8);
      animation: bounce 1.2s ease-in-out infinite;
    }

    .loader-dot:nth-child(2) {
      animation-delay: 0.18s;
    }

    .loader-dot:nth-child(3) {
      animation-delay: 0.36s;
    }

    @keyframes bounce {
      0%,
      80%,
      100% {
        transform: translateY(0);
        opacity: 0.8;
      }
      40% {
        transform: translateY(-3px);
        opacity: 1;
      }
    }

    .loader-text {
      font-size: 0.76rem;
      color: var(--text-soft);
    }

    .checklist {
      margin-top: 4px;
      padding: 8px 10px;
      border-radius: 14px;
      border: 1px dashed rgba(248, 250, 252, 0.3);
      font-size: 0.74rem;
      color: var(--text-soft);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .check-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .check-icon {
      width: 13px;
      height: 13px;
      border-radius: 999px;
      border: 1px solid rgba(248, 250, 252, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
    }

    .device-footer {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.7rem;
      color: var(--text-soft);
      opacity: 0.9;
    }

    .pill-soft {
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.98);
      border: 1px solid rgba(248, 250, 252, 0.3);
    }

    footer {
      margin-top: 10px;
      text-align: center;
      font-size: 0.76rem;
      color: var(--text-soft);
      opacity: 0.85;
    }

    /* ===== BREAKPOINTS RESPONSIVOS ===== */

    /* 2K / 4K: un poco más grande y holgado */
    @media (min-width: 1600px) {
      .wrapper {
        max-width: 1400px;
        padding: 40px;
        margin: 48px auto;
      }
      .card {
        padding: 40px 40px 32px;
        gap: 40px;
      }
      h1 {
        font-size: 2.8rem;
      }
      .subtitle {
        font-size: 1.05rem;
      }
      .device {
        max-width: 360px;
      }
    }

    /* Laptops tipo 1366x768 / 1080p compacto / 720p */
    @media (max-width: 1366px) {
      .wrapper {
        max-width: 1000px;
        padding: 16px;
        margin: 24px auto;
      }
      .card {
        gap: 24px;
        padding: 26px 24px 22px;
      }
      .device {
        max-width: 280px;
      }
    }

    /* Tablet horizontal / pantallas medianas */
    @media (max-width: 1024px) {
      .card {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px 22px;
      }
      .right {
        order: -1;
        padding: 0;
      }
      .device {
        max-width: 260px;
        margin: 0 auto;
      }
      .wrapper {
        padding: 16px;
      }
    }

    /* Móviles y tablets en vertical */
    @media (max-width: 600px) {
      body {
        align-items: flex-start;
      }
      .wrapper {
        margin: 16px auto 24px;
        padding: 12px;
      }
      .card {
        gap: 18px;
        padding: 20px 16px 18px;
      }
      h1 {
        font-size: 1.7rem;
      }
      .subtitle {
        font-size: 0.9rem;
      }
      .highlight-box {
        flex-direction: column;
      }
      .cta-row {
        flex-direction: column;
        align-items: flex-start;
      }
      .device {
        max-width: 230px;
      }
    }