*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --accent: #789960;
  --accent-earth: #c786a3;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.12);
  --panel: #f5f5f7;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --logo-filter: none;
  --surface-dark: #1d1d1f;
  --surface-dark-line: rgba(255, 255, 255, 0.12);
  --surface-dark-muted: rgba(255, 255, 255, 0.58);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: 'SF Mono', Consolas, monospace;

  /* Section Background Cycle - Light Mode */
  --bg-sec-1: #000000;
  --text-sec-1: #ffffff;
  --muted-sec-1: #86868b;
  --line-sec-1: rgba(255, 255, 255, 0.15);
  --panel-sec-1: rgba(255, 255, 255, 0.08);

  --bg-sec-2: #f5f5f7;
  --text-sec-2: #1d1d1f;
  --muted-sec-2: #6e6e73;
  --line-sec-2: rgba(0, 0, 0, 0.08);
  --panel-sec-2: rgba(0, 0, 0, 0.04);

  --bg-sec-3: #ffffff;
  --text-sec-3: #1d1d1f;
  --muted-sec-3: #86868b;
  --line-sec-3: rgba(0, 0, 0, 0.12);
  --panel-sec-3: #f5f5f7;
}

[data-theme="dark"] {
  --bg: #000000;
  --ink: #f5f5f7;
  --accent: #c1d5a4;
  --accent-earth: #f8c8dc;
  --line: rgba(255, 255, 255, 0.15);
  --panel: #111111;
  --nav-bg: rgba(0, 0, 0, 0.85);
  --logo-filter: invert(1);
  --surface-dark: #f5f5f7;
  --surface-dark-line: rgba(0, 0, 0, 0.12);
  --surface-dark-muted: rgba(0, 0, 0, 0.58);

  /* Section Background Cycle - Dark Mode (Muted to prevent glare) */
  --bg-sec-1: #000000;
  --text-sec-1: #f5f5f7;
  --muted-sec-1: rgba(255, 255, 255, 0.58);
  --line-sec-1: rgba(255, 255, 255, 0.12);
  --panel-sec-1: rgba(255, 255, 255, 0.06);

  --bg-sec-2: #1c1c1e;
  --text-sec-2: #f5f5f7;
  --muted-sec-2: rgba(255, 255, 255, 0.58);
  --line-sec-2: rgba(255, 255, 255, 0.12);
  --panel-sec-2: rgba(255, 255, 255, 0.06);

  --bg-sec-3: #2c2c2e;
  --text-sec-3: #f5f5f7;
  --muted-sec-3: rgba(255, 255, 255, 0.58);
  --line-sec-3: rgba(255, 255, 255, 0.12);
  --panel-sec-3: rgba(255, 255, 255, 0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.47059;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img {
  filter: var(--logo-filter);
  transition: filter .3s;
}
.nav-links {
  display: flex; gap: 36px; list-style: none; align-items: center;
}
.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.nav-toggle:hover {
  background: rgba(93, 111, 87, 0.08);
  border-color: rgba(93, 111, 87, 0.28);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ─── NAV DROPDOWN MENU ─── */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-arrow {
  display: inline-block;
  font-size: 8px;
  vertical-align: middle;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-top: 12px;
}
/* Hover bridge to prevent closing on gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 18px;
  display: block;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li {
  border-bottom: none !important;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--muted) !important; /* Force muted color on links inside dropdown */
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}
.dropdown-menu a:hover {
  color: var(--ink) !important;
  background: rgba(93, 111, 87, 0.08);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-left {
  padding: 100px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.hero-name em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.hero-desc {
  font-size: 21px;
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.5;
  letter-spacing: 0.011em;
  margin-bottom: 48px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .3s;
  width: fit-content;
}
.hero-cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.hero-cta .arrow { transition: transform .3s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../assets/images/javierolan.webp');
  background-size: cover;
  background-position: center;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 260px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.06em;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  z-index: 1;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  overflow: hidden;
}
.stat {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(2), .stat:nth-child(4) { border-right: none; }
.stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
.stat-number {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION COMMON ─── */
section { border-top: 1px solid var(--line); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}
.section-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-tag::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--accent);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ─── ABOUT ─── */
#about .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-body { font-size: 21px; font-weight: 400; color: var(--muted); line-height: 1.5; letter-spacing: 0.011em; }
.about-body p + p { margin-top: 20px; }
.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}
.bento-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 120px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(93, 111, 87, 0.04);
}
.bento-w2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 90px;
}
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(93, 111, 87, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
.bento-card:hover .bento-icon {
  background: var(--accent);
  color: var(--bg);
}
.bento-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
/* Alternate color highlight for some cards using pink */
.bento-card:nth-child(even):hover {
  border-color: var(--accent-earth);
  background: rgba(199, 134, 163, 0.04);
}
.bento-card:nth-child(even) .bento-icon {
  background: rgba(199, 134, 163, 0.1);
  color: var(--accent-earth);
}
.bento-card:nth-child(even):hover .bento-icon {
  background: var(--accent-earth);
  color: var(--bg);
}

@media (max-width: 500px) {
  .about-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-w2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    grid-column: span 1;
  }
}

/* ─── SERVICES ─── */
#servicios { background: var(--surface-dark); color: var(--bg); }
#servicios .section-tag { color: var(--accent); }
#servicios .section-tag::after { background: var(--accent); }
#servicios .section-title { color: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--surface-dark-line);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 64px;
}
.service-card {
  padding: 40px 36px;
  border-right: 1px solid var(--surface-dark-line);
  border-bottom: 1px solid var(--surface-dark-line);
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover { background: rgba(93, 111, 87, 0.12); }
.service-card:nth-child(3n) { border-right: none; }
.service-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--bg);
}
.service-desc {
  font-size: 15px;
  color: var(--surface-dark-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-from {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bg);
  letter-spacing: 0.1em;
}

/* ─── PACKAGES ─── */
#paquetes .section-inner { }
.pkg-intro {
  max-width: 580px;
  font-size: 19px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 64px;
  line-height: 1.7;
}

/* TABS */
.pkg-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 48px;
}
.pkg-tab {
  padding: 12px 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: all .25s;
}
.pkg-tab:last-child { border-right: none; }
.pkg-tab.active, .pkg-tab:hover {
  background: var(--surface-dark);
  color: var(--bg);
}

/* PACKAGE PANELS */
.pkg-panel { display: none; }
.pkg-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.pkg-card.featured {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: var(--bg);
}
.pkg-card.featured .pkg-price,
.pkg-card.featured .pkg-name {
  color: var(--bg);
}
.pkg-card.featured .pkg-currency {
  color: var(--surface-dark-muted);
}
.pkg-card.featured .pkg-divider {
  border-color: var(--surface-dark-line);
}
.pkg-card.featured .pkg-feature {
  color: var(--surface-dark-muted);
}
.pkg-card.featured .pkg-feature::before {
  color: var(--accent);
}
[data-theme="dark"] .pkg-card.featured .pkg-feature::before,
[data-theme="dark"] .pkg-card.featured .pkg-tag {
  color: #789960; /* Matcha oscuro para legibilidad sobre fondo claro */
}
.pkg-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}
.pkg-name {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pkg-price {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.pkg-price sup { font-size: 18px; vertical-align: super; }
.pkg-currency {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
  display: block;
}
.pkg-divider { border: none; border-top: 1px solid var(--line); margin-bottom: 28px; }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex-grow: 1; }
.pkg-feature {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.pkg-feature::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}
.pkg-btn {
  display: block;
  text-align: center;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: all .3s;
}
.pkg-card.featured .pkg-btn {
  border-color: var(--bg);
  color: var(--bg);
}
.pkg-btn:hover { background: var(--accent-earth); border-color: var(--accent-earth); color: var(--bg); }

.pkg-note {
  grid-column: span 3;
  font-size: 13px;
  color: var(--muted-current) !important;
  margin-top: 24px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pkg-note {
    grid-column: span 1;
    margin-top: 8px;
    text-align: left;
  }
}

/* ─── PROCESS ─── */
#proceso { background: var(--panel); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.process-step {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}
.step-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #789960 !important; /* Constant dark green for visibility on white card */
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.step-link:hover {
  color: #1d1d1f !important;
  transform: translateX(4px);
}

/* ─── CONTACT ─── */
#contacto .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro {
  font-size: 19px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 48px;
}
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: color .25s;
}
.contact-link:hover { color: var(--accent); }
.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link-static:hover { color: var(--ink); }
.contact-link-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.contact-link-body { flex: 1; }
.contact-link-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-link-value { font-size: 17px; }
.contact-link-arrow { color: var(--muted); font-size: 14px; transition: transform .25s; }
.contact-link:hover .contact-link-arrow { transform: translateX(4px); color: var(--accent); }
.contact-link-static .contact-link-arrow { transform: none; }
.contact-link-static:hover .contact-link-arrow { color: var(--muted); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.form-field {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.form-field:last-of-type { border-bottom: none; }
.form-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  resize: none;
  appearance: none;
}
.form-field select option { background: var(--bg); }
.form-submit {
  display: block;
  width: calc(100% - 48px);
  margin: 24px;
  padding: 20px;
  background: var(--surface-dark);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .3s;
}
.form-submit:hover { background: var(--accent-earth); }

/* ─── PORTFOLIO ─── */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s;
}
.portfolio-card:hover .portfolio-placeholder,
.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.03);
}
.portfolio-img-wrap {
  background: var(--line);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-dark-line);
  transition: transform .4s ease;
}
.portfolio-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.portfolio-cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .3s;
}
.theme-toggle:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ─── SCROLL TO TOP ─── */
#scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#scroll-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-earth);
}

/* ─── FOOTER ─── */
footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 40px 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  align-items: start;
}
.footer-heading {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-project-list {
  list-style: none;
}
.footer-project-list li {
  margin-bottom: 8px;
}
.footer-project-list a,
.footer-project-list span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}
.footer-project-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.footer-left {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lang-selector {
  display: inline-flex;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  align-items: center;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}
.lang-btn:hover {
  color: var(--ink);
  background: rgba(93, 111, 87, 0.08);
}
.lang-btn.active {
  color: var(--ink);
  font-weight: 700;
  background: rgba(93, 111, 87, 0.15);
}
.footer-right {
  color: var(--muted);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp .8s ease both; animation-delay: .1s; }
.hero-name    { animation: fadeUp .8s ease both; animation-delay: .25s; }
.hero-desc    { animation: fadeUp .8s ease both; animation-delay: .4s; }
.hero-cta     { animation: fadeUp .8s ease both; animation-delay: .55s; }
.hero-right   { animation: fadeUp .8s ease both; animation-delay: .3s; }

/* ─── NEWSLETTER ─── */
#newsletter {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
#newsletter .section-inner {
  padding: 80px 48px;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.newsletter-desc {
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 24px;
}
.newsletter-form-container {
  position: relative;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
}
.newsletter-form .form-field {
  border-bottom: 1px solid var(--line);
}
.newsletter-form .form-field:last-of-type {
  border-bottom: none;
}
.newsletter-form .hint {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.newsletter-form .error-msg {
  font-size: 13px;
  color: var(--accent-earth);
  margin-top: 8px;
  display: none;
}
.newsletter-form input.invalid {
  border-bottom: 1px solid var(--accent-earth) !important;
}
.newsletter-form .form-submit {
  width: calc(100% - 56px);
  margin: 28px;
}
.newsletter-success-msg {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  animation: fadeUp 0.6s ease both;
}
.success-icon {
  font-size: 48px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.success-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.success-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── DONATIVOS ─── */
#donativos-hero {
  padding: 140px 48px 40px;
  text-align: center;
}
#donativos-content {
  padding: 0 48px 80px;
}
.donativos-container {
  max-width: 680px;
  margin: 0 auto;
}
.donativos-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.donativos-p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: left;
}
.donativos-p:last-of-type {
  margin-bottom: 40px;
}
.paypal-button-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
  border: 1px solid var(--line);
}
.paypal-btn:hover {
  background: var(--accent);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(193, 213, 164, 0.4);
}
.paypal-icon svg {
  display: block;
}
.donativos-footer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    background: var(--nav-bg);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--ink);
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0 0 12px 0;
    min-width: auto;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    margin-top: 0;
  }
  .nav-dropdown::after {
    display: none;
  }
  .dropdown-menu li {
    border-bottom: none !important;
  }
  .dropdown-menu a {
    padding: 12px 20px 12px 36px !important;
    font-size: 14px !important;
    color: var(--muted) !important;
  }
  .dropdown-menu a:hover {
    background: transparent !important;
    color: var(--ink) !important;
  }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 100px 24px 60px; }
  #about .section-inner,
  #contacto .section-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .pkg-panel.active { grid-template-columns: 1fr; gap: 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section-inner { padding: 64px 24px; }
  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .footer-project-list a,
  .footer-project-list span { font-size: 14px; padding: 6px 0; }
  .footer-meta { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 16px; 
  }
  
  /* NEWSLETTER & DONATIVOS RESPONSIVE */
  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #newsletter .section-inner {
    padding: 64px 24px;
  }
  #donativos-hero {
    padding: 100px 24px 20px;
  }
  #donativos-content {
    padding: 0 24px 64px;
  }
  .donativos-card {
    padding: 32px 24px;
  }
}

/* ─── INDEX SECTION THEMES ─── */
#hero, #proceso, #contacto {
  --bg-current: var(--bg-sec-1);
  --text-current: var(--text-sec-1);
  --muted-current: var(--muted-sec-1);
  --line-current: var(--line-sec-1);
  --panel-current: var(--panel-sec-1);
}
#about, #servicios, #recursos {
  --bg-current: var(--bg-sec-2);
  --text-current: var(--text-sec-2);
  --muted-current: var(--muted-sec-2);
  --line-current: var(--line-sec-2);
  --panel-current: var(--panel-sec-2);
}
#portafolio, #paquetes, #newsletter {
  --bg-current: var(--bg-sec-3);
  --text-current: var(--text-sec-3);
  --muted-current: var(--muted-sec-3);
  --line-current: var(--line-sec-3);
  --panel-current: var(--panel-sec-3);
}

#hero, #about, #portafolio, #proceso, #servicios, #paquetes, #contacto, #recursos, #newsletter {
  background: var(--bg-current) !important;
  color: var(--text-current) !important;
  border-top-color: var(--line-current) !important;
}

#hero .section-title, #about .section-title, #portafolio .section-title, 
#proceso .section-title, #servicios .section-title, #paquetes .section-title, 
#contacto .section-title, #recursos .section-title, #newsletter .section-title {
  color: var(--text-current) !important;
}

#hero .section-title em, #about .section-title em, #portafolio .section-title em, 
#proceso .section-title em, #servicios .section-title em, #paquetes .section-title em, 
#contacto .section-title em, #recursos .section-title em, #newsletter .section-title em {
  color: var(--muted-current) !important;
}

#hero .section-tag, #about .section-tag, #portafolio .section-tag, 
#proceso .section-tag, #servicios .section-tag, #paquetes .section-tag, 
#contacto .section-tag, #recursos .section-tag, #newsletter .section-tag {
  color: var(--accent) !important;
}
#hero .section-tag::after, #about .section-tag::after, #portafolio .section-tag::after, 
#proceso .section-tag::after, #servicios .section-tag::after, #paquetes .section-tag::after, 
#contacto .section-tag::after, #recursos .section-tag::after, #newsletter .section-tag::after {
  background: var(--accent) !important;
}

#hero .hero-name { color: var(--text-current) !important; }
#hero .hero-name em { color: var(--muted-current) !important; }
#hero .hero-desc { color: var(--muted-current) !important; }
#hero .stat-number { color: var(--text-current) !important; }
#hero .stat-label { color: var(--muted-current) !important; }
#hero .hero-stats { background: var(--panel-current) !important; border-color: var(--line-current) !important; }
#hero .stat { border-color: var(--line-current) !important; }
#hero .hero-cta { color: var(--text-current) !important; border-color: var(--text-current) !important; }
#hero .hero-cta:hover { background: var(--text-current) !important; color: var(--bg-current) !important; }

#about .about-body { color: var(--text-current) !important; opacity: 0.8; }
#about .bento-card { background: var(--panel-current) !important; border-color: var(--line-current) !important; }
#about .bento-title { color: var(--text-current) !important; }
#about .bento-icon { background: rgba(120, 153, 96, 0.15) !important; color: var(--accent) !important; }

/* Smooth transitions for interactive hover effects */
#about .bento-card,
#about .bento-title,
#about .bento-icon {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover styles for profile graphics in light mode */
#about .bento-card:hover {
  background: var(--accent) !important; /* Matcha green background */
  border-color: var(--accent) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(120, 153, 96, 0.15);
}

#about .bento-card:hover .bento-title {
  color: #ffffff !important; /* White text */
}

#about .bento-card:hover .bento-icon {
  background: rgba(255, 255, 255, 0.2) !important; /* Translucent white icon wrapper */
  color: #ffffff !important; /* White SVG path */
}

/* Hover styles for profile graphics in dark mode */
[data-theme="dark"] #about .bento-card:hover {
  background: var(--accent) !important; /* Pastel matcha green background */
  border-color: var(--accent) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(193, 213, 164, 0.15);
}

[data-theme="dark"] #about .bento-card:hover .bento-title {
  color: #1c1c1e !important; /* Dark gray text */
}

[data-theme="dark"] #about .bento-card:hover .bento-icon {
  background: rgba(28, 28, 30, 0.12) !important; /* Semi-transparent dark icon wrapper */
  color: #1c1c1e !important; /* Dark gray SVG path */
}


#proceso .step-title { color: #1d1d1f !important; }
#proceso .step-desc { color: #1d1d1f !important; }
#proceso .step-num { color: #789960 !important; }
#proceso .process-step { background: #ffffff !important; border-color: rgba(0, 0, 0, 0.12) !important; }
#proceso .process-steps { border-color: rgba(0, 0, 0, 0.12) !important; }

#servicios .service-title { color: var(--text-current) !important; }
#servicios .service-desc { color: var(--muted-current) !important; }
#servicios .service-from { color: var(--text-current) !important; }
#servicios .service-card { border-color: var(--line-current) !important; }
#servicios .services-grid { border-color: var(--line-current) !important; }
#servicios .service-card:hover { background: rgba(255, 255, 255, 0.05) !important; }

[data-theme="dark"] #servicios .service-card { background: #ffffff !important; border-color: rgba(0, 0, 0, 0.12) !important; }
[data-theme="dark"] #servicios .services-grid { border-color: rgba(0, 0, 0, 0.12) !important; }
[data-theme="dark"] #servicios .service-title { color: #1d1d1f !important; }
[data-theme="dark"] #servicios .service-desc { color: #1d1d1f !important; }
[data-theme="dark"] #servicios .service-from { color: #1d1d1f !important; }
[data-theme="dark"] #servicios .service-num { color: #789960 !important; }
[data-theme="dark"] #servicios .service-card:hover { background: #f4f7f2 !important; }

#contacto .contact-intro { color: var(--muted-current) !important; }
#contacto .contact-link { color: var(--text-current) !important; border-color: var(--line-current) !important; }
#contacto .contact-link-label { color: var(--muted-current) !important; }
#contacto .contact-link-arrow { color: var(--muted-current) !important; }
#contacto .contact-form { border-color: var(--line-current) !important; }
#contacto .form-field { border-color: var(--line-current) !important; }
#contacto .form-label { color: var(--muted-current) !important; }
#contacto .form-field input, #contacto .form-field textarea, #contacto .form-field select { color: var(--text-current) !important; }
#contacto .form-submit { background: var(--text-current) !important; color: var(--bg-current) !important; }
#contacto .form-submit:hover { background: var(--accent-earth) !important; color: #ffffff !important; }

#newsletter .newsletter-desc { color: var(--muted-current) !important; }
#newsletter .newsletter-form { border-color: var(--line-current) !important; }
#newsletter .form-field { border-color: var(--line-current) !important; }
#newsletter .form-label { color: var(--muted-current) !important; }
#newsletter .form-field input { color: var(--text-current) !important; }
#newsletter .form-submit { background: var(--text-current) !important; color: var(--bg-current) !important; }
#newsletter .form-submit:hover { background: var(--accent-earth) !important; color: #ffffff !important; }

#paquetes .pkg-intro { color: var(--muted-current) !important; }
#paquetes .pkg-card { border-color: var(--line-current) !important; }
#paquetes .pkg-name { color: var(--text-current) !important; }
#paquetes .pkg-price { color: var(--text-current) !important; }
#paquetes .pkg-currency { color: var(--muted-current) !important; }
#paquetes .pkg-feature { color: var(--muted-current) !important; }
#paquetes .pkg-divider { border-top-color: var(--line-current) !important; }
#paquetes .pkg-btn { color: var(--text-current) !important; border-color: var(--text-current) !important; }
#paquetes .pkg-btn:hover { background: var(--accent-earth) !important; border-color: var(--accent-earth) !important; color: #ffffff !important; }
#paquetes .pkg-card.featured { background: var(--panel-current) !important; }

[data-theme="dark"] #paquetes .pkg-card { background: #000000 !important; border-color: rgba(255, 255, 255, 0.15) !important; }
[data-theme="dark"] #paquetes .pkg-card.featured { background: #ffffff !important; border-color: rgba(0, 0, 0, 0.12) !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-name, [data-theme="dark"] #paquetes .pkg-card.featured .pkg-price { color: #1d1d1f !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-currency { color: #86868b !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-feature { color: #1d1d1f !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-divider { border-top-color: rgba(0, 0, 0, 0.12) !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-btn { color: #1d1d1f !important; border-color: #1d1d1f !important; }
[data-theme="dark"] #paquetes .pkg-card.featured .pkg-btn:hover { background: var(--accent-earth) !important; border-color: var(--accent-earth) !important; color: #000000 !important; }
[data-theme="dark"] #paquetes .pkg-card:not(.featured) .pkg-btn { color: #ffffff !important; border-color: #ffffff !important; }
[data-theme="dark"] #paquetes .pkg-card:not(.featured) .pkg-btn:hover { background: var(--accent-earth) !important; border-color: var(--accent-earth) !important; color: #000000 !important; }

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  max-width: 320px;
  width: calc(100vw - 48px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cookie-banner.fade-out {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
}

.cookie-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.cookie-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  align-self: flex-end;
}

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

