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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

nav {
    background: #1a1a2e;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-brand {
    color: #e94560;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-links { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.nav-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-links a:hover { background: #16213e; color: #e94560; }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
    margin-top: 3rem;
}

h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.3rem;
    color: #16213e;
    margin: 2rem 0 1rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h1 { color: white; font-size: 2rem; }
.subtitle { color: #aaa; margin-top: 0.5rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cards-grid.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.cards-grid.literales {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-card h3 { color: #888; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.info-card .stat { font-size: 1.8rem; font-weight: 700; color: #e94560; margin: 0.5rem 0; }
.info-card p { color: #888; font-size: 0.85rem; }

.literal-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    border-left: 4px solid #e94560;
}

.literal-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.literal-card .literal-num { font-size: 2rem; font-weight: 700; color: #e94560; }
.literal-card h3 { margin: 0.3rem 0; }
.literal-card p { color: #888; font-size: 0.9rem; }

.description {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.stat-box {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.stat-box .stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: #333; }
.stat-box .stat-label { display: block; font-size: 0.8rem; color: #888; margin-top: 0.2rem; }
.stat-box.red { border-top: 3px solid #DC143C; }
.stat-box.red .stat-value { color: #DC143C; }
.stat-box.orange { border-top: 3px solid #FF8C00; }
.stat-box.orange .stat-value { color: #FF8C00; }
.stat-box.yellow { border-top: 3px solid #DAA520; }
.stat-box.yellow .stat-value { color: #DAA520; }

.map-container {
    width: 100%;
    height: 550px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.map-container iframe, .map-container > div { width: 100% !important; height: 100% !important; }

.event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.event-card.highlight { border-left: 4px solid #e94560; }
.event-card h3 { margin-bottom: 1rem; color: #1a1a2e; }
.event-card .note { margin-top: 1rem; color: #888; font-style: italic; font-size: 0.9rem; }

.detail-table { width: 100%; }
.detail-table td { padding: 0.4rem 0; border-bottom: 1px solid #eee; }
.detail-table td:first-child { color: #888; width: 40%; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 1rem 0;
}

.data-table th {
    background: #1a1a2e;
    color: white;
    padding: 0.8rem;
    font-size: 0.85rem;
    text-align: center;
}

.data-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
}

.data-table tr:hover { background: #f9f9f9; }
.data-table .total-row { background: #f0f0f0; font-weight: 600; }
.data-table.compact { max-width: 500px; }

.interpretacion {
    background: #fff8e1;
    border-left: 4px solid #FF9800;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.interpretacion h3 { color: #E65100; margin-bottom: 0.8rem; }
.interpretacion ul { padding-left: 1.2rem; }
.interpretacion li { margin-bottom: 0.5rem; color: #555; }

.conclusiones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.conclusion-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #1a1a2e;
}

.conclusion-card h3 { color: #e94560; margin-bottom: 0.5rem; font-size: 1rem; }
.conclusion-card p { color: #555; font-size: 0.95rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.4rem; }
    .stats-row { flex-direction: column; }
    .conclusiones { grid-template-columns: 1fr; }
    .nav-container { flex-direction: column; align-items: flex-start; }
}
