/* =========================================================
   CURRÍCULO — standalone page
   Uses the site's own color palette + font (Space Grotesk),
   with padding/spacing matched to the reference file.
   Scoped entirely under .cv-page.
   ========================================================= */

.cv-page {
  --cv-border: var(--sage);
  --cv-accent: var(--green);
  --cv-heading: var(--dark-green);
  --cv-text: var(--text-body);
  --cv-muted: var(--muted);
  --cv-card: var(--white);
  --cv-radius: 30px;
  background: var(--bg);
  color: var(--cv-text);
  font-family: var(--font);
}

.cv-page * { box-sizing: border-box; }
.cv-page h1, .cv-page h2, .cv-page h3, .cv-page h4, .cv-page h5, .cv-page h6 { color: var(--cv-heading); font-weight: 300; }

.cv-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 35px;
}

/* ---------------- Sidebar ---------------- */

.cv-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 400px;
  height: calc(100vh - 40px);
  max-height: 800px;
  background: var(--cv-card);
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  padding: 50px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-sidebar-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
}
.cv-sidebar-logo { width: 110px; height: auto; color: var(--cv-heading); }
.cv-sidebar-role { text-align: right; font-size: 13px; line-height: 1.6; color: var(--cv-heading); }

.cv-sidebar-photo {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 24px;
  overflow: hidden;
}
.cv-sidebar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv-sidebar-content { text-align: center; padding: 56px 0 30px; }
.cv-sidebar-content .cv-email { font-size: 20px; font-weight: 300; margin: 0 0 6px; word-break: break-word; color: var(--cv-heading); }
.cv-sidebar-content .cv-location { font-size: 20px; font-weight: 300; margin: 0; color: var(--cv-muted); }

.cv-sidebar-copyright { font-size: 12px; color: var(--cv-muted); margin-bottom: auto; padding-bottom: 25px; text-align: center; }

.cv-sidebar-socials { display: flex; gap: 8px; padding-bottom: 30px; }
.cv-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--cv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cv-social-icon:hover { border-color: var(--cv-accent); color: var(--cv-accent); }
.cv-social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.cv-sidebar-cta {
  width: 100%;
  background: var(--cv-accent);
  color: var(--white);
  border-radius: 30px;
  padding: 10px 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cv-sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0, 144, 184, 0.5); }
.cv-sidebar-cta svg { width: 18px; height: 18px; }

/* ---------------- Sticky icon nav (desktop) ---------------- */

.cv-sticky-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: var(--cv-card);
  border: 1px solid var(--cv-border);
  border-radius: 30px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cv-sticky-nav a {
  width: 20px;
  height: 20px;
  color: var(--cv-muted);
  transition: color 0.25s ease;
}
.cv-sticky-nav a svg { width: 100%; height: 100%; fill: currentColor; }
.cv-sticky-nav a:hover,
.cv-sticky-nav a.is-active { color: var(--cv-accent); }

/* ---------------- Mobile top bar ---------------- */

.cv-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--cv-border);
}
.cv-mobile-bar .cv-sidebar-logo { width: 90px; }
.cv-burger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--cv-border);
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.cv-burger span { width: 18px; height: 2px; background: var(--cv-heading); display: block; }

.cv-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.cv-mobile-menu.is-open { display: flex; }
.cv-mobile-menu a { color: var(--cv-heading); text-decoration: none; font-size: 22px; font-weight: 300; }
.cv-mobile-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 41;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--cv-border);
  background: var(--bg);
  color: var(--cv-heading);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cv-mobile-menu.is-open ~ .cv-mobile-close,
.cv-mobile-close.is-visible { display: flex; }

/* ---------------- Main content shell ---------------- */

.cv-main { padding-left: 600px; padding-right: 140px; overflow-x: hidden; }

.cv-back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cv-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.cv-back-to-site:hover { color: var(--cv-accent); }
.cv-back-to-site svg { flex-shrink: 0; }

.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cv-border);
  border-radius: 30px;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cv-heading);
  margin-bottom: 0;
}
.cv-eyebrow svg { width: 14px; height: 14px; fill: var(--cv-accent); }

.cv-accent { color: var(--cv-accent); }
.cv-muted { color: var(--cv-muted); }

/* ---------------- Hero ---------------- */

.cv-hero { padding: 68px 0; position: relative; }
.cv-hero-title {
  font-size: clamp(34px, 5.4vw, 70px);
  font-weight: 300;
  line-height: 1.15;
  margin: 53px 0 43px;
  max-width: 780px;
}
.cv-hero-sub { font-size: 17px; line-height: 1.7; color: var(--cv-muted); max-width: 460px; margin: 0 0 31px; }

.cv-hero-cta {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid var(--cv-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cv-heading);
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: absolute;
  right: 0;
  top: 60px;
}
.cv-hero-cta:hover { border-color: var(--cv-accent); background: var(--sage-20); }
.cv-hero-cta svg { width: 26px; height: 26px; fill: var(--cv-accent); }

.cv-fun-facts { display: flex; gap: 100px; flex-wrap: wrap; padding-top: 55px; }
.cv-fun-fact-num { font-size: clamp(44px, 6vw, 70px); font-weight: 300; color: var(--cv-accent); line-height: 1; margin-bottom: 38px; }
.cv-fun-fact-label { font-size: 13px; letter-spacing: 0.06em; color: var(--cv-muted); text-transform: uppercase; }

/* ---------------- Section shell ---------------- */

.cv-section { padding: 180px 0 0; }
.cv-section-head { max-width: 640px; padding: 53px 0 33px; margin: 0; }
.cv-section-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; line-height: 1.3; margin: 0; }

/* ---------------- About ---------------- */

.cv-section.cv-section-about { padding-top: 90px; }
.cv-about-body { padding-bottom: 16px; }
.cv-about-body p { font-size: 16px; line-height: 1.75; color: var(--cv-muted); max-width: 720px; margin: 0; }

/* ---------------- Experience timeline ---------------- */

.cv-timeline { display: flex; flex-direction: column; }
.cv-timeline-row { display: flex; gap: 44px; padding-bottom: 40px; position: relative; }
.cv-timeline-left { flex: 0 0 12px; display: flex; flex-direction: column; align-items: center; }
.cv-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cv-accent); flex-shrink: 0; }
.cv-timeline-line { width: 1px; flex: 1; background: var(--cv-border); margin-top: 8px; }
.cv-timeline-row:last-child .cv-timeline-line { display: none; }
.cv-timeline-year { flex: 0 0 130px; font-size: 16px; font-weight: 500; color: var(--cv-heading); white-space: nowrap; }
.cv-timeline-items { flex: 1; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cv-timeline-item-title { font-size: 21px; font-weight: 400; margin: 0 0 8px; color: var(--cv-heading); }
.cv-timeline-item-sub { font-size: 14px; color: var(--cv-muted); margin: 0; }

/* ---------------- Services ---------------- */

.cv-services-grid { display: flex; flex-direction: column; gap: 10px; }
.cv-service-card { background: transparent; border: 1px solid var(--cv-border); border-radius: 20px; padding: 44px 48px; }
.cv-service-card h3 { font-size: 24px; font-weight: 300; margin: 0 0 8px; }
.cv-service-card p { font-size: 14px; line-height: 1.7; color: var(--cv-muted); margin: 0; max-width: 640px; }

/* ---------------- Skills ---------------- */

.cv-skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cv-skill-item { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cv-skill-pill {
  width: 100%;
  border: 2px solid var(--cv-border);
  border-radius: 85px;
  padding: 54px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 29px;
  text-align: center;
}
.cv-skill-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cv-skill-badge svg { width: 24px; height: 24px; display: block; }
.cv-skill-badge.is-mark { overflow: hidden; }
.cv-skill-badge.is-mark svg { width: 100%; height: 100%; }
.cv-skill-percentage { font-size: 30px; font-weight: 300; color: var(--cv-accent); }
.cv-skill-pill-name { font-size: 15px; color: var(--cv-heading); margin: 0; }

/* ---------------- Portfolio ---------------- */

.cv-portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cv-portfolio-card { grid-column: span 1; text-decoration: none; color: inherit; display: block; }
.cv-portfolio-card.is-featured { grid-column: span 2; }
.cv-portfolio-image { position: relative; border-radius: var(--cv-radius); overflow: hidden; height: 410px; margin-bottom: 30px; }
.cv-portfolio-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.cv-portfolio-card:hover .cv-portfolio-image img { transform: scale(1.06); }
.cv-portfolio-tags { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.cv-portfolio-tag { background: var(--white); color: #000; border-radius: 19px; padding: 7px 20px; font-size: 13px; }
.cv-portfolio-card h4 { font-size: 22px; font-weight: 300; margin: 0; }
.cv-portfolio-more { display: flex; justify-content: center; margin-top: 40px; }
.cv-portfolio-more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cv-muted); text-decoration: none; padding: 10px 4px; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.cv-portfolio-more-link svg { transition: transform 0.2s ease; }
.cv-portfolio-more-link:hover { color: var(--cv-accent); border-color: var(--cv-accent); }
.cv-portfolio-more-link:hover svg { transform: translate(2px, -2px); }

/* ---------------- Testimonials ---------------- */

.cv-testimonial-card { background: var(--cv-card); border: 2px solid var(--cv-border); border-radius: var(--cv-radius); padding: 50px 50px 43px; max-width: 720px; }
.cv-testimonial-top { display: flex; align-items: center; gap: 16px; margin-bottom: 45px; }
.cv-testimonial-top img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.cv-testimonial-name { font-size: 17px; margin: 0; color: var(--cv-heading); }
.cv-testimonial-role { font-size: 12px; color: var(--cv-accent); margin: 2px 0 0; }
.cv-testimonial-quote { font-size: clamp(18px, 2.2vw, 22px); font-weight: 300; line-height: 1.5; margin: 0 0 27px; color: var(--cv-heading); }
.cv-testimonial-tag { font-size: 12px; color: var(--cv-muted); }

.cv-pagination { display: flex; align-items: center; gap: 15px; margin-top: 50px; }
.cv-pagination-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--cv-border);
  background: none;
  color: var(--cv-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cv-pagination-btn:hover { border-color: var(--cv-accent); color: var(--cv-accent); }
.cv-pagination-btn svg { width: 16px; height: 16px; fill: currentColor; }
.cv-pagination-count { font-size: 14px; }
.cv-pagination-count span:first-child { color: var(--cv-heading); }
.cv-pagination-count span:last-child { color: var(--cv-muted); }

/* ---------------- Clients ---------------- */

.cv-clients-head-wrap { padding: 100px 0 57px; text-align: center; }
.cv-clients-head { font-size: 14px; letter-spacing: 0.02em; color: var(--cv-heading); margin: 0; }
.cv-clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; gap: 74px 40px; }
.cv-clients-grid img { width: 100%; height: 76px; max-width: 190px; object-fit: contain; opacity: 0.7; transition: opacity 0.25s ease; }
.cv-clients-grid img:hover { opacity: 1; }

/* ---------------- Closing CTA ---------------- */

.cv-closing { padding: 180px 0 100px; text-align: center; }
.cv-closing h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 300; margin: 0 0 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cv-closing-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cv-closing-btn {
  background: var(--cv-accent);
  color: var(--white);
  border-radius: 30px;
  padding: 16px 34px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.cv-closing-btn:hover { transform: translateY(-2px); }
.cv-closing-link { color: var(--cv-heading); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- Footer ---------------- */

.cv-footer { border-top: 1px solid var(--cv-border); padding: 32px 0 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cv-footer p { font-size: 13px; color: var(--cv-muted); margin: 0; }
.cv-footer .cv-sidebar-socials { padding: 0; }

/* ---------------- Reveal ---------------- */

.cv-page [data-cv-reveal] {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-page [data-cv-reveal="left"] { transform: translateX(-90px); }
.cv-page [data-cv-reveal="right"] { transform: translateX(90px); }
.cv-page [data-cv-reveal="up"] { transform: translateY(70px); }
.cv-page [data-cv-reveal].is-visible { opacity: 1; transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  .cv-page [data-cv-reveal] { transition-duration: 0.01ms; transform: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .cv-sidebar { position: static; transform: none; width: auto; height: auto; max-height: none; margin: 24px 24px 40px; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px; }
  .cv-sidebar-header { width: 100%; padding-bottom: 0; }
  .cv-sidebar-photo { display: none; }
  .cv-sidebar-content { text-align: left; padding: 0; }
  .cv-sidebar-copyright { display: none; }
  .cv-sidebar-socials { padding: 0; }
  .cv-sidebar-cta { width: auto; }
  .cv-sticky-nav { display: none; }
  .cv-main { padding-left: 24px; padding-right: 24px; }
  .cv-hero-cta { position: static; margin-top: 30px; }
  .cv-hero { padding-top: 40px; }
  .cv-section { padding-top: 100px; }
  .cv-section.cv-section-about { padding-top: 60px; }
  .cv-closing { padding-top: 100px; }
}

@media (max-width: 780px) {
  .cv-mobile-bar { display: flex; }
  .cv-sidebar { display: none; }
  .cv-main { padding-left: 20px; padding-right: 20px; }
  .cv-services-grid { grid-template-columns: 1fr; }
  .cv-service-card { padding: 32px 28px; }
  .cv-skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-portfolio-grid { grid-template-columns: 1fr; }
  .cv-portfolio-card.is-featured { grid-column: span 1; }
  .cv-portfolio-image { height: 280px; }
  .cv-fun-facts { gap: 50px; padding-top: 36px; }
  .cv-fun-fact-num { margin-bottom: 18px; }
  .cv-timeline-row { gap: 24px; }
  .cv-timeline-year { flex-basis: 50px; }
  .cv-testimonial-card { padding: 30px 28px; }
  .cv-clients-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .cv-footer { flex-direction: column; text-align: center; }
}
