/* ==========================================================================
   Variables - Paleta de Color Oficial M++ 
   ========================================================================== */
:root {
  --azul-real: #00389e; /*[cite: 2] */
  --azul-bruma: #8badde; /*[cite: 2] */
  --negro-puro: #000000; /*[cite: 2] */
  --blanco-puro: #ffffff; /*[cite: 2] */
  
  /* Tipografía Inter Variable / Fallback Arial[cite: 2] */
  --font-principal: 'Inter', Arial, sans-serif;
}

/* ==========================================================================
   Reseteo Global y Estilos Base
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-principal);
  background-color: var(--blanco-puro);
  color: var(--negro-puro);
  line-height: 1.6;
  text-align: left; /* Alineación siempre a la izquierda[cite: 2] */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Tipografía y Jerarquía
   ========================================================================== */
h1 {
  font-weight: 900; /* Black */
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--azul-real);
  margin-bottom: 1.5rem;
}

h2 {
  font-weight: 800; /* Extra Bold */
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--negro-puro);
}

p {
  font-weight: 400; /* Regular */
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  max-width: 75ch; /* Para facilitar la legibilidad de la lectura[cite: 2] */
}

/* Clases de texto específicas */
.small {
  font-weight: 600; /* Semi Bold */
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--azul-bruma);
  margin-bottom: 1rem;
}

.statement {
  font-weight: 700; /* Bold */
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--azul-real);
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--azul-real);
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
header {
  padding: 2rem 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--blanco-puro);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-weight: 900; /* Black */
  font-size: 1.5rem;
  color: var(--azul-real);
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-weight: 500; /* Medium */
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--azul-real);
}

/* ==========================================================================
   Layout Principal y Secciones
   ========================================================================== */
main {
  max-width: 1400px;
  margin: 0 auto;
}

section {
  padding: 6rem 5%;
}

.content {
  max-width: 800px;
}

/* ==========================================================================
   Secciones Específicas
   ========================================================================== */

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-description {
  font-weight: 500; /* Medium */
  font-size: 1.5rem;
  color: var(--negro-puro);
  margin-top: 1rem;
}

/* Grid de Jaime Cid-Lara */
.jaime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.jaime-grid .image {
  background-color: var(--azul-bruma); /* Placeholder visual usando la paleta */
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Sección Edition (Ver programa) */
.edition a {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--azul-real);
  border-bottom: 2px solid transparent;
}

.edition a:hover {
  border-bottom-color: var(--azul-real);
}

/* Sección de Enlaces (Menú Inferior) */
.links {
  padding-bottom: 8rem;
}

.links-grid {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--negro-puro);
}

.links-grid a {
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 2.5rem;
  font-weight: 800; /* Extra Bold */
  color: var(--negro-puro);
}

.links-grid a span {
  font-weight: 300; /* Light */
  font-size: 1.25rem;
  color: var(--azul-bruma);
  width: 80px;
  display: inline-block;
}

.links-grid a:hover {
  color: var(--azul-real);
  padding-left: 2rem;
}

.links-grid a:hover span {
  color: var(--azul-real);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--negro-puro);
  color: var(--blanco-puro);
  padding: 4rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

footer strong {
  display: block;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

footer p {
  color: var(--azul-bruma);
  font-size: 0.875rem;
  margin-bottom: 0;
}

footer div:last-child {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  font-weight: 500;
  font-size: 0.875rem;
}

footer a:hover {
  color: var(--azul-bruma);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .jaime-grid {
    grid-template-columns: 1fr;
  }
  
  .links-grid a {
    font-size: 1.75rem;
    padding: 1.5rem 0;
  }
  
  footer {
    flex-direction: column;
  }
}