/* ===== COMPONENT STYLES ===== */

/* ===== CARDS ===== */

.card {
    background-color: var(--bg-primary, #ffffff);
    border-radius: var(--radius-xl, 18px);
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium, #cbd5e1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    background-color: var(--bg-secondary, #f9fafb);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light, #e5e7eb);
    background-color: var(--bg-secondary, #f9fafb);
}

/* ===== BADGES ===== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.badge-secondary {
    background-color: var(--color-secondary, #C8A882);
    color: white;
}

/* ===== TOOLTIPS ===== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-dark-secondary, #3D2E1F);
    color: white;
    text-align: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-dark-secondary, #3D2E1F) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== MODALS ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2C2416);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary, #6B5744);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background-color: var(--bg-tertiary, #E8DFD6);
    color: var(--text-primary, #2C2416);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ===== TABS ===== */

.tabs {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabs-item {
    margin-right: 0.5rem;
}

.tabs-button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--color-gray-600, #6B5744);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    font-weight: 500;
}

.tabs-button:hover {
    color: var(--text-primary, #2C2416);
}

.tabs-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tabs-content {
    display: none;
}

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

/* ===== ACCORDIONS ===== */

.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-title {
    font-weight: 500;
    color: var(--text-primary, #2C2416);
    margin: 0;
}

.accordion-icon {
    transition: transform 0.15s ease;
    color: var(--color-gray-600, #6B5744);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.accordion-body {
    color: var(--color-gray-600, #6B5744);
    line-height: 1.6;
}

/* ===== FORMS ===== */

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--color-gray-700, #4D3F2F);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium, var(--color-gray-300, #D4C4B0));
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    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;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    color: var(--color-gray-600, #6B5744);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== ALERTS ===== */

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ===== LOADING STATES ===== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--color-primary, #FF6B35);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--color-primary, #FF6B35);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== PROGRESS BARS ===== */

.progress {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.progress-bar-success {
    background-color: #10b981;
}

.progress-bar-warning {
    background-color: #f59e0b;
}

.progress-bar-danger {
    background-color: #ef4444;
}

/* ===== PAGINATION ===== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-item {
    list-style: none;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-gray-300, #D4C4B0);
    border-radius: 0.375rem;
    color: var(--color-gray-600, #6B5744);
    text-decoration: none;
    transition: all 0.15s ease;
}

.pagination-link:hover {
    background-color: var(--bg-tertiary, #E8DFD6);
    color: var(--text-primary, #2C2416);
    text-decoration: none;
}

.pagination-link.active {
    background-color: var(--color-primary, #FF6B35);
    color: white;
    border-color: var(--color-primary, #FF6B35);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== BREADCRUMBS ===== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--color-gray-600, #6B5744);
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: ">";
    color: var(--color-gray-300, #D4C4B0);
}

.breadcrumbs-link {
    color: var(--color-gray-600, #6B5744);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs-link:hover {
    color: var(--text-primary, #2C2416);
    text-decoration: none;
}

.breadcrumbs-current {
    color: var(--text-primary, #2C2416);
    font-weight: 500;
}

/* ===== DROPDOWNS ===== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: 1px solid var(--color-gray-300, #D4C4B0);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.dropdown-toggle:hover {
    background-color: #f9fafb;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.15s ease;
    z-index: 1000;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-gray-700, #4D3F2F);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

/* ===== TOGGLE SWITCHES ===== */

.toggle {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-gray-300, #D4C4B0);
    transition: 0.3s;
    border-radius: 1.5rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.125rem;
    width: 1.125rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(1.5rem);
}

.toggle input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ===== COPY BUTTON ===== */

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-tertiary, #E8DFD6);
    border: 1px solid var(--color-gray-300, #D4C4B0);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-gray-700, #4D3F2F);
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-button:hover {
    background-color: #e5e7eb;
    color: var(--text-primary, #2C2416);
}

.copy-button.copied {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

/* ===== EMPTY STATES ===== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-gray-600, #6B5744);
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--color-gray-300, #D4C4B0);
}

.empty-state h3 {
    color: var(--color-gray-700, #4D3F2F);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ===== PLUGIN CARDS ===== */

.plugin-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

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

.plugin-card.featured {
    border: 2px solid var(--color-primary);
}

.plugin-card.popular {
    border-color: var(--color-primary);
}

.plugin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.plugin-badge:contains("Más Popular") {
    background-color: #10b981;
}

.plugin-badge--free {
    background-color: #10b981;
}

.plugin-price--free {
    color: #10b981;
}

.plugin-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: white;
}

.plugin-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #2C2416);
    text-align: center;
}

.plugin-card p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.plugin-features {
    margin-bottom: 2rem;
}

.plugin-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plugin-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--color-gray-700, #4D3F2F);
    font-size: 0.875rem;
}

.plugin-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
}

.plugin-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #2C2416);
    text-align: center;
    margin-bottom: 1.5rem;
}

.plugin-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 2rem;
}

.plugin-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ===== BUNDLE SECTION ===== */

.bundle-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.bundle-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bundle-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.bundle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.bundle-header {
    margin-bottom: 2rem;
}

.bundle-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-primary, #FF6B35);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.bundle-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #2C2416);
}

.bundle-header p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0;
}

.bundle-features {
    margin-bottom: 2rem;
}

.bundle-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.bundle-features li {
    padding: 0.5rem 0;
    color: var(--color-gray-700, #4D3F2F);
    font-weight: 500;
}

.bundle-pricing {
    margin-bottom: 2rem;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #2C2416);
}

.price-original {
    font-size: 1.25rem;
    color: var(--color-gray-400, #A89174);
    text-decoration: line-through;
}

.price-discount {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.bundle-period {
    color: var(--color-gray-600, #6B5744);
    font-size: 0.875rem;
}

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

/* ===== AI INTEGRATION STYLES ===== */

.ai-integration {
    padding: 4rem 0;
    background-color: white;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ai-content {
        grid-template-columns: 1fr 1fr;
    }
}

.ai-features-list {
    margin-top: 2rem;
}

.ai-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.ai-feature-icon {
    width: 2rem;
    height: 2rem;
    background-color: #10b981;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.ai-feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #2C2416);
}

.ai-feature-content p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ===== PLUGIN SYSTEM STYLES ===== */

.plugin-system {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.plugin-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .plugin-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.plugin-feature {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
}

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

.plugin-feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary, #FF6B35);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.plugin-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #2C2416);
}

.plugin-feature p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0;
}

/* ===== USE CASES STYLES ===== */

.use-cases {
    padding: 4rem 0;
    background-color: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.use-case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.use-case-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary, #FF6B35);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #2C2416);
}

.use-case-card p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 1rem;
}

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

.use-case-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--color-gray-700, #4D3F2F);
    font-size: 0.875rem;
}

.use-case-card li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== PRODUCT CTA STYLES ===== */

.product-cta {
    padding: 4rem 0;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.product-cta .cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-cta .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

.product-cta .btn-primary:hover {
    background-color: var(--bg-tertiary, #E8DFD6);
    color: var(--color-primary, #FF6B35);
}

.product-cta .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.product-cta .btn-outline:hover {
    background-color: white;
    color: var(--color-primary, #FF6B35);
}

/* ===== DOWNLOAD BUTTON STYLES ===== */

.btn-download {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-download:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-download svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== DOWNLOAD PAGE STYLES ===== */

.hero-download {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #FF6B35 0%, #C8A882 100%);
    color: white;
}

.hero-download .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-download .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.download-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    color: var(--bg-dark-secondary, #3D2E1F);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bg-dark-secondary, #3D2E1F);
}

.download-card p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 1.5rem;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-size, .file-format {
    background: var(--bg-tertiary, #E8DFD6);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700, #4D3F2F);
}

.download-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.download-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Opciones de descarga por sistema operativo (descargar.html) */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.download-options .download-btn {
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1.5rem;
    text-align: left;
    width: 100%;
}

.download-options .download-btn svg {
    flex-shrink: 0;
}

.download-option-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
}

.download-option-text small {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.85;
}

.download-btn.btn-outline {
    background: transparent;
    color: var(--text-primary, #2c2419);
    border: 1px solid var(--border-dark, #b8aea3);
    box-shadow: none;
}

.download-btn.btn-outline:hover {
    color: var(--text-primary, #2c2419);
    background: var(--bg-tertiary, #f5f3f0);
    box-shadow: none;
}

.download-cta .download-actions {
    flex-wrap: wrap;
}

.download-cta .download-info {
    display: block;
    max-width: 46rem;
    margin: 0 auto;
}

.download-cta .download-info code {
    font-size: 0.85em;
    overflow-wrap: anywhere;
}

.download-cta .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.download-cta .btn-outline:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.download-checksums {
    margin-top: 1rem;
    text-align: left;
}

.download-checksums summary {
    cursor: pointer;
    text-align: center;
}

.download-cta {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.download-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.download-info {
    font-size: 0.875rem;
    color: #ffffff;
}

.download-info p {
    margin: 0.5rem 0;
}

.download-info a {
    color: #ffffff;
    text-decoration: underline;
}

.download-info a:hover {
    opacity: 0.85;
}

.faq {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bg-dark-secondary, #3D2E1F);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question svg {
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-gray-600, #6B5744);
    line-height: 1.6;
}

/* ===== PLUGINS CTA STYLES ===== */

.plugins-cta {
    padding: 4rem 0;
    background-color: #f9fafb;
    text-align: center;
}

.plugins-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #2C2416);
}

.plugins-cta .cta-content p {
    font-size: 1.25rem;
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 2.5rem;
}

/* ===== AUTH PAGES ===== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 4.75rem;
    background-color: var(--bg-secondary, #faf9f7);
}

/* Fuera del flujo siempre: si el canvas ocupa altura en el documento, empuja todo el login hacia abajo */
.auth-page > #particles-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    z-index: 0;
    pointer-events: none;
}

body.auth-page .navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-page .footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Sin flex-grow: si crece a toda la altura, un justify-content:center heredado o el canvas residual deja el bloque “abajo” */
.auth-section {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.5rem 0 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 0;
}

.auth-section .container {
    width: 100%;
    max-width: 1100px;
}

.auth-page-intro {
    margin-bottom: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .auth-page-intro {
        text-align: left;
        margin-bottom: 1.5rem;
    }
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary, #2c2419);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.auth-back-home:hover {
    color: var(--color-primary, #5c4a3d);
    text-decoration: none;
}

.auth-back-home .nav-brand-icon,
.auth-back-home .nav-brand-logo {
    margin-right: 0;
}

.auth-page-tagline {
    color: var(--text-secondary, #5c4a3d);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 32rem;
}

@media (min-width: 768px) {
    .auth-page-tagline {
        margin: 0;
        max-width: 36rem;
    }
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 900px) {
    .auth-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
}

.auth-card {
    background-color: var(--bg-primary, #ffffff);
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--border-light, #e8e4df);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.35rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .auth-card {
        margin: 0;
        max-width: none;
        padding: 2rem 2.25rem;
    }
}

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

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary, #2c2419);
}

@media (min-width: 768px) {
    .auth-header h1 {
        font-size: 1.625rem;
    }
}

.auth-header p {
    color: var(--text-tertiary, #7a6b5e);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-form .btn-large {
    width: 100%;
}

.auth-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: var(--color-primary, #5c4a3d);
    font-size: 0.875rem;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-info {
    display: block;
    padding: 1.25rem 1.35rem;
    background-color: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-light, #e8e4df);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
    .auth-info {
        padding: 1.75rem 2rem;
    }
}

.auth-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #2c2419);
}

@media (min-width: 900px) {
    .auth-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 900px) {
    .info-features {
        gap: 1.35rem;
    }
}

.info-feature {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse, #ffffff);
    flex-shrink: 0;
}

.info-feature h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary, #2c2419);
}

.info-feature p {
    color: var(--text-tertiary, #7a6b5e);
    margin-bottom: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

@media (min-width: 900px) {
    .info-feature h3 {
        font-size: 1rem;
    }

    .info-feature p {
        font-size: 0.875rem;
    }
}

/* ===== DASHBOARD PAGES ===== */

.dashboard-page {
    min-height: 100vh;
}

.dashboard-main {
    /* La navbar es position: fixed (~64-74px); dejar hueco para que no tape el título */
    padding: calc(var(--navbar-offset, 5rem) + 1.5rem) 0 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #2C2416);
}

.dashboard-header p {
    color: var(--color-gray-600, #6B5744);
    font-size: 1.125rem;
}

.dashboard-tabs {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.dashboard-tab {
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.dashboard-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dashboard-tab[aria-selected="true"] {
    background: var(--color-primary);
    color: var(--text-inverse);
    border-color: var(--color-primary);
}

.dashboard-tab:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.dashboard-panel[hidden] {
    display: none !important;
}

.dashboard-card--dev {
    max-width: 42rem;
    margin: 0 auto;
}

.dev-profile-fieldset {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.dev-profile-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dev-profile-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.dev-profile-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.dev-profile-hint {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin: var(--space-4) 0;
}

.dev-profile-status {
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    min-height: 1.25rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.dashboard-card {
    background-color: var(--bg-primary, #ffffff);
    border-radius: var(--radius-xl, 1.25rem);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dashboard-card--wide {
    grid-column: 1 / -1;
}

/* Full Pack (producto principal del dashboard) */
.fullpack-card {
    border: 2px solid var(--color-primary, #5c4a3d);
    background: var(--gradient-hero);
}

.fullpack-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.fullpack-info {
    flex: 1 1 22rem;
}

.fullpack-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--color-primary, #5c4a3d);
    color: var(--text-inverse, #ffffff);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.fullpack-info h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary, #2c2419);
}

.fullpack-info p {
    margin: 0;
    color: var(--text-secondary, #5c4a3d);
}

.fullpack-buy {
    flex: 0 1 auto;
    text-align: center;
}

/* .badge/.btn fijan display y anularían el atributo hidden */
.fullpack-buy [hidden] {
    display: none !important;
}

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

.fullpack-price-old {
    font-size: 1.1rem;
    color: var(--text-tertiary, #7a6b5e);
    text-decoration: line-through;
}

.fullpack-price-now {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary, #2c2419);
    line-height: 1;
}

.fullpack-price-period {
    color: var(--text-secondary, #5c4a3d);
}

.fullpack-saving {
    font-size: 0.85rem;
    color: var(--text-tertiary, #7a6b5e);
    margin: 0.35rem 0 0.9rem;
}

@media (max-width: 600px) {
    .fullpack-buy {
        width: 100%;
    }

    .fullpack-buy .btn {
        width: 100%;
    }
}

.dashboard-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.dashboard-card .card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #2C2416);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Profile Section */
.profile-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary, #FF6B35);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.profile-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #2C2416);
}

.profile-details p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.profile-joined {
    color: var(--color-gray-400, #A89174);
    font-size: 0.75rem;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
}

/* Subscriptions Section */
.subscriptions-list {
    margin-bottom: 1.5rem;
}

.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.subscription-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #2C2416);
}

.subscription-info p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Billing Section */
.billing-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.billing-method h4,
.billing-history h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #2C2416);
}

.billing-method p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.invoices-list {
    margin-bottom: 1rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.invoice-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invoice-date {
    color: var(--color-gray-600, #6B5744);
    font-size: 0.75rem;
}

.invoice-description {
    color: var(--text-primary, #2C2416);
    font-size: 0.875rem;
}

.invoice-amount {
    font-weight: 600;
    color: var(--text-primary, #2C2416);
}

/* Plugins Management */
.plugins-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plugin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.plugin-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #2C2416);
}

.plugin-info p {
    color: var(--color-gray-600, #6B5744);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.plugin-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Navigation User */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user span {
    color: var(--color-gray-600, #6B5744);
    font-weight: 500;
}

/* ===== LEGAL PAGES ===== */

.legal-main {
    padding: calc(var(--navbar-offset, 5rem) + 1.5rem) 0 4rem;
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.legal-header {
    padding: 2rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #2C2416);
}

.legal-meta {
    color: var(--color-gray-600, #6B5744);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.legal-body {
    padding: 2rem;
}

.legal-body section {
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #2C2416);
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.legal-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--color-gray-700, #4D3F2F);
}

.legal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700, #4D3F2F);
}

.legal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--color-gray-700, #4D3F2F);
}

.legal-body a {
    color: var(--color-primary, #FF6B35);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 639px) {
    .sm\:hidden {
        display: none;
    }
    
    .sm\:block {
        display: block;
    }
    
    .sm\:flex {
        display: flex;
    }
}

@media (min-width: 640px) {
    .sm\:grid {
        display: grid;
    }
    
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .lg\:flex {
        display: flex;
    }
}

/* Instrucciones de instalación y sumas SHA-256 (sección de descarga) */
.install-info {
    max-width: 46rem;
    margin: 1.25rem auto 0;
    font-size: 0.875rem;
    text-align: left;
}

.install-info p {
    margin: 0.5rem 0;
}

.install-info code {
    font-size: 0.85em;
    overflow-wrap: anywhere;
}
