﻿/* Crear archivo: wwwroot/css/ProductosPublicos/productos-landing-style.css */

/* =================================
   PRODUCTOS PÚBLICOS - ESTILO LANDING
   ================================= */

/* Variables heredadas del Landing */
:root {
    --llaveroqr-azul-principal: #1B4B8C;
    --llaveroqr-azul-hover: #163A6F;
    --llaveroqr-verde-tech: #7CB342;
    --llaveroqr-verde-hover: #689F38;
    --llaveroqr-gris-texto: #2C2C2C;
    --llaveroqr-gris-claro: #C0C0C0;
    --llaveroqr-fondo-claro: #F8F9FA;
    --llaveroqr-blanco: #FFFFFF;
    --gradient-principal: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    --gradient-suave: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
    --sombra-suave: 0 4px 6px -1px rgba(27, 75, 140, 0.1), 0 2px 4px -1px rgba(27, 75, 140, 0.06);
    --sombra-media: 0 10px 15px -3px rgba(27, 75, 140, 0.1), 0 4px 6px -2px rgba(27, 75, 140, 0.05);
    --sombra-fuerte: 0 20px 25px -5px rgba(27, 75, 140, 0.1), 0 10px 10px -5px rgba(27, 75, 140, 0.04);
    --radio-borde: 12px;
    --radio-borde-lg: 20px;
    --transicion-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   LAYOUT BASE - SIGUIENDO LANDING
   ================================= */

.productos-landing {
    background: var(--gradient-suave);
    min-height: 100vh;
    padding-top: 112px; /* Para navbar fijo */
}

/* Breadcrumbs mejorados */
.breadcrumb-moderno {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radio-borde);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-suave);
}

.btn-custom {
    color: white;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    border: none;
    font-size: 1.125rem;
}

/* =================================
   HERO SECTION - ESTILO LANDING
   ================================= */

.hero-productos {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-media);
    position: relative;
    overflow: hidden;
}

    .hero-productos::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-principal);
    }

.hero-titulo {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--llaveroqr-azul-principal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitulo {
    font-size: 1.125rem;
    color: var(--llaveroqr-gris-texto);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-badge {
    background: rgba(27, 75, 140, 0.1);
    color: var(--llaveroqr-azul-principal);
    padding: 0.5rem 1rem;
    border-radius: var(--radio-borde);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicion-suave);
}

    .stat-badge:hover {
        background: rgba(27, 75, 140, 0.15);
        transform: translateY(-2px);
    }

/* =================================
   FILTROS - ESTILO LANDING
   ================================= */

.filtros-container {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(27, 75, 140, 0.1);
}

.search-group {
    position: relative;
}

.search-input {
    background: var(--llaveroqr-fondo-claro);
    border: 2px solid var(--llaveroqr-gris-claro);
    border-radius: var(--radio-borde);
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: var(--transicion-suave);
    width: 100%;
}

    .search-input:focus {
        outline: none;
        border-color: var(--llaveroqr-azul-principal);
        box-shadow: 0 0 0 3px rgba(27, 75, 140, 0.1);
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--llaveroqr-gris-texto);
    pointer-events: none;
}

.filter-select {
    background: var(--llaveroqr-fondo-claro);
    border: 2px solid var(--llaveroqr-gris-claro);
    border-radius: var(--radio-borde);
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transicion-suave);
    cursor: pointer;
}

    .filter-select:focus {
        outline: none;
        border-color: var(--llaveroqr-azul-principal);
        box-shadow: 0 0 0 3px rgba(27, 75, 140, 0.1);
    }

/* =================================
   PRODUCTOS GRID - ESTILO LANDING
   ================================= */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.producto-card {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    overflow: hidden;
    transition: var(--transicion-suave);
    border: 1px solid rgba(27, 75, 140, 0.1);
    box-shadow: var(--sombra-suave);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .producto-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--sombra-fuerte);
        border-color: rgba(27, 75, 140, 0.2);
    }

.imagen-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--llaveroqr-fondo-claro);
}

.producto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion-suave);
}

.producto-card:hover .producto-imagen {
    transform: scale(1.05);
}

.badges-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-categoria {
    background: var(--llaveroqr-azul-principal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radio-borde);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-stock {
    background: var(--llaveroqr-verde-tech);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radio-borde);
    font-size: 0.75rem;
    font-weight: 600;
}

    .badge-stock.agotado {
        background: #EF4444;
    }

    .badge-stock.ultimas {
        background: #F59E0B;
    }

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--llaveroqr-azul-principal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.producto-descripcion {
    color: var(--llaveroqr-gris-texto);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.caracteristicas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(124, 179, 66, 0.1);
    color: var(--llaveroqr-verde-tech);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(124, 179, 66, 0.2);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(27, 75, 140, 0.1);
}

.precio-info {
    display: flex;
    flex-direction: column;
}

.precio-principal {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--llaveroqr-azul-principal);
    line-height: 1;
}

.precio-detalle {
    font-size: 0.75rem;
    color: var(--llaveroqr-gris-texto);
    margin-top: 0.25rem;
}

.btn-ver-detalle {
    background: var(--gradient-principal);
    color: white;
    border: none;
    border-radius: var(--radio-borde);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transicion-suave);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-ver-detalle:hover {
        background: var(--llaveroqr-azul-hover);
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }

/* =================================
   BENEFITS SECTION - ESTILO LANDING
   ================================= */

.benefits-section {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(27, 75, 140, 0.1);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--llaveroqr-fondo-claro);
    border-radius: var(--radio-borde);
    transition: var(--transicion-suave);
}

    .benefit-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--sombra-suave);
    }

.benefit-icon {
    width: 60px;
    height: 60px;
    /*background: var(--gradient-principal);*/
    background: var(--llaveroqr-azul-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-titulo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--llaveroqr-azul-principal);
    margin-bottom: 0.5rem;
}

.benefit-descripcion {
    color: var(--llaveroqr-gris-texto);
    line-height: 1.6;
}

/* =================================
   ESTADOS ESPECIALES
   ================================= */

.estado-vacio,
.no-resultados {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(27, 75, 140, 0.1);
}

.estado-icono {
    width: 80px;
    height: 80px;
    background: rgba(27, 75, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--llaveroqr-azul-principal);
    font-size: 2rem;
}

.btn-accion {
    background: var(--gradient-principal);
    color: white;
    border: none;
    border-radius: var(--radio-borde);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transicion-suave);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .btn-accion:hover {
        background: var(--llaveroqr-azul-hover);
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }

/* =================================
   RESPONSIVE - MÓVIL
   ================================= */

@media (max-width: 768px) {
    .productos-landing{
        padding-top: 140px;
    }

    #img-hero-div{
        margin-top:20px;
    }

    .hero-productos {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
    }

    .hero-titulo {
        font-size: 1.75rem;
        text-align: center;
    }

    .hero-subtitulo {
        text-align: center;
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .stat-badge {
        justify-content: center;
        width: 100%;
    }

    .filtros-container {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }

        .filtros-container .row > div {
            margin-bottom: 1rem;
        }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 1rem 3rem;
    }

    .imagen-container {
        height: 220px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-ver-detalle {
        justify-content: center;
    }

    .benefits-section {
        margin: 0 1rem 2rem;
        padding: 2rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-productos {
        padding: 1.5rem 1rem;
    }

    .filtros-container {
        padding: 1rem;
    }

    .imagen-container {
        height: 200px;
    }

    .card-content {
        padding: 1rem;
    }

    .precio-principal {
        font-size: 1.25rem;
    }
}

/* =================================
   ANIMACIONES SUAVES
   ================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card {
    animation: fadeInUp 0.6s ease-out;
}

    .producto-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .producto-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .producto-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .producto-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .producto-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .producto-card:nth-child(6) {
        animation-delay: 0.6s;
    }

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.producto-detalle {
    padding-top: 112px; /* Para navbar fijo */
    min-height: 100vh;
    background: var(--gradient-suave);
}

.detalle-main {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(27, 75, 140, 0.1);
}

.imagen-principal {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
}

.precio-destacado {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--llaveroqr-azul-principal);
    margin-bottom: 0.5rem;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-cantidad {
    width: 40px;
    height: 40px;
    border: 2px solid var(--llaveroqr-gris-claro);
    background: white;
    border-radius: var(--radio-borde);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicion-suave);
}

    .btn-cantidad:hover {
        border-color: var(--llaveroqr-azul-principal);
        background: var(--llaveroqr-azul-principal);
        color: white;
    }

.cantidad-input {
    width: 80px;
    text-align: center;
    border: 2px solid var(--llaveroqr-gris-claro);
    border-radius: var(--radio-borde);
    padding: 0.5rem;
    font-weight: 600;
}

.btn-comprar {
    background: var(--gradient-principal);
    color: white;
    border: none;
    border-radius: var(--radio-borde);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: var(--transicion-suave);
    width: 100%;
    margin-bottom: 1rem;
}

    .btn-comprar:hover {
        background: var(--llaveroqr-azul-hover);
        transform: translateY(-2px);
        box-shadow: var(--sombra-media);
    }

.caracteristicas-lista {
    list-style: none;
    padding: 0;
}

    .caracteristicas-lista li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #E5E7EB;
        display: flex;
        align-items: center;
    }

        .caracteristicas-lista li:last-child {
            border-bottom: none;
        }

    .caracteristicas-lista i {
        color: var(--llaveroqr-verde-tech);
        margin-right: 0.75rem;
        width: 20px;
    }

.tabs-detalle {
    margin-top: 3rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--llaveroqr-gris-texto);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

    .nav-tabs .nav-link.active {
        border-bottom-color: var(--llaveroqr-azul-principal);
        color: var(--llaveroqr-azul-principal);
        background: none;
    }

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .precio-destacado {
        font-size: 2rem;
    }

    .cantidad-selector {
        justify-content: center;
    }

    .detalle-main {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .producto-detalle {
        padding-top: 140px;
    }
}

.checkout-page {
    padding-top: 112px;
    min-height: 100vh;
    background: var(--gradient-suave);
}

.checkout-main {
    background: var(--llaveroqr-blanco);
    border-radius: var(--radio-borde-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(27, 75, 140, 0.1);
}

.paso-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.paso {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radio-borde);
    background: var(--llaveroqr-gris-claro);
    color: var(--llaveroqr-gris-texto);
}

    .paso.activo {
        background: var(--llaveroqr-azul-principal);
        color: white;
    }

.seccion-checkout {
    border: 1px solid #E5E7EB;
    border-radius: var(--radio-borde);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.seccion-titulo {
    color: var(--llaveroqr-azul-principal);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metodo-pago {
    border: 2px solid #E5E7EB;
    border-radius: var(--radio-borde);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transicion-suave);
}

    .metodo-pago:hover {
        border-color: var(--llaveroqr-azul-principal);
    }

    .metodo-pago.seleccionado {
        border-color: var(--llaveroqr-azul-principal);
        background: rgba(27, 75, 140, 0.05);
    }

.resumen-pedido {
    background: var(--llaveroqr-fondo-claro);
    border: 1px solid rgba(27, 75, 140, 0.1);
    border-radius: var(--radio-borde);
    padding: 1.5rem;
    position: sticky;
    top: 8rem;
}

@media (max-width: 768px) {
    .paso-checkout {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkout-main {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }

    .checkout-page{
        padding-top:140px;
    }
}

/* CSS para versión compacta */
.usuario-breadcrumb-compact {
    background: rgba(16, 185, 129, 0.1);
    color: var(--llaveroqr-azul-principal);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radio-borde);
    font-size: 0.875rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
    }

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 25px;
}

.timeline-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 12px;
}

.timeline-item.active .timeline-icon {
    background: #10b981;
    color: white;
}

.timeline-content h6 {
    margin-bottom: 4px;
    font-size: 14px;
}

.timeline-content small {
    font-size: 12px;
}

@media print {
    .btn, .breadcrumb-moderno {
        display: none !important;
    }
}