/* ========================================================
   SISTEMA DE DISEÑO PREMIUM Y RESPONSIVO (Luminoso / Híbrido)
   ======================================================== */

:root {
    --bg-primary: #f8fafc;        /* Fondo claro slate */
    --bg-secondary: #ffffff;      /* Blanco puro */
    --text-primary: #0f172a;      /* Slate oscuro para legibilidad */
    --text-secondary: #64748b;    /* Gris slate */
    --primary-color: #4f46e5;     /* Índigo */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-color: #e2e8f0;      /* Borde gris muy suave */
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 15px -6px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-inter);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.font-outfit {
    font-family: var(--font-outfit);
}

/* ========================================================
   CABECERA Y NAVBAR
   ======================================================== */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

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

/* ========================================================
   BOTONES Y ELEMENTOS DE ACCIÓN
   ======================================================== */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 10px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline-custom {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
    border-radius: 50px;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 9px 24px;
    transition: all 0.2s ease;
}

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

.btn-cart {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    font-family: var(--font-outfit);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-cart:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-login {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--primary-color) !important;
    font-family: var(--font-outfit);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-login:hover {
    background: var(--primary-gradient);
    color: white !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
    position: relative;
    padding: 40px 0 40px;
    background: radial-gradient(circle at 85% 15%, rgba(79, 70, 229, 0.08), transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.05), transparent 45%);
}

.hero-title {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================================
   CAROUSEL HERO SLIDER (SaaS)
   ======================================================== */
.hero-slider-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color) !important;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-slider-card.border-primary {
    border-left: 5px solid #4f46e5 !important;
}
.hero-slider-card.border-success {
    border-left: 5px solid #10b981 !important;
}
.hero-slider-card.border-warning {
    border-left: 5px solid #f59e0b !important;
}

/* ========================================================
   CATÁLOGO Y TARJETAS DE PRODUCTOS
   ======================================================== */
.product-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 35px rgba(99, 102, 241, 0.15);
}

.product-card:hover .card-img-container img {
    transform: scale(1.08);
}

.product-card .card-img-container {
    height: 180px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Skeleton Loading Pulse */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

.skeleton::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: loading-pulse 1.6s infinite;
}

@keyframes loading-pulse {
    100% {
        transform: translateX(100%);
    }
}

.product-card .card-img-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.product-price {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.product-price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 3px;
}

/* ========================================================
   BUSCADOR Y CONTENEDORES DE FILTROS
   ======================================================== */
.search-container-premium {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input-premium {
    padding-left: 2.75rem !important;
    border-radius: 50px !important;
    height: 46px;
    font-size: 0.9rem;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.search-input-premium:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.search-icon-premium {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ========================================================
   CART DRAWER (CARRITO FLOTANTE DESLIZABLE)
   ======================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.cart-drawer-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.25s ease;
}

.cart-drawer-item:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    border-color: var(--primary-color);
}

/* ========================================================
   ADMIN Y FORMULARIOS
   ======================================================== */
.admin-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Footer */
.footer-custom {
    background-color: #0f172a;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-custom h5, .footer-custom h6 {
    color: white;
}

/* Glassmorphic Social Icons */
.social-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-icon-btn:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    border-color: rgba(167, 139, 250, 0.5);
}

.dev-logo {
    height: 88px;
    max-width: 300px;
    object-fit: contain;
    opacity: 0.88;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.dev-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Payment Method Cards */
.payment-method-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-method-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background-color: #f8fafc;
}

.payment-method-card.active {
    border-color: var(--primary-color);
    background-color: #f5f3ff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
}

.payment-radio {
    border: 2px solid #cbd5e1 !important; /* Borde gris visible */
    background-color: #ffffff !important;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.payment-radio:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.plan-extra-checkbox {
    border: 1.5px solid #000000 !important; /* Borde negro para visibilidad */
    background-color: #ffffff !important;
    cursor: pointer;
}

.plan-extra-checkbox:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.plan-card .form-check-input[type="radio"] {
    border: 1.5px solid #000000 !important; /* Borde negro para visibilidad en opciones de compra */
    background-color: #ffffff !important;
    cursor: pointer;
}

.plan-card .form-check-input[type="radio"]:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* ========================================================
   PREMIUM UX/UI ADDITIONS
   ======================================================== */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animated gradient text for headings */
.brand-gradient, .hero-title, .section-title-premium {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #10b981 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Base fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .hero-title, 
.hero-section .hero-subtitle, 
.hero-section .btn {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-section .hero-title { animation-delay: 0.1s; }
.hero-section .hero-subtitle { animation-delay: 0.25s; }
.hero-section .btn { animation-delay: 0.4s; }

/* Enhanced Card hover glows */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: #818cf8 !important;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

/* Image zoom in card on hover */
.product-card .card-img-container img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-img-container img {
    transform: scale(1.06);
}

/* Glassmorphic badges */
.badge.bg-info.text-dark {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.badge.bg-primary {
    background: rgba(79, 70, 229, 0.1) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge.bg-warning.text-dark {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Glow effects on call-to-actions */
.btn-primary-gradient {
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-primary-gradient:hover::after {
    left: 120%;
    opacity: 1;
    transition: all 0.6s ease;
}

/* Floating animation for active elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.carousel-inner {
    animation: float 6s ease-in-out infinite;
}

/* Media thumb styles */
.media-thumb {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
    border: 2px solid transparent !important;
}

.media-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.media-thumb.active-thumb {
    opacity: 1 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
    transform: scale(1.05);
}

/* Plan card styles */
.plan-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
    transform: translateY(-2px);
    background-color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.05);
    border-color: #cbd5e1 !important;
}

.plan-card.border-primary {
    background-color: #f5f3ff !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
    border-color: var(--primary-color) !important;
}


