:root {
  --blanco: #ffffff;
  --negro: #000000;
  --rojo: #e30613;
  --fuente: "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk Text Pro",
            "Neue Haas Grotesk", "NHaasGroteskDSPro", "Helvetica Neue",
            Helvetica, Arial, sans-serif;

  /* Cursor en forma de estrella (roja con borde negro) */
  --cursor-estrella: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpolygon points='12,1 14.9,8.6 23,8.9 16.6,13.9 18.9,21.8 12,17.3 5.1,21.8 7.4,13.9 1,8.9 9.1,8.6' fill='%23e30613' stroke='%23000000' stroke-width='1.2'/%3E%3C/svg%3E") 14 14, auto;
  --cursor-estrella-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpolygon points='12,1 14.9,8.6 23,8.9 16.6,13.9 18.9,21.8 12,17.3 5.1,21.8 7.4,13.9 1,8.9 9.1,8.6' fill='%23000000' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E") 16 16, pointer;
}

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

html, body, * { cursor: var(--cursor-estrella); }
a, a *, button { cursor: var(--cursor-estrella-link); }

body {
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--fuente);
  line-height: 1.4;
  overflow-x: hidden;
}

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

::selection { background: var(--rojo); color: var(--blanco); }

.estrella { width: 1em; height: 1em; display: inline-block; vertical-align: middle; fill: currentColor; }

/* =========================================
   MENÚ DE NAVEGACIÓN 2 (Plan / Mapa / App / Grupo / Cátedra)
   ========================================= */
.nav-principal {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--negro);
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 4px solid var(--rojo);
}

.nav-principal .logo {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-principal .logo .estrella { color: var(--rojo); }

.nav-principal ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-principal ul a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-principal ul a:hover {
  background: var(--rojo);
  border-color: var(--blanco);
}

/* =========================================
   HERO / NOMBRE
   ========================================= */
.hero {
  position: relative;
  padding: 60px 32px 40px;
  border-bottom: 4px solid var(--negro);
  overflow: hidden;
}

.hero .etiqueta {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  margin-bottom: 20px;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(3.5rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero h1 span { display: block; }
.hero h1 .rojo { color: var(--rojo); }
.hero h1 .contorno {
  color: transparent;
  -webkit-text-stroke: 2px var(--negro);
}

.hero .subtitulo {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 520px;
}

/* Estrellas decorativas (misceláneas) */
.deco {
  position: absolute;
  pointer-events: none;
}
.deco-1 { top: 30px; right: 6%; width: 140px; height: 140px; color: var(--rojo); animation: girar 14s linear infinite; }
.deco-2 { bottom: 40px; right: 24%; width: 60px; height: 60px; color: var(--negro); animation: girar 9s linear infinite reverse; }
.deco-3 { top: 45%; right: 14%; width: 34px; height: 34px; color: var(--rojo); }

@keyframes girar { to { transform: rotate(360deg); } }

/* =========================================
   CINTA ANIMADA
   ========================================= */
.cinta {
  background: var(--rojo);
  color: var(--blanco);
  border-bottom: 4px solid var(--negro);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.cinta-contenido {
  display: inline-block;
  animation: desplazar 22s linear infinite;
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cinta-contenido span { margin: 0 18px; }

@keyframes desplazar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   GRILLA PRINCIPAL
   ========================================= */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bloque {
  padding: 48px 32px;
  border-bottom: 4px solid var(--negro);
  position: relative;
}

.bloque:nth-child(odd) { border-right: 4px solid var(--negro); }
.bloque.ancho { grid-column: 1 / -1; border-right: none; }
.bloque.negro { background: var(--negro); color: var(--blanco); }

.bloque h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bloque h2 .num {
  font-size: 0.9rem;
  background: var(--rojo);
  color: var(--blanco);
  padding: 4px 8px;
  letter-spacing: 0;
}

.bloque h2 .estrella { color: var(--rojo); }

/* =========================================
   FOTO 1:1
   ========================================= */
.foto-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.foto {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--negro);
  border: 4px solid var(--negro);
  box-shadow: 14px 14px 0 var(--rojo);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-align: center;
}

.foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

.foto-wrap .sello {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 96px;
  height: 96px;
  color: var(--rojo);
  animation: girar 12s linear infinite;
  z-index: 2;
}

/* =========================================
   FOJA ACADÉMICA
   ========================================= */
.anio {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--negro);
}

.anio strong { color: var(--rojo); font-size: 1.6rem; }

.lista-materias h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 20px 0 10px;
}

.lista-materias ul { list-style: none; }

.lista-materias li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--negro);
  font-weight: 500;
  font-size: 1.05rem;
}

.estado {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  white-space: nowrap;
  margin-left: 12px;
}

.estado.aprobada { background: var(--negro); color: var(--blanco); }
.estado.en-curso { background: var(--rojo); color: var(--blanco); }

/* =========================================
   MENÚ DE NAVEGACIÓN 1 (Integrantes)
   ========================================= */
.integrantes { display: flex; flex-direction: column; }

.integrantes a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px solid var(--blanco);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transition: all 0.2s;
}

.integrantes a::after {
  content: "★";
  color: var(--rojo);
  font-size: 1.2rem;
}

.integrantes a:hover {
  color: var(--rojo);
  padding-left: 14px;
}

.integrantes a.actual { color: var(--rojo); }

.equipo-tag {
  display: inline-block;
  border: 2px solid var(--blanco);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* =========================================
   DATOS UNIVERSIDAD
   ========================================= */
.datos-uni {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border-top: 2px solid var(--negro);
  border-left: 2px solid var(--negro);
}

.dato {
  border-right: 2px solid var(--negro);
  border-bottom: 2px solid var(--negro);
  padding: 18px;
}

.dato small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rojo);
  margin-bottom: 6px;
}

.dato span {
  font-size: 1.15rem;
  font-weight: 700;
}

/* =========================================
   BEHANCE / TRABAJOS
   ========================================= */
.behance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rojo);
  color: var(--blanco);
  border: 3px solid var(--negro);
  padding: 14px 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 6px 6px 0 var(--negro);
  transition: all 0.15s;
}

.boton:hover {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--negro);
}

.trabajos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trabajo {
  display: block;
  border: 4px solid var(--negro);
  transition: all 0.2s;
}

.trabajo:hover {
  transform: rotate(-1.5deg);
  box-shadow: 10px 10px 0 var(--rojo);
}

.trabajo .imagen {
  aspect-ratio: 4 / 3;
  background: var(--negro);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.trabajo .imagen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trabajo:nth-child(2) .imagen { background: var(--rojo); }
.trabajo .imagen .estrella { width: 70px; height: 70px; }

.trabajo .info {
  padding: 14px;
  border-top: 4px solid var(--negro);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.trabajo .info em { font-style: normal; color: var(--rojo); }

/* =========================================
   FOOTER: DATOS ACADÉMICOS + INFO LEGAL
   ========================================= */
footer {
  background: var(--negro);
  color: var(--blanco);
  padding: 56px 32px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  color: var(--rojo);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rojo);
}

.footer-grid p {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-grid p strong { font-weight: 700; }

.legal {
  border-top: 4px solid var(--rojo);
  padding-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.9;
}

.legal .estrella {
  flex-shrink: 0;
  color: var(--rojo);
  width: 28px;
  height: 28px;
}

.firma {
  margin-top: 32px;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blanco);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
  .bloque:nth-child(odd) { border-right: none; }
  .trabajos { grid-template-columns: 1fr; }
  .nav-principal { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .hero, .bloque, footer { padding-left: 16px; padding-right: 16px; }
  .deco-1 { width: 80px; height: 80px; }
  .foto-wrap .sello { width: 70px; height: 70px; top: -18px; right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
