/* =========================
   RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
   ========================= */

body {
  font-family: Tahoma, Arial, sans-serif;
  background-color: #e7ff98;
  color: #00441b;
  line-height: 1.6;
  text-align:justify;
}

/* =========================
   NAV
   ========================= */

.site-nav {
  background-color: #00441b;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  color: #e7ff98;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-title:hover {
  text-decoration: underline;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #e7ff98;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* =========================
   MAIN
   ========================= */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem;
}

/* =========================
   HOME INTRO
   ========================= */

.home-intro {
  margin-bottom: 3rem;
}

.home-intro h1 {
  font-size: 2.2rem;
}

.tagline {
  font-size: 0.9rem;
  color: #005b1a;
}

/* =========================
   HOME LAYOUT
   ========================= */

.home-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* =========================
   POSTS GRID
   ========================= */

.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* =========================
   POST CARD
   ========================= */

.post-card {
  background-color: #00441b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 68, 27, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 68, 27, 0.35);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* imagen */

.post-card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* contenido */

.post-card-content {
  padding: 1.4rem 1.5rem 1.6rem;
  color: #e7ff98;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.post-card-subtitle {
  font-size: 0.9rem;
  color: #c5ff58;
  margin-bottom: 0.8rem;
}

.post-card-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5ae444;
}

/* =========================
   SIDEBAR HOME
   ========================= */

.home-sidebar {
  width: 100%;
  font-size: 0.85rem;
   padding-left: 1.5rem;
}

/* bloques */

.sidebar-block {
  margin-bottom: 3rem;
}

.sidebar-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: #005b1a;
  border-bottom: 1px dashed #005b1a;
  padding-bottom: 0.3rem;
}

.sidebar-block p {
  line-height: 1.5;
}

.sidebar-block ul {
  list-style: none;
}

.sidebar-block li {
  margin-bottom: 0.5rem;
}

.sidebar-block a {
  text-decoration: none;
  color: #00441b;
}

.sidebar-block a:hover {
  text-decoration: underline;
}

/* =========================
   MUSIC WIDGET
   ========================= */

.music-widget {
  width: 100%;
  background-color: rgba(0, 68, 27, 0.06);
  padding: 2rem;
  border-radius: 20px;
}

.music-widget h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* =========================
   POST PAGE LAYOUT
   ========================= */

.post-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem;
}

.post-content {
  background-color: #e7ff98;
  padding: 2.5rem;
  border-radius: 16px;
}

.post-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-content time {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #005b1a;
}

.post-content p {
  margin-bottom: 1rem;
}

/* =========================
   POST SIDEBAR
   ========================= */

.post-sidebar {
  font-size: 0.8rem;
}

/* =========================
   FOOTER
   ========================= */

footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .home-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar,
  .post-sidebar {
    margin-top: 3rem;
  }

  .post-list {
    grid-template-columns: 1fr;
  }
}

h1, h2, h3, h4, h5, h6,
.site-title,
.nav-links,
.post-card-title,
.post-card-subtitle,
.post-card-date,
.tagline {
  text-align: left;
}
/* =========================
   APUNTES – CAOS CONTROLADO
   ========================= */

.notes-area {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-right: 1.5rem;
}

/* base común */
.notes-item {
  max-width: 520px;
  padding: 2.2rem 2.4rem;
  border-radius: 18px;
  background-color: #00441b;
  color: #e7ff98;
  box-shadow: 0 18px 40px rgba(0, 68, 27, 0.35);
  position: relative;
}

/* tipografía interna */
.notes-item h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.notes-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.notes-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c5ff58;
  margin-bottom: 1.2rem;
}

.notes-link {
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  color: #5ae444;
}

.notes-link:hover {
  text-decoration: underline;
}
/* =========================
   PERSONALIDAD POR SEGUIMIENTO
   ========================= */

/* Primer seguimiento: tímido, inclinado */
.notes-primer {
  transform: rotate(-1.5deg);
  margin-left: 0;
}

/* Segundo: más grande, dominante */
.notes-segundo {
  transform: rotate(1.2deg);
  margin-left: 3rem;
  background-color: #005b1a;
}

/* Tercero: más pequeño, introspectivo */
.notes-tercer {
  transform: rotate(-0.8deg);
  margin-left: 1.2rem;
  max-width: 460px;
  background-color: #0b9d27;
}
/* =========================
   STICKERS / DETALLES LÚDICOS
   ========================= */

.notes-item::after {
  content: "✎";
  position: absolute;
  top: -14px;
  right: -12px;
  font-size: 1.4rem;
  background-color: #e7ff98;
  color: #00441b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* stickers distintos por seguimiento */

.notes-segundo::after {
  content: "🧪";
}

.notes-tercer::after {
  content: "🧠";
}
/* ===============================
   VARIABLES BASE
================================ */
:root {
  --verde-base: #0a3d2c;
  --verde-suave: rgba(0, 68, 27, 0.08);
  --verde-acento: #1f7a55;
  --texto-principal: #1e1e1e;
  --borde-suave: rgba(0,0,0,0.08);
  --sombra-caos: 0 20px 40px rgba(0,0,0,0.12);
}

/* ===============================
   RESET SUAVE
================================ */
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background-color: #e7ff98;
  color: var(--texto-principal);
}

/* ===============================
   LAYOUT GENERAL
================================ */
.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

/* ===============================
   HEADER DEL SEGUIMIENTO
================================ */
.seguimiento-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.seguimiento-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.seguimiento-frase {
  font-size: 1.1rem;
  opacity: 0.75;
}

/* ===============================
   ESTACIÓN DE TRABAJO
================================ */
.workstation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* ===============================
   TARJETAS DE UNIDAD (BASE)
================================ */
.unidad-card {
  background: white;
  padding: 2rem;
  border-radius: 22px;
  box-shadow: var(--sombra-caos);
  border: 1px solid var(--borde-suave);
  position: relative;
  transition: transform 0.3s ease;
}

.unidad-card:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ===============================
   VARIACIONES CAÓTICAS
================================ */
.unidad-1 {
  transform: rotate(-2deg);
}

.unidad-2 {
  transform: rotate(1.5deg) translateY(10px);
}

.unidad-3 {
  transform: rotate(-1deg) translateY(-12px);
}

.unidad-4 {
  transform: rotate(2deg);
}

.unidad-5 {
  transform: rotate(-1.8deg) translateX(6px);
}

/* ===============================
   CONTENIDO INTERNO
================================ */
.unidad-numero {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--verde-acento);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.unidad-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.unidad-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

.unidad-card a {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--verde-acento);
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   SIDEBAR (ESTABLE)
================================ */
.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-bloque {
  background: var(--verde-suave);
  padding: 1.8rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.sidebar-bloque h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.sidebar-bloque p,
.sidebar-bloque li {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.sidebar-bloque ul {
  padding-left: 1.2rem;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}
