/* =========================================================
   01. VARIABLES
========================================================= */
:root {
  --bg: #f6f1f7;
  --ink: #19151d;
  --muted: #6e6672;
  --lavender: #8783d7;
  --lavender-deep: #706fc7;
  --lavender-soft: #dcdaf5;
  --pink: #e8c6dd;
  --wine: #4b0f26;
  --white: #fff;
  --line: rgba(25,21,29,.14);
  --radius: 34px;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: "DM Sans",sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden
}

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

em {
  font-family: "Playfair Display",serif;
  font-weight: 500
}

::selection {
  background: var(--lavender);
  color: #fff
}

/* =========================================================
   03. HEADER / NAVEGACIÓN
========================================================= */
.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px,calc(100% - 36px));
  padding: 13px 16px 13px 20px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(246,241,247,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: .3s
}

.site-header.scrolled {
  box-shadow: 0 12px 40px rgba(37,24,49,.1);
  background: rgba(246,241,247,.94)
}

.logo {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em
}

.logo span {
  color: var(--lavender)
}

.nav {
  display: flex;
  gap: 24px
}

.nav a {
  font-size: .8rem;
  color: var(--muted);
  transition: .2s
}

.nav a:hover,.nav a.active {
  color: var(--ink)
}

.nav a.active {
  font-weight: 700
}

.mini-button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .8rem
}

/* =========================================================
   04. HERO / LANDING
========================================================= */
.hero {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%,rgba(255,255,255,.55),transparent 28%),linear-gradient(145deg,#6e75cc 0%,#9f8bd4 42%,#e5bed7 100%);
  color: #fff;
  padding: 150px 8vw 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden
}

.hero::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 38px;
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 2
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .45;
  transition: transform .25s ease-out
}

.glow-one {
  width: 360px;
  height: 360px;
  background: #d8b7ef;
  top: 12%;
  right: 7%
}

.glow-two {
  width: 260px;
  height: 260px;
  background: #7196f2;
  bottom: 4%;
  left: 12%
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 18px
}

.hero-eyebrow {
  font-size: 1.15rem
}

.eyebrow.dark {
  color: var(--muted)
}

.hero h1,.page-hero h1,.contact-full h1 {
  font-size: clamp(4.2rem,11vw,9.2rem);
  line-height: .82;
  letter-spacing: -.07em
}

.hero h1 em,.page-hero h1 em,.contact-full h1 em {
  letter-spacing: -.045em
}

.hero-name {
  display: flex;
  align-items: center;
  gap: 40px;
  width: fit-content
}

.hero-photo {
  width: 190px;
  height: 250px;
  object-fit: cover;
  border-radius: 100px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.55)
}

.placeholder-photo {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.15);
  border: 1px dashed rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase
}

.hero-copy {
  width: min(650px,90%);
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
  margin: 34px 0 30px
}

.hero-actions {
  display: flex;
  gap: 12px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  transition: .25s
}

.button:hover {
  transform: translateY(-2px)
}

.primary {
  background: #fff;
  color: var(--ink)
}

.ghost {
  border: 1px solid rgba(255,255,255,.5);
  color: #fff
}

.hero-/* =========================================================
   14. FOOTER
========================================================= */
footer {
  position: absolute;
  bottom: 60px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  font-size: .67rem;
  letter-spacing: .13em;
  z-index: 2;
  opacity: .75
}

/* =========================================================
   05. SECCIONES GENERALES
========================================================= */
.section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px 6vw
}

.section-number {
  position: absolute;
  top: 90px;
  right: 6vw;
  font-family: "Playfair Display",serif;
  font-size: 6rem;
  color: rgba(25,21,29,.06)
}

.section-heading {
  margin-bottom: 56px
}

.section-heading h2 {
  font-size: clamp(2.6rem,5vw,5rem);
  line-height: .98;
  letter-spacing: -.055em
}

/* =========================================================
   06. SOBRE MÍ
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px
}

.card {
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden
}

.card h3 {
  font-size: 1.8rem;
  line-height: 1.05;
  margin: 7px 0 18px
}

.card-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700
}

.lavender {
  background: var(--lavender);
  color: #fff
}

.light {
  background: #fff;
  border: 1px solid var(--line)
}

.image-card {
  padding: 0;
  background: #d9cdea
}

.abstract-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: linear-gradient(150deg,rgba(255,255,255,.1),rgba(255,255,255,.55)),linear-gradient(145deg,#847fca,#e1bdd4);
  overflow: hidden
}

.abstract-art span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  font-family: "Playfair Display",serif;
  font-size: 4.6rem;
  color: #fff;
  z-index: 3
}

.shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,.7)
}

.shape-a {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  left: -20px;
  top: 20px
}

.shape-b {
  width: 180px;
  height: 280px;
  border-radius: 100px;
  right: -40px;
  bottom: -40px;
  transform: rotate(25deg)
}

.shape-c {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,.25);
  border-radius: 24px;
  right: 28px;
  top: 30px;
  transform: rotate(18deg)
}

/* =========================================================
   07. DESTACADOS
========================================================= */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px
}

.highlight-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: rgba(255,255,255,.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: .3s
}

.highlight-card:hover {
  transform: translateY(-7px);
  background: #fff
}

.highlight-index {
  font-family: "Playfair Display",serif;
  font-size: 2.1rem;
  color: var(--lavender-deep);
  margin-bottom: auto
}

.highlight-card h3 {
  font-size: 2rem;
  margin-bottom: 12px
}

.highlight-card p {
  color: var(--muted);
  margin-bottom: 22px
}

.text-link {
  display: inline-block;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor
}

/* =========================================================
   08. HERRAMIENTAS Y LOGOS
========================================================= */
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.course-chips span,.project-tags span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px
}

.logo-card {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center
}

.logo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  border: 1.5px dashed rgba(25,21,29,.22);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#eee8f4,#dad6f0);
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px
}

.tool-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block
}

/* =========================================================
   09. CTA CONTACTO
========================================================= */
.contact-cta {
  margin: 30px 24px 24px;
  padding: 90px 7vw;
  border-radius: 44px;
  color: #fff;
  background: linear-gradient(135deg,#706fc7,#c394cb 58%,#e2b6cf)
}

.contact-cta h2 {
  font-size: clamp(3.5rem,8vw,7.8rem);
  line-height: .85;
  letter-spacing: -.07em;
  margin-bottom: 30px
}

/* =========================================================
   10. HERO PÁGINAS INTERNAS
========================================================= */
.page-hero {
  min-height: 72vh;
  padding: 180px 8vw 90px;
  color: #fff;
  display: flex;
  align-items: flex-end
}

.page-hero-projects {
  background: linear-gradient(145deg,#4b0f26,#9c6a9a 60%,#e8c6dd)
}

.page-hero-experience {
  background: linear-gradient(145deg,#323a70,#7b79c9 55%,#d8b7df)
}

.page-hero-inner {
  max-width: 900px
}

.page-hero-inner>p:last-child {
  max-width: 620px;
  margin-top: 30px;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem
}

/* =========================================================
   11. PROYECTOS
========================================================= */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 110px
}

.project-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center
}

.project-detail.reverse .project-media {
  order: 2
}

.project-media {
  min-height: 520px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--lavender-soft)
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block
}

.image-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1.5px dashed rgba(25,21,29,.25);
  border-radius: 40px;
  background: linear-gradient(145deg,#eee8f4,#d7d4ef);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem
}

.image-placeholder small {
  display: block;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .75rem
}

.project-info h2 {
  font-size: clamp(2.8rem,5vw,5.5rem);
  line-height: .9;
  letter-spacing: -.055em;
  margin-bottom: 24px
}

.project-info>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 500px;
  margin-bottom: 24px
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px
}

/* =========================================================
   12. EXPERIENCIA / FORMACIÓN
========================================================= */
.education {
  border-top: 1px solid var(--line)
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--line)
}

.timeline-year {
  font-family: "Playfair Display",serif;
  font-size: 1.8rem;
  color: var(--lavender-deep)
}

.timeline-type {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px
}

.timeline-item h3 {
  font-size: clamp(1.4rem,2vw,2rem);
  margin-bottom: 8px;
  letter-spacing: -.03em
}

.timeline-item>div:last-child>p:last-child {
  color: var(--muted);
  max-width: 740px
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px
}

.workshop-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end
}

.workshop-grid span {
  color: var(--lavender-deep);
  font-family: "Playfair Display",serif;
  font-size: 1.3rem;
  margin-bottom: auto
}

.workshop-grid h3 {
  font-size: 1.25rem
}

.workshop-grid p {
  color: var(--muted);
  font-size: .85rem
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px
}

.skills-columns h3 {
  font-size: 1.5rem;
  margin-bottom: 18px
}

/* =========================================================
   13. PÁGINA DE CONTACTO
========================================================= */
.contact-page-body {
  background: #716fc7
}

.contact-full {
  min-height: calc(100vh - 90px);
  padding: 170px 8vw 90px;
  color: #fff;
  background: radial-gradient(circle at 80% 10%,rgba(255,255,255,.18),transparent 26%),linear-gradient(135deg,#706fc7,#c394cb 58%,#e2b6cf);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.contact-full-copy>p:last-child {
  max-width: 560px;
  margin-top: 30px;
  color: rgba(255,255,255,.86);
  font-size: 1.05rem
}

.contact-cards {
  display: grid;
  gap: 12px
}

.contact-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  transition: .25s
}

.contact-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-3px)
}

.contact-card span,.contact-card small {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .75
}

.contact-card strong {
  display: block;
  font-size: 1.1rem;
  margin: 8px 0
}

.contact-footer {
  background: #716fc7;
  color: rgba(255,255,255,.75)
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px 40px;
  color: var(--muted);
  font-size: .78rem
}

/* =========================================================
   15. ANIMACIONES
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease,transform .75s cubic-bezier(.2,.65,.2,1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* =========================================================
   16. RESPONSIVE · TABLET
========================================================= */
@media(max-width:980px) {
  .nav {
    display: none
  }

  .about-grid,.highlight-grid,.workshop-grid,.logo-grid {
    grid-template-columns: 1fr 1fr
  }

  .project-detail,.contact-full {
    grid-template-columns: 1fr
  }

  .project-detail.reverse .project-media {
    order: 0
  }

  .skills-columns {
    grid-template-columns: 1fr
  }

  .contact-full {
    padding-top: 150px
  }

}

/* =========================================================
   17. RESPONSIVE · MÓVIL
========================================================= */
@media(max-width:700px) {
  .hero {
    padding-left: 7vw;
    padding-right: 7vw
  }

  .hero h1,.page-hero h1,.contact-full h1 {
    font-size: clamp(4rem,17vw,7.5rem)
  }

  .hero-name {
    align-items: flex-start;
    gap: 18px
  }

  .hero-photo {
    width: 110px;
    height: 150px
  }

  .hero-footer {
    flex-direction: column;
    gap: 8px
  }

  .about-grid,.highlight-grid,.workshop-grid,.logo-grid {
    grid-template-columns: 1fr
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .timeline-year {
    font-size: 1.35rem
  }

  .project-detail {
    gap: 28px
  }

  .project-media,.project-media img,.image-placeholder {
    min-height: 360px
  }

  .page-hero {
    min-height: 65vh;
    padding-left: 7vw;
    padding-right: 7vw
  }

  .contact-full {
    padding-left: 7vw;
    padding-right: 7vw
  }

}

/* =========================================================
   18. RESPONSIVE · MÓVIL PEQUEÑO
========================================================= */
@media(max-width:560px) {
  .site-header {
    top: 12px;
    width: calc(100% - 20px)
  }

  .mini-button {
    padding: 8px 12px
  }

  .hero {
    padding-top: 120px;
    min-height: 92svh
  }

  .hero::after {
    inset: 18px;
    border-radius: 28px
  }

  .hero-eyebrow {
    font-size: .95rem
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start
  }

  .section {
    padding: 100px 22px
  }

  .section-number {
    top: 60px;
    right: 20px;
    font-size: 4rem
  }

  .card {
    min-height: 300px
  }

  .hero-name {
    flex-direction: column
  }

  .hero-photo {
    width: 120px;
    height: 120px
  }

  .contact-cta {
    margin: 10px;
    padding: 70px 24px;
    border-radius: 30px
  }

  .contact-full {
    padding-top: 130px
  }

  .contact-card strong {
    font-size: .95rem;
    word-break: break-word
  }

  footer {
    padding: 24px 20px 32px;
    flex-direction: column;
    gap: 8px
  }

}

/* =========================================================
   19. ACCESIBILIDAD
========================================================= */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .hero-glow {
    transition: none
  }

}
/* =========================================================
   LOGOS DE HERRAMIENTAS
========================================================= */
.logo-card {
  position: relative;
}

.tool-logo {
  width: 100%;
  max-width: 110px;
  height: 110px;
  object-fit: contain;
  display: none;
}

.logo-card.logo-loaded .tool-logo {
  display: block;
}

.logo-card.logo-loaded .logo-placeholder {
  display: none;
}

.logo-placeholder {
  line-height: 1.35;
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg: #f6f1f7;
  --ink: #19151d;
  --muted: #6e6672;
  --lavender: #8783d7;
  --lavender-deep: #706fc7;
  --lavender-soft: #dcdaf5;
  --pink: #e8c6dd;
  --wine: #4b0f26;
  --white: #ffffff;
  --line: rgba(25, 21, 29, 0.14);
  --radius: 34px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

::selection {
  background: var(--lavender);
  color: white;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  padding: 13px 16px 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(246, 241, 247, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 40px rgba(37, 24, 49, 0.10);
  background: rgba(246, 241, 247, 0.9);
}

.logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo span {
  color: var(--lavender);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.mini-button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(145deg, #6e75cc 0%, #9f8bd4 42%, #e5bed7 100%);
  color: var(--white);
  padding: 150px 8vw 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 38px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.45;
  transition: transform 0.25s ease-out;
}

.glow-one {
  width: 360px;
  height: 360px;
  background: #d8b7ef;
  top: 12%;
  right: 7%;
}

.glow-two {
  width: 260px;
  height: 260px;
  background: #7196f2;
  bottom: 4%;
  left: 12%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* SOLO cambia el tamaño de “HOLA, SOY” */
.hero-eyebrow {
  font-size: 1.15rem;
}

.eyebrow.dark {
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(4.2rem, 11vw, 9.2rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.hero h1 em {
  letter-spacing: -0.045em;
}

.hero-name {
  display: flex;
  align-items: center;
  gap: 40px;
  width: fit-content;
}

.hero-photo {
  width: 190px;
  height: 250px;
  object-fit: cover;
  border-radius: 100px;
  flex-shrink: 0;

  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-copy {
  width: min(560px, 90%);
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
  margin: 34px 0 30px;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--white);
  color: var(--ink);
}

.ghost {
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
}

.hero-footer {
  position: absolute;
  bottom: 60px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  z-index: 2;
  opacity: 0.75;
}

.hero-photo {
  width: 50%;
  height: 30%;
  border-radius: 80px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-name {
  display: flex;
  align-items: center;
  gap: 40px;
  width: fit-content;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px 6vw;
}

.section-number {
  position: absolute;
  top: 90px;
  right: 6vw;
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  color: rgba(25,21,29,.06);
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

/* =========================================================
   SOBRE MÍ
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 16px;
}

.card {
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.card h3 {
  font-size: 1.8rem;
  line-height: 1.05;
  margin: 7px 0 18px;
}

.card p {
  max-width: 440px;
}

.card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.lavender {
  background: var(--lavender);
  color: white;
}

.light {
  background: white;
  border: 1px solid var(--line);
}

.image-card {
  padding: 0;
  background: #d9cdea;
}

.abstract-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.55)),
    linear-gradient(145deg, #847fca, #e1bdd4);
  overflow: hidden;
}

.abstract-art span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Playfair Display", serif;
  font-size: 4.6rem;
  color: white;
  z-index: 3;
}

.shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,.7);
}

.shape-a {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  left: -20px;
  top: 20px;
}

.shape-b {
  width: 180px;
  height: 280px;
  border-radius: 100px;
  right: -40px;
  bottom: -40px;
  transform: rotate(25deg);
}

.shape-c {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,.25);
  border-radius: 24px;
  right: 28px;
  top: 30px;
  transform: rotate(18deg);
}

.profile-link-wrap {
  margin-top: 28px;
}

.text-link {
  display: inline-block;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

/* =========================================================
   FORMACIÓN
========================================================= */
.education {
  border-top: 1px solid var(--line);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 32px 4px;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--lavender-deep);
}

.timeline-type {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
}

.timeline-item h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.timeline-item > div:last-child > p:last-child {
  color: var(--muted);
  max-width: 740px;
}

.course-chips {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-chips span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* =========================================================
   PROYECTOS
========================================================= */
.projects {
  border-top: 1px solid var(--line);
}

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

.project-card {
  aspect-ratio: 0.82;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(37,24,49,.10);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.project-card h3 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.project-card p {
  max-width: 330px;
  font-size: 0.9rem;
}

.project-one {
  background: var(--wine);
  color: white;
}

.project-two {
  background: var(--lavender-soft);
}

.project-three {
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.15)),
    linear-gradient(145deg, #eabed6, #927fc9);
  color: white;
}

/* =========================================================
   TRAVESÍA
========================================================= */
.journey {
  border-top: 1px solid var(--line);
}

.journey-panel {
  border-radius: 44px;
  min-height: 540px;
  overflow: hidden;
  color: white;
  padding: 60px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.12), transparent 26%),
    linear-gradient(135deg, #34213d, #7169ba 60%, #c69cc7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.journey-copy {
  position: relative;
  z-index: 2;
}

.journey-copy h2 {
  font-size: clamp(3.8rem, 7vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin-bottom: 30px;
}

.journey-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
}

.journey-button {
  display: inline-flex;
}

.journey-graphic {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
}

.journey-graphic > span {
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  position: relative;
  z-index: 4;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
}

.orbit-one {
  width: 320px;
  height: 320px;
}

.orbit-two {
  width: 230px;
  height: 230px;
}

.journey-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  top: calc(50% - 150px);
  left: calc(50% + 60px);
  box-shadow: 0 0 40px rgba(255,255,255,.35);
}

/* =========================================================
   CONTACTO
========================================================= */
.contact {
  margin: 0 24px 24px;
  min-height: 70vh;
  padding: 90px 7vw;
  border-radius: 44px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, #706fc7, #c394cb 58%, #e2b6cf);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact h2 {
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}

.contact > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255,255,255,.85);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px 40px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* =========================================================
   ANIMACIÓN REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(.2,.65,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

  .project-card {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .journey-panel {
    grid-template-columns: 1fr;
  }

  .journey-graphic {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .hero h1 {
    font-size: clamp(4rem, 17vw, 7.5rem);
  }

  .hero-footer {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-year {
    font-size: 1.35rem;
  }

  .journey-panel {
    padding: 42px 26px;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 12px;
    width: calc(100% - 20px);
  }

  .mini-button {
    padding: 8px 12px;
  }

  .hero {
    padding-top: 120px;
    min-height: 92svh;
  }

  .hero::after {
    inset: 18px;
    border-radius: 28px;
  }

  .hero-eyebrow {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 100px 22px;
  }

  .section-number {
    top: 60px;
    right: 20px;
    font-size: 4rem;
  }

  .card {
    min-height: 300px;
  }

  .project-top {
    flex-direction: column;
  }

  .journey-panel {
    border-radius: 30px;
  }

  .orbit-one {
    width: 250px;
    height: 250px;
  }

  .orbit-two {
    width: 175px;
    height: 175px;
  }

  .journey-dot {
    top: calc(50% - 115px);
    left: calc(50% + 35px);
  }

  .contact {
    margin: 10px;
    padding: 70px 24px;
    min-height: 75svh;
    border-radius: 30px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    padding: 24px 20px 32px;
    flex-direction: column;
    gap: 8px;
  }
}

/* Respeta la preferencia del usuario si reduce movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow {
    transition: none;
  }
}


/* =========================================================
   20. PÁGINA DE TAREAS
========================================================= */
.page-hero-tasks {
  background: linear-gradient(145deg,#5d5fae,#8b82cb 55%,#dfbdd7);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.task-card {
  min-height: 420px;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  display: flex;
  flex-direction: column;
}

.task-number {
  font-family: "Playfair Display",serif;
  color: var(--lavender-deep);
  font-size: 1.35rem;
  margin-bottom: 45px;
}

.task-card h3 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.task-card > p {
  color: var(--muted);
  max-width: 520px;
}

.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 30px;
}

.task-tags span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem;
}

.task-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.task-primary {
  background: var(--ink);
  color: #fff;
}

@media(max-width:800px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   21. TAREA 04 INTEGRADA EN TAREAS.HTML
========================================================= */
html { scroll-behavior: smooth; }

.task-detail {
  background: #f3f0ea;
  padding: 120px 6vw 130px;
  scroll-margin-top: 80px;
}

.task-detail-hero {
  max-width: 1280px;
  margin: 0 auto 55px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: end;
}

.task-detail-hero h2 {
  font-size: clamp(3.2rem,7vw,7rem);
  line-height: .88;
  letter-spacing: -.06em;
}

.task-detail-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  padding-bottom: 8px;
}

.task-sites {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.task-site {
  border-radius: 32px;
  padding: 34px;
  min-height: 620px;
}

.task-site-yellow { background: #f5dc54; }
.task-site-violet { background: #cfc4ef; }

.task-site-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 70px;
  font-size: .8rem;
}

.task-site-top span {
  font-family: "Playfair Display",serif;
  font-size: 1.6rem;
}

.task-site-top a {
  border-bottom: 1px solid currentColor;
}

.task-site h3 {
  font-size: clamp(2.3rem,4vw,4.4rem);
  line-height: .95;
  margin-bottom: 38px;
  letter-spacing: -.04em;
}

.task-site-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.task-site h4 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.task-site ul {
  padding-left: 18px;
  color: rgba(25,21,29,.76);
}

.task-site li + li { margin-top: 10px; }

.task-conclusion {
  max-width: 1280px;
  margin: 18px auto 0;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 54px 34px;
}

.task-conclusion .eyebrow { color: rgba(255,255,255,.55); }

.task-conclusion > h3 {
  font-size: clamp(2.2rem,4vw,4rem);
  letter-spacing: -.04em;
  margin-bottom: 42px;
}

.task-principles {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.task-principles > div {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 18px;
}

.task-principles span {
  display: block;
  font-family: "Playfair Display",serif;
  opacity: .45;
  margin-bottom: 26px;
}

.task-principles strong {
  display: block;
  margin-bottom: 10px;
}

.task-principles p {
  color: rgba(255,255,255,.68);
  font-size: .9rem;
}

.task-back {
  max-width: 1280px;
  margin: 28px auto 0;
  display: flex;
  justify-content: flex-end;
}

@media(max-width:900px) {
  .task-detail-hero,
  .task-sites,
  .task-site-columns {
    grid-template-columns: 1fr;
  }
  .task-principles { grid-template-columns: 1fr 1fr; }
  .task-site { min-height: auto; }
  .task-site-top { margin-bottom: 45px; }
}

@media(max-width:560px) {
  .task-detail { padding: 90px 5vw 100px; }
  .task-site, .task-conclusion { padding: 26px 22px; border-radius: 24px; }
  .task-principles { grid-template-columns: 1fr; }
}
