:root {
  --bg: #f7f1ea;
  --bg-soft: #fbf7f2;
  --bg-card: rgba(255, 252, 247, 0.86);
  --text: #2b241f;
  --text-soft: #63574f;
  --border: rgba(139, 108, 74, 0.18);
  --accent: #b8894b;
  --accent-dark: #936731;
  --dark: #101010;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(32, 25, 18, 0.08);
  --radius: 24px;
  --container: min(1240px, calc(100% - 48px));
  --header-h: 90px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: none; background: none; cursor: pointer; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1;
  color: #f3ede3;
}
.brand-text { display: grid; gap: 2px; }
.brand-text strong {
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-text small {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,.88);
  font-size: .96rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active, .nav-link:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.18);
  margin-left: 6px;
}

.icon-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.hero-highlights .icon-wrap {
  background: rgba(184, 137, 75, 0.08);
}

.btn-primary {
  background: linear-gradient(180deg, #c89957, var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(161, 116, 52, .2);
}
.btn-outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: rgba(255,255,255,.03);
}
.btn-outline.light {
  color: #fff;
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  place-items: center;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  margin: 4px 0;
  transition: .25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  color: #fff;
  background: url('assets/hero-desktop.png') center center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.72) 34%, rgba(8,8,8,.28) 58%, rgba(8,8,8,.06) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(184,137,75,.12), transparent 34%);
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 240px);
}
.hero-copy {
  max-width: 620px;
}
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .84rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d7b98b;
  font-weight: 600;
}
.eyebrow::before, .section-kicker::before {
  content: '';
  width: 52px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  margin: 18px 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.hero-divider {
  width: 82px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 28px 0;
}
.hero-text {
  margin: 0 0 32px;
  max-width: 600px;
  color: rgba(255,255,255,.84);
  font-size: 1.08rem;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 620px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.icon-wrap {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215,185,139,.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.highlight-item strong, .highlight-item small { display: block; }
.highlight-item strong { font-size: .95rem; font-weight: 600; color: #fff; }
.highlight-item small { font-size: .92rem; color: rgba(255,255,255,.7); }

.content-wrap {
  padding: 84px 0;
}
.light-bg {
  background: #fcfaf6 url('assets/bg-light-desktop.png') center top / cover no-repeat;
}
.section-head.left { margin-bottom: 24px; }
.section-head.center {
  text-align: center;
  margin-bottom: 28px;
}
.section-head.center .section-kicker::before,
.section-head.center .section-kicker::after {
  content: '';
  width: 42px;
  height: 1px;
  background: currentColor;
}
.section-head.center .section-kicker { gap: 14px; }
.section-head h2 {
  margin: 12px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}
.two-col-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}
.profile-card, .experience-card, .feature-panel, .panel, .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.profile-card {
  padding: 34px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
}
.experience-card { padding: 34px; }
.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 156px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(184,137,75,.25);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 148px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #d7b98b;
  z-index: 1;
}
.timeline-date {
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
  padding-top: 10px;
}
.timeline-date span { color: #9a8a7e; }
.timeline-content {
  padding: 22px 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(139,108,74,.14);
  border-radius: 18px;
}
.timeline-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.timeline-content h3, .education-item h3 { margin: 0 0 3px; font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; }
.timeline-content .role { margin: 0; color: var(--accent-dark); font-weight: 600; }
.timeline-content ul { margin: 0; padding-left: 18px; color: var(--text-soft); }
.logo-badge {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(139,108,74,.16);
  color: #5372b6;
  background: rgba(255,255,255,.75);
  font-weight: 700;
  white-space: nowrap;
}
.logo-badge.soft { color: #9f7d59; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-panel { padding: 30px; }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mini-card {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.mini-card span {
  font-size: 1.3rem;
  display: inline-flex;
  margin-bottom: 12px;
}
.mini-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(184,137,75,.12);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 700;
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-grid span {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--text-soft);
}

.education-strip {
  padding: 36px 0;
  background: #fcfaf6;
  border-top: 1px solid rgba(139,108,74,.12);
  border-bottom: 1px solid rgba(139,108,74,.12);
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.education-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 10px;
}
.edu-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(184,137,75,.12);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.portfolio-section {
  padding: 90px 0;
}
.food-bg {
  background: #f8f0e4 url('assets/bg-food-desktop.png') center top / cover no-repeat;
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 10px 18px;
  border: 1px solid rgba(139,108,74,.18);
  background: rgba(255,255,255,.72);
  color: var(--text-soft);
  border-radius: 999px;
}
.filter-btn.active {
  background: var(--accent-dark);
  color: #fff;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.portfolio-card {
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(139,108,74,.14);
  box-shadow: var(--shadow);
  transition: transform .25s ease, opacity .25s ease;
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}
.portfolio-card span {
  display: block;
  padding: 10px 10px 14px;
  font-size: .92rem;
  font-weight: 600;
}
.portfolio-card.hide { display: none; }

.philosophy-cta {
  padding: 84px 0;
}
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel { padding: 38px; }
.cta-panel {
  background: rgba(255,249,241,.78);
  position: relative;
  overflow: hidden;
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/bg-light-desktop.png') center / cover no-repeat;
  opacity: .16;
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.cta-buttons .btn-outline { color: var(--text); border-color: rgba(139,108,74,.22); background: rgba(255,255,255,.82); }

.contact-section {
  padding: 84px 0 96px;
}
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.35fr .72fr;
  gap: 24px;
}
.contact-card { padding: 28px; }
.contact-card.info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.contact-card.info small { color: #9d8d7d; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-form .form-row.single { grid-template-columns: 1fr; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(139,108,74,.18);
  border-radius: 12px;
  color: var(--text);
}
.contact-form textarea { padding: 14px 16px; resize: vertical; }
.form-note { color: #8e7f72; font-size: .86rem; }
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.86) url('assets/bg-light-desktop.png') center / cover no-repeat;
}
.quote-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 16px;
}
.quote-card span {
  color: var(--accent-dark);
  font-weight: 600;
}

.site-footer {
  color: #f2ede7;
  padding: 36px 0;
  background: #0f0f10 url('assets/bg-dark-desktop.png') center / cover no-repeat;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr .9fr;
  gap: 24px;
  align-items: start;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1;
}
.footer-title {
  color: #d7b98b;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  margin-bottom: 12px;
}
.site-footer a, .site-footer p { display: block; margin: 6px 0; color: rgba(255,255,255,.82); }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10,10,10,.75);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 80;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: min(940px, 100%);
  width: 100%;
  padding: 18px;
}
.modal-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f4efe8;
}
.modal-content p {
  margin: 14px 0 0;
  font-weight: 700;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
  .header-actions .btn { padding: 0 16px; }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .quote-card { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 84px; --container: min(100% - 32px, 1240px); }
  .menu-toggle { display: inline-grid; justify-self: end; }
  .header-inner { grid-template-columns: auto auto auto; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    background: rgba(11,11,11,.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 12px 10px; }
  .nav-link::after { display: none; }
  .header-actions { display: none; }
  .hero {
    background-image: url('assets/hero-mobile.png');
    min-height: auto;
    padding: 126px 0 48px;
    background-position: center top;
  }
  .hero::after { background: linear-gradient(180deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.84) 32%, rgba(8,8,8,.55) 64%, rgba(8,8,8,.4) 100%); }
  .hero-grid { min-height: auto; }
  .hero-copy { max-width: 100%; padding-top: 32px; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-text { font-size: 1rem; }
  .hero-highlights { grid-template-columns: 1fr; gap: 8px; }
  .two-col-layout, .features-grid, .education-grid, .split-panels, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-left: 48px; }
  .timeline-item::before { left: 16px; top: 12px; }
  .timeline-date { padding-top: 0; }
  .profile-card { position: static; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .light-bg { background-image: url('assets/bg-light-mobile.png'); }
  .food-bg { background-image: url('assets/bg-food-mobile.png'); }
  .site-footer { background-image: url('assets/bg-dark-mobile.png'); }
  .quote-card { background-image: url('assets/bg-light-mobile.png'); }
  .cta-panel::after { background-image: url('assets/bg-light-mobile.png'); }
}

@media (max-width: 640px) {
  .brand-text { display: none; }
  .hero-buttons, .cta-buttons { flex-direction: column; }
  .hero-buttons .btn, .cta-buttons .btn { width: 100%; }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 2.3rem; }
  .quote-card p { font-size: 1.7rem; }
}

/* iconos hero mobile */
@media (max-width: 640px) {
  .icon-wrap img {
    width: 28px;
    height: 28px;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
  }
}


/* Ajustes para acercar el sitio al mockup entregado */
.brand {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 126px;
}

.brand-mark {
  font-size: 4.1rem;
  line-height: .76;
  letter-spacing: -.04em;
}

.brand-text strong {
  color: #d7b98b;
  font-size: .92rem;
  letter-spacing: .08em;
}

.main-nav {
  align-self: center;
}

.hero-copy {
  padding-top: 44px;
}

.hero h1 {
  margin-top: 0;
  max-width: 640px;
}

.hero-text {
  max-width: 650px;
  font-weight: 500;
}

.hero-highlights {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  max-width: 760px;
  margin-top: 14px;
}

.highlight-item {
  border-top: 0;
  border-right: 1px solid rgba(215, 185, 139, .42);
  padding: 12px 28px 12px 0;
  margin-right: 28px;
}

.highlight-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.icon-wrap {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

.icon-wrap img {
  width: 50px;
  height: 50px;
}

.highlight-item strong {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .86rem;
}

.highlight-item small {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .86);
  font-size: .84rem;
  font-weight: 600;
}

.btn-primary .btn-icon {
  filter: brightness(0) invert(1);
  opacity: .95;
}

.portfolio-section .section-head.center {
  margin-bottom: 34px;
}

.contact-title {
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .brand {
    align-items: flex-start;
    min-width: auto;
  }

  .brand-mark {
    font-size: 3.4rem;
  }

  .brand-text strong {
    font-size: .82rem;
  }

  .hero-copy {
    padding-top: 12px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .highlight-item {
    border-right: 0;
    border-top: 1px solid rgba(215, 185, 139, .26);
    margin-right: 0;
    padding: 14px 0;
  }

  .icon-wrap {
    width: 48px;
    height: 48px;
  }

  .icon-wrap img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .brand-text {
    display: block;
  }

  .brand-mark {
    font-size: 3rem;
  }

  .brand-text strong {
    font-size: .72rem;
  }
}


/* Íconos de áreas de especialidad */
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.mini-card span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.mini-card span img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.mini-card h4 {
  max-width: 150px;
}

@media (max-width: 640px) {
  .mini-card span {
    width: 62px;
    height: 62px;
    margin-bottom: 10px;
  }

  .mini-card span img {
    width: 52px;
    height: 52px;
  }
}


/* Íconos de formación */
.edu-icon {
  background: rgba(255,255,255,.7);
}

.edu-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .edu-icon img {
    width: 34px;
    height: 34px;
  }
}


/* Fondo y firma de la tarjeta de cita */
.quote-card {
  background: rgba(255,255,255,.92) url('assets/quote-bg.png') center / cover no-repeat;
  position: relative;
  min-height: 100%;
}

.quote-card .quote-icon {
  color: #b8894b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  line-height: .8;
  margin-bottom: 10px;
}

.quote-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.05rem;
  line-height: 1.28;
  margin: 0 0 24px;
  max-width: 300px;
}

.quote-signoff {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.quote-line {
  width: 44px;
  height: 3px;
  background: rgba(184, 137, 75, .72);
  border-radius: 999px;
  flex: 0 0 auto;
}

.quote-signature {
  width: 210px;
  max-width: calc(100% - 58px);
  height: auto;
  display: block;
  opacity: .92;
}

@media (max-width: 640px) {
  .quote-card .quote-icon {
    font-size: 3.3rem;
    margin-bottom: 6px;
  }

  .quote-card p {
    font-size: 1.75rem;
    max-width: none;
    margin-bottom: 18px;
  }

  .quote-signature {
    width: 180px;
  }
}


/* Download button like mockup */
.btn-download {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.30);
  background: rgba(17,17,17,.34);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-download:hover {
  background: rgba(17,17,17,.48);
  border-color: rgba(255,255,255,.42);
}


.btn-download-soft {
  background: rgba(24,24,24,.78);
  border-color: rgba(255,255,255,.18);
}

.cta-buttons .btn-download-soft {
  color: #fff;
}

@media (max-width: 640px) {
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}


.download-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.download-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.download-icon svg path {
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Ajuste de legibilidad del título Portafolio gastronómico */
.portfolio-section .section-kicker {
  color: #181512;
}

.portfolio-section .section-head.center .section-kicker::before,
.portfolio-section .section-head.center .section-kicker::after {
  background: #181512;
}


/* Ajuste tipográfico para acercar el sitio a la referencia visual */
:root {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Libre Baskerville', serif;
  --font-ui: 'Cinzel', serif;
}

body {
  font-family: var(--font-body);
}

.brand-mark,
.hero h1,
.section-head h2,
.timeline-content h3,
.education-item h3,
.quote-card p,
.footer-brand {
  font-family: var(--font-display);
}

.brand-text strong,
.brand-text small,
.nav-link,
.btn,
.eyebrow,
.section-kicker,
.footer-title {
  font-family: var(--font-ui);
}

.timeline-content .role,
.logo-badge,
.logo-badge.soft,
.check-list li,
.pill-grid span,
.contact-card,
.contact-form input,
.contact-form textarea,
.contact-form select,
.form-note,
.site-footer a,
.site-footer p,
.portfolio-card span,
.highlight-item strong,
.highlight-item small,
.timeline-date {
  font-family: var(--font-body);
}

.nav-link,
.btn {
  letter-spacing: .04em;
}

.section-kicker,
.footer-title,
.brand-text strong,
.brand-text small {
  letter-spacing: .12em;
}

.hero-text,
.profile-card p,
.panel p,
.timeline-content ul,
.education-item p,
.contact-card li,
.contact-form input,
.contact-form textarea,
.contact-form select {
  line-height: 1.75;
}


/* Página de portafolio completo */
.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-page-hero {
  min-height: 58vh;
  padding: 170px 0 88px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,8,8,.9), rgba(8,8,8,.58)),
    url('assets/bg-dark-desktop.png') center / cover no-repeat;
}

.portfolio-page-hero h1 {
  margin: 18px 0 16px;
  max-width: 820px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.03em;
}

.portfolio-page-hero p:not(.section-kicker) {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
}

.portfolio-page {
  padding-top: 78px;
}

.portfolio-grid-full {
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.full-gallery-card img {
  aspect-ratio: 4 / 5;
}

.full-gallery-card span {
  color: #2b241f;
}

@media (max-width: 1180px) {
  .portfolio-grid-full {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .portfolio-page-hero {
    min-height: auto;
    padding: 136px 0 64px;
    background:
      linear-gradient(180deg, rgba(8,8,8,.92), rgba(8,8,8,.68)),
      url('assets/bg-dark-mobile.png') center / cover no-repeat;
  }

  .portfolio-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .portfolio-grid-full {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Responsive final: evita cortes horizontales y ordena mobile
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.container {
  max-width: 100%;
}

.site-header {
  width: 100%;
}

.main-nav,
.header-actions,
.hero-copy,
.timeline-content,
.contact-card,
.panel,
.feature-panel,
.profile-card,
.experience-card {
  min-width: 0;
}

.btn {
  white-space: nowrap;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-card img {
  object-position: center;
}

/* Notebook y pantallas medianas */
@media (max-width: 1280px) {
  :root {
    --container: min(1180px, calc(100% - 40px));
  }

  .main-nav {
    gap: 22px;
  }

  .hero-copy {
    max-width: 590px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5.1vw, 4.8rem);
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portfolio-grid-full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet horizontal */
@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }

  .brand {
    min-width: 104px;
  }

  .brand-mark {
    font-size: 3.45rem;
  }

  .brand-text strong {
    font-size: .78rem;
  }

  .main-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: .84rem;
  }

  .header-actions .btn {
    min-height: 46px;
    padding-inline: 14px;
    font-size: .78rem;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.76) 40%, rgba(8,8,8,.30) 70%, rgba(8,8,8,.08) 100%);
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

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

  .features-grid .feature-panel:nth-child(3) {
    grid-column: 1 / -1;
  }

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

  .contact-grid .quote-card {
    grid-column: 1 / -1;
  }
}

/* Tablet vertical y mobile */
@media (max-width: 960px) {
  :root {
    --container: calc(100% - 32px);
    --header-h: 78px;
  }

  .site-header {
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-inner {
    min-height: var(--header-h);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
  }

  .brand-mark {
    font-size: 3rem;
  }

  .brand-text {
    display: block;
  }

  .brand-text strong {
    font-size: .72rem;
    line-height: 1;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .header-actions {
    display: none !important;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100svh - var(--header-h) - 24px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: initial;
    gap: 4px;
    padding: 14px;
    background: rgba(12, 12, 12, .96);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .92rem;
  }

  .nav-link.active,
  .nav-link:hover {
    background: rgba(184, 137, 75, .12);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 36px) 0 54px;
    background-image: url('assets/hero-mobile.png');
    background-position: center top;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(8,8,8,.90) 0%, rgba(8,8,8,.82) 36%, rgba(8,8,8,.66) 66%, rgba(8,8,8,.72) 100%);
  }

  .hero-grid {
    min-height: calc(100svh - var(--header-h) - 90px);
    align-items: end;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 4.15rem);
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
    font-size: .98rem;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding-inline: 14px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 8px;
  }

  .highlight-item {
    width: 100%;
  }

  .content-wrap,
  .portfolio-section,
  .philosophy-cta,
  .contact-section {
    padding-block: 58px;
  }

  .profile-card,
  .experience-card,
  .feature-panel,
  .panel,
  .contact-card {
    padding: 24px;
    border-radius: 20px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 44px;
    gap: 10px;
  }

  .timeline-item::before {
    left: 12px;
  }

  .timeline-header {
    display: grid;
    gap: 12px;
  }

  .logo-badge {
    width: fit-content;
    max-width: 100%;
  }

  .features-grid,
  .education-grid,
  .split-panels,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-panel:nth-child(3) {
    grid-column: auto;
  }

  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-item {
    padding-inline: 0;
  }

  .portfolio-grid,
  .portfolio-grid-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-page-hero {
    padding: calc(var(--header-h) + 58px) 0 64px;
  }

  .portfolio-page-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

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

  .site-footer {
    text-align: left;
  }
}

/* Mobile compacto */
@media (max-width: 640px) {
  :root {
    --container: calc(100% - 24px);
    --header-h: 74px;
  }

  .brand-mark {
    font-size: 2.7rem;
  }

  .brand-text strong {
    font-size: .68rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12.5vw, 3.45rem);
    line-height: 1.03;
  }

  .hero-divider {
    margin: 20px 0;
  }

  .hero-text {
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 16px;
    font-size: .82rem;
  }

  .highlight-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .icon-wrap,
  .icon-wrap img {
    width: 42px;
    height: 42px;
  }

  .section-kicker {
    font-size: .74rem;
    letter-spacing: .12em;
  }

  .section-kicker::before {
    width: 30px;
  }

  .section-head.center .section-kicker::before,
  .section-head.center .section-kicker::after {
    width: 26px;
  }

  .section-head h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .timeline-content h3,
  .education-item h3 {
    font-size: 1.55rem;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-content ul {
    padding-left: 18px;
  }

  .specialty-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mini-card {
    min-height: 132px;
    padding: 14px 10px;
  }

  .mini-card h4 {
    font-size: .9rem;
  }

  .mini-card span {
    width: 54px;
    height: 54px;
  }

  .mini-card span img {
    width: 48px;
    height: 48px;
  }

  .pill-grid span {
    width: 100%;
    text-align: center;
  }

  .education-item {
    gap: 14px;
  }

  .edu-icon {
    width: 54px;
    height: 54px;
  }

  .edu-icon img {
    width: 32px;
    height: 32px;
  }

  .portfolio-grid,
  .portfolio-grid-full {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-card img,
  .full-gallery-card img {
    aspect-ratio: 4 / 3;
  }

  .portfolio-page-hero p:not(.section-kicker) {
    font-size: .94rem;
  }

  .quote-card p {
    font-size: 1.55rem;
  }

  .quote-signature {
    width: 150px;
  }

  .footer-grid {
    gap: 18px;
  }
}

/* Mobile muy estrecho */
@media (max-width: 390px) {
  :root {
    --container: calc(100% - 20px);
  }

  .hero h1 {
    font-size: 2.05rem;
  }

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

  .profile-card,
  .experience-card,
  .feature-panel,
  .panel,
  .contact-card {
    padding: 20px;
  }

  .timeline-item {
    padding-left: 34px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: 7px;
  }
}


/* =========================================================
   Navbar final corregido
   ========================================================= */
.site-header {
  z-index: 1000;
}

.header-inner {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  position: relative;
  z-index: 1002;
  flex: 0 0 auto;
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 24px);
}

.nav-link {
  white-space: nowrap;
}

.header-actions {
  position: relative;
  z-index: 1002;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-actions {
  display: none;
}

.menu-toggle {
  position: relative;
  z-index: 1003;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 24px;
  margin: 3px 0;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* El menú pasa a hamburguesa antes de que se apriete en pantallas medianas */
@media (max-width: 1220px) {
  :root {
    --header-h: 78px;
  }

  .site-header {
    background: rgba(13, 13, 13, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-inner {
    min-height: var(--header-h);
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .brand-mark {
    font-size: 3rem;
    line-height: .78;
  }

  .brand-text {
    display: block;
  }

  .brand-text strong {
    font-size: .72rem;
    line-height: 1;
  }

  .header-actions {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    width: 46px;
    height: 46px;
    padding: 0;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100svh - var(--header-h) - 26px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: initial;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(12, 12, 12, .97);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.38);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: .9rem;
    color: rgba(255,255,255,.9);
  }

  .nav-link::after {
    display: none !important;
  }

  .nav-link.active,
  .nav-link:hover {
    background: rgba(184, 137, 75, .14);
    color: #fff;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .mobile-nav-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-mark {
    font-size: 2.55rem;
  }

  .brand-text strong {
    font-size: .66rem;
    letter-spacing: .10em;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .nav-link {
    min-height: 42px;
    font-size: .84rem;
    padding: 10px 12px;
  }
}

@media (min-width: 1221px) {
  .menu-toggle {
    display: none !important;
  }

  .main-nav {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}


/* Corrección final: apertura real del menú mobile */
@media (max-width: 1220px) {
  .menu-toggle {
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .main-nav {
    display: grid !important;
    z-index: 1001;
  }

  .main-nav.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

@media (min-width: 1221px) {
  .main-nav {
    display: flex !important;
  }
}


/* =========================================================
   Navbar desktop final: escritorio limpio + mobile intacto
   ========================================================= */

/* Escritorio real */
@media (min-width: 1181px) {
  :root {
    --header-h: 92px;
  }

  .site-header {
    background: transparent;
  }

  .site-header.scrolled {
    background: rgba(13, 13, 13, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-inner {
    min-height: var(--header-h);
    grid-template-columns: 170px minmax(0, 1fr) auto;
    justify-content: initial;
    align-items: center;
    gap: 22px;
  }

  .brand {
    width: 170px;
    min-width: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  .brand-mark {
    font-size: 3.85rem;
    line-height: .74;
  }

  .brand-text {
    display: block;
    text-align: center;
  }

  .brand-text strong {
    font-size: .74rem;
    line-height: 1;
    letter-spacing: .11em;
  }

  .main-nav {
    position: static !important;
    width: auto !important;
    max-width: 100%;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 1.28vw, 22px);
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .nav-link {
    width: auto;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    font-size: clamp(.72rem, .72vw, .86rem);
    letter-spacing: .055em;
    color: rgba(255, 255, 255, .88);
  }

  .nav-link.active,
  .nav-link:hover {
    background: transparent;
    color: #fff;
  }

  .nav-link::after {
    display: block !important;
    bottom: -12px;
  }

  .header-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 250px;
  }

  .header-actions .btn {
    width: auto;
    min-height: 48px;
    padding: 0 16px;
    font-size: .74rem;
    white-space: nowrap;
  }

  .header-actions .btn-download {
    padding-inline: 15px;
  }

  .menu-toggle {
    display: none !important;
  }

  .mobile-nav-actions {
    display: none !important;
  }
}

/* Tablet y mobile: hamburguesa */
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto !important;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .header-actions {
    display: none !important;
  }

  .main-nav {
    position: fixed !important;
    top: calc(var(--header-h) + 10px) !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
  }

  .main-nav.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}
