/* ============================================================
   EZEQUIEL AREAS — DIyS · FADU · UBA
   Portfolio Académico — Diseño de Imagen y Sonido
   Estética: Cinematográfica · Noir · Marrón Oscuro · Dorado
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400&display=swap');

/* ============================================================
   2. CSS VARIABLES — SISTEMA DE DISEÑO
   ============================================================ */

:root {
  /* Negros y grises */
  --negro-profundo:   #050505;
  --negro:            #090807;
  --gris-oscuro:      #111009;
  --gris-medio:       #1a1714;
  --gris-suave:       #232018;
  --gris-borde:       #2e2a24;

  /* Marrones oscuros */
  --marron-profundo:  #1a1208;
  --marron-oscuro:    #261a0e;
  --marron-medio:     #3a2712;
  --marron-suave:     #4a3318;
  --marron-tenue:     rgba(58, 39, 18, 0.45);
  --marron-borde:     rgba(74, 51, 24, 0.50);

  /* Dorados */
  --dorado:           #c9a84c;
  --dorado-claro:     #e2c06b;
  --dorado-palido:    #f0d88a;
  --dorado-oscuro:    #a07830;
  --dorado-tenue:     rgba(201, 168, 76, 0.10);
  --dorado-borde:     rgba(201, 168, 76, 0.28);
  --dorado-sombra:    rgba(201, 168, 76, 0.07);

  /* Textos */
  --texto-primario:   #d4cfc6;
  --texto-secundario: #8a8070;
  --texto-tenue:      #5a5248;

  /* Tipografía */
  --fuente-display:   'Cormorant Garamond', Georgia, serif;
  --fuente-cuerpo:    'Syne', sans-serif;
  --fuente-mono:      'DM Mono', 'Courier New', monospace;

  /* Espaciados */
  --espacio-xs:   0.5rem;
  --espacio-sm:   1rem;
  --espacio-md:   2rem;
  --espacio-lg:   3.5rem;
  --espacio-xl:   6rem;

  /* Bordes */
  --radio-sm:     4px;
  --radio-md:     8px;
  --radio-lg:     14px;
  --radio-xl:     20px;
  --radio-full:   9999px;

  /* Sombras */
  --sombra-suave:    0 4px 24px rgba(0, 0, 0, 0.40);
  --sombra-media:    0 8px 40px rgba(0, 0, 0, 0.60);
  --sombra-fuerte:   0 16px 60px rgba(0, 0, 0, 0.75);
  --sombra-dorada:   0 0 30px rgba(201, 168, 76, 0.12);
  --sombra-marron:   0 8px 32px rgba(26, 18, 8, 0.70);

  /* Transiciones */
  --trans-rapida:  0.2s ease;
  --trans-media:   0.4s ease;
  --trans-lenta:   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --ancho-max:    800px;
}

/* ============================================================
   3. RESET Y BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--negro-profundo);
  color: var(--texto-primario);
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;

  /* Atmósfera cinematográfica con toque cálido marrón */
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -5%,  rgba(201, 168, 76, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 0%   50%,  rgba(58, 39, 18, 0.30) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 80%,  rgba(26, 18, 8, 0.40) 0%, transparent 50%);
}

/* ============================================================
   4. BARRA DE BOTONES FLOTANTE (.contenedor-botones)
   ============================================================ */

.contenedor-botones {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  background: rgba(5, 5, 5, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-full);
  padding: 0.4rem 0.75rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  font-family: var(--fuente-cuerpo);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dorado);
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radio-full);
  white-space: nowrap;
  transition:
    background   var(--trans-rapida),
    border-color var(--trans-rapida),
    color        var(--trans-rapida),
    box-shadow   var(--trans-media),
    transform    var(--trans-rapida);
}

.boton:hover {
  background: var(--dorado-tenue);
  border-color: var(--dorado-borde);
  color: var(--dorado-claro);
  box-shadow: var(--sombra-dorada);
  transform: translateY(-1px);
}

/* ============================================================
   5. MAIN — CONTENEDOR CENTRAL
   ============================================================ */

main {
  max-width: var(--ancho-max);
  margin: 0 auto;
  /* padding-top extra para dejar espacio a la barra de botones fija */
  padding: calc(var(--espacio-xl) + 1rem) var(--espacio-md) var(--espacio-xl);
}

/* ============================================================
   6. DIVISORES ENTRE SECCIONES
   ============================================================ */

section + section {
  border-top: 1px solid var(--gris-borde);
  padding-top: var(--espacio-lg);
  margin-top: var(--espacio-lg);
  position: relative;
}

section + section::before {
  content: '◆';
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dorado);
  font-size: 0.45rem;
  background: var(--negro-profundo);
  padding: 0 0.75rem;
}

/* ============================================================
   7. TIPOGRAFÍA GLOBAL — HEADINGS
   ============================================================ */

h2 {
  font-family: var(--fuente-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dorado-claro);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: var(--espacio-md);
  padding-bottom: var(--espacio-sm);
  position: relative;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dorado), transparent);
  transition: width var(--trans-media);
}

h2:hover::after {
  width: 80px;
}

h3 {
  font-family: var(--fuente-cuerpo);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dorado);
  margin: var(--espacio-md) 0 var(--espacio-sm);
  opacity: 0.80;
  text-align: center;
}

/* ============================================================
   8. SECCIÓN: PRESENTACIÓN
   ============================================================ */

.presentacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--espacio-xl) 0 var(--espacio-lg);
}

.presentacion::before {
  content: '';
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--dorado));
  margin: 0 auto var(--espacio-md);
}

.presentacion h1 {
  font-family: var(--fuente-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.05;
  margin-bottom: var(--espacio-lg);
  background: linear-gradient(135deg, #ffffff 35%, var(--dorado-claro) 65%, #e8dcc8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Foto de perfil ---- */

.foto-perfil {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--dorado-borde);
  margin-bottom: var(--espacio-md);
  filter: sepia(12%) contrast(1.06) brightness(0.96);
  box-shadow:
    0 0 0 6px rgba(58, 39, 18, 0.35),
    0 0 0 7px var(--dorado-borde),
    var(--sombra-media),
    var(--sombra-dorada);
  transition: transform var(--trans-lenta), box-shadow var(--trans-media), filter var(--trans-media);
  animation: perfilGlow 6s ease-in-out 1s infinite;
}

@keyframes perfilGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(58, 39, 18, 0.35), 0 0 0 7px var(--dorado-borde), var(--sombra-media), var(--sombra-dorada); }
  50%       { box-shadow: 0 0 0 8px rgba(74, 51, 24, 0.45), 0 0 0 9px rgba(201,168,76,0.35), var(--sombra-fuerte), 0 0 50px rgba(201,168,76,0.18); }
}

.foto-perfil:hover {
  transform: scale(1.04);
  filter: sepia(5%) contrast(1.10) brightness(1.02);
  box-shadow:
    0 0 0 10px rgba(74, 51, 24, 0.40),
    0 0 0 11px rgba(201, 168, 76, 0.30),
    var(--sombra-fuerte),
    0 0 60px rgba(201, 168, 76, 0.20);
}

.presentacion p {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  max-width: 400px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* ============================================================
   9. SECCIÓN: LINKS ÚTILES
   ============================================================ */

.links-utiles nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--espacio-sm);
}

.links-utiles nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-primario);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--trans-rapida), border-color var(--trans-rapida), padding-left var(--trans-media);
}

.links-utiles nav a::before {
  content: '→';
  font-size: 0.72rem;
  color: var(--dorado-oscuro);
  opacity: 0.7;
  transition: transform var(--trans-media), color var(--trans-rapida), opacity var(--trans-rapida);
}

.links-utiles nav a:hover {
  color: var(--dorado-claro);
  padding-left: 0.4rem;
  border-bottom-color: var(--dorado-borde);
}

.links-utiles nav a:hover::before {
  transform: translateX(4px);
  color: var(--dorado);
  opacity: 1;
}

/* Botón pill — "Materias" */
.links-utiles p {
  margin-top: var(--espacio-md);
}

.links-utiles p a {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--dorado-borde);
  border-radius: var(--radio-full);
  color: var(--dorado);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background var(--trans-rapida), color var(--trans-rapida), box-shadow var(--trans-media), border-color var(--trans-rapida);
}

.links-utiles p a:hover {
  background: var(--dorado-tenue);
  color: var(--dorado-claro);
  border-color: var(--dorado);
  box-shadow: var(--sombra-dorada);
}

/* ============================================================
   10. SECCIÓN: REDES SOCIALES
   ============================================================ */

.redes {
  padding-bottom: var(--espacio-sm);
  text-align: center;
}

.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-md);
  background: var(--gris-oscuro);
  color: var(--texto-secundario);
  font-size: 1.3rem;
  text-decoration: none;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--trans-rapida),
    background   var(--trans-rapida),
    color        var(--trans-rapida),
    transform    var(--trans-rapida),
    box-shadow   var(--trans-media);
}

.redes a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dorado-tenue), rgba(58, 39, 18, 0.2));
  opacity: 0;
  transition: opacity var(--trans-media);
}

.redes a:hover {
  border-color: var(--dorado-borde);
  background: var(--marron-oscuro);
  color: var(--dorado-claro);
  transform: translateY(-3px);
  box-shadow: var(--sombra-suave), 0 0 20px rgba(201, 168, 76, 0.12);
}

.redes a:hover::after {
  opacity: 1;
}

.redes a i {
  position: relative;
  z-index: 1;
  transition: transform var(--trans-media);
}

.redes a:hover i {
  transform: scale(1.15);
}

/* ============================================================
   11. SECCIÓN: INSTAGRAM FEED
   ============================================================ */

.instagram-feed {
  padding-bottom: var(--espacio-sm);
}

.instagram-feed h2 {
  margin-bottom: var(--espacio-md);
}

/* Grid de fotos — 3 columnas x 2 filas iguales */
.grid-instagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.grid-instagram img {
  aspect-ratio: 1 / 1;
}

.grid-instagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radio-sm);
  filter: sepia(10%) contrast(1.05) brightness(0.92) saturate(0.9);
  transition:
    filter      var(--trans-media),
    transform   var(--trans-media),
    box-shadow  var(--trans-media);
  cursor: pointer;
}

.grid-instagram img:hover {
  filter: sepia(0%) contrast(1.08) brightness(1.0) saturate(1.1);
  transform: scale(1.015);
  z-index: 2;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 20px rgba(201,168,76,0.10);
}

/* ============================================================
   12. SECCIÓN: MATERIAS / PROGRESO ACADÉMICO
   ============================================================ */

.materias {
  padding-bottom: var(--espacio-sm);
}

.materias h3:first-of-type {
  margin-top: 0;
  color: var(--texto-tenue);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.materias ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: var(--espacio-sm);
}

.materias ul li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, var(--gris-oscuro) 0%, var(--marron-profundo) 100%);
  border: 1px solid var(--gris-borde);
  border-left: 2px solid var(--marron-borde);
  border-radius: var(--radio-md);
  font-size: 0.82rem;
  color: var(--texto-primario);
  line-height: 1.6;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition:
    border-color  var(--trans-rapida),
    background    var(--trans-rapida),
    transform     var(--trans-rapida),
    box-shadow    var(--trans-media);
}

/* Año — pseudo-elemento */
.materias ul li::before {
  font-family: var(--fuente-mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--dorado);
  letter-spacing: 0.1em;
  opacity: 0.85;
  content: "2021";
}
.materias ul li:nth-child(1)::before { content: "2021"; }
.materias ul li:nth-child(2)::before { content: "2022"; }
.materias ul li:nth-child(3)::before { content: "2023"; }
.materias ul li:nth-child(4)::before { content: "2024"; }
.materias ul li:nth-child(5)::before { content: "2025"; }
.materias ul li:nth-child(6)::before { content: "2026"; }

/* Brillo diagonal en hover */
.materias ul li::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.04), transparent);
  transition: left 0.5s ease;
}

.materias ul li:hover {
  border-color: var(--marron-borde);
  border-left-color: var(--dorado);
  background: linear-gradient(135deg, var(--gris-medio) 0%, var(--marron-oscuro) 100%);
  transform: translateX(4px);
  box-shadow: var(--sombra-suave), var(--sombra-marron);
}

.materias ul li:hover::after {
  left: 140%;
}

/* Año en curso — destacado */
.materias ul li:last-child {
  border-color: var(--marron-borde);
  border-left-color: var(--dorado);
  background: linear-gradient(135deg, var(--gris-medio) 0%, var(--marron-oscuro) 60%, rgba(201,168,76,0.04) 100%);
}

/* ============================================================
   13. SECCIÓN: DATOS DE FACULTAD
   ============================================================ */

.datos-facultad {
  padding-bottom: var(--espacio-sm);
}

/* Resumen compacto */
.datos-facultad > p:first-child {
  font-family: var(--fuente-mono);
  font-size: 0.70rem;
  font-weight: 300;
  color: var(--dorado-oscuro);
  letter-spacing: 0.06em;
  line-height: 1.75;
  padding: 1rem 1.4rem;
  border: 1px solid var(--dorado-borde);
  border-radius: var(--radio-md);
  background: linear-gradient(135deg, var(--dorado-sombra), var(--marron-tenue));
  margin-bottom: var(--espacio-md);
  opacity: 0.90;
}

/* Bloque extenso */
.datos-facultad > p:last-child {
  font-size: 0.82rem;
  color: var(--texto-secundario);
  line-height: 1.95;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(160deg, var(--gris-oscuro) 0%, var(--marron-profundo) 100%);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
}

/* ============================================================
   14. FOOTER ACADÉMICO
   ============================================================ */

footer {
  max-width: var(--ancho-max);
  margin: var(--espacio-xl) auto 0;
  padding: var(--espacio-lg) var(--espacio-md);
  border-top: 1px solid var(--gris-borde);
  text-align: center;
  font-size: 0.70rem;
  color: var(--texto-tenue);
  letter-spacing: 0.04em;
  line-height: 1.85;
  opacity: 0.55;
  transition: opacity var(--trans-media);
}

footer:hover {
  opacity: 0.85;
}

footer::before {
  content: '— UBA · FADU · DIyS —';
  display: block;
  font-family: var(--fuente-display);
  font-style: italic;
  font-size: 0.68rem;
  color: var(--dorado-oscuro);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  opacity: 0.75;
}

/* ============================================================
   15. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--negro-profundo); }
::-webkit-scrollbar-thumb { background: var(--marron-medio); border-radius: var(--radio-full); }
::-webkit-scrollbar-thumb:hover { background: var(--dorado-oscuro); }

/* ============================================================
   16. SELECCIÓN DE TEXTO
   ============================================================ */

::selection {
  background: rgba(201, 168, 76, 0.22);
  color: #ffffff;
}

/* ============================================================
   17. FOCUS ACCESIBLE
   ============================================================ */

a:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 4px;
  border-radius: var(--radio-sm);
}

/* ============================================================
   18. ANIMACIONES DE ENTRADA
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.presentacion    { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) both; }
.foto-perfil     { animation: fadeIn 1.1s ease 0.3s both; }
.links-utiles    { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.12s both; }
.redes           { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.20s both; }
.instagram-feed  { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.28s both; }
.materias        { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.36s both; }
.datos-facultad  { animation: fadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.44s both; }

/* ============================================================
   19. RESPONSIVE — TABLET (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

  main {
    padding: var(--espacio-lg) var(--espacio-sm);
  }

  /* Barra de botones en columna en tablet */
  .contenedor-botones {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    border-radius: var(--radio-lg);
    margin-bottom: var(--espacio-md);
    gap: 0.4rem;
  }

  .boton {
    width: 100%;
    justify-content: center;
  }

  .presentacion {
    padding: var(--espacio-lg) 0 var(--espacio-md);
  }

  .presentacion h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .foto-perfil {
    width: 116px;
    height: 116px;
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .grid-instagram {
    gap: 4px;
  }

  .materias ul li {
    grid-template-columns: 58px 1fr;
    gap: 0.75rem;
  }
}

/* ============================================================
   20. RESPONSIVE — MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {

  :root {
    --espacio-xl: 3.5rem;
    --espacio-lg: 2.2rem;
    --espacio-md: 1.4rem;
  }

  main {
    padding: var(--espacio-lg) 0.9rem;
  }

  .boton {
    font-size: 0.62rem;
    padding: 0.5rem 1.1rem;
  }

  .presentacion h1 {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  .foto-perfil {
    width: 100px;
    height: 100px;
  }

  .presentacion p {
    font-size: 0.88rem;
  }

  /* Grid mobile: 2 columnas x 3 filas */
  .grid-instagram {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .grid-instagram img:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .materias ul li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .materias ul li::before {
    font-size: 0.62rem;
    opacity: 0.7;
  }

  .redes a {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .datos-facultad > p:first-child {
    font-size: 0.66rem;
  }

  footer {
    padding: var(--espacio-md) 0.9rem;
    font-size: 0.66rem;
  }

  section + section::before {
    font-size: 0.4rem;
  }
}

/* ============================================================
   21. REDUCCIÓN DE MOVIMIENTO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   22. PÁGINA: PROCESO PASO A PASO (proceso.html)
   ============================================================ */

/* Contenedor general — centra todo en el body */
body:has(> h1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--espacio-xl) var(--espacio-md);
}

/* Título principal suelto en body */
body > h1 {
  font-family: var(--fuente-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: var(--espacio-md);
  background: linear-gradient(135deg, #ffffff 35%, var(--dorado-claro) 65%, #e8dcc8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Párrafo introductorio directo en body */
body > p {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  text-align: center;
  max-width: 520px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: var(--espacio-md);
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

/* Link "Inicio" — volver */
body > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fuente-cuerpo);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dorado);
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--dorado-borde);
  border-radius: var(--radio-full);
  background: transparent;
  margin-bottom: var(--espacio-lg);
  transition:
    background     var(--trans-rapida),
    border-color   var(--trans-rapida),
    color          var(--trans-rapida),
    box-shadow     var(--trans-media),
    transform      var(--trans-rapida);
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.18s both;
}

body > a::before {
  content: '←';
  font-size: 0.7rem;
  transition: transform var(--trans-media);
}

body > a:hover {
  background: var(--dorado-tenue);
  border-color: var(--dorado);
  color: var(--dorado-claro);
  box-shadow: var(--sombra-dorada);
  transform: translateY(-2px);
}

body > a:hover::before {
  transform: translateX(-3px);
}

/* Sección del proceso */
.paso-a-paso {
  width: 100%;
  max-width: 800px;
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.26s both;
}

.paso-a-paso p {
  font-size: 0.92rem;
  color: var(--texto-primario);
  line-height: 2;
  letter-spacing: 0.02em;
  padding: 2rem 2.2rem;
  background: linear-gradient(160deg, var(--gris-oscuro) 0%, var(--marron-profundo) 100%);
  border: 1px solid var(--gris-borde);
  border-left: 2px solid var(--dorado-borde);
  border-radius: var(--radio-lg);
  position: relative;
  transition: border-color var(--trans-rapida), box-shadow var(--trans-media);
}

.paso-a-paso p:hover {
  border-left-color: var(--dorado);
  box-shadow: var(--sombra-suave), var(--sombra-marron);
}

/* Comilla decorativa */
.paso-a-paso p::before {
  content: '"';
  font-family: var(--fuente-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--dorado);
  opacity: 0.08;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  pointer-events: none;
}

/* Responsive mobile */
@media (max-width: 480px) {
  body:has(> h1) {
    padding: var(--espacio-lg) 0.9rem;
  }

  body > h1 {
    font-size: 2rem;
  }

  .paso-a-paso p {
    padding: 1.4rem 1.2rem;
    font-size: 0.87rem;
  }
}