/* ===================================
   Variables y Reset
   =================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.header {
    background: white;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

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

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary);
    color: white;
}

.btn-login {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
}

.btn-logout {
    background: var(--danger);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding: 4rem 0;
    background: var(--gradient-1);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* ===================================
   Categories Section
   =================================== */
.categories {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    background: var(--cat-color, var(--primary));
    color: white;
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-card span {
    font-weight: 600;
}

/* ===================================
   Products Section
   =================================== */
.products-section,
.featured-products {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.products-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.product-card.featured {
    border: 2px solid var(--warning);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    position: relative;
}

.product-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.product-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--gray);
}

.seller-badge {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.product-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.status-disponible {
    background: var(--success);
    color: white;
}

.status-vendido {
    background: var(--danger);
    color: white;
}

.status-pausado {
    background: var(--warning);
    color: white;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-whatsapp {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.02);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 4rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.about-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Auth Pages
   =================================== */
.auth-page {
    background: var(--gradient-1);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.logo-large i {
    font-size: 3rem;
}

.auth-subtitle {
    color: var(--gray);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: var(--light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-back {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-back a {
    color: var(--gray);
}

.auth-features {
    color: white;
}

.auth-features h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    opacity: 0.9;
}

.feature-item h4 {
    margin-bottom: 0.3rem;
}

.feature-item p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===================================
   Product Detail
   =================================== */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb i {
    margin: 0 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.product-detail {
    padding: 3rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
}

.product-detail-image {
    position: relative;
}

.product-image-main {
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow);
}

.product-icon-large {
    font-size: 8rem;
    color: white;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-featured {
    background: var(--warning);
    color: white;
}

.badge-category {
    color: white;
}

.product-detail-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.product-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
}

.price-label {
    font-size: 1rem;
    color: var(--gray);
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.product-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.stat-link {
    color: var(--primary);
    font-weight: 600;
}

.product-detail-description h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-actions {
    margin-top: 2rem;
}

.seller-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.seller-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-profile {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    font-size: 4rem;
    color: var(--primary);
}

.seller-info-detail h4 {
    margin-bottom: 0.3rem;
}

.seller-member-since {
    color: var(--gray);
    font-size: 0.85rem;
}

.seller-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
}

.seller-stat i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-text {
    font-size: 0.8rem;
    color: var(--gray);
}

.seller-reputation {
    margin-bottom: 1.5rem;
}

.reputation-bar {
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reputation-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.reputation-text {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    color: var(--gray);
}

.related-products {
    margin-top: 4rem;
}

/* ===================================
   Profile Page
   =================================== */
.profile-section {
    padding: 3rem 0;
}

.profile-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--primary);
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.member-since {
    font-size: 0.85rem;
}

.profile-stats {
    display: flex;
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-radius: 10px;
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.profile-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-tab.active {
    background: var(--primary);
    color: white;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.transaction-icon {
    font-size: 2rem;
    color: var(--primary);
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
}

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    margin-bottom: 0.3rem;
}

.transaction-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.transaction-details {
    text-align: right;
}

.transaction-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.transaction-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pendiente {
    background: var(--warning);
    color: white;
}

.status-completada {
    background: var(--success);
    color: white;
}

.status-cancelada {
    background: var(--danger);
    color: white;
}

.product-actions-inline {
    display: flex;
    gap: 0.5rem;
}

/* ===================================
   Admin Panel
   =================================== */
.admin-header {
    background: var(--dark);
    color: white;
    box-shadow: 0 2px 10px var(--shadow);
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary);
    color: white;
}

.admin-container {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.admin-welcome {
    margin-bottom: 2rem;
}

.admin-welcome h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.admin-welcome p {
    color: var(--gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    background: var(--primary);
    color: white;
}

.action-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.admin-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
}

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

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-content {
    padding: 1.5rem;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
}

.item-info h4 {
    margin-bottom: 0.3rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.price {
    font-weight: bold;
    color: var(--primary);
}

.text-muted {
    color: var(--gray);
    font-size: 0.85rem;
}

.text-small {
    font-size: 0.8rem;
    color: var(--gray);
}

.badge-admin {
    background: var(--danger);
    color: white;
}

.badge-usuario {
    background: var(--info);
    color: white;
}

.admin-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header-section h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--light);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--dark);
}

.admin-table tbody tr:hover {
    background: var(--light);
}

.text-center {
    text-align: center;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    vertical-align: middle;
    margin-right: 0.5rem;
    border: 2px solid var(--border);
}

.category-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-info {
    background: var(--info);
    color: white;
}

.admin-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===================================
   Alerts & Messages
   =================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.message {
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-features {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .admin-nav {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .transaction-card {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-details {
        text-align: center;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===================================
   Terms & Conditions Page
   =================================== */
.terms-section {
    padding: 4rem 0;
    background: var(--light);
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.terms-container h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-date {
    color: var(--gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.terms-content h2 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--dark);
}

.terms-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-acceptance {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.terms-acceptance p {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
    padding: 4rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.testimonial-info h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===================================
   User Product Creation
   =================================== */
.create-product-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-2);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.create-product-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 12px 40px rgba(245, 87, 108, 0.7);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.create-product-btn:active {
    transform: scale(1.05) rotate(90deg);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
    }
    50% {
        box-shadow: 0 8px 35px rgba(245, 87, 108, 0.8);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .create-product-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ===================================
   Plan Badges
   =================================== */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.plan-badge.gratis {
    background: var(--gray);
    color: white;
}

.plan-badge.vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.plan-badge.premium {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

/* ===================================
   Smaller Categories
   =================================== */
.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.category-card {
    padding: 1.5rem 0.8rem;
}

.category-card i {
    font-size: 2rem;
}

.category-card span {
    font-size: 0.9rem;
}

/* ===================================
   Add/Edit Product Forms
   =================================== */
.add-product-section {
    padding: 3rem 0;
    background: var(--light);
}

.add-product-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.add-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.add-product-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.publication-limit {
    background: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.limit-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.limit-info i {
    color: var(--info);
    font-size: 1.2rem;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.terms-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.terms-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.terms-box li {
    margin-bottom: 0.5rem;
}

.terms-box a {
    color: var(--primary);
    font-weight: 600;
}

.review-intro {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--border);
    transition: all 0.3s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--warning);
}

.info-box {
    background: #dbeafe;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--info);
    display: flex;
    gap: 1rem;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--info);
}

.info-box ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-box a {
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   Plans Grid (Admin)
   =================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.plan-card.vip {
    border-color: #f093fb;
}

.plan-card.premium {
    border-color: #ffd89b;
}

.plan-header {
    background: var(--gradient-1);
    color: white;
    padding: 2rem;
    text-align: center;
}

.plan-card.vip .plan-header {
    background: var(--gradient-2);
}

.plan-card.premium .plan-header {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.plan-price .currency {
    font-size: 1.5rem;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: bold;
}

.plan-price .period {
    font-size: 1rem;
    opacity: 0.9;
}

.plan-body {
    padding: 2rem;
}

.plan-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features i {
    color: var(--success);
}

.plan-status {
    text-align: center;
}

.plan-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.plan-selector {
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ===================================
   Testimonials Admin
   =================================== */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-admin-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--warning);
}

.testimonial-admin-card.approved {
    border-left-color: var(--success);
}

.testimonial-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-info i {
    font-size: 2.5rem;
    color: var(--primary);
}

.user-info strong {
    display: block;
    margin-bottom: 0.2rem;
}

.user-info small {
    color: var(--gray);
    font-size: 0.85rem;
}

.testimonial-admin-body {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.testimonial-admin-body p {
    line-height: 1.6;
    color: var(--dark);
}

.testimonial-admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
}

.preview-box h4 {
    color: var(--dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.preview-box h4:first-child {
    margin-top: 0;
}

.preview-box p {
    color: var(--gray);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}
