/* ==================== RESET Y VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f5f7fc;
    --bg-secondary: #ffffff;
    --bg-dark: #0f1a24;
    --text-primary: #1a2a3a;
    --text-secondary: #4a627a;
    --text-light: #b0c4ce;
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --accent-red: #e74c3c;
    --accent-yellow: #f39c12;
    --border: #e0e7ef;
    --card-shadow: 0 8px 20px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

body.dark {
    --bg-primary: #0a1219;
    --bg-secondary: #0f1a1f;
    --bg-dark: #060c10;
    --text-primary: #e8edf2;
    --text-secondary: #a0b3c4;
    --border: #1e2a32;
    --card-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Open Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--bg-dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    transition: padding 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.tagline {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.dark-mode-toggle {
    background: var(--accent);
    border: none;
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #0a1927 0%, #1a3a32 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #0a1927;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-small {
    display: inline-block;
    background: var(--accent);
    color: #0a1927;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--accent-dark);
}

/* ==================== SECCIONES ==================== */
.section {
    padding: 4rem 0;
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.bg-light {
    background: var(--bg-secondary);
}

.bg-dark {
    background: var(--bg-dark);
    color: white;
}

.bg-dark h2 {
    color: white;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}

/* ==================== VPN RANKING CARDS ==================== */
.vpn-ranking {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.vpn-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.vpn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.vpn-rank {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent);
    color: #0a1927;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.rating {
    color: var(--accent-yellow);
    margin: 0.5rem 0;
}

.veredicto {
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    font-size: 0.9rem;
}

/* ==================== TABLA COMPARATIVA ==================== */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--accent);
    color: #0a1927;
    font-weight: bold;
}

.comparison-table tr:hover {
    background: var(--bg-primary);
}

.note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== GUÍAS GRID ==================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.guide-card h3 {
    margin-bottom: 0.8rem;
}

.guide-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* ==================== SEGURIDAD GRID ==================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.security-item {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.security-item:hover {
    background: rgba(255,255,255,0.1);
}

.security-item h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

/* ==================== STREAMING LIST ==================== */
.streaming-list {
    list-style: none;
    margin: 1.5rem 0;
}

.streaming-list li {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
}

/* ==================== VPN GRATIS ==================== */
.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.free-vpn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.free-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.free-card.bad {
    border-left: 4px solid var(--accent-red);
}

.free-card h3 {
    margin-bottom: 0.8rem;
}

/* ==================== TORRENTING GRID ==================== */
.torrent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.torrent-good {
    background: rgba(46, 204, 113, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.torrent-bad {
    background: rgba(231, 76, 60, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-red);
}

.torrent-good ul, .torrent-bad ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* ==================== FAQ ==================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ==================== GLOSARIO ==================== */
.glossary-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gloss-item {
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ==================== BLOG ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    margin-bottom: 0.8rem;
}

.blog-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* ==================== TIP BOX ==================== */
.tip-box {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .dark-mode-toggle {
        margin: 1rem auto 0;
        display: block;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .vpn-ranking {
        grid-template-columns: 1fr;
    }
    
    .torrent-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
