/* Variables de tema */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --primary-color: #4CAF50;
    --primary-dark: #2e7d32;
    --secondary-color: #2196F3;
    --border-color: #e0e0e0;
    --footer-bg: #f1f3f4;
    --highlight-bg: #e8f5e9;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --toggle-bg: #4CAF50;
    --toggle-text: white;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg: #2d2d2d;
    --primary-color: #66bb6a;
    --primary-dark: #4caf50;
    --secondary-color: #64b5f6;
    --border-color: #404040;
    --footer-bg: #2d2d2d;
    --highlight-bg: #1b5e20;
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --toggle-bg: #66bb6a;
    --toggle-text: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Fondo degradado sutil */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: var(--text-color);
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s !important;
}

.btn-nav:hover {
    background: var(--primary-dark);
    color: white !important;
}

.theme-toggle {
    background: var(--toggle-bg);
    color: var(--toggle-text);
    border: 2px solid var(--primary-dark);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

/* Hero section */
.hero {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(76, 175, 80, 0.2);
    z-index: -1;
}

.highlight-privacidad {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    color: #666;
}

body.dark-mode .hero-subtitle {
    color: #aaa;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.hero-badge {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: var(--card-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-comparison {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.image-card {
    text-align: center;
}

.image-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f0f0f0;
}

body.dark-mode .image-card img {
    background: #333;
}

/* Feature highlight (privacidad) */
.feature-highlight {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 20px;
    background: var(--highlight-bg);
    border-radius: 20px;
    text-align: center;
}

.highlight-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-highlight h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.check {
    color: var(--primary-color);
    font-weight: bold;
}

/* Características */
.features {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
}

body.dark-mode .feature-card p {
    color: #aaa;
}

/* Cómo funciona */
.how-it-works {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
}

/* CTA final */
.cta {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

body.dark-mode .cta p {
    color: #aaa;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--footer-bg);
    margin-top: 40px;
}

.footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Media queries */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .header {
        justify-content: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .image-comparison {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}
/* Sección de uso justo (nueva) */
.fair-use {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--highlight-bg) 100%);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.fair-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.fair-use h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.fair-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.fair-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.fair-item {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fair-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.fair-item span {
    font-weight: bold;
    font-size: 1.1rem;
}

.fair-item small {
    color: #666;
    font-size: 0.85rem;
}

body.dark-mode .fair-item small {
    color: #aaa;
}

.fair-note {
    font-style: italic;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}