/* Estilos para la vista de Términos y Condiciones */

.tos-container {
    max-width: 100%;
    margin: 0 auto;
}

.tos-header {
    margin-bottom: 2em;
    text-align: center;
}

.tos-header h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #333;
}

.tos-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1em;
}

.tos-content-wrapper {
    position: relative;
    margin-bottom: 2em;
}

.tos-content {
    max-width: 100%;
    overflow-x: auto;
    padding: 1.5em;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1em;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 1em;
}

.tos-content::-webkit-scrollbar {
    width: 8px;
}

.tos-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tos-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tos-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.reading-progress {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 1em;
    overflow: hidden;
}

.reading-progress .progress-bar {
    height: 100%;
    background-color: #f5245f;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.tos-summary {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.tos-summary h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

.tos-summary ul {
    margin-bottom: 0;
    padding-left: 1.5em;
}

.tos-summary li {
    margin-bottom: 0.5em;
    color: #333;
}

.tos-links {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #ffffff;
    border: 1px solid #000000;
    border-left: 4px solid #f5245f;
    border-radius: 4px;
}

.tos-links p {
    margin: 0;
    color: #333;
}

.tos-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.tos-links a:hover {
    text-decoration: underline;
    color: #f5245f;
}

.tos-footer {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 2px solid #eee;
}

.accept-section {
    margin-bottom: 1.5em;
}

.tos-event-section {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 2px solid #eee;
}

.tos-pukiebook-section {
    margin-bottom: 2em;
}

.tos-section-title {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.tos-section-title i {
    margin-right: 0.5em;
    color: #f5245f;
}

.accept-section-event {
    margin-top: 2em;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #f5245f;
}

.accept-section-pukiebook {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #f5245f;
}

.accept-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
}

.accept-checkbox input[type="checkbox"] {
    margin-right: 0.75em;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.accept-checkbox input[type="checkbox"]:checked {
    accent-color: #f5245f;
}

.accept-checkbox span {
    user-select: none;
}

.btn-accept {
    background: #f5245f;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    min-width: 150px;
}

.btn-accept:hover:not(:disabled) {
    background: #d41e4f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-accept:not(:disabled) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(245, 36, 95, 0.2);
    }
    50% {
        box-shadow: 0 2px 4px rgba(245, 36, 95, 0.5);
    }
    100% {
        box-shadow: 0 2px 4px rgba(245, 36, 95, 0.2);
    }
}

.alert-tos {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.alert-tos.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-tos.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-tos i {
    margin-right: 0.75em;
    font-size: 1.2em;
}

.scroll-indicator {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 0.5em;
    font-style: italic;
}

.scroll-indicator.scrolled {
    color: #f5245f;
}

/* Responsive */
@media (max-width: 768px) {
    .tos-content {
        max-height: 400px;
        padding: 1em;
        font-size: 0.9em;
    }
    
    .tos-header h2 {
        font-size: 1.5em;
    }
    
    .btn-accept {
        width: 100%;
        margin-top: 1em;
    }
    
    .accept-checkbox {
        font-size: 1em;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.check-animation {
    animation: checkMark 0.5s ease;
}

@keyframes checkMark {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Modo Oscuro - Usando azul oscuro de PukieBook (#1c1f2f) */
body.dark-mode .tos-container,
.dark-mode .tos-container {
    background-color: #1c1f2f;
    color: #ffffff;
}

body.dark-mode .tos-header h2,
.dark-mode .tos-header h2 {
    color: #ffffff;
}

body.dark-mode .tos-subtitle,
.dark-mode .tos-subtitle {
    color: #cccccc;
}

body.dark-mode .tos-content,
.dark-mode .tos-content {
    background: #2e334f;
    border: 1px solid #4a4d58;
    color: #ffffff;
}

body.dark-mode .tos-content::-webkit-scrollbar-track,
.dark-mode .tos-content::-webkit-scrollbar-track {
    background: #1c1f2f;
}

body.dark-mode .tos-content::-webkit-scrollbar-thumb,
.dark-mode .tos-content::-webkit-scrollbar-thumb {
    background: #4a4d58;
}

body.dark-mode .tos-content::-webkit-scrollbar-thumb:hover,
.dark-mode .tos-content::-webkit-scrollbar-thumb:hover {
    background: #5a5d68;
}

body.dark-mode .reading-progress,
.dark-mode .reading-progress {
    background-color: #2e334f;
}

body.dark-mode .tos-summary,
.dark-mode .tos-summary {
    background: #2e334f;
    border: 1px solid #4a4d58;
}

body.dark-mode .tos-summary h4,
.dark-mode .tos-summary h4 {
    color: #ffffff;
}

body.dark-mode .tos-summary li,
.dark-mode .tos-summary li {
    color: #ffffff;
}

body.dark-mode .tos-links,
.dark-mode .tos-links {
    background: #2e334f;
    border: 1px solid #4a4d58;
    border-left: 4px solid #f5245f;
}

body.dark-mode .tos-links p,
.dark-mode .tos-links p {
    color: #ffffff;
}

body.dark-mode .tos-links a,
.dark-mode .tos-links a {
    color: #ffffff;
}

body.dark-mode .tos-links a:hover,
.dark-mode .tos-links a:hover {
    color: #f5245f;
}

body.dark-mode .tos-footer,
.dark-mode .tos-footer {
    border-top: 2px solid #4a4d58;
}

body.dark-mode .tos-event-section,
.dark-mode .tos-event-section {
    border-bottom: 2px solid #4a4d58;
}

body.dark-mode .tos-section-title,
.dark-mode .tos-section-title {
    color: #ffffff;
}

body.dark-mode .accept-section-event,
.dark-mode .accept-section-event {
    background: #2e334f;
    border-left: 4px solid #f5245f;
}

body.dark-mode .accept-section-pukiebook,
.dark-mode .accept-section-pukiebook {
    background: #2e334f;
    border-left: 4px solid #f5245f;
}

body.dark-mode .accept-checkbox,
.dark-mode .accept-checkbox {
    color: #ffffff;
}

body.dark-mode .accept-checkbox span,
.dark-mode .accept-checkbox span {
    color: #ffffff;
}

body.dark-mode .alert-tos.alert-info,
.dark-mode .alert-tos.alert-info {
    background: #2e334f;
    border: 1px solid #4a4d58;
    color: #ffffff;
}

body.dark-mode .alert-tos.alert-success,
.dark-mode .alert-tos.alert-success {
    background: #2e334f;
    border: 1px solid #4a4d58;
    color: #ffffff;
}

body.dark-mode .scroll-indicator,
.dark-mode .scroll-indicator {
    color: #cccccc;
}

body.dark-mode .scroll-indicator.scrolled,
.dark-mode .scroll-indicator.scrolled {
    color: #f5245f;
}

