/* =========================================================
   PORTAFOLIO PERSONAL
   Daniel Alejandro Barrientos Soto

   Identidad visual:
   - Fondo muy oscuro, casi negro
   - Texto blanco
   - Dorado como único color de acento
   - Estética técnica, sobria y minimalista (sin gradientes,
     sin efectos "hacker", inspirada en GNOME)
   - Perfil profesional junior

   Este archivo está organizado en bloques y usa variables
   (custom properties) para que los tamaños de letra, los
   espacios y las transiciones sean siempre los mismos en
   todo el sitio en vez de valores sueltos repetidos.
   ========================================================= */


/* =========================================================
   VARIABLES GLOBALES (design tokens)
   ========================================================= */

:root {
  /* Colores principales — fondo más oscuro que antes */
  --bg: #08090b;
  --surface: #121419;
  --surface-hover: #171a20;

  /* Líneas y bordes */
  --line: #292d34;

  /* Tipografía */
  --text: #f2f2ef;
  --muted: #b0b4bb;
  --quiet: #777d86;

  /* Único color de acento */
  --accent: #d6b25e;
  --accent-soft: #ead08a;

  /* -----------------------------------------------------
     Escala tipográfica: solo estos tamaños se usan en todo
     el sitio. Así el texto se ve uniforme y consistente en
     vez de tener decenas de tamaños distintos sueltos.
     ----------------------------------------------------- */
  --fs-2xs: 0.75rem;  /* etiquetas muy pequeñas: eyebrow, meta */
  --fs-xs: 0.8rem;    /* texto discreto: footer, fechas, meta */
  --fs-sm: 0.875rem;  /* texto secundario: nav, listas, enlaces */
  --fs-base: 1rem;    /* texto de lectura normal */
  --fs-lg: 1.3rem;    /* títulos de sección (h2) */
  --fs-xl: clamp(1.05rem, 2vw, 1.25rem); /* cita destacada */
  --fs-hero: clamp(2.2rem, 7vw, 4rem);   /* nombre en el hero */

  /* Transición única para hover/estados: mismo "feel" en todo el sitio */
  --transition: 0.18s ease;

  /* Sombra e imágenes: pensada para fondos muy oscuros */
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);

  /* Layout */
  --max: 720px;

  /* Bordes */
  --radius: 6px;
  --radius-lg: 16px;
}


/* =========================================================
   RESETEO BÁSICO
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* =========================================================
   DOCUMENTO
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}


/* =========================================================
   CUERPO
   ========================================================= */

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  text-rendering: optimizeLegibility;
}


/* =========================================================
   ENLACES
   ========================================================= */

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   ESTADOS DE ACCESIBILIDAD
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}


/* =========================================================
   ENLACE "SALTAR AL CONTENIDO"
   ========================================================= */

.skip-link {
  position: absolute;

  top: -100px;
  left: 16px;

  z-index: 100;

  padding: 8px 12px;

  background: var(--text);
  color: var(--bg);

  border-radius: var(--radius);

  font-size: var(--fs-sm);
  font-weight: 600;
}


.skip-link:focus {
  top: 16px;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.header {
  position: sticky;
  top: 0;

  z-index: 20;

  border-bottom: 1px solid var(--line);

  /* Igual de oscuro que --bg, con transparencia para el blur */
  background: rgba(8, 9, 11, 0.94);

  backdrop-filter: blur(10px);
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.nav {
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}


/* =========================================================
   MARCA "DANIEL."
   ========================================================= */

.wordmark {
  font-size: var(--fs-base);
  font-weight: 750;

  letter-spacing: -0.03em;
}


.wordmark span {
  color: var(--accent);
}


/* =========================================================
   ENLACES DEL MENÚ
   ========================================================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 20px;

  color: var(--muted);

  font-size: var(--fs-sm);
}


.nav-links a {
  transition: color var(--transition), opacity var(--transition);
}


.nav-links a:hover {
  color: var(--accent-soft);
}


/* =========================================================
   BOTÓN DEL MENÚ MÓVIL
   ========================================================= */

.menu-button {
  display: none;

  border: 0;

  padding: 6px 0;

  background: transparent;
  color: var(--text);

  font: inherit;

  cursor: pointer;
}


/* =========================================================
   HERO / PRESENTACIÓN
   ========================================================= */

.hero {
  padding: 92px 0 70px;
}


/* =========================================================
   PEQUEÑO TEXTO SUPERIOR DEL HERO
   ========================================================= */

.eyebrow {
  margin: 0 0 14px;

  color: var(--accent);

  font-size: var(--fs-2xs);
  font-weight: 650;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   NOMBRE PRINCIPAL
   ========================================================= */

.hero h1 {
  max-width: 650px;

  margin: 0;

  font-size: var(--fs-hero);

  line-height: 1.02;

  letter-spacing: -0.035em;

  font-weight: 720;
}


/* =========================================================
   CARGO / PERFIL
   ========================================================= */

.role {
  margin: 16px 0 0;

  color: var(--accent);

  font-size: clamp(1rem, 2vw, 1.18rem);

  font-weight: 550;
}


/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.intro {
  max-width: 600px;

  margin: 16px 0 0;

  color: var(--muted);

  font-size: var(--fs-base);
}


/* =========================================================
   ENLACES DEL HERO
   ========================================================= */

.hero-links {
  display: flex;

  flex-wrap: wrap;

  gap: 8px 22px;

  margin-top: 28px;
}


.text-link {
  color: var(--accent);

  font-size: var(--fs-sm);

  font-weight: 650;

  transition: color var(--transition);
}


.text-link:hover {
  color: var(--accent-soft);

  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   ANIMACIÓN DE ENTRADA (hero)
   Un único momento de animación al cargar la página: el
   hero aparece con un pequeño "fade + subida". No se repite
   en cada sección para no saturar de movimiento la página.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

  .hero > * {
    opacity: 0;

    animation: rise 0.55s ease forwards;
  }

  .hero .eyebrow {
    animation-delay: 0.02s;
  }

  .hero h1 {
    animation-delay: 0.06s;
  }

  .hero .role {
    animation-delay: 0.12s;
  }

  .hero .intro {
    animation-delay: 0.18s;
  }

  .hero .hero-links {
    animation-delay: 0.24s;
  }

  /* Las fotos del sitio (avatar y foto del entorno) reutilizan
     esta misma animación al cargar, para que se sienta parte
     del mismo lenguaje visual y no un efecto suelto aparte. */
  .about-image,
  .environment-image {
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.1s;
  }
}


@keyframes rise {

  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
  padding: 48px 0;

  border-top: 1px solid var(--line);
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.section h2 {
  margin: 0 0 20px;

  font-size: var(--fs-lg);

  line-height: 1.3;

  letter-spacing: -0.015em;

  font-weight: 680;
}


.section h3 {
  line-height: 1.35;
}


/* =========================================================
   TEXTO DE LECTURA
   ========================================================= */

.reading {
  max-width: 600px;

  color: var(--muted);
}


.reading p {
  margin: 0 0 16px;
}


.reading p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   DESCRIPCIÓN DE SECCIÓN
   ========================================================= */

.section-description {
  margin-bottom: 22px !important;
}


/* =========================================================
   LISTAS SIMPLES
   ========================================================= */

.plain-list {
  margin: 0;

  padding: 0;

  list-style: none;

  border-top: 1px solid var(--line);
}


.plain-list li {
  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  color: var(--muted);
}


/* Guion dorado antes de cada elemento */
.plain-list li::before {
  content: "—";

  margin-right: 12px;

  color: var(--accent);

  font-weight: 600;
}


/* =========================================================
   SOBRE MÍ (foto + texto en dos columnas)
   ========================================================= */

.about {
  display: grid;

  grid-template-columns: minmax(140px, 160px) 1fr;
  gap: 2rem;
  align-items: start;
}


/* =========================================================
   FOTO DE PERFIL (sección "Sobre mí")
   ========================================================= */

.about-image {
  width: 160px;
  margin: 0;
}

.about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;

  /* Borde sutil + sombra: en un fondo tan oscuro la sombra
     sola casi no se nota, así que un borde fino ayuda a que
     la foto no se "pierda" contra el fondo. */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);

  transition: transform var(--transition);
}

.about-image img:hover {
  transform: scale(1.03);
}


/* =========================================================
   ENTORNO TÉCNICO (con foto opcional al lado)
   ========================================================= */

.environment-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.environment-image {
  margin: 0;
}

.environment-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);

  border: 1px solid var(--line);
  box-shadow: var(--shadow);

  transition: transform var(--transition);
}

.environment-image img:hover {
  transform: scale(1.02);
}

.environment-image figcaption {
  margin-top: 0.6rem;

  color: var(--quiet);

  font-size: var(--fs-2xs);
  line-height: 1.4;
}

.environment-image a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Lista de datos (SO, editor, teclado, etc.) */
.environment {
  display: grid;

  gap: 1rem;

  margin: 1.5rem 0 0;

  padding: 0;

  border-top: 1px solid var(--line);
}

.environment > div {
  display: grid;

  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: baseline;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);
}

.environment dt {
  color: var(--text);

  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Icono opcional antes de cada etiqueta (ej. <i class="fa-...">) */
.environment dt i {
  width: 1.2rem;
  margin-right: 0.4rem;
}

.environment dd {
  margin: 0;

  color: var(--muted);

  font-size: var(--fs-sm);
  opacity: 0.8;
}


/* =========================================================
   PERFILES (Cisco, SoloLearn, etc.)
   Misma idea visual que .project: filas separadas por líneas,
   sin tarjetas con sombra, para mantener el mismo lenguaje.
   ========================================================= */

.profiles {
  display: grid;

  border-top: 1px solid var(--line);
}

.profile-card {
  display: flex;

  gap: 16px;

  padding: 18px 0;

  border-bottom: 1px solid var(--line);
}

.profile-icon {
  flex: none;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius);

  background: var(--surface);
  color: var(--accent);
}

.profile-content h3 {
  margin: 0 0 4px;

  font-size: var(--fs-base);
  font-weight: 680;
}

.profile-content p {
  margin: 0 0 8px;

  color: var(--muted);

  font-size: var(--fs-base);
}

.profile-content a {
  color: var(--accent);

  font-size: var(--fs-sm);
  font-weight: 650;

  transition: color var(--transition);
}

.profile-content a:hover {
  color: var(--accent-soft);

  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   PROYECTOS
   ========================================================= */

.projects {
  display: grid;

  gap: 0;

  border-top: 1px solid var(--line);
}


.project {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 10px;

  padding: 22px 0;

  border-bottom: 1px solid var(--line);
}


.project h3 {
  margin: 0;

  font-size: var(--fs-base);

  font-weight: 680;
}


.project p {
  grid-column: 1 / -1;

  margin: 0;

  color: var(--muted);

  font-size: var(--fs-base);
}


.project-meta {
  color: var(--quiet);

  font-size: var(--fs-2xs);

  white-space: nowrap;
}


.project-footer {
  grid-column: 1 / -1;

  display: flex;

  align-items: center;

  gap: 14px;

  color: var(--quiet);

  font-size: var(--fs-xs);
}


.project-footer a {
  color: var(--accent);

  font-weight: 650;

  transition: color var(--transition);
}


.project-footer a:hover {
  color: var(--accent-soft);

  text-decoration: underline;

  text-underline-offset: 3px;
}


.status {
  color: var(--accent);
}


/* =========================================================
   CUANDO TODAVÍA NO HAY PROYECTOS
   ========================================================= */

.empty {
  margin: 0;

  padding: 18px 0;

  border-bottom: 1px solid var(--line);

  color: var(--quiet);

  font-size: var(--fs-base);
}


/* =========================================================
   TECNOLOGÍAS
   ========================================================= */

.tech-groups {
  display: grid;

  gap: 20px;

  padding-top: 20px;

  border-top: 1px solid var(--line);
}


.tech-group {
  padding-bottom: 20px;

  border-bottom: 1px solid var(--line);
}


.tech-group:last-child {
  padding-bottom: 0;

  border-bottom: 0;
}


.tech-group h3 {
  margin: 0 0 6px;

  color: var(--text);

  font-size: var(--fs-sm);

  font-weight: 680;
}


.tech-group p {
  margin: 0;

  color: var(--muted);

  font-size: var(--fs-base);
}


/* Separadores dorados entre tecnologías */
.tech-item:not(:last-child)::after {
  content: " · ";

  padding: 0 4px;

  color: var(--accent);
}


/* =========================================================
   LÍNEA DE FORMACIÓN
   ========================================================= */

.timeline {
  margin: 0;

  padding: 0;

  list-style: none;

  border-top: 1px solid var(--line);
}


.timeline li {
  position: relative;

  padding: 18px 0 18px 22px;

  border-bottom: 1px solid var(--line);
}


/* Punto de la línea temporal */
.timeline li::before {
  content: "";

  position: absolute;

  left: 2px;
  top: 26px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);
}


.timeline h3 {
  margin: 0;

  font-size: var(--fs-base);

  font-weight: 680;
}


.timeline .institution {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: var(--fs-sm);
}


.timeline .meta {
  display: block;

  margin-top: 5px;

  color: var(--quiet);

  font-size: var(--fs-xs);
}


/* =========================================================
   HOJA DE RUTA
   ========================================================= */

.roadmap {
  margin-top: 34px;

  padding-top: 24px;

  border-top: 1px solid var(--line);
}


.roadmap h3 {
  margin: 0 0 14px;

  color: var(--text);

  font-size: var(--fs-base);

  font-weight: 680;
}


.roadmap ol {
  margin: 0;

  padding-left: 22px;

  color: var(--muted);
}


.roadmap li {
  padding: 6px 0;
}


.roadmap li::marker {
  color: var(--accent);
}


/* =========================================================
   CITA / FILOSOFÍA
   ========================================================= */

.quote {
  margin: 0;

  padding: 22px 0;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}


.quote p {
  max-width: 580px;

  margin: 0;

  color: var(--text);

  font-size: var(--fs-xl);

  line-height: 1.55;

  font-weight: 450;
}


.quote p::before {
  content: "“";

  margin-right: 4px;

  color: var(--accent);
}


.quote p::after {
  content: "”";

  margin-left: 2px;

  color: var(--accent);
}

.quote footer {
  margin-top: 10px;

  color: var(--quiet);

  font-size: var(--fs-sm);
  font-style: normal;
}


/* =========================================================
   FILOSOFÍA (cita + foto)
   ========================================================= */

.philosophy-content {
  display: grid;

  grid-template-columns: 1fr minmax(200px, 260px);
  gap: 2rem;
  align-items: center;
}

.philosophy-image {
  margin: 0;
}

.philosophy-image img {
  display: block;
  width: 100%;

  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);

  transition: transform var(--transition);
}

.philosophy-image img:hover {
  transform: scale(1.02);
}

.philosophy-image figcaption {
  margin-top: 0.6rem;

  color: var(--quiet);

  font-size: var(--fs-2xs);
}


/* =========================================================
   DOCUMENTOS
   ========================================================= */

.documents {
  border-top: 1px solid var(--line);
}


.document {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 18px;

  padding: 15px 0;

  border-bottom: 1px solid var(--line);
}


.document small {
  display: block;

  color: var(--quiet);
}


.document a {
  color: var(--accent);

  font-size: var(--fs-sm);

  font-weight: 650;

  white-space: nowrap;

  transition: color var(--transition);
}


.document a:hover {
  color: var(--accent-soft);

  text-decoration: underline;

  text-underline-offset: 3px;
}


/* =========================================================
   ENLACES / REDES
   ========================================================= */

.links-list {
  border-top: 1px solid var(--line);
}


.network {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  transition: color var(--transition);
}


.network:hover {
  color: var(--accent-soft);
}


.network span:first-child {
  display: flex;

  align-items: center;

  gap: 10px;
}


.network svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  transition: stroke var(--transition);
}


.handle {
  color: var(--quiet);

  font-size: var(--fs-xs);

  transition: color var(--transition);
}


.network:hover .handle {
  color: var(--muted);
}


/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

.footer {
  padding: 28px 0 44px;

  color: var(--quiet);

  font-size: var(--fs-xs);
}


.footer .wrap {
  display: flex;

  justify-content: space-between;

  gap: 20px;
}


.footer p {
  margin: 0;
}

.footer-location i {
  color: var(--accent);

  margin-right: 4px;
}


/* =========================================================
   DISEÑO MÓVIL
   Un solo punto de quiebre (680px) para todos los ajustes de
   pantallas pequeñas, en vez de tener varios @media distintos
   repitiendo reglas parecidas.
   ========================================================= */

@media (max-width: 680px) {

  /* Reducimos el ancho lateral */
  .wrap {
    width: min(
      calc(100% - 32px),
      var(--max)
    );
  }


  /* Hero más compacto */
  .hero {
    padding: 68px 0 54px;
  }


  /* Mostramos el botón del menú */
  .menu-button {
    display: block;
  }


  /* Ocultamos el menú inicialmente */
  .nav-links {
    position: absolute;

    top: 60px;
    left: 16px;
    right: 16px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 7px;

    border: 1px solid var(--line);

    border-radius: var(--radius);

    background: var(--surface);
  }


  /* Menú abierto mediante JavaScript */
  .nav-links.open {
    display: flex;
  }


  /* Elementos del menú móvil */
  .nav-links a {
    padding: 9px;
  }


  /* Foto + texto en una sola columna: Sobre mí y Filosofía */
  .about,
  .philosophy-content {
    grid-template-columns: 1fr;
  }


  /* Entorno técnico en una sola columna, con o sin foto */
  .environment-layout {
    grid-template-columns: 1fr;
  }

  .environment-image {
    max-width: 420px;
  }

  .environment > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }


  /* Proyectos en una sola columna */
  .project {
    grid-template-columns: 1fr;

    gap: 7px;
  }


  .project-meta {
    grid-row: auto;
  }


  .project p,
  .project-footer {
    grid-column: 1;
  }


  /* Documentos en columna */
  .document {
    align-items: flex-start;

    flex-direction: column;

    gap: 6px;
  }


  /* Footer en columna */
  .footer .wrap {
    display: block;
  }


  .footer p + p {
    margin-top: 5px;
  }

}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   Respeta a quien desactivó las animaciones en su sistema:
   quita también la animación de entrada de las fotos.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  .hero > *,
  .about-image,
  .environment-image {
    opacity: 1;

    animation: none;
  }


  .nav-links a,
  .text-link,
  .project-footer a,
  .document a,
  .network,
  .network svg,
  .handle,
  .about-image img,
  .environment-image img,
  .philosophy-image img,
  .profile-content a {
    transition: none;
  }

}

/* ==================================================
   NOTAS / ARTÍCULOS
================================================== */

.note {
  max-width: 860px;
  margin-inline: auto;
  padding-top: 4rem;
  padding-bottom: 5rem;
}


/* ==================================================
   ENCABEZADO DE LA NOTA
================================================== */

.note-header {
  margin-bottom: 3rem;
}

.note-header .eyebrow {
  margin-bottom: 1rem;
}

.note-header h1 {
  max-width: 900px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.note-meta span,
.note-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}


/* ==================================================
   CONTENIDO
================================================== */

.note-content {
  max-width: 760px;
}

.note-content p {
  margin: 0 0 1.35rem;
  line-height: 1.85;
}

.note-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.note-content h2:first-child {
  margin-top: 0;
}

.note-content strong {
  font-weight: 700;
}


/* ==================================================
   ENLACES DENTRO DE LOS ARTÍCULOS
================================================== */

.note-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-content a:hover {
  text-decoration-thickness: 2px;
}


/* ==================================================
   BLOQUE DESTACADO
================================================== */

.note-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid currentColor;
  opacity: 0.9;
}

.note-content blockquote p {
  margin-bottom: 0;
}


/* ==================================================
   PIE DE LA NOTA
================================================== */

.note-footer {
  max-width: 760px;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  opacity: 0.8;
}

.note-footer p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.note-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.note-footer a:hover {
  text-decoration: underline;
}


/* ==================================================
   ENLACE "VOLVER A NOTAS"
================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 700px) {

  .note {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .note-header {
    margin-bottom: 2.25rem;
  }

  .note-header h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .note-meta {
    flex-direction: column;
    gap: 0.6rem;
  }

  .note-content p {
    line-height: 1.75;
  }

  .note-content h2 {
    margin-top: 2.75rem;
  }

}
