@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --color-green: #98C774;
  --color-yellow: #F4ED32;
  --color-orange: #F47F4A;
  --color-grey: #737878;
  --color-dark: #1C1C1A;
  --color-paper: #FAFAF7;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-paper);
  font-family: var(--font-sans);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app-root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
}

/* Brand Logo */
.brand-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 30;
}

.brand-logo img {
  height: 1.875rem;
  width: auto;
  display: block;
}

/* Slide Container */
.slides-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 2;
}

/* Slide Transitions */
@keyframes pg-fwd {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pg-bwd {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide.pg-fwd {
  animation: pg-fwd 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide.pg-bwd {
  animation: pg-bwd 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Two Columns Layout */
.txt-col {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

.txt-col::-webkit-scrollbar {
  width: 4px;
}
.txt-col::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.txt-content {
  width: 100%;
  padding: 5.5rem clamp(1.5rem, 4vw, 3.5rem) 4rem clamp(2rem, 6vw, 5rem);
}

.img-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 100%;
}

.img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-tint,
.img-fade,
.img-mobile-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.img-mobile-cover {
  display: none;
}

/* Typography & Decorative Lines */
.rule-accent {
  width: 1.75rem;
  height: 2px;
  margin-bottom: 1.5rem;
}

.slide-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.slide-title em {
  font-style: normal;
}

.slide-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.4vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--color-grey);
  margin-bottom: 1rem;
}

.slide-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  line-height: 1.7;
  color: var(--color-grey);
  margin-bottom: 2rem;
  max-width: 26rem;
}

/* Watermark Leaf Logo */
.leaf-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.leaf-watermark img {
  display: block;
  height: auto;
}

/* CTA Button */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--color-dark);
  border: 1.5px solid var(--color-dark);
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-green);
  border-color: var(--color-green);
}

.btn-primary svg {
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* Slide 1 - Interactive Buttons */
.options-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.625rem;
}

.btn-option {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey);
  background: transparent;
  border: 1.5px solid rgba(115, 120, 120, 0.22);
  padding: 0.75rem 1.125rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  border-radius: 2px;
}

.btn-option:hover {
  border-color: rgba(115, 120, 120, 0.5);
}

.btn-option.selected {
  font-weight: 600;
  color: white;
}

.dynamic-info-box {
  min-height: 2.5rem;
  border-left: 2.5px solid transparent;
  padding-left: 0;
  transition: all 0.3s;
}

.dynamic-info-box.active {
  padding-left: 1rem;
}

.dynamic-info-box p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-grey);
  margin: 0;
}

/* Slide 2 - Metodología Steps */
.steps-row {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
}

.btn-step {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  flex: 1;
  transition: all 0.25s;
  text-align: center;
}

.btn-step.active {
  color: var(--color-dark);
  background: white;
}

.step-info-box {
  border-left: 2.5px solid rgba(255, 255, 255, 0.45);
  padding-left: 1.125rem;
  min-height: 3.5rem;
}

.step-info-box p {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.step-dots {
  display: flex;
  gap: 0.375rem;
  margin-top: 1.75rem;
}

.step-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.step-dot.active {
  width: 1.5rem;
  background: white;
}

/* Slide 3 - Badges */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.badge-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-grey);
  background: white;
  border: 1.5px solid rgba(115, 120, 120, 0.2);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-btn:hover {
  border-color: rgba(115, 120, 120, 0.45);
}

.badge-btn.selected {
  font-weight: 600;
  color: white;
  border-radius: 1rem 0.25rem 1rem 0.25rem;
}

.badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  transition: background 0.25s;
}

.badge-btn.selected .badge-dot {
  background: rgba(255, 255, 255, 0.7) !important;
}

/* Slide 4 - Dark Organization Slide */
.slide-dark {
  background: var(--color-dark);
}

.top-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-green), var(--color-yellow), var(--color-orange));
  z-index: 10;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  font-size: 1rem;
  width: 1.375rem;
  text-align: center;
  flex-shrink: 0;
}

.feature-text {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.3vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.72);
  fontWeight: 500;
}

.stats-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.375rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-box .stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  font-variation-settings: 'opsz' 72;
  color: var(--color-green);
  line-height: 1;
}

.stat-box .stat-label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.2rem;
  letter-spacing: 0.06em;
}

/* Slide 5 - Form & Contact */
.corner-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 7rem;
  background: var(--color-yellow);
  opacity: 0.45;
  clip-path: ellipse(70% 70% at 100% 0%);
  pointer-events: none;
}

.form-toggle-btn {
  margin-bottom: 1.25rem;
}

.form-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.form-drawer.open {
  max-height: 22rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.form-input {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #E0E0DB;
  padding: 0.625rem 0;
  outline: none;
  color: var(--color-dark);
  transition: border-color 0.2s;
}

.form-input:focus {
  border-bottom-color: var(--color-green);
}

.form-input::placeholder {
  color: #BEBEBE;
}

.form-textarea {
  resize: none;
}

.form-submit-btn {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: var(--color-green);
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: opacity 0.2s;
}

.form-submit-btn:hover {
  opacity: 0.9;
}

.form-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  color: #CCCCC8;
  text-align: center;
  margin: 0;
}

.form-success-alert {
  background: var(--color-green);
  color: white;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
}

.form-success-alert p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.contact-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-grey);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-dark);
}

.copyright-text {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  color: #D5D5D0;
  margin-top: 1.25rem;
  letter-spacing: 0.06em;
}

/* Global Nav Arrows */
.nav-arrow {
  position: absolute;
  bottom: 1.25rem;
  z-index: 20;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
}

.nav-arrow.left {
  left: 1.25rem;
}

.nav-arrow.right {
  right: 1.25rem;
}

.nav-arrow:hover {
  color: var(--color-green) !important;
  border-color: var(--color-green) !important;
  background: rgba(152, 199, 116, 0.12) !important;
}

/* Bottom Pagination Dots */
.pagination-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 20;
  align-items: center;
}

.page-dot {
  height: 0.4375rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

/* Focus styles */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Mobile & Tablet Responsive Media Query */
@media (max-width: 768px) {
  .img-col {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    flex: none !important;
    z-index: 0 !important;
  }

  .img-mobile-cover {
    display: block !important;
  }

  .txt-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .txt-content {
    padding: 5rem 1.5rem 4.5rem 1.5rem;
  }

  .slide-desc {
    max-width: 100%;
  }

  .leaf-watermark {
    opacity: 0.04 !important;
  }
}
