/* WooCommerce-inspired Custom Dark Stylesheet & Glowing Effect - Admotion Store */

/* ==========================================================================
   Variables y Paleta de Colores Dark Mode
   ========================================================================== */
:root {
    --primary-color: #9d72ff;
    --primary-hover: #b794ff;
    --primary-dark: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --secondary-color: #38bdf8;
    --accent-points: #f59e0b;
    --accent-gold: #fbbf24;
    --dark-color: #0b0d14;
    --bg-dark: #090a0f;
    --bg-card: #12141e;
    --bg-card-inner: #0f1118;
    --bg-card-hover: #161a27;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(139, 92, 246, 0.35);
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --navbar-bg: #0d0f17;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==========================================================================
   Navbar & Encabezado
   ========================================================================== */
.navbar-top {
    background-color: #06070a;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-navbar {
    background: rgba(13, 16, 26, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #a855f7 !important;
    letter-spacing: -0.5px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
}

.navbar-brand span {
    color: #ffffff;
}

.navbar-logo {
    height: 42px;
    width: auto;
    max-height: 42px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 34px;
        max-height: 34px;
    }
}

.nav-link {
    color: #cbd5e1 !important;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #c4b5fd !important;
}

/* Badge de Saldo de Puntos */
.points-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 7px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
    transition: all 0.25s ease;
}

.points-badge:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
    color: #fef08a;
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-banner {
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #18102a 0%, #101320 50%, #0a0d16 100%);
    color: white;
    padding: 60px 0;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Efecto Resplandeciente (Glowing Effect) - Desde efecto.php
   ========================================================================== */
.glow-card {
    position: relative;
}

/* Borde resplandeciente Arcoíris ultradelgado y muy brillante en hover */
.glow-overlay {
    position: absolute;
    inset: 0.25px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        350px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        #ffffff 0%,
        #ff007f 12%,
        #7f00ff 28%,
        #00d4ff 48%,
        #00ff87 68%,
        #ffea00 85%,
        transparent 100%
    );
    filter: brightness(1.6) saturate(1.5) drop-shadow(0 0 8px rgba(0, 212, 255, 0.85));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Fondo resplandeciente Arcoíris brillante dentro de la tarjeta */
.glow-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        500px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 0, 127, 0.25) 15%,
        rgba(127, 0, 255, 0.22) 30%,
        rgba(0, 212, 255, 0.18) 50%,
        rgba(0, 255, 135, 0.14) 70%,
        transparent 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glow-card:hover .glow-overlay,
.glow-card:hover .glow-bg {
    opacity: 1;
}

/* ==========================================================================
   Contenedor y Tarjetas de Productos (WooCommerce Grid)
   ========================================================================== */
.product-card-wrap {
    position: relative;
    border-radius: 18px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.product-card-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.18);
}

.product-card-wrap .product-card {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.25s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-highlight);
}

.product-image-wrap {
    position: relative;
    background: #141724 !important;
    padding-top: 75%;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card-wrap:hover .product-image-wrap img,
.product-card:hover .product-image-wrap img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a78bfa;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.product-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #c4b5fd;
}

.product-price-points {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-top: auto;
    padding-top: 12px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.product-stock {
    font-size: 0.8rem;
    color: #34d399;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-stock.out-of-stock {
    color: #f87171;
}

/* ==========================================================================
   Tarjetas de Pasos / Características
   ========================================================================== */
.feature-card-wrap {
    position: relative;
    border-radius: 20px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.7);
}

.feature-card {
    position: relative;
    z-index: 2;
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 17px !important;
    height: 100%;
}

/* ==========================================================================
   Botones WooCommerce
   ========================================================================== */
.btn-wc-primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    transition: all 0.25s ease;
}

.btn-wc-primary:hover {
    background: linear-gradient(135deg, #9d6ff9 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.55);
    transform: translateY(-1px);
}

.btn-wc-outline {
    background-color: transparent;
    color: #c4b5fd;
    border: 1.5px solid #8b5cf6;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 18px;
    transition: all 0.25s ease;
}

.btn-wc-outline:hover {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

/* ==========================================================================
   Tarjetas, Formularios, Tablas y Elementos Generales en Dark Mode
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

.dropdown-menu {
    background-color: #141724;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
    color: #e2e8f0;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #23283c;
    color: #ffffff;
}

.form-control, .form-select {
    background-color: #141724;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1e2f;
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

.form-control::placeholder {
    color: #64748b;
}

/* Tablas */
.cart-table th {
    background-color: #141724;
    color: #cbd5e1;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cart-table td {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.cart-summary-box {
    background: #111420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #cbd5e1;
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    color: var(--accent-gold);
}

/* Ajustes Bootstrap Dark */
[data-bs-theme="dark"] .bg-light,
.dark .bg-light {
    background-color: #141724 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .text-dark,
.dark .text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .border-light,
.dark .border-light {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .table-light,
.dark .table-light {
    background-color: #181c2b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .breadcrumb-item a,
.dark .breadcrumb-item a {
    color: #a78bfa;
}

[data-bs-theme="dark"] .breadcrumb-item.active,
.dark .breadcrumb-item.active {
    color: #94a3b8;
}

/* Botones de Categorías y Filtros en Dark Theme */
.btn-outline-secondary {
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
    background-color: rgba(139, 92, 246, 0.18) !important;
}

.btn-primary {
    background: var(--primary-gradient) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}

/* ==========================================================================
   Hero Slider Revolution Full-Width
   ========================================================================== */
body {
    overflow-x: hidden;
}

.hero-revolution-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 520px;
    height: 60vh;
    max-height: 680px;
    overflow: hidden;
    margin-top: -1.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #090a0f;
}

.hero-revolution-section #heroRevolutionCarousel,
.hero-revolution-section .carousel-inner,
.hero-revolution-section .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-revolution-section .carousel-item {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.68) contrast(1.1);
}

/* Dark Overlay para contraste y legibilidad del texto estático */
.hero-revolution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(9, 10, 15, 0.94) 0%,
        rgba(9, 10, 15, 0.82) 40%,
        rgba(9, 10, 15, 0.40) 70%,
        rgba(9, 10, 15, 0.70) 100%
    ),
    linear-gradient(
        0deg,
        rgba(9, 10, 15, 0.95) 0%,
        rgba(9, 10, 15, 0.0) 50%,
        rgba(9, 10, 15, 0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Contenido Estático en Primer Plano (Texto y Botones) */
.hero-revolution-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-revolution-content .container {
    pointer-events: auto;
}

.hero-revolution-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.hero-revolution-desc {
    font-size: 1.15rem;
    max-width: 620px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-btn-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.hero-btn-blur:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Indicadores */
#heroRevolutionCarousel .carousel-indicators {
    z-index: 4;
    margin-bottom: 25px;
}

#heroRevolutionCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.4);
    transition: all 0.35s ease;
}

#heroRevolutionCarousel .carousel-indicators button.active {
    background-color: #a855f7;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.9);
}

/* Flechas Prev / Next */
#heroRevolutionCarousel .carousel-control-prev,
#heroRevolutionCarousel .carousel-control-next {
    width: 6%;
    z-index: 4;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

#heroRevolutionCarousel:hover .carousel-control-prev,
#heroRevolutionCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroRevolutionCarousel .carousel-control-prev-icon,
#heroRevolutionCarousel .carousel-control-next-icon {
    background-color: rgba(13, 16, 26, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-size: 50% 50%;
}

@media (max-width: 768px) {
    .hero-revolution-section {
        min-height: 440px;
        height: auto;
    }
    .hero-revolution-title {
        font-size: 2rem;
    }
    .hero-revolution-overlay {
        background: linear-gradient(
            0deg,
            rgba(9, 10, 15, 0.95) 0%,
            rgba(9, 10, 15, 0.88) 60%,
            rgba(9, 10, 15, 0.65) 100%
        );
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #06070a;
    color: #94a3b8;
    padding: 45px 0 25px 0;
    margin-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #c4b5fd;
}

/* ==========================================================================
   Home Main Wrapper con Fondo Completo Glyph Matrix (Magic UI inspired)
   ========================================================================== */
.home-main-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 12%, rgba(168, 85, 247, 0.08) 0%, rgba(12, 14, 22, 0.5) 45%, rgba(9, 10, 15, 0.98) 90%);
    overflow: hidden;
}

.home-main-wrapper > .glyph-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}

.home-main-wrapper > .container {
    position: relative;
    z-index: 2;
}

.glyph-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}
