:root {
    --color-bg: #0b111a;
    --color-surface: #121b1f;
    --color-surface-alt: #182431;
    --color-primary: #8ab8ff;
    --color-primary-soft: rgba(138, 184, 255, 0.16);
    --color-primary-strong: #bcd6ff;
    --color-accent: #7dd6c0;
    --color-text: #f2f5f8;
    --color-muted: #9aa8ba;
    --color-outline: rgba(255, 255, 255, 0.08);
    --border-radius-xl: 26px;
    --border-radius-lg: 22px;
    --border-radius-md: 16px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 28px 60px rgba(0, 0, 0, 0.5);
    --gradient-header: linear-gradient(135deg, #0d1726, #16263a 55%, #214164 100%);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
}

.bg-body {
    background: radial-gradient(circle at 20% -20%, rgba(138, 184, 255, 0.18), transparent 55%),
                radial-gradient(circle at 80% -10%, rgba(125, 214, 192, 0.12), transparent 55%),
                var(--color-bg);
}

.bg-gradient {
    background: var(--gradient-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: conic-gradient(from 160deg, rgba(138, 184, 255, 0.35), rgba(138, 184, 255, 0.05) 40%, rgba(125, 214, 192, 0.45) 100%);
    border: 1px solid rgba(188, 214, 255, 0.18);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 auto;
    align-items: center;
  }

.hero-text{
  max-width: 60ch;
  width: 100%;          /* ocupa el ancho disponible hasta 60ch */
  margin: 0 auto;       /* centra el bloque */
  text-align: center;   /* centra el texto */
  opacity: .95;
}

  .hero-logo {
    width: clamp(120px, 22vw, 240px); /* responsivo */
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .hero-title { text-align: center; }

.badge.text-bg-success-soft {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border: 1px solid rgba(138, 184, 255, 0.32);
    letter-spacing: 0.08em;
    
}

.badge.text-bg-accent {
    background: rgba(125, 214, 192, 0.14);
    color: var(--color-accent);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(125, 214, 192, 0.35);
}

.apps-grid {
    position: relative;
}

.apps-grid::before {
    content: '';
    position: absolute;
    inset: 6% 12% auto 12%;
    height: 60%;
    background: radial-gradient(circle at 30% 20%, rgba(138, 184, 255, 0.22), transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(125, 214, 192, 0.18), transparent 60%);
    filter: blur(40px);
    opacity: 0.85;
    pointer-events: none;
}

.apps-grid__controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.apps-grid__search {
    background: rgba(10, 20, 27, 0.85);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-outline);
    display: flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    gap: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.apps-grid__search:focus-within {
    border-color: rgba(138, 184, 255, 0.45);
    box-shadow: 0 18px 38px rgba(12, 24, 36, 0.38);
}

.apps-grid__search-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 65%);
    position: relative;
}

.apps-grid__search-icon::after {
    content: '';
    position: absolute;
    inset: 5px auto auto 12px;
    width: 7px;
    height: 7px;
    border-radius: 6px;
    border: 2px solid var(--color-primary);
    opacity: 0.8;
    transform: rotate(-45deg);
}

.apps-grid__search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
}

.apps-grid__search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.apps-grid__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.apps-grid__filter-btn {
    border: 1px solid var(--color-outline);
    background: rgba(15, 25, 32, 0.6);
    color: var(--color-muted);
    border-radius: 999px;
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.apps-grid__filter-btn:hover {
    color: var(--color-text);
    border-color: rgba(138, 184, 255, 0.35);
}

.apps-grid__filter-btn.is-active {
    color: #050f1a;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(11, 24, 35, 0.32);
}

.apps-grid__wrapper {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-card {
    position: relative;
    background: linear-gradient(160deg, rgba(26, 35, 47, 0.92), rgba(15, 24, 34, 0.88));
    border-radius: var(--border-radius-xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(188, 214, 255, 0.08);
    overflow: hidden;
    transform: translate3d(0, 8px, 0);
    opacity: 0;
    transition: transform 0.45s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.45s ease;
}

.app-card.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.app-card.is-hovered,
.app-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 20px 50px rgba(10, 20, 35, 0.45);
    border-color: rgba(138, 184, 255, 0.45);
}

.app-card.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
}

.app-card__shape {
    position: absolute;
    inset: -25% -35% 55% 35%;
    background: radial-gradient(circle at 30% 40%, rgba(138, 184, 255, 0.28), transparent 65%),
                linear-gradient(135deg, rgba(125, 214, 192, 0.18), transparent 80%);
    opacity: 0.65;
    filter: blur(1px);
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.6s ease;
}

.app-card:hover .app-card__shape,
.app-card.is-hovered .app-card__shape {
    position: absolute;
    inset: -25% -35% 55% 35%;
    background: radial-gradient(circle at 30% 40%, rgba(138, 184, 255, 0.28), transparent 65%),
                linear-gradient(135deg, rgba(125, 214, 192, 0.18), transparent 80%);
    opacity: 0.65;
    filter: blur(1px);
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.6s ease;
}

.app-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-card__quick {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: rgba(9, 18, 23, 0.6);
    transition: all 0.3s ease;
}

.app-card__quick-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
}

.app-card__quick:hover {
    color: #05101a;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(11, 24, 35, 0.35);
}

.app-card__media {
    background: linear-gradient(145deg, rgba(138, 184, 255, 0.18), rgba(125, 214, 192, 0.08));
    border-radius: var(--border-radius-md);
    padding: 2rem 1.75rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(188, 214, 255, 0.08);
    overflow: hidden;
}

.app-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 58%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.app-card__icon {
    width: clamp(92px, 20vw, 128px);
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 18px 26px rgba(10, 20, 35, 0.3));
    transition: transform 0.35s ease;
}

.app-card:hover .app-card__icon,
.app-card.is-hovered .app-card__icon {
    transform: translateY(-6px) scale(1.02);
}

.app-card__body {
    position: relative;
    z-index: 1;
}

.app-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.app-card__text {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0;
}

.app-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.app-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(243, 245, 247, 0.7);
    letter-spacing: 0.02em;
}

.app-card__status-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(125, 214, 192, 0.45);
    animation: pulse-led 2.8s infinite;
}

.btn-outline-light {
    border-radius: 14px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-text);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    color: #050f1a;
    box-shadow: 0 16px 32px rgba(11, 24, 35, 0.4);
}

.apps-grid__hint {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* opcional: padding si no usas py-4 */
  /* padding: 1rem 0; */
}

/* Céntralo con texto… */
.footer .container { text-align: center; }


.text-muted {
    color: var(--color-muted) !important;
}

@media (max-width: 992px) {
    .apps-grid::before {
        inset: 10% 6% auto 6%;
        height: 65%;
        filter: blur(36px);
    }
}

@media (max-width: 768px) {
    .apps-grid__controls {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        gap: 0.75rem !important;
    }

    .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: conic-gradient(from 160deg, rgba(138, 184, 255, 0.35), rgba(138, 184, 255, 0.05) 40%, rgba(125, 214, 192, 0.45) 100%);
    border: 1px solid rgba(188, 214, 255, 0.18);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

    .apps-grid__filters {
        gap: 0.4rem;
    }

    .apps-grid__filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .app-card {
        padding: 1.5rem;
    }
}

@keyframes pulse-led {
    0% {
        box-shadow: 0 0 0 0 rgba(125, 214, 192, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(125, 214, 192, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(125, 214, 192, 0);
    }
}


