/* estilos personalizados en caso de que no utilicemos bootstrap algun color o un diseño diferente por nuestra cuenta */

/* Estilos para el sidebar de productos */
.products-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.products-sidebar-brand {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.products-nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.products-nav-link:hover, 
.products-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Estilos para las tarjetas de productos */
.products-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.products-aspect-square {
    aspect-ratio: 1;
}

.products-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estilos para el contenedor principal de productos */
.products-main-content {
    height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Estilos para el logo del sidebar */
.products-logo-container {
    width: 48px;
    height: 48px;
}

/* ===== ESTILOS DE LA PÁGINA PRINCIPAL (INDEX) ===== */

/* Tipografía y fuentes */
body { 
    font-family: 'Inter', sans-serif; 
}

/* Gradientes y efectos de texto */
.gradient-text { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero-gradient { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}

/* Efectos de hover para tarjetas */
.card-hover { 
    transition: all 0.3s ease; 
}

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

/* Iconos de características */
.feature-icon { 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 1.5rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 2rem; 
}

/* Tarjetas de precios */
.pricing-card { 
    border: 2px solid transparent; 
    transition: all 0.3s ease; 
    width: 100%;
    max-width: 380px;
    min-height: 580px;
    display: flex;
    margin: 0 auto;
    padding: 0 !important;
    justify-self: center;
}

.pricing-card:hover { 
    border-color: #667eea; 
    transform: translateY(-4px); 
}

.pricing-card.featured { 
    border-color: #667eea; 
    position: relative; 
}

.pricing-card.featured::before { 
    content: 'Más Popular'; 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 0.5rem 1.5rem; 
    border-radius: 20px; 
    font-size: 0.875rem; 
    font-weight: 600; 
}

/* Contenedor interno de tarjetas de precios */
.pricing-card > div {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Eliminar márgenes y padding innecesarios */
.pricing-card .text-center {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    text-align: center;
}

.pricing-card .text-left {
    text-align: center !important;
}

/* Listas en tarjetas de precios */
.pricing-card ul {
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
}

.pricing-card li {
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.pricing-card .space-y-2 > * + * {
    margin-top: 0.5rem !important;
}

/* Elementos específicos de tarjetas */
.pricing-card h3,
.pricing-card p,
.pricing-card div {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Estilos específicos para tarjeta featured */
.pricing-card.featured .text-center {
    text-align: center !important;
}

.pricing-card.featured ul {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pricing-card.featured li {
    justify-content: center !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pricing-card.featured li span {
    text-align: center !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pricing-card.featured > div {
    padding: 2rem !important;
    margin: 0 !important;
}

/* Botones principales */
.btn-gradient { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border: none; 
    color: white; 
    padding: 1rem 2rem; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

.btn-gradient:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); 
    color: white; 
    text-decoration: none; 
}

.btn-outline { 
    border: 2px solid #667eea; 
    color: #667eea; 
    padding: 1rem 2rem; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s ease; 
    background: transparent; 
}

.btn-outline:hover { 
    background: #667eea; 
    color: white; 
    text-decoration: none; 
}

/* Botones de precios - Gratuito */
.pricing-btn-free {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #4a5568;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.pricing-btn-free:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

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

.pricing-btn-free:hover::before {
    left: 100%;
}

/* Botones de precios - Premium */
.pricing-btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.pricing-btn-premium::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.6s;
}

.pricing-btn-premium:hover::before {
    left: 100%;
}

.pricing-btn-premium:focus {
    animation: pulse-glow 1.5s infinite;
}

/* Botones compactos */
.btn-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-free:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Efectos de brillo para botones */
.btn-free::before,
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-free:hover::before,
.btn-premium:hover::before {
    left: 100%;
}

/* Otros elementos */
.stats-counter { 
    font-size: 3rem; 
    font-weight: 800; 
    color: #667eea; 
}

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

.navbar-brand { 
    font-weight: 800; 
    font-size: 1.5rem; 
}

.section-padding { 
    padding: 5rem 0; 
}

/* Grids personalizados */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-items: center;
    align-items: start;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Navegación responsive */
.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

/* Footer */
footer {
    background-color: #111827 !important;
    color: white !important;
    position: relative;
    z-index: 10;
    min-height: 200px;
}

footer * {
    color: white !important;
}

footer a {
    color: #9ca3af !important;
}

footer a:hover {
    color: white !important;
}

/* ===== ANIMACIONES ===== */

/* Animación de pulso */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

/* Animación de rebote */
@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    80% { transform: translateY(-2px); }
}

/* Animación de rotación */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones de iconos */
.btn-free:hover i {
    animation: bounce 0.6s ease-in-out;
}

.btn-premium:hover i {
    animation: rotate 0.6s ease-in-out;
}

/* ===== MEDIA QUERIES ===== */

/* Tablet */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        justify-content: center;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .pricing-card {
        max-width: 360px;
    }
}

/* Tablet específico */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-padding { padding: 4rem 0; }
    .hero-gradient h1 { font-size: 3.5rem; }
    .hero-gradient p { font-size: 1.25rem; }
    .feature-icon { width: 70px; height: 70px; font-size: 1.75rem; }
    .testimonial-card { padding: 1.5rem; }
}

/* Desktop */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .pricing-card {
        max-width: 380px;
    }
    
    .desktop-menu { 
        display: flex !important; 
        align-items: center;
        gap: 2rem;
    }
    .desktop-auth { 
        display: flex !important; 
        align-items: center;
        gap: 1rem;
    }
    .mobile-menu-btn { 
        display: none !important; 
    }
}

/* Mobile y tablet - menú responsive */
@media (max-width: 1023px) { 
    .section-padding { padding: 3rem 0; }
    .desktop-menu { display: none !important; }
    .desktop-auth { display: none !important; }
    .mobile-menu-btn {
        display: block !important;
        visibility: visible !important;
    }
    
    .nav-right-container {
        margin-left: auto;
        justify-content: flex-end;
    }
    
    .mobile-menu-btn button {
        background-color: white;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn button:hover {
        background-color: #f3f4f6;
        border-color: #9ca3af;
    }
    
    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
        stroke: #374151;
        stroke-width: 2;
    }
}

/* Mobile específico */
@media (max-width: 767px) {
    .hero-gradient h1 { font-size: 2.5rem; }
    .hero-gradient p { font-size: 1.125rem; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .testimonial-card { padding: 1.25rem; }
    .pricing-card { padding: 1.5rem; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
        min-height: 550px;
    }
    
    .feature-icon { 
        width: 60px; 
        height: 60px; 
        font-size: 1.5rem; 
    }
}

/* ===== MEJORAS RESPONSIVE PARA PRODUCTOS ===== */

/* Mejoras generales para tarjetas de productos */
.products-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.products-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Contenedor de imagen mejorado */
.products-aspect-square {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.products-aspect-square img {
    transition: transform 0.3s ease;
}

.products-card:hover .products-aspect-square img {
    transform: scale(1.05);
}

/* Mejoras en el contenido de la tarjeta */
.products-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
}

.products-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-card .card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Precio mejorado */
.products-card .h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0;
}

/* Botones mejorados */
.products-card .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.products-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.products-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Grid responsive mejorado */
.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 2rem;
}

/* Responsive breakpoints específicos para productos */
@media (max-width: 576px) {
    /* Mobile pequeño */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .products-card .card-body {
        padding: 1rem;
        min-height: 180px;
    }
    
    .products-card .card-title {
        font-size: 1rem;
    }
    
    .products-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .products-card .btn-sm {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .products-aspect-square {
        aspect-ratio: 4/3;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    /* Mobile grande */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-card .card-body {
        padding: 1.25rem;
    }
    
    .products-aspect-square {
        aspect-ratio: 1;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    /* Tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-card .card-body {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    /* Desktop pequeño */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    /* Desktop grande */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Mejoras para el estado vacío */
.products-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 2rem 0;
}

.products-empty-state .products-logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin: 0 auto 2rem;
}

/* Mejoras para badges */
.products-card .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

.products-card .bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.products-card .bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-card {
    animation: fadeInUp 0.5s ease-out;
}

.products-card:nth-child(2) { animation-delay: 0.1s; }
.products-card:nth-child(3) { animation-delay: 0.2s; }
.products-card:nth-child(4) { animation-delay: 0.3s; }

/* Mejoras para el contenedor principal */
.products-main-content {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .products-main-content {
        padding: 1rem;
    }
}

/* Mejoras para alertas */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}