/* Variables CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Estilos para text-muted */
.text-muted {
    --bs-text-opacity: 1;
    color: white !important;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desactivar animaciones en el título principal */
.hero-section .display-4.text-gradient {
    animation: none !important;
    transition: none !important;
}

/* Asegurar que no haya animación de carga en el título principal */
.hero-section .display-4.text-gradient.fade-in,
.hero-section .display-4.text-gradient {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Eliminar cualquier cursor parpadeante o efecto residual del typewriter */
.hero-section .display-4.text-gradient {
    border-right: none !important;
    caret-color: transparent !important;
}

/* Floating Cards */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 5%;
    left: 5%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tool-features {
    list-style: none;
    padding: 0;
}

.tool-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.tool-features i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Plan Cards */
.plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.currency {
    font-size: 1.5rem;
    color: #666;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: #666;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #666;
}

.plan-features i {
    color: #28a745;
    margin-right: 0.8rem;
    font-size: 1rem;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .floating-card {
        position: relative;
        margin: 1rem 0;
        animation: none;
    }
    
    .hero-image {
        height: auto;
        margin-top: 2rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

/* Animaciones adicionales */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Estilos para el menú desplegable de herramientas */
.dropdown-menu-dark {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu-dark .dropdown-header {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.dropdown-menu-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 500;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateX(5px);
}

.dropdown-menu-dark .dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #4facfe;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Animación para el dropdown */
.dropdown-menu {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para el dropdown */
@media (max-width: 768px) {
    .dropdown-menu-dark {
        margin-top: 0;
        border-radius: 8px;
    }
    
    .dropdown-menu-dark .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Estilos para el sidebar dropdown del dashboard */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-dropdown-toggle:hover,
.sidebar-dropdown-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #667eea;
}

.sidebar-dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #667eea;
    margin-left: 1rem;
}

.dropdown-section {
    padding: 0.5rem 0;
}

.dropdown-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
}

.sidebar-dropdown-menu a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: #4facfe;
    transform: translateX(5px);
}

.sidebar-dropdown-menu a i {
    width: 16px;
    margin-right: 0.5rem;
    color: #4facfe;
    font-size: 0.8rem;
}

.sidebar-dropdown-menu a.active {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    border-left-color: #4facfe;
}

.sidebar-dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #667eea;
} 

/* Jerarquía visual sin desplegable: padre/hijo */
.sidebar-parent {
    font-weight: 600;
}

.sidebar-subitem {
    display: block;
    padding-left: 2.25rem; /* indent */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-subitem i {
    width: 16px;
    margin-right: 0.5rem;
    color: #4facfe;
    font-size: 0.85rem;
}

.sidebar-subitem:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    border-left: 2px solid #4facfe;
}

/* Acciones Rápidas en una sola línea */
.quick-actions-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
}

.quick-actions-row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto !important;
}

.quick-actions-row .btn {
    width: 180px;
}

/* Estilos para page-header con layout de dos columnas */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    flex: 1;
}

.header-left h1 {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-left p {
    color: white !important;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.user-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-label i {
    color: #ffd700;
    font-size: 1rem;
}

.balance-amount {
    color: #4facfe;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-amount i {
    color: #ffd700;
    font-size: 1.2rem;
    animation: coin-bounce 2s infinite;
}

@keyframes coin-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(5deg); }
    75% { transform: translateY(-3px) rotate(-5deg); }
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-balance {
        align-self: stretch;
        align-items: center;
    }
    
    .header-left h1 {
        font-size: 2rem;
    }
}

/* ========================================
   ESTILOS ORIGINALES PARA PRODUCT-HEADER (COMENTADOS PARA EVITAR CONFLICTOS)
   ======================================== */
/*
.product-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-header-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 3rem;
    min-height: 280px;
    position: relative;
}
*/

/*
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    padding-right: 2rem;
    position: relative;
}

.product-info::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80%;
    background: linear-gradient(180deg, transparent, #e9ecef, transparent);
}
*/

/*
.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}
*/

/*
.product-category {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.product-category:hover::before {
    left: 100%;
}

.product-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}
*/

/*
.product-image-container {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    background: white;
    align-self: center;
    position: relative;
    transition: all 0.4s ease;
    margin-left: 2rem;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-image-container:hover::before {
    opacity: 1;
}

.product-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}
*/

/*
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.05);
}

.product-image:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 4rem;
    border: 3px dashed #dee2e6;
    transition: all 0.3s ease;
    position: relative;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    transform: scale(1.02);
}
*/

.product-image-placeholder span {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #6c757d;
}

/*
/* Responsive para el header del producto */
@media (max-width: 768px) {
    .product-header {
        border-radius: 0px;
        margin-bottom: 0rem;
    }
    
    .product-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
        min-height: auto;
    }
    
    .product-info {
        min-height: auto;
        justify-content: flex-start;
        padding-right: 0;
    }
    
    .product-info::after {
        display: none;
    }
    
    .product-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .product-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .product-category {
        align-self: center;
    }
    
    .product-image-container {
        width: 200px;
        height: 200px;
        align-self: center;
        margin-left: 0;
        margin-top: 1rem;
    }
}
*/

/*
/* Estilos para el precio del producto */
.product-price {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.price-free {
    font-size: 2.5rem;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.price-free i {
    color: #ff6b6b;
    font-size: 2rem;
    animation: gift-bounce 2s infinite;
}

@keyframes gift-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.price-amount i {
    color: #ffd700;
    font-size: 2.5rem;
    animation: coin-spin 3s infinite linear;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.price-coins {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-coins i {
    color: #667eea;
    font-size: 1rem;
}
*/

/*
/* Estilos para los botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn i {
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-disabled {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #adb5bd;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}
*/

/*
/* Estilos para la vista previa */
.preview-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preview-item h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-item h4 i {
    color: #667eea;
    font-size: 1.1rem;
}

.preview-item p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}
*/

/* ========================================
   ESTILOS ESPECÍFICOS PARA PURCHASE_PRODUCT.PHP
   ======================================== */

/* Estilos para el header del producto de compra */
.purchase-product-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    border-radius: 25px;
    margin-bottom: 3rem;
}

.purchase-product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.purchase-product-header-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    min-height: 280px;
    position: relative;
}

.purchase-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    padding-right: 2rem;
    position: relative;
}

.purchase-product-info::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80%;
    background: linear-gradient(180deg, transparent, #e9ecef, transparent);
}

.purchase-product-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.purchase-product-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.purchase-product-category {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.purchase-product-category:hover::before {
    left: 100%;
}

.purchase-product-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.purchase-product-image-container {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    background: white;
    align-self: center;
    position: relative;
    transition: all 0.4s ease;
    margin-left: 2rem;
}

.purchase-product-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.purchase-product-image-container:hover::before {
    opacity: 1;
}

.purchase-product-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.purchase-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.05);
}

.purchase-product-image:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.purchase-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 4rem;
    border: 3px dashed #dee2e6;
    transition: all 0.3s ease;
    position: relative;
}

.purchase-product-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.purchase-product-image-placeholder:hover::before {
    opacity: 1;
}

.purchase-product-image-placeholder:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    transform: scale(1.02);
}

/* Estilos para el precio del producto de compra */
.purchase-product-price {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.purchase-product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.purchase-price-free {
    font-size: 2.5rem;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.purchase-price-free i {
    color: #ff6b6b;
    font-size: 2rem;
    animation: gift-bounce 2s infinite;
}

.purchase-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.purchase-price-amount i {
    color: #ffd700;
    font-size: 2.5rem;
    animation: coin-spin 3s infinite linear;
}

.purchase-price-coins {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.purchase-price-coins i {
    color: #667eea;
    font-size: 1rem;
}

/* Estilos para el formulario de compra */
.purchase-product-form {
    text-align: center;
    margin: 2rem 0;
}

/* Estilos para los botones de compra */
.purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.purchase-btn i {
    font-size: 1.1rem;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.purchase-btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.purchase-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.purchase-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.purchase-btn-disabled {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #adb5bd;
    cursor: not-allowed;
}

.purchase-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive para purchase_product.php */
@media (max-width: 768px) {
    .purchase-product-header {
        border-radius: 20px;
        margin-bottom: 2rem;
    }
    
    .purchase-product-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
        min-height: auto;
    }
    
    .purchase-product-info {
        min-height: auto;
        justify-content: flex-start;
        padding-right: 0;
    }
    
    .purchase-product-info::after {
        display: none;
    }
    
    .purchase-product-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .purchase-product-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .purchase-product-category {
        align-self: center;
    }
    
    .purchase-product-image-container {
        width: 200px;
        height: 200px;
        align-self: center;
        margin-left: 0;
        
    }
}

/* Estilos para las nuevas secciones agregadas */

/* Cómo Funciona Section */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Beneficios Section */
.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Plan Prepago Section */
.prepaid-features h3 {
    color: var(--dark-color);
    font-weight: 600;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.feature-list li i {
    font-size: 1.2rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.credit-packages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.credit-package {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.credit-package:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.credit-package.popular {
    background: var(--gradient-primary);
    color: white;
    grid-column: span 2;
}

.credit-package.popular .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.credit-package .credits {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.credit-package .price {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.credit-package .per-credit {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Solución Section */
.solution-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.solution-card h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-list, .solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li, .solution-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    line-height: 1.6;
}

.problem-list li:last-child, .solution-list li:last-child {
    border-bottom: none;
}

.problem-list li strong, .solution-list li strong {
    color: var(--dark-color);
}

.why-choose-us h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.reason-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.reason-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.reason-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para las nuevas secciones */
@media (max-width: 768px) {
    .step-card, .benefit-card, .solution-card, .reason-card {
        margin-bottom: 1.5rem;
    }
    
    .benefit-card {
        flex-direction: column;
        text-align: center;
    }
    
    .credit-packages {
        margin-top: 2rem;
    }
    
    .prepaid-features {
        margin-bottom: 2rem;
    }
}

/* Responsive para el plan prepago */
@media (max-width: 768px) {
    .credit-packages {
        grid-template-columns: 1fr;
    }
    
    .credit-package.popular {
        grid-column: span 1;
    }
}

/* Estilos para los nuevos elementos de planes */

.plan-header .original-price {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.plan-header .strikethrough {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.plan-header .savings {
    margin-bottom: 1rem;
}

.plan-header .savings .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.plan-features li i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.plan-features li i.text-warning {
    color: #ffc107 !important;
}

.plan-features li i.text-info {
    color: #17a2b8 !important;
}

.plan-features li i.text-primary {
    color: #007bff !important;
}

.plan-features li i.text-secondary {
    color: #6c757d !important;
}

.plan-features li i.text-success {
    color: #28a745 !important;
}

.plan-features li i.text-danger {
    color: #dc3545 !important;
}

.plan-features li i.text-purple {
    color: #6f42c1 !important;
}

/* Estilos para la nueva sección "Cómo Funciona" */
.how-it-works-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon-large {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-icon-large i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.payment-option {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-left-color: var(--primary-color);
    background: rgba(248, 249, 250, 1);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-header i {
    font-size: 1.5rem;
}

.option-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.option-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.option-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.option-benefits li i {
    font-size: 0.9rem;
    width: 16px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cta-section h4 {
    color: var(--dark-color);
    font-weight: 600;
}

.cta-section p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive para la sección Cómo Funciona */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-icon-large {
        font-size: 2.5rem;
    }
    
    .payment-option {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}