:root {
    --primary-color: #005cb9;
    --primary-dark: #003f80;
    --primary-light: #e9f3ff;
  
    --secondary-color: #00a7b5;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --purple-color: #7c3aed;
    --red-color: #dc2626;
  
    --background-color: #f4f7fb;
    --surface-color: #ffffff;
  
    --text-primary: #172033;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
  
    --border-color: #e2e8f0;
  
    --shadow-small: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-medium: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.12);
  
    --border-radius-small: 12px;
    --border-radius-medium: 20px;
    --border-radius-large: 28px;
  
    --transition: 0.25s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    min-height: 100%;
    scroll-behavior: smooth;
  }
  
  body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-primary);
    font-family: "Google Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  
  button,
  input,
  a {
    font: inherit;
  }
  
  button {
    border: none;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    display: block;
    max-width: 100%;
  }
  
  .app-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }
  
  /* =========================
     ENCABEZADO
  ========================= */
  
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
  }
  
  .header-content {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 84px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .brand-logo {
    display: flex;
    width: 165px;
    height: 64px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-small);
    padding: 8px 10px;
  }
  
  .brand-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transform: none;
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .brand-label {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .brand h1 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.2;
  }
  
  .date-container {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 15px;
    background: var(--surface-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
  }
  
  .date-container svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
  }
  
  /* =========================
     CONTENIDO
  ========================= */
  
  .main-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 60px;
  }
  
  /* =========================
     BIENVENIDA
  ========================= */
  
  .welcome-section {
    position: relative;
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    padding: 48px;
    background:
      radial-gradient(
        circle at 90% 20%,
        rgba(255, 255, 255, 0.19),
        transparent 25%
      ),
      linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary-color) 58%,
        var(--secondary-color)
      );
    box-shadow: var(--shadow-medium);
  }
  
  .welcome-text {
    position: relative;
    z-index: 2;
    max-width: 660px;
    color: #ffffff;
  }
  
  .welcome-label {
    display: inline-flex;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  
  .welcome-text h2 {
    max-width: 620px;
    margin-bottom: 14px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
  }
  
  .welcome-text p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.65;
  }
  
  .welcome-decoration {
    position: relative;
    display: flex;
    width: 220px;
    height: 190px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }
  
  .welcome-icon {
    position: relative;
    z-index: 3;
    display: flex;
    width: 115px;
    height: 115px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    transform: none;
  }
  
  .welcome-logo {
    width: 155px;
    height: 155px;
    padding: 20px;
    border-radius: 38px;
    transform: none;
  }
    
  .welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .welcome-icon svg {
    width: 53px;
    height: 53px;
    color: #ffffff;
  }
  
  .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .circle-one {
    top: -35px;
    right: -25px;
    width: 150px;
    height: 150px;
  }
  
  .circle-two {
    bottom: -40px;
    left: -5px;
    width: 120px;
    height: 120px;
  }
  
  /* =========================
     HERRAMIENTAS
  ========================= */
  
  .tools-section {
    margin-top: 46px;
  }
  
  .tools-header {
    display: flex;
    margin-bottom: 26px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  
  .section-label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  
  .tools-header h3 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .search-container {
    position: relative;
    display: flex;
    width: min(100%, 340px);
    align-items: center;
  }
  
  .search-container > svg {
    position: absolute;
    left: 16px;
    z-index: 1;
    width: 19px;
    height: 19px;
    color: var(--text-light);
    pointer-events: none;
  }
  
  .search-container input {
    width: 100%;
    height: 48px;
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0 48px 0 46px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
  }
  
  .search-container input::placeholder {
    color: var(--text-light);
  }
  
  .search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 92, 185, 0.1);
  }
  
  .clear-search-button {
    position: absolute;
    right: 12px;
    display: flex;
    width: 30px;
    height: 30px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
  }
  
  .clear-search-button:hover {
    background: #f1f5f9;
    color: var(--text-primary);
  }
  
  .clear-search-button svg {
    width: 17px;
    height: 17px;
  }

  .tools-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .sort-container {
    position: relative;
    display: flex;
    min-width: 190px;
    align-items: center;
  }
  
  .sort-container > svg {
    position: absolute;
    left: 15px;
    z-index: 1;
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
  }
  
  .sort-container select {
    width: 100%;
    height: 48px;
    cursor: pointer;
    appearance: none;
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0 38px 0 44px;
    background:
      var(--surface-color)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      no-repeat right 13px center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .sort-container select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 92, 185, 0.1);
  }
  
  /* =========================
     TARJETAS
  ========================= */
  
  .applications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  
  .application-card {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 26px;
    background: var(--surface-color);
    box-shadow: var(--shadow-small);
    transition:
      transform var(--transition),
      box-shadow var(--transition),
      border-color var(--transition);
  }
  
  .application-card::after {
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: var(--card-soft-color);
    content: "";
    transition: transform 0.35s ease;
  }
  
  .application-card:hover {
    border-color: var(--card-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
  }
  
  .application-card:hover::after {
    transform: scale(1.15);
  }
  
  .card-top {
    position: relative;
    z-index: 2;
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  
  .card-icon {
    display: flex;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--card-soft-color);
    color: var(--card-color);
  }
  
  .card-icon svg {
    width: 27px;
    height: 27px;
  }
  
  .access-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
  }
  
  .access-type svg {
    width: 13px;
    height: 13px;
  }
  
  .card-content {
    position: relative;
    z-index: 2;
    flex: 1;
  }
  
  .card-content h4 {
    margin-bottom: 9px;
    font-size: 21px;
    font-weight: 700;
  }
  
  .card-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
  }
  
  .card-action {
    position: relative;
    z-index: 2;
    display: flex;
    margin-top: 25px;
    align-items: center;
    justify-content: space-between;
  }
  
  .card-button {
    display: inline-flex;
    min-height: 42px;
    cursor: pointer;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    padding: 0 17px;
    background: var(--card-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .card-button:hover {
    filter: brightness(0.93);
    transform: translateX(2px);
  }
  
  .card-button svg {
    width: 17px;
    height: 17px;
  }
  
  .card-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--success-color);
    font-size: 12px;
    font-weight: 600;
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
  }
  
  /* =========================
     ESTADO VACÍO
  ========================= */
  
  .empty-state {
    padding: 70px 20px;
    text-align: center;
  }
  
  .empty-icon {
    display: flex;
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--primary-light);
    color: var(--primary-color);
  }
  
  .empty-icon svg {
    width: 34px;
    height: 34px;
  }
  
  .empty-state h4 {
    margin-bottom: 8px;
    font-size: 21px;
  }
  
  .empty-state p {
    color: var(--text-secondary);
  }
  
  /* =========================
     PIE DE PÁGINA
  ========================= */
  
  .footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
  }
  
  .footer-content {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 105px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
  }
  
  .footer-brand img {
    width: 37px;
    height: 37px;
    object-fit: contain;
  }
  
  .footer-information {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
  }
  
  .footer-information a {
    transition: var(--transition);
  }
  
  .footer-information a:hover {
    color: var(--primary-color);
  }
  
  .footer-separator {
    width: 1px;
    height: 18px;
    background: var(--border-color);
  }
  
  /* =========================
     RESPONSIVE
  ========================= */
  
  @media (max-width: 950px) {
    .applications-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .welcome-decoration {
      width: 170px;
    }
  }
  
  @media (max-width: 720px) {
    .header-content,
    .main-content,
    .footer-content {
      width: min(100% - 28px, 1180px);
    }
  
    .header-content {
      min-height: 75px;
    }
  
    .brand-logo {
        width: 110px;
        height: 48px;
        border-radius: 13px;
        padding: 6px 8px;
      }
      
      .brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
  
    .brand-label,
    .date-container {
      display: none;
    }
  
    .brand h1 {
      font-size: 18px;
    }
  
    .main-content {
      padding-top: 24px;
    }
  
    .welcome-section {
      min-height: auto;
      padding: 34px 28px;
    }
  
    .welcome-decoration {
      display: none;
    }
  
    .welcome-text p {
      font-size: 15px;
    }
  
    .tools-section {
      margin-top: 34px;
    }
  
    .tools-header {
      align-items: stretch;
      flex-direction: column;
    }
  
    .search-container {
      width: 100%;
    }
  
    .applications-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      padding: 25px 0;
      align-items: flex-start;
      flex-direction: column;
    }
  
    .footer-information {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
    }
  
    .footer-separator {
      display: none;
    }

    .tools-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
      }
      
      .sort-container {
        width: 100%;
      }
  }
  
  @media (max-width: 420px) {
    .welcome-section {
      border-radius: 22px;
      padding: 28px 23px;
    }
  
    .welcome-text h2 {
      font-size: 30px;
    }
  
    .tools-header h3 {
      font-size: 24px;
    }
  
    .application-card {
      min-height: 220px;
      padding: 22px;
    }
  
    .card-action {
      align-items: flex-start;
      flex-direction: column;
      gap: 16px;
    }
  
    .card-button {
      width: 100%;
      justify-content: center;
    }
  }
  