/* =====================================================
   DonRoku - Estilos Principales
   ===================================================== */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a1a;
    --dark-card: #12122a;
    --dark-surface: #1a1a3e;
    --text-light: #dfe6e9;
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #2d1b69 100%);
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f0f23;
    color: #dfe6e9;
}

.text-muted {
    color: #b2bec3 !important;
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.navbar-brand .text-primary {
    color: var(--primary) !important;
}

.nav-link {
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu-dark {
    background-color: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b2bec3;
    max-width: 600px;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ---- Cards ---- */
.card-product {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
}

.card-product .card-img-top {
    height: 200px;
    object-fit: contain;
    background: #1a1a2e;
    padding: 8px;
}

.card-product .card-body {
    padding: 1.5rem;
    color: #dfe6e9;
}

.card-product .text-muted {
    color: #b2bec3 !important;
}

.card-product .price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.card-product .price-tag small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #b2bec3;
}

.badge-platform {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-android {
    background: rgba(61, 220, 132, 0.15);
    color: #3ddc84;
}

.badge-roku {
    background: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
}

.badge-both {
    background: rgba(253, 121, 168, 0.15);
    color: #fd79a8;
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background: var(--gradient-primary);
}

/* Glow del plan popular — controlado por JS */
.btn-plan-popular {
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.55);
}
.btn-plan-popular.glow-off {
    box-shadow: none;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-cart {
    background: rgba(0, 206, 201, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 206, 201, 0.3);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: var(--secondary);
    color: #000;
}

/* ---- Sections ---- */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #b2bec3;
    font-size: 1.1rem;
}

.section-dark {
    background: var(--dark);
}

.section-dark .text-muted {
    color: #b2bec3 !important;
}

.section-gradient {
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
}

/* ---- Hosting Plans ---- */
.plan-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.plan-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.plan-card .text-muted {
    color: #b2bec3 !important;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #b2bec3;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #b2bec3;
}

.plan-features li i {
    color: var(--secondary);
    width: 20px;
}

/* ---- Services ---- */
.service-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.service-card p {
    color: #b2bec3 !important;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

/* ---- Carousel ---- */
.carousel-item img {
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
}

.carousel-caption {
    background: rgba(10, 10, 26, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ---- Reviews ---- */
.review-stars {
    color: #f1c40f;
}

.review-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.12);
}

.review-card .text-muted {
    color: #b2bec3 !important;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ---- Dashboard ---- */
.sidebar {
    background: var(--dark-card);
    min-height: 100vh;
    border-right: 1px solid rgba(108, 92, 231, 0.15);
}

.sidebar .nav-link {
    color: #b2bec3;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ---- Tables ---- */
.table-dark-custom {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.table-dark-custom .table {
    --bs-table-bg: transparent;
    --bs-table-color: #2d3436;
    --bs-table-hover-bg: #e8f4fd;
    --bs-table-hover-color: #2d3436;
    --bs-table-striped-bg: #f1f3f5;
    --bs-table-border-color: #e9ecef;
    color: #2d3436;
    margin-bottom: 0;
}

.table-dark-custom th {
    background: #0a1628 !important;
    border-color: #152238 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
}

.table-dark-custom td {
    border-color: #e9ecef !important;
    color: #2d3436 !important;
    background: #ffffff !important;
    vertical-align: middle;
    padding: 12px 16px;
    transition: background 0.2s;
}

.table-dark-custom tbody tr:nth-child(even) td {
    background: #f1f3f5 !important;
}

.table-dark-custom tbody tr:hover td {
    background: #e8f4fd !important;
}

.table-dark-custom .text-muted {
    color: #636e72 !important;
}

.table-dark-custom .text-success {
    color: #00b894 !important;
}

.table-dark-custom .badge {
    font-weight: 600;
}

.table-dark-custom .btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.table-dark-custom .btn-action:hover {
    transform: scale(1.1);
}

/* ---- Forms ---- */
.form-control, .form-select {
    background: var(--dark-surface);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: #dfe6e9;
    border-radius: 8px;
    padding: 10px 16px;
}

.form-control:focus, .form-select:focus {
    background: var(--dark-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    color: #dfe6e9;
}

.form-control::placeholder {
    color: #636e72;
}

/* ---- Cart ---- */
.cart-item {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: var(--primary);
}

.cart-summary {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial: oculto antes de entrar al viewport */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .plan-price {
        font-size: 2rem;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ---- Misc ---- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: rgba(18, 18, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 16px;
}

.bg-glass .text-muted {
    color: #b2bec3 !important;
}

.divider-glow {
    height: 2px;
    background: var(--gradient-primary);
    border: none;
    opacity: 0.3;
}
