/* --- Variables de Diseño: MODO OSCURO PRO --- */
:root {
    --primary: #9d65d4; 
    --primary-light: rgba(157, 101, 212, 0.15);
    --accent: #2ecc71;
    --text-dark: #f5f6fa;
    --text-gray: #b2bec3;
    /* FONDO NEGRO DIFUMINADO */
    --bg-body: radial-gradient(circle at center, #1e272e 0%, #000000 100%); 
    --white: #181818; 
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-body);
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- Animaciones --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: slideUpFade 0.7s ease-out forwards; }

/* --- Navegación --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo { color: var(--primary); font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 35px; height: auto; }

.nav-links a { color: var(--text-gray); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.btn-contact {
    background: var(--primary); color: white; padding: 10px 24px;
    border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s;
}

/* --- Hero --- */
.hero {
    height: 450px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), 
                url('https://colombia.co/sites/default/files/marca-pais/media/images/calle-de-las-sombrillas_1.webp');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }

/* --- Contenedores --- */
.container { max-width: 1300px; margin: 0 auto; padding: 60px 20px; }

.colombia-static-content, .card, .seccion-opinion, #detail-view {
    background: var(--white); border-radius: 25px; padding: 40px;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
}

.image-block img { max-width: 100%; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

/* Grid de Tarjetas */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); background: #222; }

.btn-card {
    background: var(--primary); color: white; border: none; padding: 12px 25px;
    border-radius: 8px; font-weight: 700; cursor: pointer; margin-top: 20px;
}

/* Gráficas */
.contenedor-grafica-nueva { background: #111; border: 1px solid #333; padding: 20px; border-radius: 15px; margin-top: 20px; }
.contenedor-grafica-nueva img { max-width: 100%; border-radius: 10px; }

/* --- Detalle Vista --- */
#detail-view { display: flex; gap: 40px; align-items: center; flex-direction: row-reverse; }

/* REGLA AGREGADA: Evita que la imagen lateral aparezca en la sección Social */
#detail-view.social-layout .detail-image-container { 
    display: none; 
}

/* REGLA AGREGADA: Hace que el texto use todo el espacio en la sección Social */
#detail-view.social-layout .detail-text { 
    width: 100%; 
    flex: none; 
}

.detail-image-container { flex: 1; padding: 20px; }
.detail-image-container img { width: 100%; border-radius: 20px; transition: 0.3s; }

/* Efecto para que la gráfica de tendencias se vea más grande */
#detail-view img[src$="descarga.png"] { transform: scale(1.15); }

.detail-text { flex: 1.5; }
.detail-description { font-size: 1.1rem; white-space: pre-line; }

.year-mark {
    color: var(--primary); font-weight: 800; background: var(--primary-light);
    padding: 2px 10px; border-radius: 6px; margin-right: 5px;
}

.btn-back {
    background: #333; color: white; border: none; padding: 12px 25px;
    border-radius: 50px; cursor: pointer; margin-bottom: 30px; transition: 0.3s;
}
.btn-back:hover { background: var(--primary); }

.hidden { display: none !important; }

/* --- Footer --- */
.footer { background: #000; color: var(--text-gray); padding: 50px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }