/* Términos y Condiciones - Estilos Modernos */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    padding: 60px 0 40px;
    background: var(--card-bg);
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
}

/* Main Content */
.content {
    background: var(--card-bg);
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section h2 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    font-weight: 700;
    position: relative;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

section:hover h2::before {
    width: 100px;
}

section h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h3::before {
    content: '▸';
    color: var(--secondary-color);
    font-weight: bold;
}

section p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Lists */
ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

ul li {
    position: relative;
    padding: 12px 0 12px 35px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.02rem;
    transition: all 0.3s ease;
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

ul li:hover {
    padding-left: 40px;
    color: var(--secondary-color);
}

ul li:hover::before {
    transform: scale(1.2) rotate(360deg);
}

/* Nested lists */
ul ul {
    margin: 10px 0 10px 20px;
}

ul ul li {
    font-size: 0.98rem;
    padding: 8px 0 8px 30px;
}

ul ul li::before {
    content: '→';
    background: var(--gradient-accent);
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

/* Prohibited List Section */
.prohibited-list {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03) 0%, rgba(245, 87, 108, 0.03) 100%);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.prohibited-list h3 {
    color: var(--accent-color);
}

.prohibited-list h3::before {
    content: '⚠';
    color: var(--accent-color);
}

.prohibited-list strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

a:hover {
    color: #667eea;
}

a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 40px 0;
    text-align: center;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-lg);
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
}

.footer-links a::after {
    display: none;
}

.footer-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

#back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 30px 25px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    section h3 {
        font-size: 1.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 40px 20px 30px;
        margin: 20px 0;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    .content {
        padding: 25px 20px;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    ul li {
        padding-left: 30px;
        font-size: 0.95rem;
    }
    
    .prohibited-list {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    header, .content, footer {
        box-shadow: none;
        border-radius: 0;
    }
    
    #back-to-top {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
