/* ============================================================
   ESTILOS EDITORIALES OPTIMIZADOS - CARLA CIARAVINO
   Inspiración: Editorial contemporáneo, Squarespace & Wellness
   ============================================================ */

:root {
  --bg-color: #f7f6f2;          /* Arena cálido muy suave */
  --surface: #ffffff;           /* Blanco puro para tarjetas */
  --surface-subtle: #eeede7;    /* Tono piedra para bloques secundarios */
  
  --primary-dark: #1f3126;      /* Verde bosque profundo */
  --accent: #2e4a3a;            /* Verde complementario */
  --accent-soft: #e3ebd8;       /* Verde pastel claro para tags */
  
  --text-main: #191b18;         /* Tono casi negro suave */
  --text-muted: #5e645a;        /* Tono medio apagado */
  --border-color: #e2dfd5;      /* Líneas finas cálidas */
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(31, 49, 38, 0.04);
  --shadow-hover: 0 8px 24px rgba(31, 49, 38, 0.08);
}

/* Scroll suave en toda la página */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
}

/* Contenedor Principal */
.site-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- NAVEGACIÓN --- */
.top-nav-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
}

.brand-pill {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--primary-dark);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.25s ease;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.nav-links a:hover {
  background-color: var(--surface-subtle);
  color: var(--primary-dark);
}

.nav-links a.active {
  background-color: var(--accent-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-project {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 8px;
}

.nav-project .nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.nav-project .nav-links a:hover {
  border-color: var(--border-color);
  background: var(--surface);
  color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 48px;
  box-shadow: var(--shadow-subtle);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.05;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.82rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: background-color 0.2s ease;
}

.tag strong {
  color: var(--primary-dark);
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 8px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.foto-estudiante {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.avatar-frame:hover .foto-estudiante {
  transform: scale(1.04);
}

/* --- BLOQUES DE CONTENIDO --- */
.content-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 10px;
}

.section-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- TARJETAS --- */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d3cfc2;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

/* --- FOJA ACADÉMICA --- */
.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--accent-soft);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.card-badge.neutral {
  background-color: var(--surface-subtle);
  color: var(--text-muted);
}

.badge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Chips de Materias Aprobadas */
.chips-container {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-container li {
  font-size: 0.85rem;
  background-color: var(--surface-subtle);
  color: var(--text-main);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: default;
}

.chips-container li:hover {
  background-color: var(--accent-soft);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
/* Chips específicos para materias en curso */
.chips-container.current-chips li {
  background-color: var(--accent-soft);
  color: var(--primary-dark);
  font-weight: 500;
  border: 1px solid rgba(31, 49, 38, 0.1);
}

.chips-container.current-chips li:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- DATOS INSTITUCIONALES --- */
.institutional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.data-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-sheet div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
  gap: 16px;
}

.data-sheet dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.data-sheet dd {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* Card Proyecto */
.project-card {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, #faf9f6 100%);
  scroll-margin-top: 30px; /* Para que al scrollear quede centrado con aire */
}

.project-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.project-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary-dark);
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}

.project-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.team-roster {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.theme-box {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* --- FOOTER LEGAL --- */
.site-footer {
  background-color: var(--primary-dark);
  color: #e5ebe7;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 20px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
}

.footer-content h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 400;
}

.footer-content p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.legal-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 20px;
    gap: 24px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .meta-tags {
    justify-content: center;
  }

  .avatar-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .academic-grid,
  .project-body {
    grid-template-columns: 1fr;
  }

  .data-sheet div {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .data-sheet dd {
    text-align: left;
  }

  .site-footer {
    padding: 28px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}