@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #1d2a24;
  --muted: #5d6f66;
  --primary: #2f7a5f;
  --primary-dark: #245f49;
  --border: #d7e5de;
  --shadow-sm: 0 4px 12px rgba(25, 63, 50, 0.06);
  --shadow: 0 12px 30px rgba(25, 63, 50, 0.1);
  --shadow-lg: 0 24px 50px rgba(25, 63, 50, 0.15);
  --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.4rem;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-family: var(--font-sans);
}

.skip-link:focus {
  left: 0.5rem;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 229, 222, 0.6);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(25, 63, 50, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-initial {
  position: relative;
  display: inline-block;
  font-size: 1.12rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--primary-dark);
  padding-right: 0.02rem;
}

.brand-initial::after {
  content: "";
  position: absolute;
  right: -0.12rem;
  top: -0.35rem;
  width: 0.5rem;
  height: 0.34rem;
  background: linear-gradient(145deg, #63b190, #2f7a5f);
  border-radius: 100% 0 100% 0;
  transform: rotate(-18deg);
  box-shadow: 0 0 0 1px rgba(47, 122, 95, 0.1);
}

.brand-rest {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.progress-bar {
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2f7a5f, #4da683);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: #f0f7f3;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu > li > a,
.menu > li:not(.menu-item) > a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: block;
}

.menu > li > a:hover,
.menu > li:not(.menu-item) > a:hover {
  color: var(--primary);
  background: rgba(47, 122, 95, 0.07);
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.menu-item > a:hover {
  color: var(--primary);
  background: rgba(47, 122, 95, 0.07);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(25, 63, 50, 0.14);
  padding: 0.5rem;
  margin-top: 0.4rem;
  min-width: 210px;
  z-index: 100;
  list-style: none;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background var(--transition), color var(--transition);
}

.submenu a:hover {
  background: #f0f5f2;
  color: var(--primary-dark);
}

.menu-item:hover > .submenu,
.menu-item.open > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.menu-item.open > a::after {
  transform: rotate(180deg);
}

.menu-item > a::after {
  content: '▼';
  font-size: 0.55rem;
  opacity: 0.5;
  transition: transform var(--transition);
}

/* ===========================
   BUTTONS
   =========================== */

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 0.78rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(47, 122, 95, 0.25);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 122, 95, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(47, 122, 95, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(47, 122, 95, 0.07);
  box-shadow: none;
}

.btn-secondary {
  background: #d9ece3;
  color: var(--primary-dark);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #c9e2d6;
  box-shadow: none;
}

.btn-tertiary {
  background: #e8f3ee;
  color: var(--primary-dark);
  border: 1px solid #c8dfd4;
  box-shadow: none;
}

.btn-tertiary:hover {
  background: #d9ece3;
  box-shadow: none;
}

.btn-soft {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid #d5e5de;
  box-shadow: none;
}

.btn-soft:hover {
  background: #f1f7f4;
  box-shadow: none;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
}

.page-hero h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2f7a5f, #63b190, #2f7a5f);
  border-radius: 2px;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

.subtitle {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid rgba(47, 122, 95, 0.3);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(47, 122, 95, 0.06);
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  background: linear-gradient(160deg, #e0f0e8 0%, #f7faf8 55%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(99, 177, 144, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(47, 122, 95, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 5rem 0 3rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-points {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 0.9rem;
}

.hero-points li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-points li strong {
  color: var(--text);
}

.hero-card {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(47, 122, 95, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f7a5f, #63b190, #2f7a5f);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  line-height: 1.4;
  color: var(--text);
}

.hero-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ===========================
   SECTIONS
   =========================== */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef6f1 0%, #e8f2ec 100%);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-family: var(--font-serif);
  line-height: 1.2;
  position: relative;
}

/* ===========================
   CARDS
   =========================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--primary);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
}

.card-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #e8f3ee, #d4eadf);
  border: 1px solid rgba(47, 122, 95, 0.2);
  margin: 0 0 1.1rem;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(47, 122, 95, 0.12);
}

.card-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.card-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }

/* ===========================
   CHAT BUBBLES
   =========================== */

.chat-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.chat-bubble {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.6rem 1.75rem;
  background: linear-gradient(180deg, rgba(95, 164, 114, 0.14), rgba(255,255,255,0.98));
  border: 1px solid rgba(47, 122, 95, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 30px rgba(47, 122, 95, 0.06);
  backdrop-filter: blur(4px);
  color: var(--text);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: 20px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-left: 1px solid rgba(47, 122, 95, 0.16);
  border-bottom: 1px solid rgba(47, 122, 95, 0.16);
  transform: rotate(45deg);
}

.chat-left  { align-self: start; }
.chat-left::after { left: 1rem; }

.chat-right {
  align-self: end;
  background: linear-gradient(180deg, rgba(109, 170, 144, 0.16), rgba(255,255,255,0.98));
}
.chat-right::after { right: 1rem; }

.chat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #2f7a5f;
  background: rgba(47, 122, 95, 0.1);
}

.chat-bubble h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
}

.chat-bubble p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .chat-bubble, .chat-left, .chat-right {
    align-self: stretch;
    max-width: 100%;
  }
  .chat-bubble::after { left: 1.25rem; right: auto; }
}

/* ===========================
   INTERACTIVE (TESTS)
   =========================== */

.test-container { position: relative; min-height: 420px; }

.test-panel {
  position: relative;
  min-height: 360px;
  padding: 2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-panel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.question-prompt {
  margin-bottom: 1.3rem;
  line-height: 1.5;
}

.options { display: grid; gap: 0.85rem; }

.option {
  display: block;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: #f8fbf8;
  border: 1.5px solid #dfeae1;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: left;
}

.option:hover, .option:focus {
  background: #eef6f1;
  border-color: rgba(47, 122, 95, 0.35);
  transform: translateY(-2px);
}

/* ===========================
   RESULT COMPONENTS
   =========================== */

.hero-result {
  background: linear-gradient(180deg, rgba(47, 122, 95, 0.08), rgba(247, 250, 248, 0.95));
  border: 1px solid rgba(47, 122, 95, 0.14);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
}

.hero-result-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f3ee;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.hero-result .result-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.hero-result-icon {
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8f3ee, #d7edde);
  color: var(--primary-dark);
  margin: 0;
}

.hero-result h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  font-family: var(--font-serif);
}

.result-summary {
  padding: 1.25rem 1.35rem;
  background: #f5fbf6;
  border: 1px solid rgba(47, 122, 95, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  line-height: 1.75;
}

.result-status-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(47, 122, 95, 0.12);
  border-radius: var(--radius);
}

.result-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-sans);
}

.result-score-unit {
  font-size: 1rem;
  color: var(--primary-dark);
}

.result-badge {
  background: rgba(47, 122, 95, 0.12);
  color: #225940;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.result-progress {
  background: #eaf4ec;
  border-radius: 999px;
  height: 0.8rem;
  overflow: hidden;
}

.result-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2f7a5f, #63b190);
  transition: width 0.5s ease;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.pulse-btn {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 122, 95, 0.18); }
  70%  { box-shadow: 0 0 0 18px rgba(47, 122, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 95, 0); }
}

/* ===========================
   GRIDS & LAYOUT
   =========================== */

.resource-grid,
.timeline-grid,
.symptom-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.filters-grid .card { min-height: auto; }

@media (max-width: 900px) {
  .filters-grid { grid-template-columns: 1fr; }
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
}

.personal-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.personal-brand-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}

.personal-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-brand-content h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  margin-top: 0;
  font-family: var(--font-serif);
}

.personal-brand-content h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.personal-brand-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .personal-brand-grid { grid-template-columns: 1fr; gap: 2rem; }
  .personal-brand-image { aspect-ratio: 4/3; }
}

.content-sidebar { display: grid; gap: 1rem; }

.content-sidebar .card {
  background: #ffffff;
  border: 1px solid rgba(47, 122, 95, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(25, 63, 50, 0.08);
  padding: 1.6rem;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.content-sidebar .card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 122, 95, 0.22);
  box-shadow: 0 20px 46px rgba(25, 63, 50, 0.12);
}

.content-sidebar .card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.content-sidebar .card ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-sidebar .card li {
  background: #f7faf6;
  border: 1px solid rgba(47, 122, 95, 0.08);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.content-sidebar .card li:hover {
  background: rgba(47, 122, 95, 0.08);
  border-color: rgba(47, 122, 95, 0.18);
  transform: translateY(-1px);
}

.content-sidebar .card a {
  color: var(--primary-dark);
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.content-sidebar .card a:hover { color: #225940; }

/* ===========================
   ANDARIVELES (6 PILARES)
   =========================== */

.andariveles-timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.andarivel-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(47, 122, 95, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 42px rgba(25, 63, 50, 0.08);
  padding: 1.75rem 1.6rem 1.4rem;
  overflow: hidden;
  z-index: 2;
  margin-bottom: 2rem;
}

.andarivel-step {
  width: 3.75rem;
  min-width: 3.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(47, 122, 95, 0.22);
  margin-bottom: 1rem;
}

.andarivel-content h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.andarivel-content p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.andarivel-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.andarivel-points li {
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 0.8rem;
}

.andarivel-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.18rem;
  color: #2f7a5f;
  font-size: 1.1rem;
  line-height: 1;
}

.andarivel-connector {
  position: relative;
  display: block;
  height: 0.6rem;
  margin: -0.6rem 0 1.2rem;
  overflow: hidden;
  z-index: 0;
}

.andarivel-connector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2f7a5f 0%, #63b190 50%, #2f7a5f 100%);
  border-radius: 999px;
}

/* ===========================
   RESOURCE CARDS
   =========================== */

.resource-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.resource-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.resource-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.resource-card-body { padding: 1.4rem; }

.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: var(--primary-dark);
  font-size: 0.93rem;
  font-weight: 700;
}

.resource-card-meta .icon-circle {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 122, 95, 0.12);
}

.resource-card h3 { margin: 0 0 0.8rem; }

.resource-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.resource-card .btn { margin-top: 1.3rem; }

/* ===========================
   TIMELINE (PROCESO)
   =========================== */

.timeline-visual {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.timeline-dot {
  width: 72px;
  height: 72px;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(47, 122, 95, 0.2);
  position: relative;
  font-weight: bold;
}

.timeline-dot::before {
  content: attr(data-number);
  position: absolute;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-sans);
}

.timeline-dot i {
  width: 2.5rem;
  height: 2.5rem;
  display: none;
}

.timeline-content h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.2rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.timeline-connector {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0.25rem 0;
  opacity: 0.35;
}

@media (max-width: 720px) {
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .timeline-dot {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-step {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
}

.timeline-step h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

/* ===========================
   SYMPTOM MAP
   =========================== */

.symptom-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.symptom-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.symptom-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  text-align: left;
}

.symptom-item:hover,
.symptom-item.active {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(47, 122, 95, 0.12);
}

.symptom-item h4 { margin: 0 0 0.4rem; font-size: 1rem; }

.symptom-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.symptom-detail {
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(47,122,95,0.05), #fff);
  border: 1.5px solid rgba(47,122,95,0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 100px;
  color: var(--text);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ===========================
   STEPS (COMO TRABAJAMOS)
   =========================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }

.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===========================
   TESTIMONIALS
   =========================== */

.testimonial-slider {
  position: relative;
  background: linear-gradient(160deg, #e8f3ee 0%, #fff 70%);
  border: 1px solid rgba(47, 122, 95, 0.18);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.testimonial-slider::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  font-size: 8rem;
  font-family: var(--font-serif);
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonial { display: none; }

.testimonial.active { display: block; }

.testimonial p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  font-family: var(--font-serif);
}

.testimonial span {
  display: block;
  margin-top: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  font-style: normal;
  font-family: var(--font-sans);
}

.testimonial span::before {
  content: '— ';
}

.testimonial-progress {
  margin-top: 1.5rem;
  width: 100%;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(47, 122, 95, 0.12);
  overflow: hidden;
}

.testimonial-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7a5f, #63b190);
}

/* ===========================
   FAQ
   =========================== */

.faq-list { display: grid; gap: 0.75rem; }

.faq {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq:hover {
  border-color: rgba(47, 122, 95, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq[open] {
  border-color: rgba(47, 122, 95, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq[open] summary::after {
  content: '−';
}

.faq[open] summary {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}

.faq p {
  color: var(--muted);
  margin: 0;
  padding: 1rem 1.3rem 1.2rem;
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta {
  text-align: center;
  background: linear-gradient(135deg, #1a2e24 0%, #2f7a5f 60%, #3a8a6e 100%);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: 5rem auto;
  padding: 4rem 2rem;
  max-width: 720px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(99, 177, 144, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.cta-links {
  color: rgba(255, 255, 255, 0.6);
}

.cta-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta .btn {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta .btn:hover {
  background: #eef8f3;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* ===========================
   DEPURACIÓN RÁPIDA PREVIEW
   =========================== */

.depuracion-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.depuracion-preview-content h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: var(--text);
}

.depuracion-preview-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.depuracion-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.depuracion-highlights li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.depuracion-highlights li:hover {
  border-color: rgba(47,122,95,0.3);
  box-shadow: var(--shadow-sm);
}

.depuracion-highlights li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .depuracion-preview { grid-template-columns: 1fr; }
}

/* ===========================
   ANDARIVELES PREVIEW (HOME)
   =========================== */

.andariveles-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1rem;
  margin-top: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.andarivel-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 1.2rem 0.75rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.andarivel-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(47,122,95,0.25);
}

.andarivel-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(47, 122, 95, 0.28);
  margin-bottom: 0.9rem;
  border: 3px solid #fff;
}

.andarivel-node h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.andarivel-node p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .andariveles-preview { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .andariveles-preview { grid-template-columns: 1fr; }
}

/* ===========================
   ANDARIVELES TIMELINE (FULL PAGE)
   =========================== */

.andariveles-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1rem;
  max-width: 1200px;
  margin: 3rem auto;
  position: relative;
}

.andariveles-timeline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 33.33%;
  width: 4px;
  height: calc(50% + 2rem);
  background: linear-gradient(180deg, #2f7a5f 0%, #63b190 50%, #2f7a5f 100%);
  z-index: 1;
  transform: translateY(-50%);
}

.andariveles-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 33.33%;
  width: 4px;
  height: calc(50% + 2rem);
  background: linear-gradient(180deg, #2f7a5f 0%, #63b190 50%, #2f7a5f 100%);
  z-index: 1;
  transform: translateY(-50%);
}

.andarivel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.andarivel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.andarivel-1 { order: 1; }
.andarivel-2 { order: 2; }
.andarivel-3 { order: 3; }
.andarivel-6 { order: 4; }
.andarivel-5 { order: 5; }
.andarivel-4 { order: 6; }

.andarivel-step {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(47, 122, 95, 0.3);
  margin-bottom: 1rem;
}

.andarivel-content h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.andarivel-content p {
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.andarivel-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.andarivel-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.andarivel-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 900px) {
  .andariveles-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .andariveles-timeline::before,
  .andariveles-timeline::after { display: none; }
  .andarivel-card { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .andarivel-card { padding: 1.25rem 1rem; }
}

/* ===========================
   SCROLL ARROW
   =========================== */

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
  animation: bounceArrow 2s ease-in-out infinite;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.scroll-arrow svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===========================
   LOCATION PAGE
   =========================== */

.location-section { padding: 2rem 0; }

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.location-info h2 { color: var(--primary-dark); margin-bottom: 1rem; }
.location-info h3 { color: var(--primary-dark); margin: 1.5rem 0 0.5rem; }
.location-info p  { margin-bottom: 0.5rem; line-height: 1.65; }

.location-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.location-map iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .location-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .location-actions { justify-content: center; }
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: #111c16;
  border-top: none;
  padding: 3.5rem 0 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2.5rem 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand .brand-wordmark { color: rgba(255,255,255,0.92); }
.footer-brand .brand-initial { color: #7cc7a4; }

.footer-brand p {
  margin: 0.9rem 0 0;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-social {
  margin-top: 1rem;
  display: inline-flex;
}

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

.footer-info p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.footer-info strong {
  color: rgba(255,255,255,0.9);
}

.footer-map iframe {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: inline;
  transition: color var(--transition);
}

.footer-col a:hover,
.footer-info a:hover {
  color: #7cc7a4;
}

.footer-bottom a { color: rgba(99, 177, 144, 0.9); }
.footer-bottom a:hover { color: #63b190; }

.footer-bottom {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
}

/* ===========================
   PAGE HERO (INNER PAGES)
   =========================== */

.page-hero { padding: 3.5rem 0 2rem; }

.breadcrumb { margin: 0 0 0.7rem; color: var(--muted); }

.breadcrumb a { color: var(--primary-dark); text-decoration: none; }

/* ===========================
   SCROLL REVEAL
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 3.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: #fff;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 720px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem;
  }

  .brand { font-size: 0.86rem; }
  .brand-initial { font-size: 1rem; }
  .brand-rest { font-size: 0.82rem; }

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

  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .btn { width: 100%; text-align: center; }

  .menu-toggle { display: inline-block; margin-left: auto; }

  .menu {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    gap: 0.4rem;
    box-shadow: 0 8px 20px rgba(28, 67, 52, 0.12);
  }

  .menu.open { display: flex; }

  .menu li { width: 100%; }

  .menu > li > a,
  .menu > li:not(.menu-item) > a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #e7efeb;
    background: #fdfefe;
  }

  .menu-item > a {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #e7efeb;
    background: #fdfefe;
  }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #f8fbf8;
    padding: 0.4rem 0;
    margin-top: 0;
    border-radius: 0;
    min-width: auto;
    opacity: 1;
    transform: none;
  }

  .menu-item.open > .submenu { display: block; }

  .submenu a { padding: 0.5rem 2rem; font-size: 0.9rem; }

  .menu-item > a::after { content: '\25BC'; font-size: 0.6rem; }
  .menu-item.open > a::after { transform: rotate(180deg); }

  .hero-content { padding-top: 2.5rem; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-info { text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-col ul { align-items: center; }
  .footer-social { justify-content: center; width: 100%; }

  .hero-result .result-head { grid-template-columns: 1fr; }
  .result-status-card { flex-direction: column; align-items: stretch; }
  .result-actions { flex-direction: column; }

  .cta { padding: 2.5rem 1.5rem; margin: 3rem auto; }

  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; }
  .whatsapp-float svg { width: 1.6rem; height: 1.6rem; }
}

/* ===========================
   STATS BAR
   =========================== */

.stats-bar {
  background: linear-gradient(135deg, #1a2e24 0%, #2f7a5f 100%);
  padding: 2.75rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(99,177,144,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  font-family: var(--font-sans);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
  font-weight: 500;
  line-height: 1.35;
  max-width: 14ch;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
}

/* ===========================
   SECTION EYEBROW LABEL
   =========================== */

.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  padding: 0.2rem 0.75rem;
  background: rgba(47,122,95,0.09);
  border-radius: 999px;
  border: 1px solid rgba(47,122,95,0.2);
}

.section-head h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #63b190);
  border-radius: 2px;
}

/* ===========================
   COMO TRABAJAMOS (CIRCLE-STEP)
   =========================== */

.como-grid {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.como-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.como-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.como-numero {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(47,122,95,0.3);
  border: 3px solid #fff;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.como-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}

.como-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.como-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.4;
  font-size: 1.6rem;
  font-weight: 200;
}

@media (max-width: 860px) {
  .como-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .como-arrow {
    transform: rotate(90deg);
    height: 0.5rem;
    margin: -0.5rem auto;
  }
}

/* ===========================
   PROCESO DEPURATIVO (IGUAL QUE ANDARIVELES)
   =========================== */

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  position: relative;
}

.proceso-grid::before {
  content: '';
  position: absolute;
  top: 3.25rem;
  left: calc(16.66% + 0.875rem);
  right: calc(16.66% + 0.875rem);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, #63b190 50%, var(--primary) 80%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.proceso-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.proceso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f7a5f, #63b190);
}

.proceso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47,122,95,0.3);
}

.proceso-numero {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(47,122,95,0.32);
  border: 4px solid #fff;
  font-family: var(--font-sans);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.proceso-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.3;
  font-family: var(--font-serif);
}

.proceso-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  flex-grow: 1;
}

@media (max-width: 720px) {
  .proceso-grid {
    grid-template-columns: 1fr;
  }
  .proceso-grid::before { display: none; }
}

/* ===========================
   TIMELINE EMOCIONAL (HORIZONTAL)
   =========================== */

.timeline-emocional {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.timeline-emocional::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, #2f7a5f, #63b190, #2f7a5f);
  opacity: 0.25;
  pointer-events: none;
}

.timeline-emocional-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}

.timeline-emocional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.timeline-emocional-numero {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(47,122,95,0.28);
  border: 3px solid #fff;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.timeline-emocional-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.timeline-emocional-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .timeline-emocional { grid-template-columns: repeat(2, 1fr); }
  .timeline-emocional::before { display: none; }
}

@media (max-width: 480px) {
  .timeline-emocional { grid-template-columns: 1fr; }
}

/* ===========================
   HERO FULL-SCREEN (Premium Natural)
   =========================== */

.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(10, 22, 15, 0.82) 0%,
    rgba(22, 50, 35, 0.70) 45%,
    rgba(15, 38, 26, 0.78) 100%
  );
}

.hero-full-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 1rem 5rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag-light {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
}

.hero-full h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  letter-spacing: -0.01em;
}

.hero-full .hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-full-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-white {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  border: 0;
}

.btn-white:hover {
  background: #f0f7f3;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.45);
  box-shadow: none;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  box-shadow: none;
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  animation: bounceArrow 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-indicator svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================
   SERVICIOS DARK
   =========================== */

.servicios-dark {
  background: linear-gradient(160deg, #0f1c14 0%, #1a2e24 100%);
  position: relative;
  overflow: hidden;
}

.servicios-dark::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(47,122,95,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.servicios-dark .section-eyebrow {
  color: rgba(99,177,144,0.95);
  background: rgba(99,177,144,0.1);
  border-color: rgba(99,177,144,0.25);
}

.servicios-dark .section-head h2 { color: #ffffff; }
.servicios-dark .section-head h2::after { background: linear-gradient(90deg, #63b190, #4da683); }
.servicios-dark .section-head p { color: rgba(255,255,255,0.58); }

.cards-dark {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,177,144,0.4), transparent);
}

.card-dark:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
  border-color: rgba(99,177,144,0.28);
}

.card-dark-number {
  font-size: 3.75rem;
  font-weight: 800;
  color: rgba(99,177,144,0.15);
  line-height: 1;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.card-dark .card-icon {
  background: rgba(99,177,144,0.1);
  border-color: rgba(99,177,144,0.18);
  color: #63b190;
}

.card-dark h3 { color: #ffffff; font-size: 1.12rem; line-height: 1.3; margin: 0.25rem 0 0; }
.card-dark p { color: rgba(255,255,255,0.58); font-size: 0.95rem; line-height: 1.72; flex-grow: 1; margin: 0; }
.card-dark .card-actions { margin-top: 1.5rem; }

.btn-ghost-green {
  background: rgba(99,177,144,0.12);
  color: #7dc8a4;
  border: 1px solid rgba(99,177,144,0.28);
  box-shadow: none;
}

.btn-ghost-green:hover {
  background: rgba(99,177,144,0.22);
  color: #9edcbc;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ===========================
   TESTIMONIOS GRID
   =========================== */

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.testimonio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f7a5f, #63b190);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonio-quote {
  font-size: 5rem;
  font-family: var(--font-serif);
  color: var(--primary);
  opacity: 0.15;
  line-height: 0.8;
  margin-bottom: 0.75rem;
  display: block;
}

.testimonio-card > p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
  flex-grow: 1;
  margin: 0 0 1.5rem;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.testimonio-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.testimonio-author strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); font-family: var(--font-sans); }
.testimonio-author span { display: block; font-size: 0.8rem; color: var(--muted); font-family: var(--font-sans); }

@media (max-width: 900px) {
  .testimonios-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .hero-full h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-scroll-indicator { display: none; }
  .cards-dark { grid-template-columns: 1fr; }
}

/* ===========================
   POPUP / MODAL DE CONSULTA
   =========================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 470px;
  padding: 2.5rem 2.25rem 2rem;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-modal {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #f7faf8;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: var(--font-sans);
}

.popup-close:hover {
  background: #e8f0ec;
  color: var(--text);
  border-color: rgba(47,122,95,0.3);
}

.popup-service-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(47,122,95,0.09);
  border: 1px solid rgba(47,122,95,0.2);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.popup-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.2;
}

.popup-subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.popup-field {
  margin-bottom: 1rem;
}

.popup-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}

.popup-field input {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.97rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fafcfb;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  box-sizing: border-box;
}

.popup-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,122,95,0.12);
  background: #fff;
}

.popup-field input::placeholder { color: #a8c4b8; }
.popup-field input.error { border-color: #e53e3e; }

.popup-submit {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.92rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.popup-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.popup-submit.loading .popup-spinner { display: block; }
.popup-submit.loading .popup-submit-text { opacity: 0.7; }

.popup-success {
  text-align: center;
  padding: 0.5rem 0 0.5rem;
  display: none;
}

.popup-success-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7a5f, #63b190);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 8px 24px rgba(47,122,95,0.3);
}

.popup-success h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 1.35rem;
}

.popup-success p {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.popup-error-msg {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 0.65rem;
  color: #c53030;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}

.popup-error-msg a { color: #c53030; font-weight: 700; text-decoration: underline; }

@media (max-width: 500px) {
  .popup-modal { padding: 2rem 1.5rem 1.75rem; }
  .popup-title { font-size: 1.35rem; }
}
