@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,700;0,800;0,900;1,700;1,900&family=Barlow:wght@300;400;500&display=swap');

:root {
  --bg:      #F0EDE8;
  --ink:     #0D0D0D;
  --accent:  #ff009d;
  --mid:     #999490;
  --white:   #F7F5F2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
}

header {
  margin: 0 2.5rem;
  padding: 1.5rem 0 0;
}

header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

header button {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

header button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

body > h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 20vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3rem 2.5rem 0;
  animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body > img {
  display: block;
  width: clamp(200px, 44vw, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 1.5rem 2.5rem;
  filter: grayscale(100%) contrast(1.15);
  border: 2px solid var(--ink);
  animation: slideIn 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: filter 0.3s;
}

body > img:hover { filter: grayscale(0%) contrast(1.05); }

main {
  border-top: 2px solid var(--ink);
  margin: 0 2.5rem;
}

section {
  border-bottom: 1px solid var(--ink);
  padding: 2rem 0;
  animation: fadeUp 0.5s ease both;
}

section:nth-child(1) { animation-delay: 0.15s; }
section:nth-child(2) { animation-delay: 0.25s; }
section:nth-child(3) { animation-delay: 0.30s; }
section:nth-child(4) { animation-delay: 0.35s; }

/* SOBRE MI */
main > section:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

main > section:first-child article h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

main > section:first-child article p {
  font-weight: 300;
  font-size: 0.85rem;
  max-width: 42ch;
  line-height: 1.65;
}

main > section:first-child a {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
}

main > section:first-child a h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mid);
  border-bottom: 1px solid var(--mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: 0;
}

main > section:first-child a:hover h2 {
  color: var(--accent);
  border-color: var(--accent);
}

/* INTERESES */
main > section:nth-child(2) { padding: 3rem 0; }

main > section:nth-child(2) article h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 9vw, 7rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ELVIS */
main > section:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 2rem;
}

main > section:nth-child(3)::before {
  content: '★';
  font-size: 0.7rem;
  color: var(--mid);
}

main > section:nth-child(3) img {
  width: clamp(200px, 44vw, 360px);
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.3s;
}

main > section:nth-child(3) img:hover { filter: grayscale(0%); }

/* EQUIPO */
main > section:nth-child(4) article h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--mid);
  margin-bottom: 1.2rem;
}

main > section:nth-child(4) a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-right: 1.5rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

main > section:nth-child(4) a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* FOOTER */
footer {
  margin: 0 2.5rem;
  padding: 1.5rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
}

footer p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--mid);
}

.disclaimer {
  margin: 0 2.5rem 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--mid);
}

.disclaimer p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--mid);
  max-width: 64ch;
}

footer::after {
  content: '→';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  body > h1 { padding: 2rem 1.2rem 0; }
  body > img { margin: 1.2rem; }
  main { margin: 0 1.2rem; }
  main > section:first-child { grid-template-columns: 1fr; }
  main > section:nth-child(4) a { display: block; margin-right: 0; }
  footer { margin: 0 1.2rem; }
}


/* ════════════════════════════════════════
   RÓTULO GRUPAL
   ════════════════════════════════════════ */

body > p.subtitulo {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  padding: 0.6rem 2.5rem 0;
  animation: slideIn 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* GRID DE TARJETAS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem 2.5rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.card {
  border-right: 1px solid var(--ink);
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.35s; border-right: none; }

.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
  border: 2px solid var(--ink);
  display: block;
  transition: filter 0.3s;
}

.card-img:hover { filter: grayscale(0%) contrast(1.05); }

.card-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.card-subtitle {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin: 0;
}

.card-btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.9rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}

.card-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* DATOS ACADÉMICOS */
.legal {
  margin: 0 2.5rem 2.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--mid);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18ch, 1fr));
  gap: 1.5rem 3rem;
}

.legal h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.legal p {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--mid);
}

/* RESPONSIVE – GRUPAL */
@media (max-width: 700px) {
  body > p.subtitulo { padding: 0.6rem 1.2rem 0; }

  .cards-grid {
    grid-template-columns: 1fr;
    margin: 1.5rem 1.2rem 0;
  }

  .card { border-right: none; border-bottom: 1px solid var(--ink); }
  .card:last-child { border-bottom: none; }

  .legal { margin: 0 1.2rem 2rem; }
}
