:root {
    --primary: #505BDA;
    --primary-dark: #2A2C6E;
    --accent: #00F9FF;
    --surface-low: #0c0e17;
}

body {
    background-color: var(--surface-low);
    color: #e1e1ef;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.glass-panel, .glass {
    background: rgba(27, 30, 43, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 44, 110, 0.4);
}

.glass-hover:hover {
    border-color: rgba(80, 91, 218, 0.5);
    box-shadow: 0 0 15px rgba(80, 91, 218, 0.2);
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(80, 91, 218, 0.3);
    border-color: #505BDA;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

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

.brand-logo--auth {
    height: 42px;
}

.text-glow { text-shadow: 0 0 12px rgba(0, 249, 255, 0.4); }

.course-card-gradient {
    background: linear-gradient(180deg, rgba(27, 30, 43, 0.55) 0%, rgba(27, 30, 43, 0.92) 100%);
}

.course-product-card {
    min-height: 100%;
}

.course-product-card__footer {
    flex-shrink: 0;
}

.course-product-card__footer form[data-cart-add] {
    flex-shrink: 0;
}

.course-product-card__footer button[type="submit"] {
    white-space: nowrap;
}

.course-product-card__link {
    color: inherit;
    text-decoration: none;
}

.course-product-card__link:hover {
    color: inherit;
}

.primary-glow { box-shadow: 0 0 15px rgba(80, 91, 218, 0.5); }
.accent-glow { box-shadow: 0 0 15px rgba(0, 249, 255, 0.3); }

.progress-gradient, .charging-progress {
    background: linear-gradient(90deg, #505BDA 0%, #00F9FF 100%);
}

.hero-carousel-item {
    transition: opacity 0.75s ease-in-out;
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
}
.hero-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-item.active .hero-carousel-image {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.tech-grid-overlay {
    background-image:
        linear-gradient(rgba(80, 91, 218, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 91, 218, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

.tech-scanline {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 249, 255, 0.03) 2px,
        rgba(0, 249, 255, 0.03) 4px
    );
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    from { background-position: 0 0; }
    to { background-position: 0 120px; }
}

.hero-text-panel {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-text-panel.is-changing {
    opacity: 0;
    transform: translateY(12px);
}

/* Home hero — flujo estático (100dvh en documento, sin fixed) */
.home-fullscreen {
    overflow-x: hidden;
}

.home-hero-fullscreen,
.home-fullscreen #home-tech-carousel {
    position: static;
    display: grid;
    grid-template: "stack" minmax(100vh, 100dvh) / 1fr;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.home-hero-fullscreen > .hero-carousel-stage,
.home-fullscreen #home-tech-carousel > .hero-carousel-stage {
    grid-area: stack;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.home-hero-fullscreen > .hero-carousel-layer,
.home-fullscreen #home-tech-carousel > .hero-carousel-layer {
    grid-area: stack;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.home-fullscreen .navbar-hero-overlay {
    background: rgba(17, 19, 28, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(69, 70, 84, 0.15);
    box-shadow: none;
}

.home-fullscreen .navbar-hero-overlay.is-scrolled {
    background: rgba(17, 19, 28, 0.85);
    border-bottom-color: rgba(69, 70, 84, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.home-fullscreen .home-main-below-hero {
    background: var(--background, #11131c);
}

.home-fullscreen .alert {
    margin-top: 1rem;
}

/* Home hero — estilo ivirtuoacademy.com + diseño tech */
.home-hero-ivirtuo .hero-carousel-item.active .hero-carousel-image {
    animation: kenBurns 10s ease-out forwards;
}

.home-hero-content {
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.home-hero-content.is-changing {
    opacity: 0;
    transform: translateY(18px);
}

/* Page hero banners — título sobre imagen */
.page-hero-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-banner--compact {
    min-height: 240px;
}
.page-hero-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-banner__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 19, 28, 0.92) 0%, rgba(17, 19, 28, 0.55) 45%, rgba(17, 19, 28, 0.35) 100%);
    pointer-events: none;
}
.page-hero-banner__content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    width: 100%;
}
@media (min-width: 768px) {
    .page-hero-banner { min-height: 360px; }
    .page-hero-banner--compact { min-height: 300px; }
    .page-hero-banner__content { padding: 4rem 3rem; }
}

/* Hero carousel — imagen visible con scrim ligero */
.hero-carousel-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.hero-carousel-scrim--center {
    background: linear-gradient(to bottom, rgba(17, 19, 28, 0.55) 0%, rgba(17, 19, 28, 0.25) 45%, rgba(17, 19, 28, 0.65) 100%);
}

.home-hero-ivirtuo .carousel-dot.active {
    width: 2.5rem;
    background-color: #3ef9ff;
}

.cyan-glow-focus:focus {
    outline: none;
    border-color: #00F9FF;
    box-shadow: inset 0 0 8px rgba(0, 249, 255, 0.2);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.scroll-animate {
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.is-hidden {
    opacity: 0;
    transform: translateY(2.5rem);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem auto;
    max-width: 80rem;
    font-size: 0.875rem;
}
.alert-success {
    background: rgba(0, 249, 255, 0.1);
    border: 1px solid rgba(0, 249, 255, 0.3);
    color: #3ef9ff;
}
.alert-error {
    background: rgba(147, 0, 10, 0.3);
    border: 1px solid rgba(255, 180, 171, 0.3);
    color: #ffb4ab;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c0e17; }
::-webkit-scrollbar-thumb { background: #2a2c6e; border-radius: 10px; }

#cursor-glow {
    position: fixed;
    pointer-events: none;
    width: 600px;
    height: 600px;
    background: rgba(80, 91, 218, 0.05);
    border-radius: 9999px;
    filter: blur(120px);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.atmosphere-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: 0.4;
}

/* Auth pages */
.auth-page {
    background: var(--surface-low, #0c0e17);
}

.auth-brand-panel {
    background: linear-gradient(135deg, rgba(80, 91, 218, 0.08) 0%, rgba(12, 14, 23, 0.95) 55%);
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #c6c5d6;
    background: rgba(27, 30, 43, 0.55);
    border: 1px solid rgba(80, 91, 218, 0.25);
}

.auth-card {
    position: relative;
}

.auth-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(80, 91, 218, 0.45), rgba(0, 249, 255, 0.15), rgba(80, 91, 218, 0.2));
    opacity: 0.55;
    filter: blur(0.5px);
}

.auth-card-inner {
    position: relative;
    z-index: 1;
    background: rgba(17, 19, 28, 0.82) !important;
    border: 1px solid rgba(80, 91, 218, 0.25) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-card-corner {
    position: absolute;
    width: 2rem;
    height: 2rem;
    pointer-events: none;
    z-index: 2;
}

.auth-card-corner--tl {
    top: 0.75rem;
    left: 0.75rem;
    border-top: 2px solid rgba(0, 249, 255, 0.5);
    border-left: 2px solid rgba(0, 249, 255, 0.5);
}

.auth-card-corner--br {
    right: 0.75rem;
    bottom: 0.75rem;
    border-right: 2px solid rgba(80, 91, 218, 0.6);
    border-bottom: 2px solid rgba(80, 91, 218, 0.6);
}

.auth-form-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 249, 255, 0.08);
    border: 1px solid rgba(0, 249, 255, 0.2);
}

.auth-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c6c5d6;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(80, 91, 218, 0.35), rgba(0, 249, 255, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.auth-input {
    width: 100%;
    background: rgba(241, 242, 248, 0.96);
    border: 1px solid rgba(69, 70, 84, 0.45);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #1d1f29;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-input:hover,
.auth-input:focus {
    color: #1d1f29;
    border-color: rgba(80, 91, 218, 0.55);
    background: #ffffff;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1d1f29;
    caret-color: #1d1f29;
    box-shadow: 0 0 0 1000px #f1f2f8 inset;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9375rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #e9e8ff;
    background: linear-gradient(135deg, #505bda 0%, #3a44b8 100%);
    border: 1px solid rgba(190, 194, 255, 0.15);
    box-shadow: 0 0 20px rgba(80, 91, 218, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 28px rgba(80, 91, 218, 0.5), 0 0 12px rgba(0, 249, 255, 0.15);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 91, 218, 0.35), transparent);
}

.auth-divider-text {
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-oauth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e1e1ef;
    background: rgba(27, 30, 43, 0.5);
    border: 1px solid rgba(69, 70, 84, 0.5);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-oauth-btn:hover {
    border-color: rgba(80, 91, 218, 0.5);
    background: rgba(80, 91, 218, 0.12);
    box-shadow: 0 0 16px rgba(80, 91, 218, 0.15);
}

.auth-page .alert {
    margin: 0 0 1.25rem;
    max-width: none;
}

/* SweetAlert2 — diseño tech Ivirtuo */
.ivirtuo-swal-container {
    z-index: 10050 !important;
}

.ivirtuo-swal-container--top {
    top: 5.25rem !important;
    padding: 0 1rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

body.swal2-toast-shown .ivirtuo-swal-container--top {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    pointer-events: none;
}

body.swal2-toast-shown {
    overflow: auto !important;
    padding-right: 0 !important;
}

.ivirtuo-swal-notify {
    position: relative;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 0.65rem !important;
    row-gap: 0.15rem !important;
    align-items: center !important;
    width: auto !important;
    max-width: min(26rem, calc(100vw - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0.7rem 1rem 0.65rem !important;
    border-radius: 0.85rem !important;
    background: rgba(17, 19, 28, 0.98) !important;
    border: 1px solid rgba(80, 91, 218, 0.35) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(80, 91, 218, 0.1) !important;
    pointer-events: auto;
}

.ivirtuo-swal-notify::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #505bda, #00f9ff, #505bda);
}

.ivirtuo-swal-notify-icon {
    grid-row: 1 / span 2 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    margin: 0 !important;
    border-width: 2px !important;
}

.ivirtuo-swal-notify-icon .swal2-icon-content {
    font-size: 0.9rem !important;
}

.ivirtuo-swal-notify-title {
    grid-column: 2 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.ivirtuo-swal-notify-text {
    grid-column: 2 !important;
    font-size: 0.8125rem !important;
    color: #c6c5d6 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.35 !important;
}

.ivirtuo-swal-notify .swal2-timer-progress-bar-container {
    grid-column: 1 / -1 !important;
    height: 2px !important;
    margin-top: 0.35rem !important;
}

.ivirtuo-swal-popup {
    position: relative;
    width: 20rem !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 1.15rem 1.1rem 1rem !important;
    border-radius: 1rem !important;
    background: rgba(17, 19, 28, 0.97) !important;
    border: 1px solid rgba(80, 91, 218, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(80, 91, 218, 0.12) !important;
    overflow: hidden;
}

.ivirtuo-swal-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(80, 91, 218, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 91, 218, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.ivirtuo-swal-popup::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #505bda, #00f9ff, #505bda);
}

.ivirtuo-swal-title {
    font-family: Inter, sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
}

.ivirtuo-swal-text {
    font-size: 0.8125rem !important;
    color: #c6c5d6 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ivirtuo-swal-text--center {
    text-align: center !important;
}

.ivirtuo-swal-icon {
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0.25rem auto 0.65rem !important;
    border-width: 2px !important;
    border-color: rgba(0, 249, 255, 0.25) !important;
    color: #3ef9ff !important;
}

.ivirtuo-swal-icon .swal2-icon-content {
    font-size: 1.35rem !important;
}

.ivirtuo-swal-icon.swal2-warning {
    border-color: rgba(255, 180, 171, 0.35) !important;
    color: #ffb4ab !important;
}

.ivirtuo-swal-actions {
    gap: 0.5rem !important;
    margin-top: 0.85rem !important;
}

.ivirtuo-swal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ivirtuo-swal-btn--confirm {
    background: linear-gradient(135deg, #505bda 0%, #3a44b8 100%);
    color: #e9e8ff;
    border-color: rgba(190, 194, 255, 0.2);
    box-shadow: 0 0 20px rgba(80, 91, 218, 0.35);
}

.ivirtuo-swal-btn--confirm:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 28px rgba(80, 91, 218, 0.5);
}

.ivirtuo-swal-btn--cancel {
    background: rgba(27, 30, 43, 0.8);
    color: #c6c5d6;
    border-color: rgba(69, 70, 84, 0.6);
}

.ivirtuo-swal-btn--cancel:hover {
    border-color: rgba(80, 91, 218, 0.45);
    color: #e1e1ef;
}

.ivirtuo-swal-timer {
    background: linear-gradient(90deg, #505bda, #00f9ff) !important;
}

.somos-experience-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.somos-experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(80, 91, 218, 0.12);
}

/* Catalog pagination */
.catalog-grid-wrap {
    position: relative;
    min-height: 120px;
}

.catalog-page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-page-btn--nav {
    min-width: 2.75rem;
}

.catalog-page-btn.is-active {
    background: linear-gradient(135deg, #505bda 0%, #3a44b8 100%);
    color: #e9e8ff;
    box-shadow: 0 0 18px rgba(80, 91, 218, 0.35);
}

.catalog-page-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Checkout & ePayco panel */
.checkout-epayco-panel {
    padding: 1.25rem;
    border: 1px solid rgba(221, 225, 234, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
}

.checkout-epayco-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.checkout-epayco-preview .checkout-pay-btn {
    display: none !important;
}

.checkout-billing-form input:focus,
.checkout-billing-form select:focus {
    outline: none;
}

.checkout-pay-btn {
    box-shadow: 0 0 24px rgba(80, 91, 218, 0.35);
}

.checkout-pay-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

body.is-epayco-checkout-open {
    overflow: hidden;
}

body.is-epayco-checkout-open .checkout-page {
    pointer-events: none;
}

body.is-epayco-checkout-open .checkout-summary {
    box-shadow: 0 0 0 2px rgba(80, 91, 218, 0.28), 0 18px 40px rgba(80, 91, 218, 0.12);
}

/* OnPage ePayco: fondo semitransparente para ver el checkout detrás del modal */
body.is-epayco-checkout-open #epayco_checkout,
body.is-epayco-checkout-open #_epayco {
    background: rgba(8, 12, 28, 0.62) !important;
    backdrop-filter: blur(3px);
}

/* Product detail page */
.product-page__hero {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .product-page__hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        gap: 2rem;
    }
}

.product-page__media {
    margin: 0;
    min-height: 280px;
}

.product-page__media-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .product-page__media,
    .product-page__media-image {
        min-height: 420px;
    }
}

.product-purchase__meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-purchase__meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(225, 225, 239, 0.85);
    background: rgba(80, 91, 218, 0.15);
    border: 1px solid rgba(80, 91, 218, 0.25);
}

.product-purchase__submit {
    min-height: 3.25rem;
}

.product-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(42, 44, 110, 0.45);
}

.product-tabs__item {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(225, 225, 239, 0.55);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.product-tabs__item--active {
    color: #00F9FF;
    border-bottom-color: #505BDA;
}

.product-modules-panel {
    border: 1px solid rgba(42, 44, 110, 0.45);
}

.product-modules-panel__title {
    letter-spacing: 0.01em;
}

.product-modules__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.product-module-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.5rem;
    background: rgba(12, 14, 23, 0.55);
    border: 1px solid rgba(42, 44, 110, 0.35);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.product-module-row__col {
    min-width: 0;
}

.product-module-row__label {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.product-module-row__value {
    color: rgba(225, 225, 239, 0.72);
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .product-module-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        padding: 1.5rem 2rem;
    }
}

.product-module-card {
    background: rgba(12, 14, 23, 0.45);
    border: 1px solid rgba(42, 44, 110, 0.35);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.product-module-card__label {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(225, 225, 239, 0.55);
    margin-bottom: 0.35rem;
}

.product-module-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.product-module-card__row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.875rem;
    color: rgba(225, 225, 239, 0.72);
    margin-bottom: 0.65rem;
}

.product-module-card__row strong {
    color: #fff;
    font-weight: 600;
}

.product-contact__form input:focus,
.product-contact__form select:focus {
    outline: none;
}

.course-suggest-card {
    border: 1px solid rgba(42, 44, 110, 0.35);
}

.course-suggest-card__link {
    color: inherit;
    text-decoration: none;
}

.course-suggest-card__btn {
    letter-spacing: 0.06em;
}

.product-syllabus__panel {
    border: 1px solid rgba(42, 44, 110, 0.45);
}

.product-syllabus__unit {
    background: rgba(12, 14, 23, 0.55);
    border: 1px solid rgba(42, 44, 110, 0.4);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-syllabus__unit-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.product-syllabus__topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.product-syllabus__topics li {
    position: relative;
    padding-left: 1.25rem;
    color: rgba(225, 225, 239, 0.82);
    line-height: 1.5;
}

.product-syllabus__topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--accent, #00F9FF);
    box-shadow: 0 0 8px rgba(0, 249, 255, 0.45);
}

@media (min-width: 768px) {
    .product-syllabus__unit {
        padding: 1.75rem 2rem;
    }

    .product-syllabus__unit-title {
        font-size: 1.25rem;
    }
}

/* Order detail modal (admin ventas + mis compras) */
body.order-detail-modal-open {
    overflow: hidden;
}

.order-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.order-detail-modal.hidden {
    display: none;
}

.order-detail-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 24, 0.72);
    backdrop-filter: blur(4px);
}

.order-detail-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 52rem);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    animation: orderDetailModalIn 0.22s ease-out;
}

.order-detail-modal__body {
    flex: 1;
    min-height: 0;
}

.order-detail-row:focus-visible {
    outline: 2px solid var(--primary-light, #7BC9F5);
    outline-offset: 2px;
}

.order-detail-course__media img {
    display: block;
}

@keyframes orderDetailModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.moodle-registration-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.moodle-registration-modal.is-open {
    display: flex;
}

.moodle-registration-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 23, 0.72);
    backdrop-filter: blur(4px);
}

.moodle-registration-modal__panel {
    position: relative;
    z-index: 1;
    animation: orderDetailModalIn 0.22s ease-out;
}

/* User panel — hero band (admin-style) */
.panel-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(42, 44, 110, 0.35);
    background: linear-gradient(180deg, rgba(27, 30, 43, 0.65) 0%, rgba(12, 14, 23, 0.4) 100%);
}

.panel-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.panel-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.panel-hero__glow--primary {
    top: -4rem;
    right: -2rem;
    width: 18rem;
    height: 18rem;
    background: rgba(80, 91, 218, 0.35);
}

.panel-hero__glow--accent {
    bottom: -5rem;
    left: -3rem;
    width: 16rem;
    height: 16rem;
    background: rgba(0, 249, 255, 0.12);
}

.panel-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.45;
}

.panel-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
    .panel-hero__inner {
        padding-top: 3rem;
        padding-bottom: 3.25rem;
    }
}

.panel-hero__avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 91, 218, 0.12);
    border: 1px solid rgba(0, 249, 255, 0.2);
    box-shadow: 0 0 24px rgba(80, 91, 218, 0.2);
}

@media (min-width: 768px) {
    .panel-hero__avatar {
        width: 5.5rem;
        height: 5.5rem;
        border-radius: 1.25rem;
    }
}

.panel-sticky-bar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

body.moodle-registration-modal-open {
    overflow: hidden;
}

.moodle-oauth-modal__spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(190, 194, 255, 0.25);
    border-top-color: var(--secondary-fixed, #3ef9ff);
    border-radius: 50%;
    animation: moodleOAuthSpin 0.75s linear infinite;
}

@keyframes moodleOAuthSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Newsletter composer (admin boletín) */
.newsletter-token-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7bc9f5;
    background: rgba(80, 91, 218, 0.14);
    border: 1px solid rgba(0, 249, 255, 0.18);
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-token-chip:hover {
    background: rgba(80, 91, 218, 0.28);
    color: #fff;
}

.newsletter-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    color: #b8b8d0;
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-toolbar-btn:hover,
.newsletter-toolbar-btn.is-active {
    background: rgba(80, 91, 218, 0.22);
    color: #00f9ff;
}

.newsletter-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(184, 184, 208, 0.55);
    pointer-events: none;
}

.newsletter-editor:focus {
    outline: none;
}

.newsletter-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.75rem 0;
    display: block;
    cursor: pointer;
    transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.newsletter-editor img.is-selected {
    outline: 2px solid #00f9ff;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(80, 91, 218, 0.25);
}

.newsletter-editor a {
    color: #505bda;
    text-decoration: underline;
}

.newsletter-editor h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
    color: #2a2c6e;
}

.newsletter-editor ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.newsletter-preview-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    color: #9a9ab5;
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-preview-toggle.is-active {
    background: rgba(80, 91, 218, 0.28);
    color: #00f9ff;
}

.newsletter-preview-frame-wrap {
    width: 100%;
    max-width: 640px;
}

.newsletter-preview-frame-wrap.is-mobile {
    max-width: 375px;
}

.newsletter-html-source {
    tab-size: 2;
    white-space: pre-wrap;
    word-break: break-word;
}

.newsletter-toolbar.is-html-mode [data-newsletter-cmd] {
    opacity: 0.35;
    pointer-events: none;
}

.newsletter-toolbar.is-html-mode [data-newsletter-toggle-html] {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-toolbar.is-html-mode [data-newsletter-cmd="insertImage"] {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-image-tools {
    gap: 0.5rem;
}

.newsletter-img-size-btn {
    padding: 0.2rem 0.45rem;
    border-radius: 0.45rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #b8b8d0;
    background: rgba(27, 30, 43, 0.55);
    border: 1px solid rgba(42, 44, 110, 0.45);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.newsletter-img-size-btn:hover,
.newsletter-img-size-btn.is-active {
    color: #00f9ff;
    border-color: rgba(0, 249, 255, 0.35);
    background: rgba(80, 91, 218, 0.22);
}

.newsletter-img-range {
    accent-color: #505bda;
}

.newsletter-img-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 11px;
    color: #ffb4b4;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 120, 120, 0.25);
    transition: background 0.2s ease;
}

.newsletter-img-delete-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ffe0e0;
}

.newsletter-preview-frame {
    min-height: 520px;
    background: #fff;
}

/* Student panel dashboard */
.panel-dashboard-progress-chart {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 91, 218, 0.45) transparent;
}

.panel-dashboard-progress-chart::-webkit-scrollbar {
    height: 6px;
}

.panel-dashboard-progress-chart::-webkit-scrollbar-thumb {
    background: rgba(80, 91, 218, 0.45);
    border-radius: 999px;
}

/* Support ticket reports */
.support-report-kpi {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-report-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(80, 91, 218, 0.12);
}

.support-report-chart-wrap {
    position: relative;
    height: 280px;
}

.support-report-chart-wrap--wide {
    height: 320px;
}

.support-report-chart-wrap--donut {
    height: 300px;
    max-width: 360px;
    margin: 0 auto;
}
