/* Nexo Plataforma - Integrated Stylesheet Final
   Versión: 3.3 (Local Fonts & .com Production)
   Fecha: 8 de mayo de 2026
*/

/* 1. FUENTES LOCALES */

/* Montserrat - Regular (400) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* Montserrat - Semibold (600) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* Montserrat - Bold (700) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Open Sans - Regular (400) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

/* Open Sans - Semibold (600) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2');
}


/* 2. VARIABLES DEL SISTEMA */
:root {
    --nexo-azul: #0056b3;
    --nexo-azul-oscuro: #003366;
    --nexo-accent: #00AEEF;
    --nexo-gris-texto: #333333;
    --nexo-gris-suave: #888888;
    --nexo-bg-light: #F7F9FB; /* Color clave para que el contenido "flote" */
    --nexo-blanco: #ffffff;
    --nexo-border: #eeeeee;
    --nexo-footer-bg: #1a1a1a;
    --nexo-font-primary: 'Montserrat', sans-serif;
    --nexo-font-body: 'Open Sans', sans-serif;
    --nexo-max-width: 1100px;
    --nexo-transition: 0.3s ease;
}

    /* Colores de Etiquetas */
    .flair-percibir { background-color: #BFBFBF; color: black; }
    .flair-analizar { background-color: #009944; color: white; }
    .flair-proponer { background-color: #005691; color: white; }
    .flair-decidir  { background-color: #FF9900; color: white; }
    .flair-actuar   { background-color: #ED1C24; color: white; }
    .flair-organizar { background-color: #6C3D9A; color: white; }
    .flair-recordar { background-color: #5B8D1F; color: white; }
    .flair-difundir { background-color: #262626; color: white; }
    .flair-conectar { background-color: #595959; color: white; }


/* 3. RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Añade esto para transiciones suaves entre anclas */
}


body { 
    font-family: var(--nexo-font-body); 
    line-height: 1.6; 
    color: var(--nexo-gris-texto); 
    /* Cambiado a bg-light para que se note el padding lateral de las fichas blancas */
    background-color: var(--nexo-bg-light); 
}

/* CONTENEDOR MAESTRO */
.nexo-container { 
    max-width: var(--nexo-max-width); 
    margin: 0 auto;                   
    padding: 0 40px;                  
    width: 100%;                      
    box-sizing: border-box;           
}
    
a { text-decoration: none; transition: var(--nexo-transition); }
img { max-width: 100%; height: auto; }

/* 4. CABECERA (STICKY + SOCIALS) */
.nexo-main-header { 
    background: var(--nexo-blanco); 
    border-bottom: 1px solid var(--nexo-border); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nexo-header-container {
    display: flex;
    align-items: center;
    height: 85px;
}

.nexo-logo img { height: 45px; width: auto; display: block; }

.nexo-header-socials {
    display: flex;
    gap: 15px;
    margin-left: auto; 
    margin-right: 30px;
    padding: 0 10px;
}

.nexo-header-socials a {
    color: var(--nexo-azul);
    font-size: 1.1rem;
}

.nexo-header-socials a:hover { color: var(--nexo-azul-oscuro); transform: translateY(-2px); }

.nexo-main-nav ul { display: flex; list-style: none; gap: 20px; }
.nexo-main-nav ul li a {
    color: #444444; 
    font-family: var(--nexo-font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.nexo-main-nav ul li a:hover, 
.nexo-main-nav ul li a.nexo-active { color: var(--nexo-azul) !important; }

.nexo-main-nav ul li a.nexo-active::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    bottom: 0; left: 0; background-color: var(--nexo-azul);
}

.nexo-menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--nexo-azul-oscuro); }

/* 5. HERO / PAGE HEADER */
.nexo-page-header-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.nexo-title-h1 { font-size: 3rem; font-family: var(--nexo-font-primary); text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.nexo-lead-text { font-size: 1.2rem; font-weight: 400; }

/* 6. CONTENIDO FLEX (TEXTO + IMAGEN) */
.nexo-section { padding: 40px 0; }
.nexo-flex-row { display: flex; gap: 50px; align-items: flex-start; margin-bottom: 60px; }
.nexo-text-column { flex: 1.2; }
.nexo-image-column { flex: 0.8; }
.nexo-img-rounded { border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.nexo-tag { 
    display: inline-block; background: var(--nexo-azul); color: white; 
    padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; 
    font-weight: 700; text-transform: uppercase; margin-bottom: 15px; 
}

.nexo-title-h2 { font-size: 2.2rem; color: var(--nexo-azul-oscuro); margin-bottom: 20px; line-height: 1.2; }

/* 10. FOOTER - UNIFICADO Y LIMPIO */
.nexo-main-footer { 
    background: var(--nexo-footer-bg); 
    color: white; 
    padding: 80px 0 40px; 
    margin-top: 80px; 
}

.nexo-footer-grid { 
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.nexo-logo-footer { font-family: var(--nexo-font-primary); font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; }
.nexo-logo-footer span { color: var(--nexo-azul); }
.nexo-footer-column h4 { color: white; margin-bottom: 25px; font-size: 1.1rem; }
.nexo-footer-column ul { list-style: none; }
.nexo-footer-column a { color: #ccc; font-size: 0.95rem; }
.nexo-footer-column a:hover { color: white; }
.nexo-footer-bottom { border-top: 1px solid #333; padding-top: 30px; margin-top: 40px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--nexo-gris-suave); }

/* 11. RESPONSIVE - MEJORADO */
@media (max-width: 1024px) {
    .nexo-menu-toggle { display: block; }
    .nexo-main-nav { 
        display: none; 
        position: absolute; 
        top: 75px; 
        left: 0; 
        width: 100%; 
        background: white; 
        border-bottom: 2px solid var(--nexo-azul); 
        padding: 20px; 
    }
    .nexo-main-nav.nexo-nav-open { display: block; }
    .nexo-main-nav ul { flex-direction: column; gap: 15px; }
    .nexo-header-socials { margin-right: 15px; }
}

@media (max-width: 768px) {
    .nexo-container { padding: 0 20px; } /* Menos margen en móviles para ganar espacio */
    .nexo-flex-row { flex-direction: column; }
    .nexo-image-column { order: -1; width: 100%; }
    .nexo-footer-grid { flex-direction: column; text-align: left; }
    .nexo-header-container { height: 75px; }
}

@media (max-width: 480px) {
    .nexo-title-h1 { font-size: 2.2rem; }
    .nexo-header-socials { display: none; } 
    .nexo-footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}


/* --- SECCIÓN TOP ACTUALIZADA Y BLINDADA --- */

.nexo-card-top {
    background: var(--nexo-blanco);
    border: 1px solid var(--nexo-border);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-top: 40px;
    border-bottom: 4px solid var(--nexo-azul);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nexo-grid-top { 
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    align-items: start;
}

/* Ajuste para el grid cuando la imagen es apaisada */
.nexo-grid-landscape {
    align-items: flex-start; /* Alinea el texto y la imagen arriba */
    gap: 30px;
}

/* Renombrado para evitar conflicto con Sección 6 */
.nexo-column-img-top {
    display: flex;
    flex-direction: column;
    flex: 0 0 40%;
    max-width: 450px;
}


.nexo-image-top { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);           
}

/* Especificidad aumentada para que no afecte a otras img */
.nexo-image-top > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nexo-tag-top {
    display: block;
    background: var(--nexo-azul); 
    color: white;
    padding: 10px;
    border-radius: 4px; 
    font-size: 0.85rem; 
    font-weight: bold;
    text-transform: uppercase; 
    text-align: center;
    margin-top: 15px;
}

.nexo-title-top {
    margin-top: -5px;
    line-height: 1.2;
    font-family: var(--nexo-font-primary);
    color: var(--nexo-azul-oscuro);
}

.nexo-text-highlight-top { 
    font-style: italic; 
    font-size: 1.2rem;
    font-weight: 600; 
    color: var(--nexo-azul); 
    border-left: 4px solid var(--nexo-azul); 
    padding-left: 20px; 
    margin: 20px 0; 
    line-height: 1.4;
}

.nexo-text-top { 
    line-height: 1.8; 
    color: var(--nexo-gris-texto);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Blindaje de párrafos: Solo afecta a los de dentro de esta ficha */
.nexo-text-top > p {
    margin-bottom: 20px !important; 
}

.nexo-text-top > p:last-child {
    margin-bottom: 0 !important;
}

/* --- RESPONSIVE TOP --- */
@media (max-width: 768px) {
    .nexo-grid-top { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    /* Usando el nuevo nombre de clase */
    .nexo-column-img-top { 
        align-items: center; 
    }
    .nexo-image-top { 
        max-width: 300px; 
    }
}


/* Ajuste de contenedor para el cuerpo */
.nexo-text-column-body {
    max-width: 100%; 
    margin-top: 60px;
}

.nexo-blockquote-body {
    margin: 30px 0;
    padding: 10px 0 10px 25px;
    border-left: 4px solid #0055ff;
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.nexo-blockquote-body p {
    margin-bottom: 15px !important; 
    line-height: 1.6;
}


/* Nuevo Grid optimizado para ítems con gráfica */
.nexo-item-grid {
    display: grid;
    grid-template-columns: 1fr; /* Por defecto una columna para móvil */
    gap: 30px;
    align-items: start;
    max-width: var(--nexo-max-width); /* Solución 2: Limita el ancho global */
    margin: 0 auto;
}

/* Ajuste de proporciones para escritorio (Solución 1) */
@media (min-width: 992px) {
    .nexo-item-grid {
        /* La imagen ocupa el 40% y el contenido el 60% aproximadamente */
        grid-template-columns: 0.8fr 1.2fr; 
        gap: 50px; /* Espacio moderado entre columnas */
    }
}

.nexo-item-container {
    display: flex;
    flex-direction: column; /* Mantiene las tarjetas una debajo de otra */
    gap: 20px; /* Controla el espacio entre tarjetas de forma uniforme */
    margin-bottom: 30px;
    width: 100%;
}

/* Contenedor principal de la tarjeta */
.nexo-item-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Añadimos esto para evitar el centrado heredado */
    text-align: left !important; 
    align-items: flex-start; 
}


/* Efecto Hover: Resalta el margen izquierdo y la sombra */
.nexo-item-block:hover {
    border-left: 4px solid #00447c; /* El color azul que se ve en la imagen */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px); /* Pequeño desplazamiento opcional para dar dinamismo */
}

/* Fila superior: ID y Título */
.nexo-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    width: 100%; /* Asegura que la cabecera ocupe todo el ancho */
    justify-content: flex-start; /* Alinea contenido al inicio */
}

/* Círculo con el número */
.nexo-item-id {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(255, 69, 0, 0.3);
}

/* Título */
.nexo-item-title {
    margin: 0 !important;
    font-size: 1.3rem;
    color: #00447c;
    font-weight: 700;
    line-height: 1.1;
}

/* Cuerpo del texto debajo */
.nexo-item-body {
    width: 100%;
    margin-top: 15px; /* Activamos el margen */
    text-align: left;
    line-height: 1.6;  /* Añadimos el interlineado aquí directamente */
}


/* Cambia .nexo-item-body por .nexo-text-body */
.nexo-text-body {
    width: 100%;
    margin-top: 15px; /* Ajusta a 15px o 20px según tu preferencia */
    text-align: left;
    line-height: 1.6; /* Añadir esto mejorará la lectura en bloques densos */
}

.nexo-item-body p {
    margin: 0;
    margin-top: 5px;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
    text-align: left; /* Evita que el párrafo se centre en móviles */
}


/* 2. TARJETAS Y JERARQUÍA DE TEXTO */
.nexo-card {
    background: var(--nexo-blanco, #ffffff);
    border: 1px solid var(--nexo-border, #e0e0e0);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}


/* Contenedor principal de la imagen para permitir posicionamiento absoluto dentro */
.nexo-video-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden; /* Asegura que nada sobresalga si la foto tiene bordes redondeados */
}

/* Imagen base: asegurar que ocupe todo el espacio */
.nexo-video-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Efecto de zoom suave */
}

/* Capa superpuesta del botón de play */
.nexo-play-overlay {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    width: 25%; /* Tamaño relativo al ancho de la foto, ajústalo si quieres */
    max-width: 80px; /* Tamaño máximo para que no sea gigante */
    opacity: 0.8; /* Ligeramente transparente por defecto */
    transition: all 0.3s ease; /* Transición suave para todos los efectos */
    pointer-events: none; /* Asegura que el clic pase a través del SVG al enlace <a> */
}

/* Estilos para el SVG dentro del botón */
.nexo-play-overlay svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3)); /* Sombra para dar profundidad */
}

/* --- EFECTOS HOVER (Al pasar el ratón) --- */

/* 1. Zoom suave en la foto de Edmundo */
.nexo-video-link:hover .nexo-video-container img {
    transform: scale(1.05);
}

/* 2. El botón de play se vuelve totalmente opaco y crece un poco */
.nexo-video-link:hover .nexo-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}



/* Forzar el contenedor a mantener la proporción de vídeo (16:9) */
.nexo-video-landscape {
    aspect-ratio: 16 / 9; 
    height: auto !important; /* Elimina alturas fijas que puedan venir del estilo anterior */
    width: 100%;
    background-color: #000; /* Fondo negro por si la imagen tarda en cargar */
}

.nexo-video-landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
}


