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

:root {
  --bg: #fdfcf8;
  --surface: #ffffff;
  --surface2: #eef4fd;
  --border: rgba(100, 140, 210, 0.16);
  --accent: #6a9fe8;
  /* azul pastel */
  --accent-d: #4e84cc;
  --accent-l: #b8d0f5;
  --red: #e87878;
  /* rojo pastel */
  --red-l: #f5c0c0;
  --yellow: #f5d76e;
  /* amarillo pastel */
  --yellow-l: #faedb0;
  --heading: #1a2d52;
  --muted: #7a90b8;
  --text: #3a4e72;
  --input-bg: #f8faff;
  --error: #e05050;
  --tag-bg: rgba(106, 159, 232, 0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(30, 60, 120, 0.08);
  --shadow-hover: 0 12px 40px rgba(30, 60, 120, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   SCROLL BAR
═══════════════════════════════════════════ */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--red), var(--yellow));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: var(--shadow);
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
}

.logo-text span {
  color: var(--accent);
  font-style: italic;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: all 0.25s;
}

nav a:hover {
  color: var(--accent);
  background: var(--tag-bg);
}

nav a.active {
  color: var(--accent);
  background: var(--tag-bg);
  font-weight: 500;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--accent-d) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 600;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: all .3s;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #eef4fd 0%, #fdfcf8 45%, #fff9ee 100%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 400px;
  background: rgba(106, 159, 232, 0.12);
  top: -80px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(245, 215, 110, 0.15);
  bottom: 0;
  left: -60px;
  animation-delay: -3s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: rgba(232, 120, 120, 0.1);
  bottom: 80px;
  right: 20%;
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.04);
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: linear-gradient(to right, var(--accent), var(--red));
  border-radius: 2px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--heading);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

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

.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--red);
  color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}

.btn-fill:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(106, 159, 232, 0.3);
}

.btn-fill svg {
  transition: transform 0.3s;
}

.btn-fill:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  background: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tag-bg);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
}

.stat-num span {
  color: var(--accent);
  font-style: italic;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-card-stack {
  position: relative;
  height: 420px;
}

.hero-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transition: transform 0.4s ease;
}

.hero-card:nth-child(1) {
  width: 280px;
  height: 340px;
  top: 0;
  left: 10%;
  background: linear-gradient(135deg, #b8d0f5 0%, #eef4fd 100%);
  transform: rotate(-4deg);
}

.hero-card:nth-child(2) {
  width: 240px;
  height: 300px;
  top: 60px;
  left: 40%;
  background: linear-gradient(135deg, #faedb0 0%, #fff9ee 100%);
  transform: rotate(3deg);
}

.hero-card:nth-child(3) {
  width: 200px;
  height: 250px;
  bottom: 0;
  left: 20%;
  background: linear-gradient(135deg, #f5c0c0 0%, #fff5f5 100%);
  transform: rotate(-2deg);
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.03) !important;
}

.card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  color: var(--heading);
  margin-bottom: auto;
  width: fit-content;
}

.card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--heading);
}

.card-mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 0.5rem 0;
}

.mock-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.mock-bar.accent {
  background: rgba(106, 159, 232, 0.4);
}

.mock-bar.red {
  background: rgba(232, 120, 120, 0.4);
}

.mock-bar.yellow {
  background: rgba(245, 215, 110, 0.5);
}

/* ═══════════════════════════════════════════
   SECTIONS COMMONS
═══════════════════════════════════════════ */
section {
  padding: 6rem 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: linear-gradient(to right, var(--accent), var(--red));
  border-radius: 2px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 3rem;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(106, 159, 232, 0.2) 30%, rgba(232, 120, 120, 0.15) 70%, transparent);
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
#servicios {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card.blue::before {
  background: var(--accent);
}

.service-card.red::before {
  background: var(--red);
}

.service-card.yellow::before {
  background: var(--yellow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-icon.blue {
  background: rgba(106, 159, 232, 0.12);
}

.service-icon.red {
  background: rgba(232, 120, 120, 0.12);
}

.service-icon.yellow {
  background: rgba(245, 215, 110, 0.18);
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
#portafolio {
  background: linear-gradient(180deg, #f6f9ff 0%, var(--bg) 100%);
}

/* FILTERS */
.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  transition: all 0.25s;
}

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

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

.filter-btn.active.red-filter {
  background: var(--red);
  border-color: var(--red);
}

.filter-btn.active.yellow-filter {
  background: #d4a800;
  border-color: #d4a800;
}

.filter-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

/* PORTFOLIO CARD */
.port-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: cardIn 0.4s ease both;
}

.port-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.port-card.hidden {
  display: none;
}

.port-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.port-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  letter-spacing: -2px;
  position: relative;
}

/* Unique thumb designs per card */
.thumb-app {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.thumb-brand {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.thumb-web {
  background: linear-gradient(135deg, #fce7f3 0%, #fff1f6 100%);
}

.thumb-social {
  background: linear-gradient(135deg, #d1fae5 0%, #f0fdf4 100%);
}

.thumb-print {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
}

.thumb-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App mockup */
.mock-phone {
  width: 80px;
  height: 130px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid rgba(106, 159, 232, 0.3);
  box-shadow: 0 8px 24px rgba(106, 159, 232, 0.15);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.mock-phone::before {
  content: '';
  width: 24px;
  height: 4px;
  background: rgba(106, 159, 232, 0.3);
  border-radius: 2px;
  align-self: center;
}

.mock-row {
  height: 6px;
  border-radius: 3px;
  background: rgba(106, 159, 232, 0.2);
}

.mock-row.tall {
  height: 32px;
  border-radius: 6px;
  background: rgba(106, 159, 232, 0.15);
}

.mock-row.accent {
  background: var(--accent);
  opacity: 0.6;
}

/* Brand mockup */
.mock-logo-box {
  width: 110px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(245, 215, 110, 0.25);
  flex-direction: column;
  gap: 4px;
}

.mock-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #f0a800);
}

.mock-logo-text-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.mock-logo-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(26, 45, 82, 0.2);
}

/* Web mockup */
.mock-browser {
  width: 140px;
  height: 95px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(232, 120, 120, 0.15);
  overflow: hidden;
}

.mock-browser-bar {
  height: 16px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
}

.mock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mock-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-brow {
  height: 5px;
  border-radius: 2px;
}

/* Social mockup */
.mock-post {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-post-img {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #a7f3d0, #d1fae5);
}

.mock-post-row {
  height: 4px;
  border-radius: 2px;
  background: rgba(26, 45, 82, 0.12);
}

/* Print mockup */
.mock-paper {
  width: 90px;
  height: 120px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.12);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: rotate(-5deg);
}

.mock-paper-head {
  height: 8px;
  border-radius: 2px;
  background: rgba(109, 40, 217, 0.2);
}

.mock-paper-row {
  height: 4px;
  border-radius: 2px;
  background: rgba(26, 45, 82, 0.08);
}

.mock-paper-img {
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  margin: 2px 0;
}

/* Card hover overlay */
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 45, 82, 0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.port-card:hover .port-overlay {
  opacity: 1;
}

.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--heading);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.port-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.port-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.port-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-weight: 500;
}

.port-tag.blue {
  background: rgba(106, 159, 232, 0.12);
  color: var(--accent-d);
}

.port-tag.red {
  background: rgba(232, 120, 120, 0.12);
  color: #c05050;
}

.port-tag.yellow {
  background: rgba(245, 215, 110, 0.25);
  color: #8a6800;
}

.port-tag.green {
  background: rgba(52, 199, 89, 0.12);
  color: #2a8a4a;
}

.port-tag.purple {
  background: rgba(109, 40, 217, 0.1);
  color: #5a28b8;
}

.port-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--heading);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.port-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* PAGINATION */
.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

#pageButtons {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

.page-btn.arrow {
  font-size: 1rem;
}

.page-info {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0.5rem;
}

/* No results */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  display: none;
}

.no-results.visible {
  display: block;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#sobre-mi {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #fce7f3 50%, #fef3c7 100%);
  position: relative;
  box-shadow: var(--shadow-hover);
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.photo-icon {
  font-size: 4rem;
}

.photo-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--yellow);
  color: var(--heading);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.badge-num {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.badge-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a5800;
  text-align: center;
}

.about-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.about-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.about-pill.blue {
  background: rgba(106, 159, 232, 0.12);
  color: var(--accent-d);
}

.about-pill.red {
  background: rgba(232, 120, 120, 0.12);
  color: #c05050;
}

.about-pill.yellow {
  background: rgba(245, 215, 110, 0.25);
  color: #8a6800;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.skill-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface2);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

.skill-fill.blue {
  background: var(--accent);
}

.skill-fill.red {
  background: var(--red);
}

.skill-fill.yellow {
  background: var(--yellow);
}

/* ═══════════════════════════════════════════
   BRIEF SECTION
═══════════════════════════════════════════ */
#brief {
  background: linear-gradient(180deg, var(--bg) 0%, #f0f5ff 100%);
}

/* Progress ring */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.progress-ring {
  width: 38px;
  height: 38px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(106, 159, 232, 0.12);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 94.2;
  stroke-dashoffset: 94.2;
  transition: stroke-dashoffset 0.5s ease;
}

.brief-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brief-header-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Form */
.q-block {
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.q-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.q-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.q-num-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 2px;
}

.q-label-wrap {
  flex: 1;
}

.q-label {
  font-size: 0.88rem;
  color: var(--heading);
  font-weight: 400;
  line-height: 1.5;
  display: block;
  margin-bottom: 0.15rem;
}

.q-tag-inline {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.q-hint {
  font-size: 0.73rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
  padding-left: calc(26px + 1rem);
}

textarea,
input[type="text"] {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  line-height: 1.6;
  -webkit-appearance: none;
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 80px;
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106, 159, 232, 0.1);
}

textarea::placeholder,
input[type="text"]::placeholder {
  color: rgba(120, 144, 184, 0.55);
  font-style: italic;
}

.check-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.4rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.81rem;
  color: var(--muted);
  user-select: none;
}

.check-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--tag-bg);
}

.check-item input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.check-item.selected {
  border-color: var(--accent);
  background: rgba(106, 159, 232, 0.08);
  color: var(--heading);
}

.req {
  color: var(--red);
  margin-left: 2px;
}

.field-error {
  font-size: 0.72rem;
  color: var(--error);
  margin-top: 0.3rem;
  padding-left: calc(26px + 1rem);
  display: none;
}

.q-block.has-error .field-error {
  display: block;
}

.q-block.has-error {
  border-color: rgba(224, 80, 80, 0.3);
}

/* Submit */
.submit-row {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.submit-note {
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff;
  border: none;
  padding: 1.1rem 2.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 230px;
  justify-content: center;
  border-radius: 50px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(106, 159, 232, 0.35);
}

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

/* ═══════════════════════════════════════════
   OVERLAYS
═══════════════════════════════════════════ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253, 252, 248, 0.93);
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 2.5px solid rgba(106, 159, 232, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--heading);
  font-style: italic;
  letter-spacing: 0.1em;
}

.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #eef4fd 0%, #fdfcf8 50%, #fff9ee 100%);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
}

.success-overlay.active {
  display: flex;
}

.success-icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s ease both;
  background: rgba(106, 159, 232, 0.08);
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--heading);
  line-height: 1.15;
}

.success-title em {
  font-style: italic;
  color: var(--accent);
}

.success-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.75;
}

.success-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  border-radius: 50px;
}

.btn-outline-sm:hover {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   CONTACT / CTA
═══════════════════════════════════════════ */
#contacto {
  background: var(--heading);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(106, 159, 232, 0.15) 0%, transparent 70%);
}

#contacto .container {
  position: relative;
  z-index: 1;
}

#contacto .section-title {
  color: #fff;
}

#contacto .section-title em {
  color: var(--accent-l);
}

#contacto .section-sub {
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: background 0.3s;
  color: #fff;
  text-decoration: none;
}

a.contact-card:visited,
a.contact-card:active,
a.contact-card:focus {
  color: #fff;
  text-decoration: none;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.3rem;
}

.contact-card-val {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: #111828;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-l);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-sub {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

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

  .about-photo-wrap {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.4rem;
  }

  section {
    padding: 4rem 1.4rem;
  }

  nav {
    display: none;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(253, 252, 248, 0.97);
    justify-content: center;
    align-items: center;
    z-index: 400;
    gap: 1.5rem;
  }

  nav.open a {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  #home {
    padding: 7rem 1.4rem 4rem;
  }

  .hero-card-stack {
    height: 280px;
  }

  .hero-card:nth-child(1) {
    width: 180px;
    height: 220px;
  }

  .hero-card:nth-child(2) {
    width: 160px;
    height: 190px;
    left: 35%;
  }

  .hero-card:nth-child(3) {
    width: 140px;
    height: 170px;
  }

  .portfolio-controls {
    flex-direction: column;
    align-items: flex-start;
  }

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

  footer {
    padding: 2rem 1.4rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .check-group {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}