/* ===== Colores y tipografías (cámbialos aquí) ===== */
:root {
  --mist: #EAF0EE;
  --ink: #1B2640;
  --sea: #3F6F7A;
  --dawn: #E9A93B;
  --paper: #F8FAF9;
  --head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--mist); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.7; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Encabezado (bloque de color) ===== */
header { background: var(--ink); color: var(--paper); }
.barra { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.3rem; text-decoration: none; background: var(--dawn); color: var(--ink); padding: .3rem .9rem; border-radius: 4px; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--head); font-weight: 500; font-size: 1rem; }
nav a { text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--dawn); }

/* ===== Portada ===== */
.hero { position: relative; overflow: hidden; padding: 4rem 0 5rem; min-height: 26rem; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; max-width: 14em; letter-spacing: -0.02em; position: relative; z-index: 2; }
.hero p { margin-top: 1.5rem; max-width: 34rem; position: relative; z-index: 2; }
.btn { display: inline-block; margin-top: 2rem; background: var(--ink); color: var(--paper); font-family: var(--head); font-weight: 500; padding: .85rem 1.6rem; border-radius: 4px; text-decoration: none; position: relative; z-index: 2; }
.btn:hover { background: var(--sea); }

/* Símbolo Ψ (psi): se dibuja una vez al cargar */
.psi { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: min(24rem, 38vw); height: auto; fill: none; stroke: var(--dawn); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; z-index: 1; }
.psi path { stroke-dasharray: 1; animation: trazo 2.4s ease-out both; }
@keyframes trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 52rem) { .psi { opacity: .35; right: -2rem; } }
@media (prefers-reduced-motion: reduce) { .psi path { animation: none; } html { scroll-behavior: auto; } }

/* ===== Secciones ===== */
section { padding: 4.5rem 0; }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin-bottom: 2rem; }

.ideas { background: var(--paper); }
.list { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.list article { position: relative; border-left: 4px solid var(--sea); padding-left: 1.25rem; }
.list h3 { font-family: var(--head); font-size: 1.3rem; line-height: 1.25; margin-bottom: .5rem; }
.list h3 a { text-decoration: none; }
.list h3 a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.list article:hover h3 a { text-decoration: underline; text-decoration-color: var(--dawn); text-decoration-thickness: 3px; }
.list p { font-size: 1rem; }

.list article { display: flex; gap: 1.25rem; align-items: center; }
.list article img { width: 11rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

@media (max-width: 40rem) {
  .list article { flex-direction: column; align-items: flex-start; }
  .list article img { width: 100%; }
}
.about { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 40rem) { .about { grid-template-columns: 1fr 1.6fr; } }
.about p + p { margin-top: 1rem; max-width: 42rem; }
.foto { display: block; width: 100%; max-width: 20rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border-bottom: 6px solid var(--dawn); background: var(--paper); }

.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact p { max-width: 36rem; }
.contact .btn { background: var(--dawn); color: var(--ink); font-weight: 700; }
.contact .btn:hover { background: var(--paper); }
.contact .correo { margin-top: 1rem; font-size: 1rem; }

footer { padding: 2rem 0; font-size: .95rem; }

/* ===== Páginas de artículos y blog ===== */
.articulo { max-width: 44rem; padding-top: 3rem; padding-bottom: 4rem; }
.articulo .volver { font-family: var(--head); font-size: 1rem; }
.articulo h1 { font-family: var(--head); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 1.5rem 0 1rem; letter-spacing: -0.01em; }
.articulo h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.articulo p { margin-bottom: 1rem; text-align: justify; hyphens: auto; }
.entrada { border-left: 4px solid var(--dawn); padding-left: 1.25rem; margin-top: 2.5rem; }
.entrada time { font-family: var(--head); font-size: .95rem; color: var(--sea); }
.entrada h2 { font-size: 1.5rem; margin: .25rem 0 .5rem; }
.entrada h2 a { text-decoration: none; }
.entrada h2 a:hover { text-decoration: underline; text-decoration-color: var(--dawn); text-decoration-thickness: 3px; }
