/* Variables CSS para el tema oscuro */
:root {
    --brand-dark-bg: #111827;
    --brand-dark-card: #1F2937;
    --brand-dark-border: #374151;
    --brand-text-light: #F9FAFB;
    --brand-text-muted: #9CA3AF;
    --brand-text-dim: #6B7280;
    --brand-primary: #32B3D0;
    --brand-primary-hover: #2A9AB3;
    --border-radius: 0.5rem;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--brand-text-light);
    background-color: var(--brand-dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--brand-dark-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-text-light);
}

.logo-image {
    height: 2.5rem;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-image {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-text-light);
}

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

.search-container {
    position: relative;
    display: none;
}

.search-input {
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    color: var(--brand-text-light);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    width: 200px;
}

.search-input:focus {
    border-color: var(--brand-primary);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-text-dim);
    width: 1.25rem;
    height: 1.25rem;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--brand-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: color 0.2s;
    position: relative;
}

.icon-btn:hover {
    color: var(--brand-text-light);
}

.icon-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.cart-badge:empty {
    display: none;
}

/* Main Content */
.main {
    flex: 1;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    background-image: url('../images/slide.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: var(--header-height, 64px);
    box-sizing: border-box;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    transform: translateY(-60px);
}

.hero-text {
    max-width: 600px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(50, 179, 208, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(50, 179, 208, 0.4);
}

/* Ajuste para el contenido después del hero */
.container {
    padding: 1rem;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--brand-text-light);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--brand-text-light);
}

/* Home Page */
.welcome-section {
    margin-bottom: 3rem;
}

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

.agent-card {
    background-color: var(--brand-dark-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: scale(1.05);
}

.clickable-card {
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.agent-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.agent-card-content {
    padding: 1.25rem;
}

.agent-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 0.5rem;
}

.agent-card-description {
    color: var(--brand-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    height: 5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.agent-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.agent-category {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.agent-price {
    font-weight: 600;
    color: var(--brand-text-light);
    font-size: 0.875rem;
}

.agent-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

.agent-author {
    font-size: 0.75rem;
    color: var(--brand-text-dim);
    margin-top: 0.5rem;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.activity-item {
    background-color: var(--brand-dark-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.75rem;
}

.activity-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--brand-text-light);
    margin-bottom: 0.25rem;
}

.activity-user {
    font-weight: 600;
}

.activity-topic {
    font-weight: 600;
    color: var(--brand-primary);
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--brand-text-dim);
}

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

.data-item {
    background-color: var(--brand-dark-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.data-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.data-content {
    flex: 1;
}

.data-name {
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 0.25rem;
}

.data-details {
    font-size: 0.875rem;
    color: var(--brand-text-dim);
}

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

.actions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Marketplace Page */
.marketplace-layout {
    display: flex;
    gap: 2rem;
}

.filters-sidebar {
    width: 250px;
    background-color: var(--brand-dark-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--brand-dark-border);
}

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

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-text-muted);
    margin-bottom: 0.25rem;
}

.filter-select {
    width: 100%;
    background-color: var(--brand-dark-card);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    color: var(--brand-text-light);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:focus {
    border-color: var(--brand-primary);
}

.filter-apply-btn {
    width: 100%;
    margin-top: 1rem;
}

.marketplace-content {
    flex: 1;
}

.marketplace-agents {
    margin-top: 2rem;
}

.no-results {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--brand-text-muted);
}

/* Create Agent Page */
.create-agent-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--brand-dark-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Auth Page */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--brand-dark-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2A9AB3 100%);
    color: white;
}

.auth-logo {
    height: 3rem;
    max-width: 150px;
    object-fit: contain;
    /*margin-bottom: 1rem;*/
    filter: brightness(0) invert(1);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.auth-form {
    display: none;
    padding: 2rem;
}

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

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--brand-text-light);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-checkmark {
    width: 1.125rem;
    height: 1.125rem;
    background-color: var(--brand-dark-bg);
    border: 2px solid var(--brand-dark-border);
    border-radius: 0.25rem;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-checkmark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-checkmark::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.125rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password,
.terms-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.forgot-password:hover,
.terms-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

.auth-submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--brand-dark-border);
}

.auth-divider span {
    background-color: var(--brand-dark-card);
    color: var(--brand-text-muted);
    padding: 0 1rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-dark-border);
    background-color: var(--brand-dark-bg);
    color: var(--brand-text-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-social:hover {
    background-color: var(--brand-dark-border);
    border-color: var(--brand-text-muted);
}

.btn-google:hover {
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285F4;
}

.btn-github:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-text-light);
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--brand-text-muted);
    font-size: 0.875rem;
}

.auth-switch a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

.forgot-description {
    color: var(--brand-text-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Auth Messages */
.auth-message {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}

.auth-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Agent Detail Page */
.agent-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.agent-detail-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--brand-dark-border);
    color: var(--brand-text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.back-btn:hover {
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

.back-btn svg {
    width: 1rem;
    height: 1rem;
}

.agent-detail-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.agent-detail-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.agent-image-section {
    position: relative;
}

.agent-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.agent-badge-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-detail-badge {
    background-color: rgba(50, 179, 208, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.agent-detail-rating {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.agent-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.agent-detail-header-info {
    border-bottom: 1px solid var(--brand-dark-border);
    padding-bottom: 1.5rem;
}

.agent-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.agent-detail-author {
    color: var(--brand-text-muted);
    font-size: 1.125rem;
}

.agent-detail-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--brand-text-muted);
}

.agent-features {
    background-color: var(--brand-dark-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-dark-border);
}

.features-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-text-muted);
}

.features-list li::before {
    content: '✓';
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 1.125rem;
}

.agent-pricing {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2A9AB3 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    color: white;
}

.pricing-info {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-purchase {
    background-color: white;
    color: var(--brand-primary);
    border: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-purchase:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.btn-purchase svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-trial {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-trial:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-trial svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Tabs */
.agent-detail-tabs {
    background-color: var(--brand-dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--brand-dark-border);
}

.tabs-nav {
    display: flex;
    background-color: var(--brand-dark-bg);
    border-bottom: 1px solid var(--brand-dark-border);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--brand-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--brand-text-light);
    background-color: var(--brand-dark-card);
}

.tab-btn.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    background-color: var(--brand-dark-card);
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

.overview-content h3,
.features-content h3,
.reviews-content h3,
.support-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 1.5rem;
}

.overview-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin: 2rem 0 1rem 0;
}

.overview-content p {
    color: var(--brand-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.use-cases-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.use-cases-list li {
    color: var(--brand-text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.use-cases-list li::before {
    content: '•';
    color: var(--brand-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: var(--brand-dark-bg);
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid var(--brand-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--brand-dark-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-dark-border);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--brand-text-muted);
    line-height: 1.5;
}

/* Reviews */
.reviews-summary {
    background-color: var(--brand-dark-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.rating-stars {
    font-size: 1.5rem;
    color: #FCD34D;
}

.rating-count {
    color: var(--brand-text-muted);
}

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

.review-item {
    background-color: var(--brand-dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-dark-border);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-info h4 {
    color: var(--brand-text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-rating {
    color: #FCD34D;
    font-size: 0.875rem;
}

.review-date {
    color: var(--brand-text-dim);
    font-size: 0.875rem;
}

.review-text {
    color: var(--brand-text-muted);
    line-height: 1.5;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-item {
    background-color: var(--brand-dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-dark-border);
}

.support-item h4 {
    color: var(--brand-text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.support-item p {
    color: var(--brand-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.support-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

/* Purchase Modal */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.purchase-modal-content {
    background-color: var(--brand-dark-card);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--brand-dark-border);
}

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

.purchase-modal-header h3 {
    color: var(--brand-text-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--brand-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--brand-text-light);
}

.purchase-modal-body {
    padding: 1.5rem;
}

.purchase-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.purchase-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.purchase-item-info {
    flex: 1;
}

.purchase-item-info h4 {
    color: var(--brand-text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.purchase-item-info p {
    color: var(--brand-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.purchase-price {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.purchase-summary {
    border-top: 1px solid var(--brand-dark-border);
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--brand-text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--brand-dark-border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: var(--brand-text-light);
    font-size: 1.125rem;
}

.purchase-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--brand-dark-border);
}

.purchase-modal-actions .btn {
    flex: 1;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.success-modal h3 {
    color: var(--brand-text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-modal p {
    color: var(--brand-text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Terms and Conditions Page */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.terms-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid var(--brand-dark-border);
    padding-bottom: 2rem;
}

.terms-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-text-light);
    margin-bottom: 0.5rem;
}

.terms-subtitle {
    color: var(--brand-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.terms-content {
    line-height: 1.7;
}

.terms-section {
    margin-bottom: 2.5rem;
    background-color: var(--brand-dark-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--brand-dark-border);
}

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary);
}

.terms-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.terms-section p {
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
    text-align: justify;
}

.terms-section ul {
    color: var(--brand-text-muted);
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    position: relative;
}

.terms-section li::marker {
    color: var(--brand-primary);
}

.subsection {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--brand-primary);
    background-color: rgba(50, 179, 208, 0.05);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.terms-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

.contact-info {
    background-color: var(--brand-dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border: 1px solid var(--brand-dark-border);
}

.contact-item {
    color: var(--brand-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: var(--brand-text-light);
    min-width: 80px;
}

.terms-footer {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2A9AB3 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 3rem;
}

.terms-footer .last-updated {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.terms-footer .acknowledgment {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
}

.agent-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-text-muted);
    margin-bottom: 0.25rem;
}

.form-input,
.form-textarea {
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--brand-text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--brand-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    white-space: pre-wrap;
}

.error-message {
    background-color: rgba(185, 28, 28, 0.5);
    border: 1px solid #b91c1c;
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--brand-dark-border);
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-box {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
}

.info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-text-light);
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    outline: none;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-primary-hover);
}

.btn-secondary {
    background-color: var(--brand-dark-border);
    color: var(--brand-text-light);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #4B5563;
}

.btn-full-width {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--brand-dark-card);
    border-top: 1px solid var(--brand-dark-border);
    padding: 1.5rem 0;
    color: var(--brand-text-muted);
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .search-container {
        display: none !important;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
    }

    .actions-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Hero responsive */
    .hero-slider {
        height: 100vh;
        background-attachment: scroll;
        padding-top: var(--header-height, 64px);
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .btn-hero {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Auth responsive */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        margin: 0;
    }

    .auth-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

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

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    /* Agent Detail responsive */
    .agent-detail-container {
        padding: 1rem;
    }

    .agent-detail-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .agent-detail-title {
        font-size: 2rem;
    }

    .pricing-actions {
        flex-direction: column;
    }

    .btn-purchase,
    .btn-trial {
        width: 100%;
        justify-content: center;
    }

    .tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
    }

    .features-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* Terms responsive */
    .terms-container {
        padding: 1rem;
    }

    .terms-title {
        font-size: 2rem;
    }

    .terms-section {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.25rem;
    }

    .subsection {
        padding: 1rem;
        margin: 1rem 0;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .contact-item strong {
        min-width: auto;
    }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .search-container {
        display: block;
    }
}

@media (min-width: 1024px) {
    .agents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utilidades */
.bg-dark {
    background-color: var(--brand-dark-bg);
}

.text-light {
    color: var(--brand-text-light);
}

.hidden {
    display: none;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

/* Cart Page Styles */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.cart-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand-text-primary);
    margin: 0;
}

.cart-steps {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-text-muted);
    position: relative;
}

.step.active {
    color: var(--brand-primary);
}

.step.completed {
    color: var(--brand-success);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--brand-dark-border);
    color: var(--brand-text-muted);
    font-weight: bold;
    font-size: 0.875rem;
}

.step.active .step-number {
    background-color: var(--brand-primary);
    color: white;
}

.step.completed .step-number {
    background-color: var(--brand-success);
    color: white;
}

.step-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.cart-section {
    background-color: var(--brand-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--brand-border);
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--brand-dark-bg);
    border-radius: 8px;
    border: 1px solid var(--brand-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--brand-text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-author {
    color: var(--brand-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 1.125rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-dark-card);
    border-radius: 6px;
    border: 1px solid var(--brand-border);
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--brand-text-primary);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--brand-border);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    color: var(--brand-text-primary);
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--brand-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.remove-item-btn:hover {
    color: #ef4444;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--brand-text-muted);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: var(--brand-text-primary);
    margin-bottom: 0.5rem;
}

.cart-summary-section {
    position: sticky;
    top: 2rem;
}

.cart-summary {
    background-color: var(--brand-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--brand-border);
}

.cart-summary h3 {
    color: var(--brand-text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--brand-text-secondary);
}

.summary-line.total {
    color: var(--brand-text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.discount {
    color: var(--brand-success);
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--brand-border);
    margin: 1rem 0;
}

.promo-section {
    margin-bottom: 1.5rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    color: var(--brand-text-primary);
    font-size: 0.875rem;
}

.promo-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.btn-place-order {
    width: 100%;
    margin-bottom: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-place-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-place-order .btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-place-order .btn-text {
    transition: opacity 0.3s ease;
}

.btn-place-order:disabled .btn-text {
    opacity: 0;
}

.btn-place-order:disabled .btn-loading {
    display: flex;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Alert messages for checkout */
.alert-message {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-message.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-message.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #16a34a;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-text-muted);
    font-size: 0.875rem;
}

.security-icon {
    width: 1rem;
    height: 1rem;
    color: var(--brand-success);
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.checkout-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand-text-primary);
    margin: 0;
}

.checkout-content {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 2rem !important;
    align-items: start !important;
    min-height: 600px; /* Asegurar altura mínima */
}

.checkout-form-section {
    background-color: var(--brand-dark-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--brand-border);
    min-height: 500px; /* Altura mínima para el formulario */
    grid-column: 1; /* Forzar primera columna */
}

.order-summary-section {
    position: sticky;
    top: 2rem;
    grid-column: 2; /* Forzar segunda columna */
}

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

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    color: var(--brand-text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--brand-border);
}

.form-select {
    padding: 0.75rem;
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    color: var(--brand-text-primary);
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.payment-method:has(input:checked) {
    border-color: var(--brand-primary);
    background-color: rgba(50, 179, 208, 0.1);
}

.payment-label {
    display: block;
    padding: 1rem;
    cursor: pointer;
    color: var(--brand-text-primary);
    position: relative;
}

.payment-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-name {
    font-weight: 500;
}

.payment-desc {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.card-icon {
    padding: 0.25rem 0.5rem;
    background-color: var(--brand-dark-bg);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--brand-text-muted);
}

.card-icon.visa {
    color: #1A1F71;
    background-color: #ffffff;
}

.card-icon.mastercard {
    color: #ffffff;
    background-color: #EB001B;
}

.card-icon.amex {
    color: #ffffff;
    background-color: #2E77BB;
}

.card-details {
    padding: 1rem;
    background-color: var(--brand-dark-bg);
    border-radius: 8px;
    border: 1px solid var(--brand-border);
    transition: all 0.3s ease;
}

.order-summary {
    background-color: var(--brand-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--brand-border);
}

.order-summary h3 {
    color: var(--brand-text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--brand-border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-weight: 500;
    color: var(--brand-text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.order-item-author {
    color: var(--brand-text-muted);
    font-size: 0.75rem;
}

.order-item-price {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.order-totals {
    margin-bottom: 1.5rem;
}

.btn-place-order {
    width: 100%;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-text-muted);
    font-size: 0.875rem;
}

/* Cart and Checkout Responsive Design */
@media (max-width: 768px) {
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-summary-section,
    .order-summary-section {
        position: static;
        order: -1;
    }

    .cart-header,
    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-steps {
        align-self: stretch;
        justify-content: space-between;
    }

    .step-label {
        display: none;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cart-item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .promo-input-group {
        flex-direction: column;
    }

    .payment-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    color: var(--brand-text-light); /* Color blanco para el texto */
}

.user-info span {
    color: var(--brand-text-light); /* Asegurar que el span tenga color blanco */
}

/* Estilos para el menú desplegable del usuario */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--brand-text-light); /* Color blanco para el texto del botón */
}

.user-menu-trigger:hover .user-info {
    opacity: 0.8;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    transition: transform 0.2s ease;
    color: var(--brand-text-muted);
}

.user-menu-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--brand-dark-card);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
    display: none; /* Ocultar por defecto */
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block; /* Mostrar cuando está activo */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--brand-text-light);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: var(--brand-dark-border);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-text-muted);
}

.dropdown-item:hover svg {
    color: var(--brand-text-light);
}

.dropdown-item-form {
    width: 100%;
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.logout-btn svg {
    color: #ef4444;
}

.logout-btn:hover svg {
    color: #dc2626;
}

/* Separador entre elementos del menú */
.dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--brand-dark-border);
}

/* Estilos para el campo de tags */
.tags-input-container {
    width: 100%;
}

.tags-input {
    background-color: var(--brand-dark-bg);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    min-height: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease;
}

.tags-input:focus-within {
    border-color: var(--brand-primary);
    outline: none;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--brand-primary);
    color: var(--brand-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: tagAppear 0.2s ease;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--brand-text-light);
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tag-remove:hover {
    opacity: 1;
}

.tags-field {
    background: none;
    border: none;
    outline: none;
    color: var(--brand-text-light);
    font-size: 0.875rem;
    flex: 1;
    min-width: 120px;
    padding: 0.25rem;
}

.tags-field::placeholder {
    color: var(--brand-text-dim);
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive para tags */
@media (max-width: 768px) {
    .tags-input {
        padding: 0.375rem;
        min-height: 2.25rem;
    }

    .tag {
        font-size: 0.8125rem;
        padding: 0.1875rem 0.4375rem;
    }

    .tags-field {
        font-size: 0.8125rem;
        min-width: 100px;
    }
}

/* Estilos para errores de validación */
.validation-errors {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #ef4444;
    flex-shrink: 0;
}

.error-header h3 {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
    line-height: 1.4;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-bullet {
    width: 1rem;
    height: 1rem;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para errores de validación */
@media (max-width: 768px) {
    .validation-errors {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .error-header h3 {
        font-size: 0.8125rem;
    }

    .error-item {
        font-size: 0.8125rem;
    }
}

/* Estilos específicos para la página de perfil */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-section {
    background: var(--brand-dark-card);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section .section-title {
    color: var(--brand-text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section .section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #10b981;
}

.success-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Estilos para mensajes de alerta */
.alert-message {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-message.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-message.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-message.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-message.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Estilos para errores de validación específicos de formulario */
.form-validation-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-validation-errors .error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-validation-errors .error-header h3 {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.form-validation-errors .error-icon {
    width: 18px;
    height: 18px;
    color: #ef4444;
    flex-shrink: 0;
}

.form-validation-errors .error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-validation-errors .error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-validation-errors .error-item:last-child {
    margin-bottom: 0;
}

.form-validation-errors .error-bullet {
    width: 16px;
    height: 16px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--brand-text-muted);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--brand-text-light);
}

.password-icon {
    width: 20px;
    height: 20px;
}

/* Responsive para perfil */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem 0;
    }

    .profile-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-section .section-title {
        font-size: 1.125rem;
    }
}

/* ===== PAYMENT SUCCESS STYLES ===== */
.payment-success-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.success-content {
    background: var(--brand-dark-card);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--brand-dark-border);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--brand-text-primary);
    margin-bottom: 1rem;
}

.success-description {
    font-size: 1.1rem;
    color: var(--brand-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-details {
    background: var(--brand-dark-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--brand-dark-border);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--brand-dark-border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--brand-text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--brand-text-primary);
    font-family: 'Courier New', monospace;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-width: 160px;
    justify-content: center;
}

.action-buttons .btn svg {
    width: 20px;
    height: 20px;
}

.additional-info {
    text-align: left;
}

.info-card {
    background: var(--brand-dark-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--brand-dark-border);
}

.info-card h3 {
    color: var(--brand-text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--brand-text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .success-content {
        padding: 2rem 1.5rem;
    }

    .success-title {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Estilos para la página de agentes */
.agent-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.agent-price {
    font-weight: bold;
    color: #10b981;
    font-size: 14px;
}

.agent-price:contains("Gratis") {
    color: #059669;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Estilos para el formulario de filtros */
.filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.filter-clear-btn {
    text-decoration: none;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-clear-btn:hover {
    text-decoration: none;
}




.whatsapp-float {
	position: fixed;
	bottom: 20px; /* distancia desde abajo */
	right: 20px;  /* distancia desde la derecha */
	background-color: #25d366;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
	transform: scale(1.1);
}

.whatsapp-float img {
	width: 30px;
	height: 30px;
	filter: brightness(0) invert(1);
}
