/* ============================================
   NUEVOUSADO.COM - CSS COMPLETO Y OPTIMIZADO
   Versión: Mobile First + Desktop
   Incluye: reset, header, footer, index, perfil,
            producto, productos, publicar, 
            como-funciona, seguridad, cookies
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --color-primario: #4f46e5;
    --color-primario-oscuro: #4338ca;
    --color-secundario: #f59e0b;
    --color-texto: #1e293b;
    --color-texto-claro: #64748b;
    --color-fondo: #ffffff;
    --color-fondo-alt: #f8fafc;
    --color-borde: #e2e8f0;
    --color-exito: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --sombra-suave: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --sombra-media: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --sombra-fuerte: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --borde-redondo: 24px;
    --borde-redondo-sm: 12px;
    --borde-redondo-lg: 32px;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    --header-height: 80px;
    --header-height-mobile: 70px;
    --container-padding: 16px;
    --container-padding-mobile: 12px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    height: var(--header-height-mobile);
    display: flex;
    align-items: center;
}

@media (min-width: 1025px) {
    .header {
        height: var(--header-height);
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

@media (min-width: 1025px) {
    .navbar {
        gap: 16px;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo h1 {
    font-family: var(--fuente-titulos);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-texto);
}

@media (min-width: 1025px) {
    .logo h1 {
        font-size: 24px;
    }
}

.logo h1 span {
    color: var(--color-primario);
    position: relative;
}

.logo h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--color-secundario);
    opacity: 0.3;
    z-index: -1;
}

.nav-search {
    flex: 1;
    max-width: none;
    min-width: 0;
    margin: 0 8px;
}

@media (min-width: 1025px) {
    .nav-search {
        max-width: 400px;
        min-width: 200px;
        margin: 0 16px;
    }
}

.nav-search form {
    display: flex;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border: 1px solid var(--color-borde);
    border-radius: 9999px;
    font-size: 13px;
    transition: var(--transicion);
    background-color: var(--color-fondo-alt);
}

@media (min-width: 1025px) {
    .nav-search input {
        padding: 12px 20px;
        padding-right: 48px;
        font-size: 14px;
    }
}

.nav-search input:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.nav-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    background: none;
    border: none;
    color: var(--color-texto-claro);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transicion);
}

.nav-search button:hover {
    color: var(--color-primario);
    background-color: rgba(79, 70, 229, 0.1);
}

.nav-links,
.nav-buttons {
    display: none;
}

.menu-mobile {
    display: flex;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-texto);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    flex-shrink: 0;
}

.menu-mobile:hover {
    background-color: var(--color-fondo-alt);
}

@media (min-width: 1025px) {
    .nav-links,
    .nav-buttons {
        display: flex;
    }
    .menu-mobile {
        display: none;
    }
}

/* Menú móvil activo */
.nav-links.active,
.nav-buttons.active {
    display: flex !important;
}

.nav-links.active {
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--color-borde);
    z-index: 999;
}

.nav-buttons.active {
    position: absolute;
    top: calc(var(--header-height-mobile) + 280px);
    left: 0;
    right: 0;
    padding: 0 24px 24px;
    background: white;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 999;
}

.nav-links.active a {
    padding: 12px 0;
    width: 100%;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-texto);
    transition: var(--transicion);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primario);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primario);
    transition: var(--transicion);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (min-width: 1025px) {
    .nav-links {
        display: flex;
        gap: 24px;
        margin: 0 16px;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        border-bottom: none;
    }
    .nav-links a {
        white-space: nowrap;
        padding: 4px 0;
    }
    .nav-buttons {
        display: flex;
        gap: 12px;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transicion);
    font-family: var(--fuente-cuerpo);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primario);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primario-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-texto);
    border: 1.5px solid var(--color-borde);
}

.btn-outline:hover {
    border-color: var(--color-primario);
    color: var(--color-primario);
    background-color: rgba(79, 70, 229, 0.04);
}

.btn-success {
    background-color: var(--color-exito);
    color: white;
}

.btn-success:hover {
    background-color: #0ea271;
    transform: translateY(-2px);
}

.btn-error {
    background-color: var(--color-error);
    color: white;
}

.btn-error:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--color-primario);
    padding: 8px 16px;
}

.btn-text:hover {
    background-color: rgba(79, 70, 229, 0.04);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-fondo-alt);
    border: 1px solid var(--color-borde);
    color: var(--color-texto);
    font-size: 18px;
    padding: 0;
}

.btn-icon:hover {
    background: var(--color-primario);
    color: white;
    border-color: var(--color-primario);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--color-fondo), var(--color-fondo-alt));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

@media (min-width: 1025px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        text-align: left;
    }
}

.hero-badge {
    display: inline-block;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primario);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: var(--fuente-titulos);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-texto);
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 52px;
    }
}

.hero-text {
    font-size: 16px;
    color: var(--color-texto-claro);
    margin-bottom: 32px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-text {
        font-size: 18px;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
}

.hero-cta .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    .hero-cta .btn {
        width: auto;
    }
}

.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-stats {
        gap: 32px;
    }
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-texto);
    line-height: 1;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 32px;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--color-texto-claro);
    font-weight: 500;
}

/* ===== HERO IMAGE GRID - CORREGIDO ===== */
.hero-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    height: 300px; /* Aumentado para que se vea bien en móvil */
}

@media (min-width: 768px) {
    .image-grid {
        height: 350px;
        gap: 16px;
    }
}

@media (min-width: 1025px) {
    .hero-image {
        order: 0;
    }
    .image-grid {
        height: 500px;
    }
}

.grid-item {
    background-color: var(--color-fondo-alt);
    border-radius: var(--borde-redondo);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transicion);
    box-shadow: var(--sombra-media);
    width: 100%;
    height: 100%;
}

.grid-item:hover {
    transform: scale(1.02);
}

/* Distribución de las imágenes en el grid */
.item1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.item2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.item4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* ===== SECCIONES GENERALES ===== */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-family: var(--fuente-titulos);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-texto);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 36px;
    }
}

.section-header .highlight {
    color: var(--color-primario);
    position: relative;
}

.section-header .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-secundario);
    opacity: 0.2;
    z-index: -1;
}

.section-header p {
    font-size: 16px;
    color: var(--color-texto-claro);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: var(--borde-redondo-sm);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    cursor: pointer;
    border: 1px solid var(--color-borde);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-color: var(--color-primario);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-fondo-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primario);
    color: white;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-tag.negociable {
    background: var(--color-secundario);
}

.product-tag.vendido {
    background: var(--color-texto-claro);
}

.product-tag.activo {
    background: var(--color-exito);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-error);
    font-size: 18px;
    transition: var(--transicion);
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn.active i {
    font-weight: 900;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-texto);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primario);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-texto-claro);
    font-size: 13px;
}

.product-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-borde);
    font-size: 13px;
    color: var(--color-texto-claro);
}

/* ===== CATEGORÍAS ===== */
.categories {
    padding: 40px 0;
    background-color: var(--color-fondo-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.category-card {
    background-color: var(--color-fondo);
    padding: 24px 16px;
    border-radius: var(--borde-redondo);
    text-align: center;
    transition: var(--transicion);
    cursor: pointer;
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-suave);
}

@media (max-width: 480px) {
    .category-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 16px;
        gap: 16px;
    }
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-color: var(--color-primario);
}

.category-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(79, 70, 229, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--color-primario);
    transition: var(--transicion);
}

@media (max-width: 480px) {
    .category-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
}

.category-card:hover .category-icon {
    background-color: var(--color-primario);
    color: white;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-texto);
}

@media (max-width: 480px) {
    .category-card h3 {
        margin-bottom: 4px;
    }
}

.category-card p {
    color: var(--color-texto-claro);
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .category-card p {
        margin-bottom: 0;
    }
}

/* ===== CÓMO FUNCIONA ===== */
.how-it-works {
    padding: 40px 0;
    background-color: var(--color-fondo);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1025px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--borde-redondo);
    background-color: var(--color-fondo);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    border: 1px solid var(--color-borde);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-color: rgba(79, 70, 229, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--color-primario);
    transition: var(--transicion);
}

.step:hover .step-icon {
    background-color: var(--color-primario);
    color: white;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-texto);
}

.step p {
    color: var(--color-texto-claro);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ===== TESTIMONIOS ===== */
.testimonials {
    padding: 40px 0;
    background-color: var(--color-fondo-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1025px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--color-fondo);
    padding: 32px;
    border-radius: var(--borde-redondo);
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

.testimonial-card:hover {
    box-shadow: var(--sombra-media);
    border-color: rgba(79, 70, 229, 0.2);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-texto);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 12px;
    color: var(--color-texto-claro);
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--fuente-titulos);
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 42px;
    }
}

.page-header .subtitle {
    font-size: 16px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 20px;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== PRODUCT LISTING ===== */
.products-listing {
    padding: 40px 0;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1025px) {
    .listing-layout {
        grid-template-columns: 280px 1fr;
    }
}

.filters-sidebar {
    background: white;
    padding: 28px;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
    height: fit-content;
    position: static;
    margin-bottom: 32px;
}

@media (min-width: 1025px) {
    .filters-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 20px);
        margin-bottom: 0;
    }
}

.filters-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-borde);
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-texto);
}

.filter-group ul li {
    margin-bottom: 12px;
}

.filter-group ul li a {
    color: var(--color-texto-claro);
    font-size: 14px;
    transition: var(--transicion);
    display: block;
}

.filter-group ul li a:hover,
.filter-group ul li a.active {
    color: var(--color-primario);
    font-weight: 500;
    transform: translateX(4px);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-range input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    font-size: 14px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-texto);
    cursor: pointer;
}

.products-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .products-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.results-count {
    font-size: 15px;
    color: var(--color-texto-claro);
}

.sort-options select {
    padding: 10px 20px;
    border: 1px solid var(--color-borde);
    border-radius: 9999px;
    font-size: 14px;
    color: var(--color-texto);
    background: white;
    cursor: pointer;
    transition: var(--transicion);
    width: 100%;
}

@media (min-width: 768px) {
    .sort-options select {
        width: auto;
    }
}

.sort-options select:hover {
    border-color: var(--color-primario);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-fondo-alt);
    border-radius: var(--borde-redondo);
}

.no-results i {
    font-size: 56px;
    color: var(--color-texto-claro);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--color-texto-claro);
    margin-bottom: 28px;
    font-size: 16px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    padding: 40px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 1025px) {
    .product-detail-layout {
        grid-template-columns: 1.2fr 1.5fr 0.9fr;
        gap: 32px;
    }
}

.product-gallery {
    background: white;
    border-radius: var(--borde-redondo);
    overflow: hidden;
    border: 1px solid var(--color-borde);
    margin-bottom: 0;
}

.main-image {
    aspect-ratio: 1;
    background: var(--color-fondo-alt);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--color-fondo-alt);
}

@media (min-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 16px;
    }
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transicion);
}

.thumbnail.active {
    border-color: var(--color-primario);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detailed {
    padding: 24px;
    background: white;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
}

@media (min-width: 768px) {
    .product-info-detailed {
        padding: 32px;
    }
}

.product-info-detailed h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-info-detailed h1 {
        font-size: 28px;
    }
}

.product-meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-category,
.product-condition {
    background: var(--color-fondo-alt);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .product-category,
    .product-condition {
        padding: 4px 12px;
        font-size: 12px;
    }
}

.product-views {
    color: var(--color-texto-claro);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-price-section {
    margin-bottom: 28px;
}

.current-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primario);
}

@media (min-width: 768px) {
    .current-price {
        font-size: 44px;
    }
}

.negotiable-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-secundario);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 0;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .negotiable-badge {
        margin-left: 12px;
        margin-top: 0;
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .product-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.product-actions .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .product-actions .btn {
        width: auto;
    }
}

.btn-icon {
    width: 100%;
    border-radius: 9999px;
}

@media (min-width: 768px) {
    .btn-icon {
        width: 48px;
        border-radius: 50%;
    }
}

.seller-info-card {
    background: var(--color-fondo-alt);
    padding: 28px;
    border-radius: var(--borde-redondo);
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .seller-info-card {
        padding: 20px;
    }
}

.seller-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .seller-info {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.seller-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .seller-rating {
        justify-content: flex-start;
    }
}

.seller-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.seller-rating i.far {
    color: var(--color-borde);
}

.member-since {
    font-size: 13px;
    color: var(--color-texto-claro);
    margin-bottom: 6px;
}

.product-description {
    margin-bottom: 32px;
}

.product-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-description p {
    color: var(--color-texto-claro);
    line-height: 1.8;
    white-space: pre-line;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    background: var(--color-fondo-alt);
    color: var(--color-texto-claro);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.product-specs {
    background: var(--color-fondo-alt);
    padding: 28px;
    border-radius: var(--borde-redondo);
}

.product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-borde);
    color: var(--color-texto-claro);
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li strong {
    color: var(--color-texto);
    font-weight: 600;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-column: span 1;
}

@media (min-width: 1025px) {
    .product-sidebar {
        grid-column: span 1;
    }
}

.questions-section,
.offers-history {
    background: white;
    padding: 20px;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
}

@media (min-width: 768px) {
    .questions-section,
    .offers-history {
        padding: 28px;
    }
}

.questions-section h3,
.offers-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.question-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-borde);
}

.question-item:last-child {
    border-bottom: none;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.question-author {
    font-weight: 600;
    color: var(--color-texto);
}

.question-date {
    font-size: 12px;
    color: var(--color-texto-claro);
}

.question-text {
    margin-bottom: 12px;
    color: var(--color-texto);
    line-height: 1.6;
}

.answer {
    background: var(--color-fondo-alt);
    padding: 16px;
    border-radius: 16px;
    margin-top: 12px;
}

.answer-author {
    font-weight: 600;
    color: var(--color-primario);
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.pending-answer {
    font-size: 12px;
    color: var(--color-secundario);
    font-weight: 500;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 9999px;
}

.offer-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-borde);
}

.offer-item:last-child {
    border-bottom: none;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-author {
    font-weight: 600;
    color: var(--color-texto);
}

.offer-amount {
    font-weight: 700;
    color: var(--color-primario);
    font-size: 16px;
}

.offer-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 9999px;
}

.status-pendiente {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-secundario);
}

.status-aceptada {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-exito);
}

.status-rechazada {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.offer-message {
    font-size: 14px;
    color: var(--color-texto-claro);
    font-style: italic;
    line-height: 1.6;
}

.report-product {
    text-align: center;
    margin-top: 8px;
}

/* ===== PROFILE ===== */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: white;
}

.profile-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .profile-cover {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
        gap: 32px;
    }
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: var(--sombra-media);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .profile-info h1 {
        font-size: 32px;
    }
}

.profile-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-badges {
        justify-content: flex-start;
    }
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.profile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-stats {
        gap: 32px;
        justify-content: flex-start;
    }
}

.profile-stats .stat {
    background: none;
    padding: 0;
}

.profile-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    display: block;
    color: white;
}

@media (min-width: 768px) {
    .profile-stats .stat-value {
        font-size: 24px;
    }
}

.profile-stats .stat-label {
    font-size: 12px;
    opacity: 0.9;
    color: white;
}

@media (min-width: 768px) {
    .profile-stats .stat-label {
        font-size: 13px;
    }
}

.profile-actions {
    margin-left: 0;
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-actions {
        margin-left: auto;
        width: auto;
    }
}

.profile-actions .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.profile-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.profile-actions .btn-primary {
    background: white;
    color: var(--color-primario);
}

.profile-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.profile-content {
    padding: 40px 0;
}

.profile-tabs {
    background: white;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-borde);
    background: var(--color-fondo-alt);
    padding: 12px 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--color-texto-claro);
    cursor: pointer;
    position: relative;
    transition: var(--transicion);
    border-radius: 12px 12px 0 0;
    white-space: nowrap;
    font-size: 14px;
}

@media (min-width: 768px) {
    .tab-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

.tab-btn:hover {
    color: var(--color-primario);
    background: rgba(79, 70, 229, 0.04);
}

.tab-btn.active {
    color: var(--color-primario);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primario);
}

.tab-pane {
    display: none;
    padding: 24px;
}

@media (min-width: 768px) {
    .tab-pane {
        padding: 32px;
    }
}

.tab-pane.active {
    display: block;
}

.tab-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .tab-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.tab-header h2 {
    font-size: 20px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .tab-header h2 {
        font-size: 24px;
    }
}

.tab-header .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .tab-header .btn {
        width: auto;
    }
}

.history-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-borde);
    padding-bottom: 16px;
    overflow-x: auto;
}

.subtab-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--color-texto-claro);
    cursor: pointer;
    border-radius: 9999px;
    transition: var(--transicion);
    white-space: nowrap;
}

.subtab-btn.active {
    background: var(--color-primario);
    color: white;
}

.history-pane {
    display: none;
}

.history-pane.active {
    display: block;
}

.history-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--color-fondo-alt);
    border-radius: var(--borde-redondo-sm);
    margin-bottom: 16px;
    gap: 20px;
}

@media (min-width: 768px) {
    .history-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.history-product {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .history-product {
        flex-direction: row;
    }
}

.history-product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .history-product img {
        width: 80px;
        height: 80px;
    }
}

.history-product h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.history-meta {
    font-size: 13px;
    color: var(--color-texto-claro);
    margin-bottom: 10px;
}

.history-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.history-rating i {
    color: #fbbf24;
    font-size: 12px;
}

.history-rating span {
    font-size: 13px;
    color: var(--color-texto-claro);
    margin-left: 4px;
}

/* ===== OFFERS ===== */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offer-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: var(--color-fondo-alt);
    padding: 24px;
    border-radius: var(--borde-redondo-sm);
    border: 1px solid var(--color-borde);
}

@media (min-width: 768px) {
    .offer-card {
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }
}

.offer-product {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .offer-product {
        flex-direction: row;
    }
}

.offer-product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .offer-product img {
        width: 80px;
        height: 80px;
    }
}

.offer-product h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.offer-details {
    position: relative;
}

.offer-buyer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .offer-buyer {
        flex-direction: row;
        align-items: center;
    }
}

.offer-buyer img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.offer-amount {
    color: var(--color-primario);
    font-weight: 700;
    font-size: 18px;
}

.offer-message {
    color: var(--color-texto-claro);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.6;
}

.offer-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .offer-actions {
        flex-direction: row;
    }
}

.offer-actions .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .offer-actions .btn {
        width: auto;
    }
}

.my-offer {
    font-size: 16px;
    margin-bottom: 12px;
}

/* ===== PUBLISH FORM ===== */
.publish-form-section {
    padding: 40px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-texto);
    font-size: 15px;
}

.form-group .required {
    color: var(--color-error);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-borde);
    border-radius: 16px;
    font-size: 15px;
    transition: var(--transicion);
    font-family: var(--fuente-cuerpo);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-texto-claro);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.form-checkbox {
    margin: 28px 0;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    font-size: 15px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primario);
}

.form-navigation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .form-navigation {
        flex-direction: row;
        justify-content: space-between;
    }
}

.form-navigation .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .form-navigation .btn {
        width: auto;
    }
}

.form-progress {
    margin-top: 48px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-borde);
    z-index: 1;
}

@media (min-width: 768px) {
    .progress-steps::before {
        top: 24px;
    }
}

.progress-step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 8px;
    text-align: center;
}

@media (min-width: 768px) {
    .progress-step {
        padding: 0 16px;
    }
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-fondo-alt);
    border: 2px solid var(--color-borde);
    border-radius: 50%;
    font-weight: 700;
    color: var(--color-texto-claro);
    margin: 0 auto 8px;
    transition: var(--transicion);
    font-size: 14px;
}

@media (min-width: 768px) {
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

.progress-step.active .step-number {
    background: var(--color-primario);
    border-color: var(--color-primario);
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-texto-claro);
}

@media (min-width: 768px) {
    .step-label {
        font-size: 14px;
    }
}

.progress-step.active .step-label {
    color: var(--color-primario);
}

.image-upload-area {
    border: 2px dashed var(--color-borde);
    border-radius: var(--borde-redondo);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transicion);
    background: var(--color-fondo-alt);
}

.image-upload-area:hover {
    border-color: var(--color-primario);
    background: rgba(79, 70, 229, 0.02);
}

.image-upload-area i {
    font-size: 56px;
    color: var(--color-texto-claro);
    margin-bottom: 16px;
}

.image-upload-area h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.image-upload-area p {
    color: var(--color-texto-claro);
    margin-bottom: 12px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .image-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1025px) {
    .image-preview-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-error);
    transition: var(--transicion);
}

.remove-image:hover {
    background: var(--color-error);
    color: white;
}

.publish-summary {
    background: var(--color-fondo-alt);
    padding: 24px;
    border-radius: var(--borde-redondo);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .publish-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px;
    }
}

.summary-item.full {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .summary-item.full {
        grid-column: span 2;
    }
}

.summary-label {
    font-weight: 600;
    color: var(--color-texto);
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.summary-value {
    color: var(--color-primario);
    font-weight: 500;
    font-size: 15px;
}

.summary-text {
    margin-top: 8px;
    color: var(--color-texto-claro);
    line-height: 1.6;
    font-size: 14px;
}

.publish-tips {
    margin-top: 48px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--borde-redondo);
}

@media (min-width: 768px) {
    .publish-tips {
        padding: 40px;
    }
}

.publish-tips h3 {
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

@media (min-width: 768px) {
    .publish-tips h3 {
        font-size: 22px;
    }
}

.publish-tips ul {
    list-style: none;
    padding: 0;
}

.publish-tips li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

/* ===== LOADER ===== */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primario);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    color: var(--color-texto);
    border-radius: var(--borde-redondo);
    box-shadow: var(--sombra-fuerte);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.5s ease;
    border: 1px solid var(--color-borde);
}

@media (min-width: 768px) {
    .cookie-consent {
        left: 24px;
        right: 24px;
        bottom: 24px;
        padding: 28px;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        gap: 28px;
    }
}

.cookie-content i {
    font-size: 36px;
    color: var(--color-secundario);
}

.cookie-content p {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-texto);
}

@media (min-width: 768px) {
    .cookie-content p {
        font-size: 15px;
    }
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .cookie-buttons {
        flex-direction: row;
        width: auto;
    }
}

.cookie-buttons .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .cookie-buttons .btn {
        width: auto;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-texto);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (min-width: 1025px) {
    .footer-content {
        grid-template-columns: 1.5fr 2fr;
        gap: 64px;
    }
}

.footer-brand h2 {
    font-family: var(--fuente-titulos);
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

@media (min-width: 768px) {
    .footer-brand h2 {
        font-size: 30px;
    }
}

.footer-brand h2 span {
    color: var(--color-secundario);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 100%;
    font-size: 15px;
}

@media (min-width: 1025px) {
    .footer-description {
        max-width: 400px;
    }
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transicion);
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--color-primario);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transicion);
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== CÓMO FUNCIONA DETALLADO ===== */
.how-it-works-detailed {
    padding: 40px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1025px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-color: var(--color-primario);
}

.step-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 40px;
    color: var(--color-primario);
}

@media (min-width: 768px) {
    .step-icon-large {
        width: 96px;
        height: 96px;
        font-size: 48px;
    }
}

.step-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .step-card h2 {
        font-size: 24px;
    }
}

.step-card p {
    color: var(--color-texto-claro);
    margin-bottom: 24px;
    line-height: 1.7;
}

.step-features {
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-texto);
}

.feature i {
    color: var(--color-exito);
}

/* ===== SECCIÓN DE CARACTERÍSTICAS ===== */
.features-section {
    padding: 40px 0;
    background: var(--color-fondo-alt);
}

@media (min-width: 768px) {
    .features-section {
        padding: 80px 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1025px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--borde-redondo);
    text-align: center;
    transition: var(--transicion);
    border: 1px solid var(--color-borde);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--color-primario);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-texto-claro);
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 40px 0;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }
}

.faq-grid {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-borde);
    border-radius: var(--borde-redondo-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: var(--transicion);
}

.faq-question:hover {
    background: var(--color-fondo-alt);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    display: none;
    padding: 0 24px 24px;
    color: var(--color-texto-claro);
    line-height: 1.7;
    border-top: 1px solid var(--color-borde);
}

/* ===== CONSEJOS DE SEGURIDAD ===== */
.security-tips {
    padding: 40px 0;
}

@media (min-width: 768px) {
    .security-tips {
        padding: 60px 0;
    }
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.tip-card {
    background: white;
    padding: 32px;
    border-radius: var(--borde-redondo);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.tip-card.large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .tip-card.large {
        grid-column: span 2;
    }
}

.tip-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--color-primario);
}

.tip-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .tip-card h2 {
        font-size: 24px;
    }
}

.tip-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tip-content {
    margin-top: 16px;
}

.tip-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.tip-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-texto-claro);
    line-height: 1.5;
}

.tip-card ul li i {
    margin-top: 3px;
}

.tip-card ul li i.fa-check-circle {
    color: var(--color-exito);
}

.tip-card ul li i.fa-times-circle {
    color: var(--color-error);
}

.security-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--borde-redondo);
    color: white;
}

@media (min-width: 768px) {
    .security-cta {
        padding: 60px;
    }
}

.security-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--fuente-titulos);
}

@media (min-width: 768px) {
    .security-cta h2 {
        font-size: 32px;
    }
}

.security-cta p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .security-cta p {
        font-size: 18px;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

.security-cta .btn-primary {
    background: white;
    color: var(--color-primario);
}

.security-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.security-cta .btn-outline {
    border-color: white;
    color: white;
}

.security-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .product-card:hover,
    .category-card:hover,
    .step:hover,
    .feature-card:hover,
    .tip-card:hover,
    .step-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-links a {
        padding: 12px 0;
    }
    
    .favorite-btn {
        width: 44px;
        height: 44px;
    }
    
    .thumbnail {
        border-width: 2px;
    }
}

/* ===== IMPRESIÓN ===== */
@media print {
    .header,
    .footer,
    .btn,
    .favorite-btn,
    .product-actions,
    .report-product,
    .cookie-consent {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ===== COMENTARIOS EN CADENA ===== */
.comentarios-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comentario-item {
    background: white;
    border-radius: var(--borde-redondo-sm);
    padding: 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.comentario-item:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

.comentario-item[style*="border-left"] {
    border-left-color: var(--color-primario) !important;
    border-left-width: 3px !important;
}

.comentario-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comentario-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comentario-contenido {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-texto);
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.comentario-acciones {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.comentario-acciones button {
    background: none;
    border: none;
    color: var(--color-texto-claro);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.comentario-acciones button:hover {
    background: var(--color-fondo-alt);
    color: var(--color-primario);
}

.comentario-acciones button i.fas.fa-thumbs-up {
    color: var(--color-primario);
}

.comentario-respuesta-indicador {
    background: var(--color-fondo-alt);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--color-texto-claro);
    display: inline-block;
    margin-bottom: 8px;
}

.formulario-respuesta {
    background: var(--color-fondo-alt);
    padding: 20px;
    border-radius: var(--borde-redondo-sm);
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENVÍO Y RETIRO ===== */
.envio-card {
    background: var(--color-fondo-alt);
    padding: 24px;
    border-radius: var(--borde-redondo-sm);
    margin-bottom: 24px;
}

.envio-opcion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--borde-redondo-sm);
    border: 1px solid var(--color-borde);
    margin-bottom: 12px;
}

.envio-opcion:hover {
    border-color: var(--color-primario);
}

.envio-icono {
    font-size: 24px;
    color: var(--color-primario);
}

.envio-detalle {
    flex: 1;
}

.envio-titulo {
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 4px;
}

.envio-subtitulo {
    font-size: 13px;
    color: var(--color-texto-claro);
}

.envio-gratis-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-exito);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .comentario-item[style*="margin-left"] {
        margin-left: 16px !important;
    }
    
    .comentario-acciones {
        flex-wrap: wrap;
    }
    
    .envio-opcion {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .comentario-acciones button {
        padding: 8px 16px;
    }
    
    .comentario-acciones button i {
        font-size: 16px;
    }
}