@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --peach: #FFC8A2;
  --peach-text: #7A4A2A;
  --lavender: #C7B8EA;
  --lavender-text: #3A2A6A;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text-primary: #2A2A2A;
  --text-secondary: #5A5A5A;
  --border: rgba(0, 0, 0, 0.07);
  --radius-card: 14px;
  --radius-pill: 50px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 180ms;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--peach);
  color: var(--peach-text);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 200, 162, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(0, 0, 0, 0.14);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 72px 40px 48px;
}

.hero-name {
  font-family: 'Suez One', serif;
  font-size: clamp(80px, 14vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 0.02em;
}

.hero-name .letter {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
              color 300ms ease;
  cursor: default;
}

.hero-name:hover .letter {
  transform: translateY(-12px);
}

.hero-name:hover .letter:nth-child(1) { transition-delay: 0ms; }
.hero-name:hover .letter:nth-child(2) { transition-delay: 50ms; }
.hero-name:hover .letter:nth-child(3) { transition-delay: 100ms; }
.hero-name:hover .letter:nth-child(4) { transition-delay: 150ms; }
.hero-name:hover .letter:nth-child(5) { transition-delay: 200ms; }

.hero-name .letter.l1 { color: #FFC8A2; } /* peach */
.hero-name .letter.l2 { color: #C7B8EA; } /* lavender */
.hero-name .letter.l3 { color: #BEE3DB; } /* mint */
.hero-name .letter.l4 { color: #FFB7C5; } /* rose */
.hero-name .letter.l5 { color: #A7C7E7; } /* powder blue */

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  margin-bottom: 16px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.view-toggle {
  display: flex;
  gap: 6px;
}

.vt-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 180ms;
}

.vt-btn.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ── FILTER CHIPS ── */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 180ms;
}

.chip.active-all {
  background: var(--lavender);
  color: var(--lavender-text);
  border-color: var(--lavender);
}

.chip.inactive {
  background: transparent;
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.14);
}

.chip.inactive:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── GALLERY GRID ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 40px 48px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: transform 220ms var(--ease-smooth), box-shadow 220ms var(--ease-smooth);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Card con emoji (placeholder) */
.card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.card-img.c1 { background: #F8D7C8; }
.card-img.c2 { background: #C8E8E0; }
.card-img.c3 { background: #F0E8C0; }
.card-img.c4 { background: #D8CCF0; }
.card-img.c5 { background: #CCF0E4; }
.card-img.c6 { background: #F0CCDC; }

/* Card con immagine reale */
.card-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f0ede8;
}

.card-img-file {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.tag-char { background: #FFF0E8; color: #A05A2A; }
.tag-env  { background: #E0F5F0; color: #1A6A5A; }
.tag-food { background: #FFE8EC; color: #A0304A; }

/* ── DIVIDER ── */
.divider {
  height: 0.5px;
  background: rgba(0, 0, 0, 0.07);
  margin: 0 40px 40px;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
  animation: fadeIn 120ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 780px;
  animation: scaleIn 200ms var(--ease-smooth);
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--border);
}

.lb-head span {
  font-size: 15px;
  font-weight: 700;
}

.lb-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  padding: 4px;
}

.lb-img {
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
  background: #ffffff !important;
  padding: 16px;
}

.lb-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lb-body {
  padding: 20px;
}

.lb-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.lb-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #EFF3FA;
  color: #3A5A8A;
}

.lb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 0.5px solid var(--border);
}

.lb-nav-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 180ms;
}

.lb-nav-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.lb-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── ABOUT ── */
.about {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 0 40px 48px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ECC8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.about-text h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 520px;
}

.badge-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: #F0EDE8;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

footer span {
  font-size: 13px;
  color: var(--text-secondary);
}

.socials {
  display: flex;
  gap: 18px;
}

.socials a {
  font-size: 18px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 180ms;
}

.socials a:hover {
  color: var(--text-primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { padding: 48px 20px 32px; }
  .hero-name { letter-spacing: -2px; }
  .gallery { padding: 0 20px 36px; grid-template-columns: 1fr 1fr; }
  .section-header, .filter-bar { padding: 0 20px; }
  .about { padding: 0 20px 36px; flex-direction: column; }
  footer { padding: 14px 20px; }
  .divider { margin: 0 20px 28px; }
}

/* ── REDUCE MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ── HERO TAGS ── */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

/* ── ABOUT (expanded) ── */
.about-section {
  padding: 0 40px 48px;
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-avatar-col {
  flex-shrink: 0;
}

.avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ECC8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.about-title {
  font-family: 'Suez One', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 580px;
}

.about-tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── COMMISSIONS ── */
.commissions-section {
  padding: 0 40px 48px;
}

.commissions-title {
  font-family: 'Suez One', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.commissions-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.service-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  transition: transform 220ms var(--ease-smooth), box-shadow 220ms var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.commissions-cta {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0;
}

.commissions-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}

/* ── CONTACT ── */
.contact-section {
  padding: 0 40px 48px;
}

.contact-title {
  font-family: 'Suez One', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 180ms;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lavender);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0A8A0;
}

/* ── FOOTER (fixed) ── */
footer .socials a {
  font-size: 13px;
  font-weight: 700;
}

/* ── RESPONSIVE additions ── */
@media (max-width: 640px) {
  .about-section, .commissions-section, .contact-section { padding: 0 20px 36px; }
  .about-inner { flex-direction: column; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .commissions-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-tags { gap: 8px; }
}

/* ── ANIMATED HERO TAGS ── */
.animated-tag {
  cursor: default;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-tags .animated-tag:hover {
  transform: translateY(-6px);
}

.tag-letter {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.animated-tag:hover .tag-letter {
  transform: translateY(-6px);
}

.animated-tag:hover .tag-letter:nth-child(1)  { transition-delay: 0ms; }
.animated-tag:hover .tag-letter:nth-child(2)  { transition-delay: 30ms; }
.animated-tag:hover .tag-letter:nth-child(3)  { transition-delay: 60ms; }
.animated-tag:hover .tag-letter:nth-child(4)  { transition-delay: 90ms; }
.animated-tag:hover .tag-letter:nth-child(5)  { transition-delay: 120ms; }
.animated-tag:hover .tag-letter:nth-child(6)  { transition-delay: 150ms; }
.animated-tag:hover .tag-letter:nth-child(7)  { transition-delay: 180ms; }
.animated-tag:hover .tag-letter:nth-child(8)  { transition-delay: 210ms; }
.animated-tag:hover .tag-letter:nth-child(9)  { transition-delay: 240ms; }
.animated-tag:hover .tag-letter:nth-child(10) { transition-delay: 270ms; }
.animated-tag:hover .tag-letter:nth-child(11) { transition-delay: 300ms; }
.animated-tag:hover .tag-letter:nth-child(12) { transition-delay: 330ms; }
.animated-tag:hover .tag-letter:nth-child(13) { transition-delay: 360ms; }
.animated-tag:hover .tag-letter:nth-child(14) { transition-delay: 390ms; }
.animated-tag:hover .tag-letter:nth-child(15) { transition-delay: 420ms; }
.animated-tag:hover .tag-letter:nth-child(16) { transition-delay: 450ms; }
.animated-tag:hover .tag-letter:nth-child(17) { transition-delay: 480ms; }

/* ── ANIMATED BUTTONS ── */
.btn.animated-tag {
  overflow: hidden;
  position: relative;
}

.btn .tag-letter {
  display: inline-block;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn.animated-tag:hover .tag-letter {
  transform: translateY(-4px);
}

.btn.animated-tag:hover {
  transform: translateY(-2px);
}