/* ==================================================
   NORMALIZACIÓN DE TEXTOS GLOBALES
   ================================================== */
p, li, a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.4rem;       /* Tamaño uniforme y legible */
    font-weight: 500;        /* Peso "Medium": más negrita que el texto normal */
    letter-spacing: 0.4px;   /* Separa sutilmente las letras */
    line-height: 1.6;        /* Interlineado cómodo */
    color: var(--text-color);
}

/* Variables de color */
:root {
    --bg-color: #f4f3ef; /* Crema claro */
    --text-color: #0a0a0a; /* Negro profundo */
    --border-color: #0a0a0a;
    --border-width: 4px;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    padding: 10px;
}

/* Navegación Superior */
.top-nav {
    position: sticky;
    top: 10px;
    background-color: var(--bg-color);
    border: var(--border-width) solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}

.nav-links a {
    text-decoration: none;
    margin-left: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.5rem; /* El menú superior lo mantenemos un poco más sutil */
    letter-spacing: 1px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Secciones Generales */
section {
    padding: 5rem 2rem;
}

.section-bordered {
    border-left: var(--border-width) solid var(--border-color);
    border-right: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

/* --- Hero Section (Ajustado para 2 columnas Full Height) --- */
.hero {
    min-height: 85vh;
    border-left: var(--border-width) solid var(--border-color);
    border-right: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    display: flex;
    flex-direction: row; 
    align-items: stretch; /* Obliga a las columnas a tomar el 100% del alto */
    padding: 0; /* Quitamos el padding general para que la imagen toque los bordes */
}

/* Mitad Izquierda (Texto) */
.hero-content {
    flex: 1; /* Ocupa el 50% del ancho */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
    align-items: flex-start;
    padding: 4rem; /* Le devolvemos el margen interno SOLO al texto */
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem); 
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 500;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-color);
    border: var(--border-width) solid var(--border-color);
}

/* Mitad Derecha (Gráfico) */
.hero-graphic {
    flex: 1; /* Ocupa el otro 50% del ancho */
    background-color: var(--bg-color);
    display: flex;
    overflow: hidden; /* Evita que la imagen se desborde si es muy grande */
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen actúe como un fondo llenando todo el alto */
    opacity: 0.8; 
    display: block;
}

/* Textos Globales (Limpios de tamaños conflictivos) */
.text-content p {
    margin-bottom: 1.5rem;
}

.large-text p {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.clean-list {
    list-style: none;
    margin-top: 1rem;
}

.clean-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

.email-link {
    font-size: 3rem;
    text-decoration: none;
    border-bottom: var(--border-width) solid var(--border-color);
    display: inline-block;
}

.email-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* ==================================================
   BLOQUES ACERCA DEL VISOR (ESTILO WIREFRAME)
   ================================================== */

.bloque-superior {
    width: 100%;
    margin-bottom: 1.5rem; 
}

.caja-placeholder-ancha {
    width: 100%;
    border: var(--border-width) solid var(--border-color);
    background-color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 450px; 
}

.caja-placeholder-ancha img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.bloque-inferior {
    display: flex;
    gap: 1.5rem; 
    align-items: stretch; 
}

.caja-texto-ancha {
    flex: 2.5; 
    padding: 2.5rem;
    background-color: var(--bg-color);
}

.caja-texto-ancha p:last-child {
    margin-bottom: 0;
}

.caja-tool-angosta {
    flex: 1; 
    border: var(--border-width) solid var(--border-color);
    background-color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.caja-tool-angosta img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Botón Volver Arriba */
#btnSubir {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    outline: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

#btnSubir:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* ==================================================
   SECCIÓN OGC E INTEROPERABILIDAD (2 COLUMNAS)
   ================================================== */
.layout-ogc {
    display: flex;
    gap: 3rem; 
    align-items: stretch; 
}

/* Columna Izquierda */
.columna-logos {
    flex: 0 0 300px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem; 
    padding-right: 3rem; 
}

.logo-box {
    background-color: var(--bg-color); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: 250px;
}

.logo-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Columna Derecha (Texto) */
.columna-texto-ogc {
    flex: 1; 
}

.columna-texto-ogc h2:first-child {
    margin-top: 0; 
}

/* ==================================================
   RESPONSIVE UNIFICADO (MÓVILES Y TABLETS)
   ================================================== */
@media (max-width: 900px) {
    /* Hero Responsivo */
    .hero {
        flex-direction: column;
    }
    .hero-content {
        padding: 2rem; 
    }
    .hero-graphic {
        width: 100%;
        min-height: 350px; 
        border-top: var(--border-width) solid var(--border-color); 
    }
    .hero h1 {
        font-size: 4rem;
    }

    /* Acerca del Visor Responsivo */
    .bloque-inferior {
        flex-direction: column; 
    }
    .caja-texto-ancha, .caja-tool-angosta {
        width: 100%;
    }

    /* OGC Responsivo */
    .layout-ogc {
        flex-direction: column; 
    }
    .columna-logos {
        flex: auto;
        width: 100%;
        flex-direction: row; 
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 2rem;
    }
    .logo-box {
        flex: 1; 
        min-height: 150px;
    }

    /* Generales Responsivo */
    .nav-links {
        display: none;
    }
    .email-link {
        font-size: 1.5rem;
    }
}