/* ============================================
   DESIGN SYSTEM TOKENS — from design-system-master.json
   ============================================ */
:root {
  /* Primitive — Color/Green */
  --color-green-200: #99BAB0;
  --color-green-300: #669788;
  --color-green-400: #337561;
  --color-green-500: #005239;
  --color-green-600: #00422E;
  --color-green-700: #003122;
  --color-green-800: #002117;
  --color-green-900: #00100B;

  /* Primitive — Color/Lightgreen */
  --color-lightgreen-100: #F3F6D9;
  --color-lightgreen-200: #E6EDB3;
  --color-lightgreen-300: #DAE58D;
  --color-lightgreen-400: #CDDC67;
  --color-lightgreen-500: #C1D341;
  --color-lightgreen-600: #9AA934;
  --color-lightgreen-700: #747F27;

  /* Primitive — Color/Grey (warm) */
  --color-grey-100: #FDFDFC;
  --color-grey-200: #FCFBFA;
  --color-grey-300: #FAF9F7;
  --color-grey-400: #F9F7F5;
  --color-grey-500: #F7F5F2;
  --color-grey-600: #C6C4C2;
  --color-grey-700: #949391;
  --color-grey-800: #636261;
  --color-grey-900: #313130;

  /* Primitive — Color/Grey 2 (navy/blue-grey) */
  --color-grey2-100: #CCDCD7;
  --color-grey2-200: #A9AEC3;
  --color-grey2-300: #7D85A4;
  --color-grey2-400: #525D86;
  --color-grey2-500: #273468;
  --color-grey2-600: #1F2A53;
  --color-grey2-700: #171F3E;
  --color-grey2-800: #10152A;
  --color-grey2-900: #080A15;

  /* Primitive — Color/Lilac */
  --color-lilac-100: #F3F2FC;
  --color-lilac-200: #E7E5F9;
  --color-lilac-300: #DCD8F7;
  --color-lilac-400: #D0CBF4;
  --color-lilac-500: #C4BEF1;
  --color-lilac-600: #9D98C1;

  /* Primitive — Color/Blue */
  --color-blue-100: #D4D6E1;

  /* Alias — Semantic Tokens */
  --surface-background: var(--color-grey-500);           /* #F7F5F2 */
  --surface-section: var(--color-green-500);             /* #005239 */
  --surface-icons: var(--color-green-600);               /* #00422E */
  --surface-cards: var(--color-grey2-500);               /* #273468 */
  --surface-illustrations-highlights: var(--color-lilac-200);
  --surface-illustrations-shadows: var(--color-lilac-500);
  --button-1-bg: var(--color-lightgreen-500);            /* #C1D341 */
  --button-1-hover: var(--color-lightgreen-300);         /* #DAE58D */
  --button-1-disabled: var(--color-grey-600);
  --button-1-on: var(--color-green-500);
  --button-2-bg: var(--color-grey-500);
  --button-2-hover: var(--color-grey-200);
  --text-heading-light: var(--color-grey-500);           /* #F7F5F2 */
  --text-heading-dark: var(--color-grey2-500);           /* #273468 */
  --text-body-light: var(--color-grey-500);
  --text-body-dark: var(--color-grey2-500);
  --text-link-default: var(--color-lightgreen-500);
  --text-link-hover: var(--color-lightgreen-100);
  --icons-arrow-default: var(--color-grey-500);
  --icons-arrow-hover: var(--color-lightgreen-500);

  /* Sizes/Spacing */
  --space-0: 0px;
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--surface-background);
  color: var(--text-body-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-32);
}

section {
  padding: 96px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 12px var(--space-24);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--button-1-bg);
  color: var(--button-1-on);
}

.btn-primary:hover {
  background-color: var(--button-1-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 211, 65, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-heading-dark);
  border: 1.5px solid var(--color-grey2-500);
}

.btn-secondary:hover {
  background-color: var(--color-grey2-500);
  color: var(--color-grey-500);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-heading-light);
  border: 1.5px solid rgba(247, 245, 242, 0.4);
}

.btn-outline-light:hover {
  background-color: rgba(247, 245, 242, 0.1);
  border-color: rgba(247, 245, 242, 0.7);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-16) 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 82, 57, 0.92);
  backdrop-filter: blur(16px);
}

.solid-nav-page .navbar {
  background: rgba(0, 82, 57, 0.92);
  backdrop-filter: blur(16px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .navbar-logo img {
    height: 38px;
  }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.navbar-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: rgba(247, 245, 242, 0.8);
  transition: color 0.2s;
  position: relative;
}

.navbar-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-lightgreen-500);
  transition: width 0.25s ease;
}

.navbar-links a:not(.btn):hover,
.navbar-links a:not(.btn).active {
  color: var(--color-grey-100);
}

.navbar-links a:not(.btn):hover::after,
.navbar-links a:not(.btn).active::after {
  width: 100%;
}

/* ============================================
   MOBILE MENU (HAMBURGER)
   ============================================ */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-heading-light);
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1100;
}

.hamburger-btn .icon-close {
  display: none;
}

.navbar-inner.nav-open .hamburger-btn .icon-hamburger {
  display: none;
}

.navbar-inner.nav-open .hamburger-btn .icon-close {
  display: block;
}

@media (max-width: 960px) {
  .hamburger-btn {
    display: block;
  }
  
  .navbar {
    position: fixed;
    width: 100%;
  }

  .navbar-inner {
    position: relative;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-green-500);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    align-items: flex-start;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .navbar-inner.nav-open .navbar-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-links a:not(.btn) {
    font-size: 18px;
  }
  
  .navbar-links .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   LANGUAGE SWITCH
   ============================================ */
.lang-switch-item {
  display: flex;
  align-items: center;
}

.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-label {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.lang-label.active {
  opacity: 1;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  border: 1.5px solid var(--color-lightgreen-500);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-lightgreen-500);
  transition: var(--slider-no-transition, left 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  border-radius: 50%;
}

input:checked + .slider:before {
  left: 19px;
}

.switch:active .slider:before {
  width: 16px; /* Subtle stretch when clicking */
}

/* FAQ Bullets */
.faq-answer ul {
  list-style: none;
  padding: 12px 0 24px 0;
  margin: 0;
}

.faq-answer li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-body-dark);
}

.faq-answer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-lightgreen-500);
  border-radius: 50%;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  background-color: var(--surface-section);
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.14;
}

.hero-bg-deco-1 {
  width: 480px;
  height: 480px;
  background: var(--color-lightgreen-500);
  top: -100px;
  right: -100px;
}

.hero-bg-deco-2 {
  width: 300px;
  height: 300px;
  background: var(--color-lilac-500);
  bottom: 60px;
  left: -60px;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  min-height: calc(100vh - 64px);
  padding-top: 72px;
  padding-bottom: 0;
  gap: var(--space-40);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  max-width: 540px;
  flex: 1;
}

.hero-tag {
  color: var(--color-lightgreen-400);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--text-heading-light);
}

.hero-title em {
  font-style: normal;
  color: var(--color-lightgreen-400);
}

.hero-sub {
  color: rgba(247, 245, 242, 0.7);
  font-size: 17px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-32);
  margin-top: var(--space-8);
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-lightgreen-500);
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(247, 245, 242, 0.6);
  margin-top: 4px;
}

/* Photo container */
.hero-photo-area {
  position: relative;
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.hero-rect {
  width: 320px;
  height: 460px;
  background-color: var(--surface-background);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
}

.hero-hello-badge {
  position: absolute;
  right: -24px;
  top: 80px;
  background: var(--color-grey-400);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-hello-emoji {
  font-size: 20px;
  line-height: 1;
}

.hero-hello-text {
  font-size: 12px;
  color: var(--text-body-dark);
  line-height: 1.4;
}

.hero-hello-text strong {
  color: var(--color-green-500);
  font-weight: 700;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
#portfolio {
  background-color: var(--surface-background);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lightgreen-700);
  padding: 4px 14px;
  background: var(--color-lightgreen-100);
  border-radius: 100px;
  margin-bottom: var(--space-16);
}

.section-tag.light {
  background: transparent;
  border: 1.5px solid var(--color-lightgreen-400);
  color: var(--color-lightgreen-400);
}

.section-tag.blue {
  background: transparent;
  border: 1.5px solid var(--color-grey2-500);
  color: var(--color-grey2-500);
}

.section-title {
  color: var(--text-heading-dark);
}

.section-title.light {
  color: var(--text-heading-light);
}

.section-subtitle {
  margin-top: var(--space-16);
  color: var(--color-grey2-500);
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.light {
  color: rgba(247, 245, 242, 0.65);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.project-card {
  background: var(--color-grey2-500);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-card-disabled {
  opacity: 0.6;
  filter: grayscale(0.8);
  pointer-events: none;
  cursor: default !important;
}

.project-card-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-body {
  padding: var(--space-24);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.project-card-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lightgreen-600);
}

.project-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-grey-100);
  line-height: 1.35;
  flex: 1;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-lightgreen-400);
  transition: gap 0.2s ease;
}

.project-card:hover .project-card-link {
  gap: 12px;
}

.project-card-link svg {
  transition: transform 0.2s;
}

.project-card:hover .project-card-link svg {
  transform: translateX(3px);
}

.portfolio-footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   HABILIDADES
   ============================================ */
#habilidades {
  background-color: var(--surface-section);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.skill-card {
  background: rgba(247, 245, 242, 0.06);
  border: 1px solid rgba(247, 245, 242, 0.1);
  border-radius: 20px;
  padding: var(--space-32);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.skill-card.no-hover:hover {
  background: rgba(247, 245, 242, 0.06);
  border-color: rgba(247, 245, 242, 0.1);
  cursor: default;
}

/* ============================================
   TOOLTIPS
   ============================================ */
.skill-tool-item {
  position: relative;
  cursor: help;
  text-decoration: none;
  display: flex !important;
  align-items: center;
}

.skill-tool-item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-green-500);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  width: 220px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
  pointer-events: none;
  font-weight: 400;
  border: 1px solid rgba(247, 245, 242, 0.1);
}

.skill-tool-item::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-green-500);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 11;
  pointer-events: none;
}

.skill-tool-item:hover::after,
.skill-tool-item:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.skill-tool-item:hover {
  color: var(--color-lightgreen-400);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(193, 211, 65, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-16);
}

.skill-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading-light);
  margin-bottom: var(--space-8);
}

.skill-card-desc {
  font-size: 14px;
  color: rgba(247, 245, 242, 0.6);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}

.skill-tools {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.skill-tools-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lightgreen-500);
  margin-bottom: 4px;
}

.skill-tool-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 10px 0;
  border-bottom: 1px solid rgba(247, 245, 242, 0.08);
  flex-wrap: wrap;
}

.skill-tool-row:last-child {
  border-bottom: none;
}

.skill-tool-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14px;
  color: rgba(247, 245, 242, 0.75);
  transition: color 0.2s ease;
}

.skill-tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lightgreen-500);
  flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */
#faq {
  background-color: var(--color-grey-300);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.faq-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(39, 52, 104, 0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-24) var(--space-32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading-dark);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--color-green-500);
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-lightgreen-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s;
  color: var(--color-green-500);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-lightgreen-500);
  color: var(--color-green-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  padding: 0 var(--space-32);
  opacity: 0;
}

.faq-answer p {
  padding-bottom: var(--space-24);
  color: var(--color-grey-800);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
  padding-top: 8px;
  padding-bottom: 24px;
  opacity: 1;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
#testimonios {
  background-color: var(--surface-section);
  padding: 96px 0;
}

.testimonios-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonios-track {
  display: flex;
  gap: var(--space-24);
}

.testimonio-card {
  background: rgba(247, 245, 242, 0.07);
  border: 1px solid rgba(247, 245, 242, 0.12);
  border-radius: 24px;
  padding: var(--space-40);
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  transition: opacity 0.5s ease;
}

.testimonio-quote {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(247, 245, 242, 0.88);
  margin-bottom: var(--space-32);
  font-style: italic;
}

.testimonio-quote::before {
  display: none;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-lightgreen-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-green-600);
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}

.testimonio-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading-light);
}

.testimonio-role {
  font-size: 13px;
  color: rgba(247, 245, 242, 0.55);
  margin-top: 2px;
}

.testimonios-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-32);
}

.testimonio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 245, 242, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.testimonio-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-lightgreen-500);
}

.testimonios-arrows {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-24);
  justify-content: center;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 242, 0.2);
  background: transparent;
  color: var(--color-grey-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.arrow-btn:hover {
  background: var(--color-lightgreen-500);
  border-color: var(--color-lightgreen-500);
  color: var(--color-green-500);
}

@media (max-width: 768px) {
  .testimonio-card {
    padding: var(--space-24);
  }
  .testimonio-quote {
    font-size: 16px;
  }
  .testimonio-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .testimonios-arrows {
    gap: 48px;
  }
  .arrow-btn {
    width: 32px;
    height: 32px;
  }
  .arrow-btn svg {
    width: 16px;
    height: 16px;
  }
  .testimonios-nav {
    margin-top: var(--space-24);
  }
}

@media (max-width: 480px) {
  .testimonio-card {
    padding: var(--space-16);
  }
  .testimonio-quote {
    font-size: 15px;
  }
}

/* ============================================
   HABLEMOS / CTA
   ============================================ */
#contacto {
  background-color: var(--surface-background);
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-inner {
  width: 100%;
}

.contacto-deco {
  position: relative;
}

.contacto-deco-plane {
  font-size: 80px;
  line-height: 1;
  margin-bottom: var(--space-8);
}

.contacto-subtitle {
  font-size: 17px;
  color: var(--color-grey-800);
  max-width: 400px;
  margin-top: var(--space-16);
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.contacto-email-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-700);
  margin-bottom: 4px;
}

.contacto-email {
  font-size: clamp(16px, 6vw, 32px);
  font-weight: 700;
  color: var(--text-heading-dark);
  line-height: 1;
  display: flex;
  align-items: center;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--color-blue-500);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-blue-500);
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--color-blue-500);
  color: #ffffff;
  border-color: var(--color-blue-500);
}

.copy-btn.copied {
  background: var(--color-lightgreen-500);
  border-color: var(--color-lightgreen-500);
  color: var(--color-green-700);
}

.contacto-socials {
  display: flex;
  gap: var(--space-16);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 10px var(--space-16);
  border-radius: 100px;
  border: 1.5px solid var(--color-grey2-500);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body-dark);
  transition: all 0.2s;
}

.social-pill:hover {
  background: var(--color-grey2-500);
  color: var(--color-grey-500);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color-grey2-500);
  padding: var(--space-24) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-grey-500);
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--color-lightgreen-500);
}

.footer-copy {
  font-size: 13px;
  color: rgba(247, 245, 242, 0.45);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-lightgreen-300);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-lightgreen-500);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    display: none;
  }

  .hero-content {
    align-items: center;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .contacto-inner {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-24);
  }

  section {
    padding: 64px 0;
  }
}

/* ============================================
   CASE STUDY: DESPACHOS
   ============================================ */
body.case-study-page {
  background-color: #ffffff;
}

.case-study-page .navbar {
  background-color: var(--color-green-500) !important;
}

.case-study-page .navbar.scrolled {
  background-color: rgba(0, 82, 57, 0.92) !important;
  backdrop-filter: blur(16px);
}

/* Hero Section */
.cs-hero {
  padding-top: 140px;
  padding-bottom: 0;
  background-color: var(--surface-background);
}

.cs-hero-content {
  max-width: 800px;
  margin: 0 auto 64px auto;
  position: relative;
  z-index: 2;
}

.cs-hero-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading-dark);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.cs-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-heading-dark);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cs-subtitle {
  font-size: 20px;
  color: var(--text-heading-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cs-full-bleed-mobile {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50% + 16px) !important;
    border-radius: 12px;
  }
}

.cs-subtitle strong {
  font-weight: 700;
}

.cs-hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 45vh;
  min-height: 350px;
  max-height: 500px;
}

.cs-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, var(--surface-background) 0%, rgba(247,245,242,0) 100%);
  z-index: 1;
}

.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* Metadata Section */
.cs-metadata-section {
  padding: 64px 0;
}

.cs-metadata-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cs-meta-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading-dark);
  margin-bottom: 12px;
}

.cs-meta-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-heading-dark);
}

/* Narrative */
.cs-narrow {
  max-width: 700px;
  margin: 0 auto;
}

.cs-text-block {
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.cs-text-block h3 {
  font-size: 24px;
  color: var(--text-heading-dark);
  margin-bottom: 16px;
  text-align: left;
}

.cs-text-block p {
  font-size: 18px;
  color: var(--text-heading-dark);
  margin-bottom: 24px;
  text-align: left;
}

/* Visual Assets */
.cs-visual-section {
  padding: 80px 0;
}

.bg-light {
  background-color: #faf9f7;
}

.cs-section-header {
  margin-bottom: 48px;
}

.cs-section-header h2 {
  font-size: 32px;
  color: var(--text-heading-dark);
}

.cs-subtitle-small {
  font-size: 16px;
  color: var(--color-grey-500);
  margin-top: 8px;
}

.cs-image-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.cs-image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.cs-image-box img.img-md {
  max-width: 700px;
}

.cs-image-box img.img-sm {
  max-width: 300px;
}

.cs-mockup-shadow {
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Impact */
.cs-impact {
  padding: 80px 0;
}

.cs-impact h2 {
  font-size: 32px;
  color: var(--text-heading-dark);
  margin-bottom: 48px;
}

.cs-metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cs-metric {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 32px;
  max-width: 500px;
  width: 100%;
}

@media (max-width: 640px) {
  .cs-metric {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cs-metric-number {
    width: auto !important;
    text-align: center !important;
  }
}

.cs-metric-number {
  font-size: 64px;
  font-weight: 800;
  color: var(--color-green-500);
  line-height: 1;
  letter-spacing: -0.04em;
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.cs-metric-text {
  display: flex;
  flex-direction: column;
}

.cs-metric-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-green-500);
  margin-bottom: 4px;
}

.cs-metric-desc {
  font-size: 15px;
  color: var(--text-heading-dark);
}

/* Conclusion */
.cs-conclusion {
  padding: 80px 0;
}

/* ============================================
   ACERCA DE MÍ 
   ============================================ */

/* Hero */
.acerca-hero {
  background-color: var(--surface-background);
  padding: 100px 0 80px;
  min-height: calc(100vh - var(--nav-height) - 100px);
  display: flex;
  align-items: center;
}

.acerca-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.acerca-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}



.acerca-text-col {
  display: flex;
  flex-direction: column;
}

.acerca-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-blue-600);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.acerca-text-col p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-heading-dark);
  margin-bottom: 24px;
}

.acerca-text-col p:last-of-type {
  margin-bottom: 40px;
}

/* Timeline Section */
.acerca-timeline-section {
  background-color: var(--color-green-600);
  color: #ffffff;
  padding: 100px 0;
}

.acerca-timeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.acerca-timeline-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.acerca-timeline-header p {
  font-size: 18px;
  opacity: 0.9;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* The central dashed line */
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-image: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.4) 50%);
  background-size: 2px 14px; /* Dash size and gap */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

/* Position items left or right */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* The dots */
.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 14px;
  background-color: #D1C1FC;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left .timeline-dot {
  right: -12px;
}

.timeline-item.right .timeline-dot {
  left: -12px;
}

/* Content within items */
.timeline-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 16px;
  opacity: 0.8;
  margin: 0;
}

/* Media Query for Mobile Timeline & Hero */
@media screen and (max-width: 768px) {
  .acerca-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .acerca-circle {
    width: 300px;
    height: 300px;
  }
  
  .acerca-title {
    font-size: 40px;
  }

  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left !important;
  }
  
  .timeline-item.left {
    left: 0;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 19px;
    right: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    gap: 48px;
  }
  
  .hero-content {
    align-items: center;
    max-width: 100%;
  }

  .hero-photo-area {
    width: 100%;
    justify-content: center;
  }

  /* Contacto Responsive */
  .contacto-email {
    font-size: 20px !important;
    word-break: break-all;
  }
  
  .contacto-deco .section-title {
    font-size: 32px !important;
  }
  
  .contacto-subtitle {
    font-size: 16px !important;
  }

  /* Testimonios Responsive */
  .testimonio-card {
    padding: var(--space-24);
  }
  
  .testimonio-quote {
    font-size: 16px;
  }


}




/* ============================================
   PROGRESS BAR
   ============================================ */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}

#progress-bar {
  height: 100%;
  background: var(--color-lightgreen-500);
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================
   BADGES & UI HELPERS
   ============================================ */
.badge-soon {
  opacity: 0.8;
  pointer-events: none;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-tool-item:hover {
  color: var(--color-lightgreen-300);
}
