@charset "UTF-8";
:root {
  --accent: #c0684a;
}

[data-theme=dark] {
  --bg: #141414;
  --bg-card: #1c1c1c;
  --text: #e8e4dc;
  --muted: #6b6560;
  --border: #2a2a2a;
  --card-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  --card-border-h: rgba(255, 255, 255, 0.13);
  --card-ring: 0 0 0 1px rgb(18 16 16), 0 0 18px rgb(13 12 12 / 95%);
  --modal-bg: rgba(10, 15, 25, 0.95);
  --modal-border: rgba(255, 255, 255, 0.1);
  --feature-bg: rgba(255, 255, 255, 0.04);
  --feature-border: rgba(255, 255, 255, 0.07);
  --overlay-bg: rgba(0, 0, 0, 0.65);
}

[data-theme=light] {
  --bg: #f0ede8;
  --bg-card: #e8e4de;
  --text: #1a1816;
  --secundary-text: #403d3b;
  --muted: #9a948e;
  --border: #d8d4ce;
  --card-shadow: 0 0 18px rgba(255, 255, 255, 0.06), 0px 0px 6px rgba(0, 0, 0, 0.13);
  --card-border-h: rgb(0 0 0 / 1%);
  --card-ring: 0 0 0 1px rgb(255 255 255 / 23%), 0 0 12px rgb(240 231 231 / 11%);
  --modal-bg: rgba(235, 231, 225, 0.97);
  --modal-border: rgba(0, 0, 0, 0.1);
  --feature-bg: rgba(0, 0, 0, 0.04);
  --feature-border: rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container {
  max-width: 930px;
  margin: 0 auto;
  padding: 0 28px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

nav.scrolled {
  border-color: var(--border);
}

.nav-name {
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--muted);
  color: var(--text);
}

.hero {
  position: relative;
  padding: 140px 0 90px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: Bricolage Grotesque, sans-serif;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--muted);
}

.hero-body {
  font-size: 1.3em;
  color: var(--secundary-text);
  max-width: 520px;
  line-height: 1.8;
}

#proyectos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  -moz-column-gap: 25px;
  column-gap: 25px;
}

#proyectos .section-label {
  grid-column: 1/-1;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.8em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-top: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.project {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, border-color 0.25s, box-shadow 0.3s;
  margin-top: 1.2em;
  border: 1px solid transparent;
  box-shadow: var(--card-ring), var(--card-shadow);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

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

.project:hover {
  transform: translateY(1px) scale(1.01);
  box-shadow: var(--card-shadow);
  border-color: var(--card-border-h);
  color: var(--text);
  background: var(--bg-card);
}

.project:nth-child(even) {
  transition-delay: 120ms;
}

.project:nth-child(even).visible {
  transition-delay: 0ms;
}

.project-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.project-num {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

.project-title {
  font-family: Bricolage Grotesque, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.project-problem {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.project-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--accent);
}

button.project-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
  align-self: flex-end;
  padding: 0;
}

#experiencia {
  padding-bottom: 20px;
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.timeline-date::before {
  content: "";
  position: absolute;
  left: -36px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-place {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
}

.about {
  padding: 15px 0;
}

.about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 770px;
}

.about-text + .about-text {
  margin-top: 20px;
}

/* CONTACTO */
.contact {
  padding: 15px 0 100px;
  /* Mantiene tu espaciado original de la sección */
}

/* Layout base (Mobile First) */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-headline {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.contact-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: row;
}

.contact-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-link:hover {
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

.contact-link i {
  font-size: 20px;
}

/* FORMULARIO */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

[data-theme=light] .contact-form input,
[data-theme=light] .contact-form textarea {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.form-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}

.form-submit-btn:hover {
  background: var(--accent);
  color: #000;
}

.form-submit-btn i {
  font-size: 14px;
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-status.success {
  color: #4CAF50;
}

.form-status.error {
  color: #F44336;
}

.submit-wrapper {
  position: relative;
  align-self: flex-start;
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
  height: 40px;
}

.submit-wrapper .form-submit-btn {
  align-self: auto;
  margin-top: 0;
}

.form-submit-btn .btn-text,
.form-submit-btn .btn-icon {
  position: relative;
  z-index: 1;
  transition: opacity 0.15s ease;
}

.btn-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.form-submit-btn.is-animating {
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1), height 0.75s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.75s cubic-bezier(0.16, 1, 0.3, 1), padding 0.75s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease !important;
}

.form-submit-btn.is-morphing {
  height: 6px !important;
  padding: 0 !important;
  border-radius: 100px !important;
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}

.form-submit-btn.is-filling .btn-fill {
  width: 100%;
  transition: width 1.5s linear;
}

.form-submit-btn.is-success {
  height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.form-submit-btn.is-success .btn-fill {
  display: none;
}

.form-submit-btn.is-error {
  animation: btn-shake 0.4s ease;
}

@keyframes btn-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.btn-check-svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  opacity: 0;
  pointer-events: none;
}
.btn-check-svg .btn-check-path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-success-label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 14px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.submit-wrapper.show-success .btn-success-label {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-links {
    flex-direction: row;
    align-items: center;
  }
}
footer {
  font-family: "Bricolage Grotesque", sans-serif;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.cursor-line {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#skills .skills-list {
  max-width: 429px;
  margin: 0 auto;
  justify-content: center;
}

.skills-group {
  margin-bottom: 40px;
}

.skills-group-title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 14px;
  border-color: transparent;
  box-shadow: var(--card-ring), var(--card-shadow);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  flex: 0 0 135px;
  cursor: default;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s, color 0.2s, background 0.2s;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
}

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

.skill-item:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: var(--card-shadow);
  border-color: var(--card-border-h);
  color: var(--text);
  background: var(--bg-card);
}

.skill-icon {
  width: 25px;
  height: 25px;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.25s;
}

.skill-item:hover .skill-icon {
  filter: grayscale(0) opacity(1);
}

.skill-icon--svg {
  color: var(--muted);
  transition: color 0.25s;
}

.skill-item:hover .skill-icon--svg {
  color: var(--skill-hover, var(--accent));
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-title.animate .word {
  transform: translateY(0);
  opacity: 1;
}

.hero-line-2 {
  display: inline-block;
  opacity: 0;
}

.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  width: 100px;
  height: 50px;
  border-radius: 1.5em;
  background: var(--modal-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: var(--card-ring), var(--card-shadow);
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay .modal {
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal {
  position: relative;
  background: var(--modal-bg);
  backdrop-filter: blur(32px) saturate(120%);
  -webkit-backdrop-filter: blur(32px) saturate(120%);
  border: 1px solid var(--modal-border);
  border-radius: 0.5em;
  width: 80%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem 2rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.modal-close i {
  font-size: 16px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--muted);
  color: var(--text);
}

.modal-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.modal-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.modal-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.75rem;
}

@media (max-width: 480px) {
  .modal-features {
    grid-template-columns: 1fr;
  }
}
.modal-feature {
  background: var(--feature-bg);
  border: 1px solid var(--feature-border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.modal-feature .modal-feature-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.modal-feature .modal-feature-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

.modal-stack {
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.modal-stack .skill-item {
  opacity: 1;
  transform: none;
}

.modal-impact {
  padding: 1rem 1.25rem;
  border: 1px solid var(--feature-border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--feature-bg);
  margin-bottom: 1.5rem;
}

.modal-impact p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.375rem;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-gallery-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.modal-link:hover {
  background: var(--accent);
  color: white;
}

@media (max-width: 640px) {
  .nav-link {
    display: none;
  }
  nav {
    padding: 14px 20px;
  }
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: 100px 0 60px;
  }
  .scroll-indicator {
    bottom: -1rem;
  }
  .project-title {
    font-size: 22px;
  }
  .cursor-line {
    display: none;
  }
  #proyectos {
    grid-template-columns: 1fr;
  }
  .project-tags {
    justify-content: flex-start;
  }
  .skill-item {
    min-width: 70px;
    padding: 16px 12px 10px;
  }
  #skills .skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
  }
  .custom-cursor {
    display: none;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    padding: 3rem 1.25rem 2.5rem;
  }
  .modal-close {
    top: 2.7rem;
    right: 1rem;
  }
  .modal-overlay .modal {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-overlay.open .modal {
    transform: translateY(0);
  }
  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem 1.25rem 2.5rem;
  }
  .modal-handle {
    display: block;
  }
  .modal-num {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .modal-stack .skill-item {
    flex: 0 0 100px;
    padding: 14px 10px 10px;
  }
}
@media (max-width: 400px) {
  .hero {
    padding: 90px 0 48px;
  }
  .skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .skill-item {
    min-width: unset;
    width: 100%;
  }
  .contact {
    padding: 48px 0 72px;
  }
}
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Proyectos colapsables ─────────────────────────────────────────────────── */
.projects-extra {
  display: grid;
  padding: 4px 20px;
  margin: 0 -20px;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  grid-column: 1/-1;
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-extra.expanded {
  max-height: 2000px;
}

@media (max-width: 640px) {
  .projects-extra {
    grid-template-columns: 1fr;
    max-height: 120px;
  }
}
.projects-footer {
  grid-column: 1/-1;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 8px;
}

.projects-fade-cover {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.projects-footer.expanded .projects-fade-cover {
  opacity: 0;
}

.projects-expand-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.projects-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.projects-expand-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.projects-expand-btn.expanded i {
  transform: rotate(180deg);
}



/*# sourceMappingURL=styles.css.map */
