/* =========================================
       ESTILOS ESPECÍFICOS PARA ESTA LANDING
       (Para no ensuciar tus CSS globales)
       ========================================= */

/* Variables locales basadas en tu sistema */
:root {
    --color-primary: #0B1726;
    --color-accent: #31cadc;
    --color-bg-light: #f8f9fa;
    --color-border-light: #eee;
    --border-radius-card: 8px;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* --- SECCIÓN 1: INTRO --- */
.intro-text {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.25em;
    color: #444;
    text-align: center;
    line-height: 1.6;
}

/* Grid de 3 Imágenes */
.images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.img-card {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 200px;
    /* Rectangulares */
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-card:hover img {
    transform: scale(1.05);
}

/* Pills de Valores con Emojis */
.values-emoji-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.value-pill {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.value-pill span {
    font-size: 1.4em;
}

/* --- SECCIÓN 2: PROBLEMAS (OSCURA) --- */
.problems-section {
    background-color: var(--color-primary);
    color: #fff;
    padding: 60px 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.problems-text h2 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 2.2em;
}

.problems-text p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 15px;
}

.stats-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-accent);
    width: 120px;
    flex-shrink: 0;
}

/* --- SECCIÓN 3: PUNTOS CARDINALES --- */
.cardinal-section {
    background-color: var(--color-bg-light);
    padding: 60px 0;
    position: relative;
}

.cardinal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cardinal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cardinal-box {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    border-top: 4px solid var(--color-primary);
}

.cardinal-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cardinal-box h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

.compass-point {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Layout Desktop para la Cruz */
@media (min-width: 768px) {
    .cardinal-grid {
        grid-template-areas:
            ". north ."
            "west center east"
            ". south .";
        grid-template-columns: 1fr 300px 1fr;
        align-items: center;
    }

    .area-n {
        grid-area: north;
    }

    .area-s {
        grid-area: south;
    }

    .area-e {
        grid-area: east;
    }

    .area-o {
        grid-area: west;
    }

    .area-center {
        grid-area: center;
        display: flex;
        justify-content: center;
        opacity: 0.1;
    }

    .area-center i {
        font-size: 150px;
        color: var(--color-primary);
    }
}

/* Ciencia Block */
.science-block {
    margin-top: 60px;
    text-align: center;
}

.science-quote {
    font-size: 1.8em;
    font-style: italic;
    color: #777;
    margin-bottom: 30px;
    font-family: serif;
}

.tech-list-container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tech-list li {
    display: flex;
    align-items: center;
    color: #444;
}

.tech-list i {
    color: var(--color-accent);
    margin-right: 10px;
}

/* --- SECCIÓN 4: TABLA COMPARATIVA --- */
.comparison-section {
    padding: 60px 0;
    background-color: #fff;
}

.comparison-table-wrapper {
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    background-color: var(--color-bg-light);
    padding: 20px;
    color: #777;
    font-size: 0.9em;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
}

.comparison-table th.col-insite {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    width: 25%;
}

.comparison-table th.col-trad {
    text-align: center;
    width: 25%;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:hover {
    background-color: #fcfcfc;
}

.cell-check {
    color: #27ae60;
    font-size: 1.2em;
    text-align: center;
}

.cell-cross {
    color: #e74c3c;
    font-size: 1.2em;
    text-align: center;
}

.cell-text {
    text-align: center;
    font-weight: 600;
    color: #777;
    font-size: 0.9em;
}

.cell-highlight {
    text-align: center;
    color: var(--color-primary);
    font-weight: bold;
}

/* --- CTA FINAL --- */
.cta-footer {
    padding: 80px 0;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #1a2b40 100%);
    color: #fff;
    text-align: center;
}

.cta-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Botones locales */
.btn-landing {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-landing-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-landing-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-landing-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-landing-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}

/* Responsividad */
@media (max-width: 768px) {
    .images-row {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    .cardinal-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "north" "west" "south" "east";
    }

    .area-center {
        display: none;
    }
}

.chart-img-full-width {
    width: 100%;             /* Ocupa todo el ancho disponible de su columna */
    height: auto;            /* Mantiene la proporción original */
    margin-top: 25px;        /* Espacio para separarla del texto de arriba */
    border-radius: 8px;      /* Bordes redondeados para consistencia */
    
    /* Opcional: si el gráfico tiene fondo transparente y letras negras, 
       descomenta la siguiente línea para darle un fondo blanco suave: */
    /* background-color: rgba(255, 255, 255, 0.9); padding: 10px; */
}