/* =========================================
    ESTILOS GENERALES Y TEMA OSCURO
=========================================
*/
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #1f2933;
    padding-top: 74px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3b8dff;
}

.main-content {
    min-height: calc(100vh - 160px);
}


/* =========================================
    BARRA DE NAVEGACIÓN
=========================================
*/
/* =========================================
    FULLSCREEN MODE FIXES
=========================================
*/
body.is-fullscreen #mainNav {
    position: absolute !important;
}

/* =========================================
    BARRA DE NAVEGACIÓN
=========================================
*/
.nav-glass {
    background: rgba(9, 19, 41, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, padding 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar.fixed-top {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .brand-title {
        font-size: clamp(0.85rem, 2vw, 1.15rem);
        padding: 0.15rem 0.5rem;
    }

    .brand-logo {
        height: 32px;
    }
}

.nav-glass .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-logo {
    height: 36px;
}

.brand-text {
    color: #f1f5f9;
}

.brand-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.25rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f8fafc;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
}

.brand-title-part {
    letter-spacing: 0.16em;
}

.brand-title-part--text {
    color: #f8fafc;
}

.brand-title-part--number {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1;
    color: #38bdf8;
    padding: 0.05rem 0.45rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.12));
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.nav-link {
    font-weight: 500;
    color: rgba(226, 232, 240, 0.75) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-nav {
    gap: 0.75rem;
}

.nav-pill {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-pill:hover,
.nav-pill:focus {
    background: rgba(59, 130, 246, 0.18);
}

.btn-nav,
.btn-nav-ghost,
.btn-dashboard {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-nav {
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    border: none;
    color: #0b1120;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-nav:hover {
    color: #0b1120;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.35);
}

.btn-nav-ghost {
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
    background: transparent;
}

.btn-nav-ghost:hover {
    color: #0f172a;
    background: #ffffff;
}

.btn-dashboard {
    border: none;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.85));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.35);
}

.btn-dashboard:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(30, 64, 175, 0.4);
}

@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0.5rem;
        padding-top: 1.25rem;
    }

    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
    }

    .navbar-nav .nav-pill {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.navbar .btn-outline-light:hover {
    background-color: #ffffff;
    color: #0f172a;
}


.user-menu .dropdown-menu {
    min-width: 260px;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: background 0.3s ease, border 0.3s ease;
}

.user-pill:hover,
.user-pill:focus {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
}

.user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(59, 130, 246, 0.8));
    font-weight: 700;
    color: #0f172a;
}

.user-name {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.user-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem 0.75rem;
}

.user-dropdown .user-full {
    margin-bottom: 0;
    font-weight: 600;
    color: #f8fafc;
}

.user-dropdown .user-email {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.6);
}

.plan-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.4);
    white-space: nowrap;
}

.navbar .dropdown-menu-dark {
    background-color: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar .dropdown-item {
    color: rgba(226, 232, 240, 0.8);
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #ffffff;
}

.admin-dropdown-menu {
    background: linear-gradient(180deg, rgba(9, 19, 41, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 18px 35px rgba(8, 15, 30, 0.55);
}

.admin-dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 1rem;
    color: rgba(226, 232, 240, 0.88);
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-dropdown-menu .dropdown-item:hover,
.admin-dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(56, 189, 248, 0.35));
    color: #ffffff;
    transform: translateX(2px);
}

.admin-dropdown-menu .dropdown-item i {
    margin-right: 0.5rem;
    opacity: 0.85;
}


/* =========================================
      BOTONES Y FORMULARIOS
  =========================================
  */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-control {
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    color: #1f2933;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    color: #1f2933;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* =========================================
      TARJETAS (CARDS)
  =========================================
  */
.card {
    background-color: #ffffff;
    /* Fondo claro para las tarjetas */
    border: 1px solid #e5e7eb;
    /* Borde sutil */
    color: #1f2933;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================
      HERO REPORT SHARED
  ========================================= */
.report-hero {
    position: relative;
    border-radius: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #091329 0%, #0d1f3a 55%, #0b2235 100%);
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 18px 36px rgba(5, 12, 22, 0.3);
    overflow: hidden;
    color: #f8fafc;
}

.report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.18), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15), transparent 55%);
    pointer-events: none;
}

.report-hero > * {
    position: relative;
    z-index: 1;
}

.report-hero-title {
    font-family: "Space Grotesk", "Montserrat", sans-serif;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(5, 12, 22, 0.45);
}

.report-hero-subtitle {
    color: rgba(226, 232, 240, 0.85);
}

.report-hero .trk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.75rem;
}

.report-hero-player {
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 0;
}

.report-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
}

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

.card:hover {
    transform: translateY(-5px);
    /* Efecto de elevación al pasar el ratón */
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.card-header,
.card-footer {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    color: #1f2933;
}

/* Solución para las etiquetas de formulario en tarjetas oscuras (Login/Register) */
.card label {
    color: #1f2933;
}

/* =========================================
      COMPONENTES ESPECÍFICOS (WORKOUT APP)
  =========================================
  */
.list-group-item {
    background-color: #ffffff;
    /* Mismo color que las tarjetas claras */
    border-color: #e5e7eb;
    /* Mismo color de borde */
    color: #1f2933;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.list-group-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    /* Para que el enlace ocupe todo el item */
}

.list-group-item.active a {
    color: #fff;
    font-weight: 600;
}

.list-group-item:not(.active):hover {
    background-color: #f1f5f9;
    /* Un color de hover sutil */
}


/* =========================================
      FOOTER
  =========================================
  */
footer {
    background-color: #111827;
    border-top: 1px solid #333;
}

/* =========================================
    HOMEPAGE
=========================================
*/
.homepage .main-content {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.25), transparent 55%),
        radial-gradient(circle at top right, rgba(30, 64, 175, 0.15), transparent 45%);
}

.hero-keeper {
    padding: 6rem 0 5rem;
    background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.35), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.25), transparent 45%),
        linear-gradient(160deg, #020617 0%, #0f172a 55%, #111827 100%);
    position: relative;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../img/background_prueba.jpg') no-repeat center/cover;
    opacity: 0.3;
    mix-blend-mode: soft-light;
    filter: saturate(0.65) contrast(1.05) brightness(0.9);
    pointer-events: none;
}

.badge-pro {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.2);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #5eead4;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.6;
}

.glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}



.status-chip {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.metric-label {
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.2);
    display: grid;
    place-items: center;
    color: #60a5fa;
    flex-shrink: 0;
}

.section-spacer {
    padding: 5rem 0;
}

.section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 700;
    color: #0f172a;
}

.section-dark {
    background: linear-gradient(160deg, #0f172a 0%, #111827 60%, #0b1120 100%);
    color: #e2e8f0;
}

.section-light {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.5) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.feature-card p {
    color: #475569;
}

.icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.35));
    display: grid;
    place-items: center;
    color: #2563eb;
    font-size: 1.25rem;
}

.card-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.card-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #2563eb;
    position: absolute;
    left: 0;
    top: 0;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tool-chip {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.25);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tool-chip i {
    color: #38bdf8;
}

.playbook-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
}

.playbook-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.playbook-step:last-child {
    border-bottom: none;
}

.step-index {
    font-size: 1.1rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.playbook-step h5 {
    margin-bottom: 0.35rem;
    color: #f8fafc;
}

.bullet-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

.bullet-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.6;
}

.bullet-list i {
    color: #38bdf8;
    font-size: 1rem;
    flex-shrink: 0;
}

.briefing-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    color: #f8fafc;
}

.briefing-step {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.briefing-step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.22);
    font-weight: 700;
    color: #bfdbfe;
    flex-shrink: 0;
}

.workflow-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.workflow-number {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    margin-bottom: 1.25rem;
}

.testimonial-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.85));
    border-radius: 24px;
    padding: 2.5rem;
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #e0f2fe;
}

.final-cta {
    background: linear-gradient(140deg, #1e3a8a 0%, #1d4ed8 60%, #38bdf8 100%);
    color: #ffffff;
    padding: 5rem 0;
}

.final-cta .btn-light {
    color: #1d4ed8;
    font-weight: 600;
}

.footer-primary {
    background: #111827;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-primary .brand-text {
    color: #e2e8f0;
}

.footer-link {
    color: rgba(226, 232, 240, 0.65);
}

.footer-link:hover {
    color: #ffffff;
}

/* =========================================
    HOMEPAGE MINIMAL ANIMATION
=========================================
*/
.minimal-home .main-content {
    background: none;
}

.hero-minimal {
    position: relative;
    min-height: calc(100vh - 74px);
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(14, 116, 144, 0.25), transparent 45%),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #111b2c 100%);
    overflow: hidden;
}

.hero-minimal::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 90deg, rgba(59, 130, 246, 0.25), rgba(56, 189, 248, 0.1), rgba(59, 130, 246, 0.25));
    filter: blur(120px);
    opacity: 0.7;
    animation: glowPulse 12s ease-in-out infinite;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1517777921510-58c20eb3b87f?auto=format&fit=crop&w=2000&q=80') no-repeat center/cover;
    mix-blend-mode: lighten;
    opacity: 0.18;
    pointer-events: none;
}

.hero-minimal .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: grid;
    gap: clamp(0.6rem, 2vw, 1rem);
    justify-items: center;
    margin-bottom: 0;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 6.8vw, 5.6rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.hero-logo::after {
    content: "";
    width: 72%;
    max-width: 420px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(0.3rem, 1.4vw, 1rem);
    padding: clamp(0.25em, 1.4vw, 0.5em) clamp(0.75em, 2vw, 1.5em);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.68);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    word-break: break-word;
    width: 100%;
}

.hero-title-part {
    letter-spacing: clamp(0.06em, 0.35vw, 0.12em);
    white-space: nowrap;
}

.hero-title-part--text {
    font-weight: 600;
    color: #f8fafc;
    word-break: keep-all;
}

@media (max-width: 575.98px) {
    .hero-title-part--text:last-child {
        display: none !important;
    }
}

.hero-title-part--number {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 7.2vw, 6rem);
    line-height: 0.95;
    color: #0ea5e9;
    padding: 0.08em 0.35em;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(59, 130, 246, 0.16));
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4), 0 10px 30px rgba(14, 116, 144, 0.3);
    word-break: keep-all;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    border: none;
    color: #0b1120;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

@media (max-width: 575.98px) {
    .hero-logo {
        font-size: clamp(2rem, 11vw, 3.4rem);
        letter-spacing: 0.02em;
        gap: 0.55rem;
    }

    .hero-logo::after {
        width: 58%;
    }

    .hero-title {
        gap: 0.4rem;
        padding: 0.45em 1.1em;
        border-radius: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        word-break: break-word;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-title-part {
        letter-spacing: 0.08em;
        white-space: normal;
    }

    .hero-title-part--text,
    .hero-title-part--number {
        font-size: 1em;
        word-break: break-word;
    }

    .hero-title-part--number {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
        padding: 0.12em 0.4em;
    }
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 55px rgba(14, 165, 233, 0.4);
    color: #0b1120;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

@keyframes floatTitle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
 ESTILOS ESPECÍFICOS PARA EL DASHBOARD DE TRACKING
 ========================================================================== */

/* =========================================
    PLATFORM OVERVIEW PAGE
=========================================
*/
.platform-page .main-content {
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.12), transparent 55%),
        radial-gradient(circle at bottom left, rgba(14, 116, 144, 0.12), transparent 50%),
        #f5f7fa;
}

.overview-hero {
    background: linear-gradient(160deg, #020617 0%, #0b1120 45%, #101a2f 100%);
    padding: 6rem 0;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.overview-hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% 0 -10%;
    background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.35), transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.22), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.overview-hero .container {
    position: relative;
    z-index: 2;
}

.btn-ghost-light {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-ghost-light:hover {
    color: #0b1120 !important;
    background-color: #ffffff;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-checklist i {
    color: #38bdf8;
}

.overview-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 22px 45px rgba(2, 6, 23, 0.45);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    color: #bfdbfe;
}

.panel-metric {
    margin-bottom: 1.5rem;
}

.panel-metric .metric-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(226, 232, 240, 0.6);
}

.panel-metric .metric-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.4rem;
}

.panel-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
    margin-bottom: 1.5rem;
}

.panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.panel-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.2);
    display: grid;
    place-items: center;
    color: #60a5fa;
}

.module-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.module-card h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.module-card p {
    color: #475569;
}

.module-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    gap: 0.5rem;
    color: #475569;
}

.module-card ul li {
    position: relative;
    padding-left: 1.4rem;
}

.module-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #2563eb;
    position: absolute;
    left: 0;
    top: 2px;
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.35));
    display: grid;
    place-items: center;
    color: #2563eb;
    font-size: 1.3rem;
}

.flow-grid {
    display: grid;
    gap: 1.5rem;
}

.flow-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.flow-index {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
    font-weight: 700;
    display: grid;
    place-items: center;
    letter-spacing: 0.08em;
}

.overview-insights .insight-card {
    background: linear-gradient(160deg, rgba(30, 64, 175, 0.9), rgba(14, 165, 233, 0.7));
    border-radius: 20px;
    padding: 2.5rem;
    color: #f8fafc;
    box-shadow: 0 20px 45px rgba(30, 64, 175, 0.35);
}

.insight-metric {
    margin-bottom: 1.5rem;
}

.insight-metric .label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
}

.insight-metric .value {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.insight-divider {
    height: 1px;
    width: 100%;
    background: rgba(226, 232, 240, 0.4);
    margin-bottom: 1.5rem;
}

.insight-metric:last-child {
    margin-bottom: 0;
}

.testimonial-card.gradient {
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.85));
}

.overview-cta {
    padding: 5rem 0;
}

@media (max-width: 991.98px) {
    .overview-hero {
        text-align: center;
    }

    .overview-panel {
        max-width: 420px;
        margin: 0 auto;
    }

    .flow-grid {
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .module-card {
        padding: 1.75rem;
    }

    .overview-hero {
        padding: 5rem 0;
    }
}

/* =========================================
    LOGIN / AUTHENTICATION (REFACTORED)
=========================================
*/
.auth-page .main-content {
    background: radial-gradient(circle at top left, #1e293b, #0f172a 40%, #020617 100%);
    min-height: 100vh;
    padding-top: 0;
    /* Override default padding if necessary for full screen feel */
}

/* Glass Panel for Auth Card */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.text-primary-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Input Styles for Dark Mode Floating Labels */
.bg-dark-input {
    background-color: rgba(2, 6, 23, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #f1f5f9 !important;
}

.bg-dark-input:focus {
    background-color: rgba(2, 6, 23, 0.8) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

/* Fix Floating Label Text Color in Dark Mode */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: rgba(148, 163, 184, 0.8) !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>label {
    color: rgba(148, 163, 184, 0.6);
}

/* Icon Circle Small for Feature List */
.icon-circle-sm {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

/* Button Glow Effect */
.btn-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

/* Link Highlight Refinement */
.link-highlight {
    color: #38bdf8;
    transition: color 0.2s;
}

.link-highlight:hover {
    color: #93c5fd;
}

/* Reglas generales para las páginas del dashboard */
body.dashboard-body {
    background-color: #f5f7fa;
    color: #0f172a;
}

/* Estilos para las tarjetas (cards) de Bootstrap */
.dashboard-body .card {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-body .card-header,
.dashboard-body .card-footer {
    background-color: #f1f5f9;
    color: #334155;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-body h1,
.dashboard-body h2,
.dashboard-body h3,
.dashboard-body h4,
.dashboard-body h5 {
    color: #0f172a;
}

/* Estilos específicos para los formularios de la página de comparación */
.dashboard-body label {
    color: #0f172a !important;
    font-weight: 600;
}

.dashboard-body .form-select,
.dashboard-body .form-control {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.dashboard-body .form-select:focus,
.dashboard-body .form-control:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

/* Estilos para las listas */
.dashboard-body .list-group-item {
    background-color: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-body .table {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-body .table thead {
    color: #0f172a;
}

.dashboard-body .table-light {
    --bs-table-bg: #f8fafc;
    --bs-table-color: #0f172a;
}

.dashboard-body .table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.12);
    color: #0f172a;
}


/* =========================================
    CONTACT PAGE
========================================= */
.contact-page .main-content {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.14), transparent 50%),
        #f5f7fa;
}

.contact-hero {
    position: relative;
    padding: 5.5rem 0;
    color: #222e3a;
    background: #0f1f41;
    overflow: hidden;
}

.contact-hero-overlay {
    display: none;
}

.contact-meta-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.contact-meta-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.contact-meta-item .meta-label {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.6);
}

.contact-meta-item .meta-value {
    margin-bottom: 0;
    font-weight: 600;
    color: #f8fafc;
}

.contact-form-card {
    background: #0f1f41;
    border-radius: 22px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2.75rem;
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.45);
}

.contact-form-card .form-label {
    color: rgba(226, 232, 240, 0.8);
    font-weight: 600;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    background: #0f1f41;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

.contact-form-card .form-control::placeholder,
.contact-form-card .form-select::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    background: #0f1f41;
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25);
}

.contact-alert {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.contact-info-card h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.3rem;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-info-list .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.contact-info-list .label {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: #0f172a;
}

.contact-info-list a,
.contact-info-list .value {
    color: #475569;
    font-weight: 500;
}

.contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: #475569;
}

.contact-benefits li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.contact-benefits i {
    color: #1d4ed8;
}

.contact-faq-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.contact-faq-card h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.contact-faq-card p {
    color: #475569;
}

.faq-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .contact-form-card {
        padding: 2.2rem;
    }

    .contact-hero {
        text-align: center;
    }

    .contact-meta {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .contact-form-card {
        padding: 1.8rem;
    }

    .contact-info-card {
        padding: 1.75rem;
    }
}


/* =========================================
    HOMEPAGE MARKETING
========================================= */
.marketing-home .main-content {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.22), transparent 55%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 60%),
        #020617;
    color: #ffffff;
}

.marketing-hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.marketing-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.25), transparent 50%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-points {
    display: grid;
    gap: 1.2rem;
}

.hero-points .point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hero-points .icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.2);
    display: grid;
    place-items: center;
    color: #60a5fa;
    font-size: 1.1rem;
}

.hero-points .title {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #f8fafc;
}

.hero-points .copy {
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.65);
}

.hero-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 65px rgba(2, 6, 23, 0.55);
}

.hero-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-chip {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.hero-panel .panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.hero-panel .panel-list li {
    display: flex;
    gap: 1rem;
}

.hero-panel .panel-list .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.18);
    display: grid;
    place-items: center;
    color: #60a5fa;
}

.hero-panel .panel-metric .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(226, 232, 240, 0.55);
}

.hero-panel .panel-metric .value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.hero-panel .panel-metric .trend {
    font-size: 0.85rem;
}

.home-stats {
    padding: 2.5rem 0;
}

.stat-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #f8fafc;
    text-align: center;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

.home-features {
    background: #f8fafc;
}

.feature-mini {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.feature-mini .icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(59, 130, 246, 0.35));
    display: grid;
    place-items: center;
    color: #2563eb;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.home-showcase {
    padding: 5rem 0;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.showcase-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.showcase-list i {
    color: #38bdf8;
}

.showcase-panel {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
}

.showcase-panel .tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    margin-bottom: 1.5rem;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mini-metrics .label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
}

.mini-metrics .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
}

.showcase-panel .note {
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.7);
}

.marketing-ghost {
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    color: #e2e8f0;
    padding: 0.9rem 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.marketing-ghost:hover {
    background: #ffffff;
    color: #0b1120;
}

.home-final-cta {
    background: linear-gradient(140deg, #1e3a8a 0%, #1d4ed8 60%, #38bdf8 100%);
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .hero-panel {
        margin: 0 auto;
    }

    .home-showcase {
        text-align: center;
    }

    .showcase-list {
        justify-items: center;
    }
}

@media (max-width: 575.98px) {
    .hero-panel {
        padding: 2rem;
    }
}


/* =========================================
    PROFILE PAGE
========================================= */
.profile-page .main-content {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.14), transparent 50%),
        #f5f7fa;
}

.profile-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    color: #0f172a;
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 60%, #c7d2fe 100%);
    overflow: hidden;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.25), transparent 55%),
        radial-gradient(circle at 85% -10%, rgba(56, 189, 248, 0.25), transparent 60%);
    pointer-events: none;
    opacity: 0.9;
}

.profile-hero-content {
    position: relative;
    max-width: 680px;
    z-index: 1;
}

.profile-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.profile-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 1rem 0 0.75rem;
}

.profile-hero-copy {
    font-size: 1rem;
    color: #475569;
    max-width: 520px;
}

.profile-hero-actions {
    margin-top: 1.5rem;
}

.profile-main {
    position: relative;
}

.profile-alert {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
    font-weight: 600;
    border-radius: 14px;
}

.profile-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: clamp(2rem, 4vw, 2.4rem);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card-header h2 {
    font-weight: 700;
    color: #0f172a;
}

.profile-card-header p {
    color: #64748b;
    margin-bottom: 0;
}

.profile-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.avatar-pill {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(59, 130, 246, 0.4));
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.avatar-pill-lg {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
}

.profile-card .name {
    font-weight: 600;
    color: #0f172a;
}

.profile-card .email {
    color: #64748b;
    font-size: 0.92rem;
}

.profile-meta {
    display: grid;
    gap: 0.85rem;
}

.profile-meta li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 0.7rem;
    font-size: 0.94rem;
}

.profile-meta li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-meta .label {
    color: #64748b;
    font-weight: 500;
}

.profile-meta .value {
    color: #0f172a;
    font-weight: 600;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.quick-link-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: #f8fafc;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link-item strong {
    display: block;
    font-size: 0.96rem;
}

.quick-link-item small {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    background: #ffffff;
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .profile-card {
        padding: 2rem;
    }
}


/* =========================================
    FORM HEADERS & BACK BUTTONS
========================================= */
.form-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .form-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.form-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .form-header-left {
        flex-direction: row;
        align-items: center;
        gap: 0.9rem;
    }

    .form-header-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .form-header-actions .btn {
        white-space: nowrap;
    }

    @media (max-width: 575.98px) {
        .form-header-actions {
            justify-content: flex-end;
        }
    }
}

.form-header-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0f172a;
}

.form-header-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.65);
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
}

.btn-back i {
    font-size: 0.85rem;
}

.btn-back.btn-sm {
    padding: 0.35rem 0.95rem;
    font-size: 0.85rem;
}

.btn-back:hover,
.btn-back:focus {
    color: #eff6ff;
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    border-color: #1d4ed8;
    box-shadow: 0 16px 28px rgba(29, 78, 216, 0.32);
}


/* =========================================
    HOME TRAINING OVERVIEW
========================================= */
.training-home .main-content {
    background: #f4f6fb;
    color: #1f2933;
}

.home-intro {
    padding: 5rem 0 3rem;
}

.home-intro .section-kicker {
    color: #64748b;
}

.home-intro h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    color: #0f172a;
}

.home-intro .lead {
    color: #475569;
}

.home-overview-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.home-overview-card .badge {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.overview-list li {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
}

.overview-list li:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.overview-list .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.overview-list .value {
    font-weight: 600;
    color: #0f172a;
}

.overview-list .hint {
    font-size: 0.85rem;
}

.home-modules {
    background: #ffffff;
}

.module-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 1.8rem;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.module-card p {
    color: #475569;
    margin-bottom: 0;
}

.home-workflow {
    background: #f4f6fb;
}

.workflow-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.workflow-list li {
    position: relative;
    padding-left: 2.5rem;
}

.workflow-list li::before {
    counter-increment: steps;
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-weight: 700;
}

.workflow-list h4 {
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.workflow-list p {
    margin-bottom: 0;
    color: #475569;
}

.workflow-panel {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.workflow-metric {
    background: #f9fafb;
    border-radius: 14px;
    padding: 1rem;
}

.workflow-metric .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.workflow-metric .value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.workflow-note {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: #1f2937;
}

.workflow-note ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.home-resources .resource-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.home-resources .resource-card h3 {
    font-weight: 600;
    color: #0f172a;
}

.home-resources .resource-card p {
    color: #475569;
    min-height: 60px;
}

.home-resources .btn {
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .home-overview-card {
        padding: 1.75rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .workflow-panel {
        padding: 1.75rem;
    }
}


/* =========================================
    WORKOUT PAGE
========================================= */
.workout-page .main-content {
    background: linear-gradient(180deg, #f5f7fb 0%, #fdfefe 55%, #ffffff 100%);
    color: #1f2933;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.workout-section {
    padding: 3.5rem 0;
}

.workout-dashboard-section {
    padding: 3.5rem 0;
}

.coach-heading-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.9);
}

.coach-heading-label i {
    font-size: 0.85rem;
}

.workout-header-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workout-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workout-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.workout-header-actions .btn {
    min-width: 150px;
}

@media (min-width: 992px) {
    .workout-header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .workout-header-actions {
        justify-content: flex-end;
    }
}

.workout-content.section-spacer {
    padding-top: 0.5rem;
}

.workout-category-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.9rem 1.35rem;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
    margin-bottom: 1.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.workout-category-bar::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #1f2937;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.category-chip:hover,
.category-chip:focus {
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 18px 32px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.category-chip.active {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 24px 42px rgba(13, 110, 253, 0.35);
}

.chip-label {
    font-size: 0.95rem;
}

.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 700;
}

.category-chip.active .chip-count {
    background: rgba(15, 23, 42, 0.22);
    color: #f8fafc;
}

.workout-hero {
    padding: 1.8rem 0 0.6rem;
}

.workout-hero h1 {
    color: #0f172a;
    font-size: clamp(2.3rem, 4.5vw, 3.2rem);
}

.workout-hero .workout-hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.workout-hero p {
    color: #475569;
}

.workout-hero .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(13, 110, 253, 0.12);
    border-radius: 999px;
    padding: 0.4rem 1rem;
}

.workout-hero-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.4rem, 2vw, 1.8rem);
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.workout-hero-heading h1 {
    margin: 0;
}

.action-buttons .btn {
    min-width: 140px;
}

.btn-workout-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.55);
    font-weight: 600;
    border-radius: 14px;
    padding: 0.6rem 1.45rem;
    box-shadow: 0 26px 48px rgba(13, 110, 253, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-workout-primary:hover,
.btn-workout-primary:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 32px 60px rgba(13, 110, 253, 0.48);
    filter: brightness(1.04);
}

.btn-workout-primary.disabled,
.btn-workout-primary:disabled {
    box-shadow: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-workout-ghost {
    border-radius: 14px;
    border: 1px solid rgba(13, 110, 253, 0.45);
    color: #0d6efd;
    font-weight: 600;
    padding: 0.6rem 1.45rem;
    background: rgba(13, 110, 253, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-workout-ghost:hover,
.btn-workout-ghost:focus {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.22);
    box-shadow: 0 24px 42px rgba(13, 110, 253, 0.35);
}

.btn-workout-ghost.disabled,
.btn-workout-ghost:disabled {
    opacity: 0.62;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-workout-danger {
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    font-weight: 600;
    padding: 0.6rem 1.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-workout-danger:hover,
.btn-workout-danger:focus {
    color: #ffe4e6;
    background: rgba(248, 113, 113, 0.26);
    box-shadow: 0 24px 38px rgba(248, 113, 113, 0.35);
}

.btn-workout-danger.disabled,
.btn-workout-danger:disabled {
    opacity: 0.55;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-sm.btn-workout-primary,
.btn-sm.btn-workout-ghost,
.btn-sm.btn-workout-danger {
    padding: 0.45rem 1.05rem;
    font-size: 0.8rem;
}

.btn-workout-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.28);
    background: rgba(13, 110, 253, 0.16);
    color: #0d6efd;
    font-weight: 600;
    padding: 0.42rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.text-workout-muted {
    color: #64748b;
}

.text-workout-subtle {
    color: #475569;
}

.category-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: clamp(1.8rem, 2.8vw, 2.35rem);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(100, 116, 139, 0.9);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.category-description {
    color: #475569;
    font-size: 0.92rem;
}

.category-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
}

.category-list {
    display: grid;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    color: #1f2937;
    background: rgba(248, 250, 252, 0.9);
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item>div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-name {
    font-size: 1rem;
}

.category-hint {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 0.82rem;
    font-weight: 700;
}

.category-item:hover,
.category-item:focus {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(13, 110, 253, 0.18);
}

.category-item:hover .category-hint,
.category-item:focus .category-hint {
    color: rgba(13, 110, 253, 0.85);
}

.category-item.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.32), rgba(13, 110, 253, 0.52));
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 26px 42px rgba(13, 110, 253, 0.25);
}

.category-item.active .category-hint {
    color: rgba(226, 232, 240, 0.9);
}

.category-item.active .category-count {
    background: rgba(15, 23, 42, 0.25);
    color: #f8fafc;
}

.workout-bento-grid {
    display: grid;
    gap: clamp(1.6rem, 2.4vw, 2rem);
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .workout-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .workout-bento-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.workout-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.96) 0%, rgba(26, 33, 54, 0.94) 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.48);
    border-radius: 22px;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.workout-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 44px 90px rgba(15, 23, 42, 0.62);
    border-color: rgba(59, 130, 246, 0.32);
}

.workout-card-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.workout-card-media::before {
    content: "";
    display: block;
    padding-top: 45%;
}

.workout-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 0;
}

.workout-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.82) 100%);
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.workout-card:hover .workout-card-media::after {
    opacity: 1;
}

.workout-card:hover .card-img-top {
    transform: scale(1.05);
}

.workout-card-badges {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
}

.workout-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.28);
}

.workout-card-badge i {
    font-size: 0.82rem;
}

.workout-card-level {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    padding: 0.6rem 1.45rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.16);
}

.level-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(191, 219, 254, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.38);
}

.level-chip i {
    color: #1d4ed8;
    font-size: 0.85rem;
}

.workout-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem 1.45rem 1.15rem;
    flex-grow: 1;
}

.workout-card-title {
    margin: 0;
    color: #f8fafc;
    font-weight: 700;
    font-size: clamp(1.08rem, 2.1vw, 1.24rem);
    line-height: 1.35;
}

.workout-card-description {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.9rem;
    line-height: 1.45;
}

.workout-card-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.78);
}

.workout-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.workout-card-meta i {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.85);
}

.workout-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem 0.95rem;
    border-top: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(15, 23, 42, 0.82);
}

.workout-card-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

.workout-card-actions .btn.btn-workout-ghost {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.35);
    color: #dbeafe;
}

.workout-card-actions .btn.btn-workout-ghost:hover,
.workout-card-actions .btn.btn-workout-ghost:focus {
    background: rgba(13, 110, 253, 0.22);
    color: #ffffff;
}

.workout-pagination .page-link {
    border-radius: 999px;
    border: none;
    color: #0d6efd;
    padding: 0.45rem 0.95rem;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.workout-pagination .page-link:hover {
    color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.workout-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(13, 110, 253, 0.28);
}

.plan-summary-grid {
    display: grid;
    gap: 1.75rem;
}

.workout-plan-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.workout-plan-card .card-header,
.workout-plan-card .card-footer {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.workout-plan-card .card-body {
    color: #1f2933;
}

.workout-plan-card .input-group {
    background: #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.workout-plan-card .input-group .input-group-text {
    background: transparent;
    border: none;
    color: #64748b;
}

.workout-plan-card .input-group .form-control {
    border: none;
    background: transparent;
    color: #1f2933;
}

.workout-plan-card .form-select {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #1f2933;
}

.plan-items-list .list-group-item {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.2);
    color: #1f2933;
    padding: 1rem 1.25rem;
}

.plan-items-list .list-group-item+.list-group-item {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.plan-items-list .drag-handle {
    color: rgba(148, 163, 184, 0.6);
}

.available-workout {
    background: #111827;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.5);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.available-workout:hover {
    transform: translateY(-5px);
    box-shadow: 0 36px 72px rgba(15, 23, 42, 0.62);
    border-color: rgba(13, 110, 253, 0.48);
}

.available-workout .card-title {
    color: #f8fafc;
}

.available-workout .card-text {
    color: rgba(226, 232, 240, 0.75);
}

.available-workout .text-workout-muted {
    color: rgba(226, 232, 240, 0.72);
}

.available-workout .text-workout-subtle {
    color: rgba(203, 213, 225, 0.68);
}

.available-workout .card-footer {
    background: rgba(17, 24, 39, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.available-workout.border-success {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 30px 64px rgba(16, 185, 129, 0.28);
}

.plan-empty-state {
    background: #ffffff;
    border-radius: 26px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    padding: 3rem;
    text-align: center;
    color: #475569;
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.plan-empty-state i {
    font-size: 3rem;
    color: rgba(13, 110, 253, 0.5);
}

.plan-empty-state .btn {
    margin-top: 1.5rem;
}

.workout-page #planMessage.alert {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.workout-page #planMessage.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.workout-page #planMessage.alert-danger {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #b91c1c;
}

.workout-detail-section .workout-plan-card {
    border-radius: 26px;
}

.workout-detail-image {
    object-fit: cover;
}

.workout-card-chip i {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
}

@media (min-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .workout-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
    }

    .workout-toolbar-info {
        max-width: 480px;
    }

    .workout-filter-form {
        flex: 1;
    }
}

@media (max-width: 991.98px) {
    .workout-bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .category-card {
        border-radius: 20px;
    }
}

@media (max-width: 575.98px) {
    .workout-hero {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .action-buttons {
        justify-content: center !important;
    }

    .workout-bento-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
    CALENDAR PAGE
========================================= */
.calendar-page .main-content {
    background: linear-gradient(180deg, #eef2f8 0%, #f7f9fc 60%, #ffffff 100%);
    color: #1f2933;
}

.calendar-hero {
    padding: 4rem 0 2.5rem;
}

.calendar-hero h1 {
    color: #0f172a;
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.calendar-actions .btn {
    min-width: 140px;
}

.btn-calendar-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn-calendar-primary:hover,
.btn-calendar-primary:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.3);
}

.btn-calendar-ghost {
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
}

.btn-calendar-ghost:hover,
.btn-calendar-ghost:focus {
    background: rgba(37, 99, 235, 0.16);
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.45);
}

.calendar-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
    padding: 1.5rem;
}

.calendar-card #keeper-calendar {
    min-height: 70vh;
}

.calendar-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

.calendar-legend .color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.calendar-legend .color.training {
    background: #6f42c1;
}

.calendar-legend .color.match {
    background: #fd7e14;
}

.calendar-legend .color.other {
    background: #6c757d;
}

.calendar-card #keeper-calendar {
    min-height: 70vh;
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-card,
.upcoming-card,
.legend-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus {
    background: rgba(37, 99, 235, 0.18);
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.4);
}

.legend-list {
    display: grid;
    gap: 0.5rem;
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(226, 232, 240, 0.3);
    font-size: 0.8rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-color.training {
    background: #6f42c1;
}

.legend-color.match {
    background: #fd7e14;
}

.legend-color.other {
    background: #6c757d;
}

.upcoming-item {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.1);
    margin-bottom: 0.6rem;
}

.upcoming-item .label {
    font-weight: 600;
    color: #0f172a;
}

.upcoming-item .meta {
    font-size: 0.85rem;
    color: #475569;
}

/* FullCalendar overrides */
.fc .fc-toolbar-title {
    color: #0f172a;
    font-weight: 600;
}

.fc .fc-button {
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(37, 99, 235, 0.12);
}

.event-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.event-modal .modal-header,
.event-modal .modal-footer {
    border: none;
    padding: 1.5rem;
}

.event-modal .modal-body {
    padding: 1.5rem;
}

.event-modal .form-label {
    font-weight: 600;
    color: #0f172a;
}

.event-modal .form-control,
.event-modal .form-select,
.event-modal textarea {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
}

.event-modal .form-control:focus,
.event-modal .form-select:focus,
.event-modal textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.event-modal .alert {
    border-radius: 12px;
}

.fc-event.event-training {
    background: rgba(111, 66, 193, 0.18);
    border: 1px solid rgba(111, 66, 193, 0.4);
    color: #432874;
}

.fc-event.event-match {
    background: rgba(253, 126, 20, 0.2);
    border: 1px solid rgba(253, 126, 20, 0.45);
    color: #a44f07;
}

.fc-event.event-other {
    background: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.35);
    color: #495057;
}

.fc-event.event-match {
    background: rgba(253, 126, 20, 0.2);
    border: 1px solid rgba(253, 126, 20, 0.45);
    color: #a44f07;
}

.fc-event.event-other {
    background: rgba(108, 117, 125, 0.18);
    border: 1px solid rgba(108, 117, 125, 0.4);
    color: #495057;
}

@media (max-width: 991.98px) {
    .calendar-main .row {
        flex-direction: column-reverse;
    }

    .calendar-sidebar {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
    }

    .calendar-sidebar>* {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .calendar-hero {
        text-align: center;
    }

    .calendar-actions {
        justify-content: center !important;
    }
}


/* =========================================
    TRACKING APP THEME
========================================= */
.tracking-page .main-content {
    background: linear-gradient(180deg, #eef2f8 0%, #f7f9fc 70%, #ffffff 100%);
    color: #1f2933;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

.tracking-page .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.tracking-page .card-header {
    background: rgba(226, 232, 240, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.btn-track-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-track-primary:hover,
.btn-track-primary:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.btn-track-outline {
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    background: transparent;
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
}

.btn-track-outline:hover,
.btn-track-outline:focus {
    background: rgba(37, 99, 235, 0.12);
    color: #0f172a;
}

.btn-track-ghost {
    border-radius: 12px;
    border: none;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
}

.btn-track-ghost:hover,
.btn-track-ghost:focus {
    background: rgba(37, 99, 235, 0.16);
    color: #0f172a;
}

.btn-track-chip {
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
}

.btn-track-chip:hover,
.btn-track-chip:focus {
    background: rgba(37, 99, 235, 0.18);
    color: #0f172a;
}

.badge-track {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-track.primary {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.badge-track.success {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.badge-track.amber {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.badge-track.neutral {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

.tracking-metric {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tracking-metric .metric-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
}

.tracking-metric .metric-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #64748b;
}

.tracking-table thead {
    background: rgba(226, 232, 240, 0.6);
}

.tracking-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08);
}

.tracking-page .table> :not(caption)>*>* {
    padding: 0.9rem;
    vertical-align: middle;
}

.tracking-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    margin: 0.2rem;
}

.tracking-page .form-control,
.tracking-page .form-select,
.tracking-page textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
}

.tracking-page .form-control:focus,
.tracking-page .form-select:focus,
.tracking-page textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.tracking-page .alert {
    border-radius: 16px;
}

@media (max-width: 575.98px) {

    .tracking-page .btn-track-primary,
    .tracking-page .btn-track-outline,
    .tracking-page .btn-track-ghost {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* =========================================
    PÁGINA DE CONTACTO (Dark Premium)
=========================================
*/
.contact-page .main-content {
    background: #0b1120;
}

.contact-section {
    position: relative;
    padding: 6rem 0 5rem;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15), transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.1), transparent 40%),
        linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    overflow: hidden;
}

/* Decoración de fondo */
.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.contact-intro {
    position: relative;
    z-index: 2;
    padding-right: 2rem;
}

.contact-logo-img {
    max-width: 140px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.contact-intro h1 {
    color: #f8fafc;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-intro .lead {
    color: #94a3b8 !important;
    /* Forza gris azulado claro */
    font-weight: 300;
}

.contact-highlights li {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-highlights li:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateX(5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.contact-highlights .icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.2));
    color: #60a5fa;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-highlights .meta-label {
    color: #64748b !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-highlights .meta-value {
    color: #e2e8f0 !important;
    font-weight: 500;
}

/* Tarjeta Formulario Dark Glass */
.contact-form-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-form-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inputs en modo oscuro */
.contact-form-card .form-label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #f1f5f9;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.contact-form-card .form-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Tarjetas Informativas Inferiores */
.contact-info-card {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-info-card h5 {
    color: #e2e8f0 !important;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.contact-info-list .icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.contact-info-list .label {
    margin-bottom: 0;
    color: #94a3b8 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.contact-info-list a,
.contact-info-list .value {
    color: #f1f5f9;
    font-weight: 500;
}

.contact-info-list a:hover {
    color: #60a5fa;
}

.contact-benefits {
    list-style: none;
    padding: 0;
}

.contact-benefits li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact-benefits li i {
    color: #38bdf8;
    margin-top: 0.25rem;
}

/* Alert Success Override */
.contact-alert {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    border-radius: 12px;
}
/* =========================================
    MODULE CARDS (Added for Platform Page Refactor)
========================================= */
.module-card {
    background: linear-gradient(145deg, #111827, #0f172a); /* Dark blue-black gradient */
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card .icon-bubble {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-card:hover .icon-bubble {
    transform: scale(1.1) rotate(5deg);
    background: rgba(30, 58, 138, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.module-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
    UTILIDADES NAVBAR Y FOOTER
=========================================
*/
.bg-dark-glass {
    background-color: rgba(11, 20, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(11, 20, 36, 1);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hover-white:hover {
    color: #fff !important;
}

/* =========================================
    MOBILE BOTTOM NAVIGATION
=========================================
*/
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(9, 19, 41, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(65px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    z-index: 1030;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0;
    flex: 1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: #38bdf8;
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .nav-item:hover i {
    transform: translateY(-4px) scale(1.15);
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* =========================================
    PROFESSIONAL GLASS UI
=========================================
*/
.module-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
    position: relative;
    border-radius: 20px !important;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.module-card:hover::before {
    transform: translateX(100%);
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

.btn-fullscreen-nav {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.btn-fullscreen-nav:hover {
    background: rgba(37, 99, 235, 0.45);
    border-color: rgba(56, 189, 248, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-fullscreen-nav .fs-icon {
    font-size: 0.95rem;
}

.btn-fullscreen-nav--compact {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-fullscreen-nav--compact:hover,
.btn-fullscreen-nav--compact:active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
}

@keyframes pulse-ring-pro {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.pulse-attention {
    animation: pulse-ring-pro 2.5s infinite;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }
}
