/* Info/Legal Modal Styles */
#info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

#info-modal .info-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    background: var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#info-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

#info-modal-title {
    margin: 0;
    font-size: var(--font-size-modal-title);
    font-family: var(--font-family-modal-title);
    font-weight: var(--font-weight-modal-title);
    text-transform: var(--modal-title-transform);
    color: var(--text-main);
    letter-spacing: var(--smart-spacing);
    text-align: left;
}

/* --- Estilos para Contenido Legal (Términos y Privacidad) --- */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-content section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content h2,
.legal-content h3 {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 0;
}

.legal-content h2 {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    margin-top: 10px;
}

.legal-content h3 {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    margin-top: 5px;
}

.legal-content p,
.legal-content li,
.feature-item {
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}

.legal-content strong,
.feature-item strong {
    font-weight: 500;
    color: var(--text-main);
}

.legal-content ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#info-modal-body {
    padding: 24px 20px;
    overflow-y: auto;
    font-family: var(--font-primary);
    color: var(--text-body);
    line-height: 1.6;
    flex-grow: 1;
}

#info-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.footer-update-text {
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-update-date {
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    font-family: var(--font-primary);
    color: var(--main-purple);
    font-weight: 500;
}

/* Legal Content styling */

.legal-content h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 8px;
    color: var(--main-purple);
}

.legal-content h2 {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: var(--smart-spacing);
    font-weight: 500;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.legal-content p,
.legal-content li,
.feature-item {
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    line-height: 1.7;
    color: var(--text-body);
}

.feature-item {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-main);
    border-radius: 4px;
    border-left: 3px solid var(--main-purple);
}

.feature-item strong {
    display: block;
    color: var(--main-purple);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.feature-item em {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-style: italic;
}

.legal-content ul {
    margin-top: 10px;
    list-style-type: none;
    padding: 0;
}

.legal-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-content li::before {
    content: "•";
    color: var(--main-purple);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-content section {
    margin-bottom: 24px;
}

#info-modal-body::-webkit-scrollbar {
    width: 6px;
}

#info-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#info-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

#info-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Dark mode adjustments */

.dark-mode #info-modal .info-modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.dark-mode #info-modal .modal-footer {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Changelog Specific Styles */
.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-entry {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.changelog-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.changelog-date {
    font-family: var(--font-primary);
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    color: var(--text-muted);
    font-weight: 500;
}

.changelog-status.status-solved {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--status-success);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: clamp(0.55rem, 2vw, 0.65rem);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(16, 185, 129, 0.15);
}


.status-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
}

.changelog-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 4px;
    background: var(--bg-main);
    border-left: 3px solid transparent;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-item.type-bug {
    border-left-color: var(--status-alert);
}

.changelog-item.type-alert {
    border-left-color: var(--status-warning);
}

.changelog-item.type-improvement {
    border-left-color: var(--status-success);
}

.changelog-item.type-info {
    border-left-color: var(--text-muted);
}

.item-tag {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 50px;
    text-align: center;
}

.type-bug .item-tag {
    background: rgba(243, 58, 106, 0.1);
    color: var(--status-alert);
}

.type-alert .item-tag {
    background: rgba(255, 220, 88, 0.2);
    color: #B59300;
}

/* Un poco más oscuro para lectura */
.type-improvement .item-tag {
    background: rgba(10, 185, 129, 0.1);
    color: var(--status-success);
}

.type-info .item-tag {
    background: var(--border-color);
    color: var(--text-muted);
}

.dark-mode .type-alert .item-tag {
    color: var(--status-warning);
}

.item-description {
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    line-height: 1.6;
    color: var(--text-body);
}

.item-description strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 2px;
}