/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --color-bg: #0d0d0d;
  --color-surface: #161616;
  --color-border: #2a2a2a;
  --color-text: #e8e2d9;
  --color-muted: #7a7670;
  --color-accent: #c8a96e;
  --color-accent-2: #e8dcc8;
  --color-green: #5ca97a;

  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
}
/* Evitar los ruidos tapen contenido */
.about,
.skills,
.projects,
.footer {
  position: relative;
  z-index: 1;
}

/* oculta el cursor nativo */
* {
  cursor: none;
}

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #c8a96e;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 169, 110, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    opacity 0.3s ease;
}

/* efecto al hacer hover en elementos clicables */
.cursor--hover {
  transform: translate(-50%, -50%) scale(2.5);
  background: transparent;
  border: 1px solid #c8a96e;
}

.cursor-ring--hover {
  opacity: 0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   KEYFRAMES — todos juntos acá
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(0.4);
    transform-origin: top;
  }
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(200, 169, 110, 0.08);
  }
  50% {
    border-color: rgba(200, 169, 110, 0.25);
  }
}

/* ============================================================
   HELPERS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-accent-2);
  margin-bottom: var(--space-lg);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.5rem;
}

.section-title--center {
  text-align: center;
}
.section-title--center::after {
  margin: 0.5rem auto 0;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* barrido interno en hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}
.btn:hover::before {
  transform: translateX(0);
}

.btn--primary {
  background: var(--color-accent);
  color: #0d0d0d;
  font-weight: 500;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(200, 169, 110, 0.28);
}

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.badge--green {
  background: rgba(92, 169, 122, 0.15);
  color: var(--color-green);
  border: 1px solid rgba(92, 169, 122, 0.3);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  background: rgba(200, 169, 110, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(200, 169, 110, 0.2);
  letter-spacing: 0.04em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--space-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.7);
  border-bottom: 1px solid var(--color-border);
  animation: slideDown 0.8s ease forwards;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover {
  color: var(--color-accent);
}

/* subrayado animado */
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav__links a:hover::after {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.p {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c8a96e;
  opacity: 0;
  animation: float var(--d) var(--delay) ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10%,
  90% {
    opacity: var(--op);
  }
  50% {
    opacity: var(--op);
    transform: translateY(-80px) scale(1.5);
  }
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-md);
  overflow: hidden;
}

.hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/filter%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* gradiente decorativo */
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 169, 110, 0.08) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* animaciones escalonadas del hero */
.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero__name-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.9s 0.5s ease forwards;
}

.hero__role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-accent);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.85s ease forwards;
}

.hero__tagline {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: var(--space-md);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s 1.05s ease forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 1.25s ease forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation:
    fadeIn 1s 2s ease forwards,
    pulse 2.5s 3s ease-in-out infinite;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

/* foto entra desde la izquierda */
.about__photo-wrap {
  position: sticky;
  top: 5rem;
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.about__photo-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

/* acento decorativo */
.about__photo-wrap {
  position: relative;
}

.about__photo-wrap::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 75%;
  height: 75%;
  border: 1px solid rgba(200, 169, 110, 0.2);
  pointer-events: none;
  transition: transform 0.5s ease;
  z-index: -1;
}
.about__photo-wrap:hover::after {
  transform: translate(-6px, -6px);
}

.about__photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: fill;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* texto entra desde la derecha */
.about__text {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.8s 0.2s ease,
    transform 0.8s 0.2s ease;
}

.about__text.visible {
  opacity: 1;
  transform: translateX(0);
}

.about__text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}
.about__text p strong {
  color: var(--color-text);
  font-weight: 500;
}

.about__meta {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.about__meta li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  min-width: 100px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  justify-items: center;
}

.skill-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  width: 300px;
  /* estado inicial para scroll reveal */
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.2s ease-in-out,
    border-color 0.3s ease,
    background 0.3s ease;
  animation: borderGlow 4s ease-in-out infinite;
}

/* delays escalonados */
.skill-card:nth-child(1) {
  transition-delay: 0s;
}
.skill-card:nth-child(2) {
  transition-delay: 0.1s;
}
.skill-card:nth-child(3) {
  transition-delay: 0.2s;
}
.skill-card:nth-child(4) {
  transition-delay: 0.3s;
}
.skill-card:nth-child(5) {
  transition-delay: 0.4s;
}
.skill-card:nth-child(6) {
  transition-delay: 0.5s;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  border-color: var(--color-accent) !important;
  transform: translateY(-8px) !important;
}

.skill-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-accent-2);
  margin-bottom: 0.75rem;
}

.skill-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-card li {
  font-size: 0.82rem;
  color: var(--color-muted);
  padding-left: 1rem;
  position: relative;
}
.skill-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.skill-card__content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.percentage {
  font-size: 5rem;
  color: #007bff;
}

/* ============================================================
   Carrusel Section
   ============================================================ */
.carrusel-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.carrusel-section .carrusel-container {
  margin-top: var(--space-md);
}

/* ============================================================
   Carrusel
   ============================================================ */
.diseno-section {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.diseno-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.diseno-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  font-weight: 300;
  letter-spacing: -1px;
  font-family: var(--font-display);
  color: var(--color-text);
}

.diseno-header p {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 300;
}

.carrusel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.carrusel-wrapper {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrusel-slide {
  min-width: 100%;
  padding: var(--space-lg) var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.slide-image {
  flex: 0 0 45%;
  height: 300px;
  background: linear-gradient(135deg, #8b6f47 0%, #a08968 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-text);
  font-weight: 300;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carrusel-slide:nth-child(2) .slide-image {
  background: var(--color-surface);
}

.carrusel-slide:nth-child(3) .slide-image {
  background: var(--color-surface);
}

.carrusel-slide:nth-child(4) .slide-image {
  background: linear-gradient(135deg, #7a7670 0%, #9a9688 100%);
}

.carrusel-slide:nth-child(5) .slide-image {
  background: linear-gradient(135deg, #8b6f47 0%, #c8a96e 100%);
}

.slide-content {
  flex: 1;
}

.slide-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.slide-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  font-weight: 400;
  line-height: 1.2;
  font-family: var(--font-display);
  color: var(--color-text);
}

.slide-description {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.slide-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tool-badge {
  font-size: 0.8rem;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: transparent;
  transition: all 0.3s ease;
}

.tool-badge:hover {
  border-color: var(--color-accent);
  background: rgba(200, 169, 110, 0.1);
}

.slide-footer {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.slide-year {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 300;
}

.slide-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-accent);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.slide-link:hover {
  color: var(--color-accent-2);
  border-bottom-color: var(--color-accent-2);
}

.carrusel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.dots-container {
  display: flex;
  gap: var(--space-sm);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: var(--radius-sm);
}

.nav-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: var(--color-text);
}

.nav-button:hover {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  body {
    padding: var(--space-lg) var(--space-sm);
  }

  .diseno-header h2 {
    font-size: 1.8rem;
  }

  .carrusel-slide {
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
  }

  .slide-image {
    flex: 0 0 200px;
    width: 100%;
    height: 200px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .carrusel-controls {
    gap: var(--space-md);
  }

  .nav-button {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-sm);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.3s ease;
}

.project-card:nth-child(1) {
  transition-delay: 0s;
}
.project-card:nth-child(2) {
  transition-delay: 0.15s;
}
.project-card:nth-child(3) {
  transition-delay: 0.3s;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--color-accent) !important;
  transform: translateY(-6px) !important;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__year {
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.12em;
}

.project-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent-2);
}

.project-card__desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 300;
  flex: 1;
}

.project-card__links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* subrayado animado en links */
.project-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color 0.2s;
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.project-link:hover::after {
  width: 100%;
}
.project-link:hover {
  color: var(--color-accent-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-md);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.footer.visible {
  opacity: 1;
}

.aviso-legal {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  text-justify: center;
}

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

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo-wrap {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero__name {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }
  .btn {
    text-align: center;
  }
}
