/* THEME CREATED FOR: Movimiento y Bienestar (Joint & Muscle Health Education Web Space) */
:root {
  --motion-bg-cream: #faf9f6;
  --motion-surface-pure: #ffffff;
  --motion-accent-teal: #3b6b55;
  --motion-accent-hover: #264b3a;
  --motion-accent-coral: #d46a43;
  --motion-ink-dark: #122118;
  --motion-muted-gray: #e6ebe7;
  --motion-border-line: rgba(18, 33, 24, 0.15);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --motion-radius: 14px;
  --motion-shadow: 0 10px 30px rgba(18, 33, 24, 0.05);
  --motion-padding-scale: 10dvh;
}

/* Base Resets & Global Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--motion-ink-dark);
  background-color: var(--motion-bg-cream);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--motion-ink-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Scroll-Driven Animations (CSS only) */
@keyframes motion-scroll-grow {
  to { width: 100%; }
}
.motion-progress-indicator {
  height: 4px;
  background: var(--motion-accent-coral);
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  animation: motion-scroll-grow linear;
  animation-timeline: scroll();
}

@keyframes motion-view-fade {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.motion-scroll-reveal {
  animation: motion-view-fade cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 5% entry 35%;
}

/* Layout Outer Frame */
.motion-frame-outer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4%;
}

/* HEADER STYLE - PRESET H: Editorial & Bold */
.motion-header-mount {
  background: var(--motion-surface-pure);
  border-bottom: 1px solid var(--motion-border-line);
  position: sticky;
  top: 0;
  z-index: 999;
}

.motion-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.motion-logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.motion-logo-img {
  width: 40px;
  height: 40px;
  fill: var(--motion-accent-teal);
}

.motion-logo-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
}

/* Hamburger Menu CSS Only */
.motion-hamburger-input {
  display: none;
}

.motion-hamburger-trigger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.motion-hamburger-line {
  width: 30px;
  height: 3px;
  background-color: var(--motion-ink-dark);
  transition: all 0.3s ease;
}

.motion-main-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.motion-nav-item {
  position: relative;
  padding: 0.5rem 0;
}

.motion-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--motion-accent-teal);
  transition: width 0.3s ease;
}

.motion-nav-item:hover::after {
  width: 100%;
}

/* Action Trigger (Buttons) */
.motion-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: var(--motion-radius);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.motion-solid-accent {
  background-color: var(--motion-accent-teal);
  color: var(--motion-surface-pure);
}

.motion-solid-accent:hover {
  background-color: var(--motion-accent-hover);
}

.motion-ghost-accent {
  background-color: transparent;
  border-color: var(--motion-accent-teal);
  color: var(--motion-accent-teal);
}

.motion-ghost-accent:hover {
  background-color: var(--motion-accent-teal);
  color: var(--motion-surface-pure);
}

.motion-ghost-white {
  background-color: transparent;
  border-color: var(--motion-surface-pure);
  color: var(--motion-surface-pure);
}

.motion-ghost-white:hover {
  background-color: var(--motion-surface-pure);
  color: var(--motion-accent-teal);
}

/* PRESET H HERO - Word-by-word Layout */
.motion-splash-billboard {
  position: relative;
  padding: var(--motion-padding-scale) 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.motion-splash-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 1;
}

.motion-splash-text-nest {
  position: relative;
  z-index: 2;
  width: 100%;
}

.motion-splash-word-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.motion-splash-word-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.9;
}

.motion-line-left {
  text-align: left;
}

.motion-line-right {
  text-align: right;
  color: var(--motion-accent-teal);
}

.motion-line-center {
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--motion-accent-coral);
}

.motion-splash-sub {
  margin-top: 3rem;
  max-width: 600px;
  font-size: 1.15rem;
  color: var(--motion-ink-dark);
  margin-bottom: 2rem;
}

/* 3-COL MASONRY TEXT */
.motion-journal-spacer {
  padding: var(--motion-padding-scale) 0;
  background-color: var(--motion-surface-pure);
}

.motion-masonry-trio {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--motion-border-line);
}

@media (max-width: 992px) {
  .motion-masonry-trio {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .motion-masonry-trio {
    column-count: 1;
  }
}

.motion-info-journal {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.motion-info-journal h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.motion-info-journal p {
  margin-bottom: 1rem;
  text-align: justify;
}

.motion-info-journal-icon {
  width: 32px;
  height: 32px;
  fill: var(--motion-accent-teal);
  margin-top: 1rem;
}

/* Full Width Featured Image Section */
.motion-billboard-block {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.motion-billboard-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/bg2.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.motion-billboard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(18, 33, 24, 0.95) 0%, rgba(18, 33, 24, 0.4) 100%);
  z-index: 2;
}

.motion-billboard-content {
  position: relative;
  z-index: 3;
  color: var(--motion-surface-pure);
  width: 100%;
}

.motion-billboard-content h2 {
  color: var(--motion-surface-pure);
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* FEATURES PRESET H: Inline Manifesto Rows */
.motion-manifesto-holder {
  padding: var(--motion-padding-scale) 0;
}

.motion-manifesto-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 4rem;
  text-align: left;
}

.motion-manifesto-wrap {
  display: flex;
  flex-direction: column;
}

.motion-manifesto-row {
  display: flex;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--motion-border-line);
  gap: 2rem;
}

.motion-manifesto-row:last-child {
  border-bottom: none;
}

.motion-manifesto-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--motion-accent-coral);
  min-width: 60px;
}

.motion-manifesto-text-nest {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.motion-manifesto-concept {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.motion-manifesto-detail {
  font-size: 1.05rem;
  color: var(--motion-ink-dark);
  opacity: 0.85;
}

/* HOW IT WORKS: Rotated Step Numbers */
.motion-steps-uneven {
  padding: var(--motion-padding-scale) 0;
  background-color: var(--motion-muted-gray);
  overflow: hidden;
}

.motion-steps-uneven-row {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.motion-step-skew-box {
  flex: 1 1 300px;
  position: relative;
  padding: 3rem 2rem;
  background-color: var(--motion-surface-pure);
  border-radius: var(--motion-radius);
  box-shadow: var(--motion-shadow);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.motion-step-digit-back {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--motion-accent-teal);
  opacity: 0.15;
  transform: rotate(-12deg);
  line-height: 1;
  pointer-events: none;
}

.motion-step-header {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.motion-step-body {
  font-size: 1rem;
  color: var(--motion-ink-dark);
  position: relative;
  z-index: 2;
}

/* CTA STRIP: Typographical Asymmetric Banner */
.motion-pitch-banner {
  background-color: var(--motion-accent-teal);
  color: var(--motion-surface-pure);
  padding: 6rem 0;
}

.motion-pitch-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.motion-pitch-title {
  color: var(--motion-surface-pure);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  max-width: 800px;
  line-height: 1;
}

/* EXPERT PAGE STYLES */
.motion-expert-split-wrap {
  display: flex;
  gap: 4rem;
  align-items: stretch;
  padding: var(--motion-padding-scale) 0;
}

.motion-expert-text-col {
  flex: 1;
}

.motion-drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  padding-right: 12px;
  font-weight: 900;
  color: var(--motion-accent-teal);
}

.motion-expert-img-col {
  flex: 1;
  background-image: url('img/bg3.webp');
  background-size: cover;
  background-position: center;
  border-radius: var(--motion-radius);
  min-height: 500px;
}

@media (max-width: 768px) {
  .motion-expert-split-wrap {
    flex-direction: column;
  }
  .motion-expert-img-col {
    min-height: 300px;
  }
}

.motion-stat-showcase {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--motion-border-line);
  border-bottom: 1px solid var(--motion-border-line);
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.motion-stat-single {
  flex: 1 1 200px;
}

.motion-stat-digit {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--motion-accent-coral);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.motion-stat-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--motion-ink-dark);
}

/* RESERVE PAGE STYLES */
.motion-reserve-layout {
  display: flex;
  gap: 4rem;
  padding: var(--motion-padding-scale) 0;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .motion-reserve-layout {
    flex-direction: column;
  }
}

.motion-reserve-instructions {
  flex: 1;
}

.motion-form-anchor {
  flex: 1.2;
  background-color: var(--motion-surface-pure);
  padding: 3.5rem;
  border-radius: var(--motion-radius);
  box-shadow: var(--motion-shadow);
  width: 100%;
}

@media (max-width: 576px) {
  .motion-form-anchor {
    padding: 2rem;
  }
}

.motion-form-anchor h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.motion-field-wrap {
  margin-bottom: 2rem;
}

.motion-field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.motion-input-classic {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--motion-border-line);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-bottom-color 0.3s ease;
  color: var(--motion-ink-dark);
}

.motion-input-classic:focus {
  border-bottom-color: var(--motion-accent-teal);
}

.motion-agree-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.motion-agree-wrap input {
  margin-top: 0.25rem;
  cursor: pointer;
}

/* FAQ ACCORDION - CSS ONLY */
.motion-accordion-block {
  padding: var(--motion-padding-scale) 0;
}

.motion-accordion-block h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.motion-faq-drawer {
  background-color: var(--motion-surface-pure);
  border-bottom: 1px solid var(--motion-border-line);
  overflow: hidden;
}

.motion-drawer-toggle {
  display: none;
}

.motion-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.motion-drawer-symbol {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.motion-drawer-body {
  max-height: 0;
  padding: 0 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: var(--motion-ink-dark);
  opacity: 0.8;
}

.motion-drawer-toggle:checked ~ .motion-drawer-body {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.motion-drawer-toggle:checked ~ .motion-drawer-head .motion-drawer-symbol {
  transform: rotate(45deg);
}

/* FOOTER STYLES */
.motion-footer-anchor {
  background-color: var(--motion-ink-dark);
  color: #aebfb2;
  padding: 5rem 0 3rem;
}

.motion-footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.motion-footer-brand {
  max-width: 400px;
}

.motion-footer-logo-name {
  color: var(--motion-surface-pure);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.motion-footer-list {
  list-style: none;
}

.motion-footer-list li {
  margin-bottom: 0.75rem;
}

.motion-footer-list a {
  color: #aebfb2;
}

.motion-footer-list a:hover {
  color: var(--motion-surface-pure);
}

.motion-disclaimer-wrap {
  padding-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(174, 191, 178, 0.6);
}

/* COOKIE BANNER */
.motion-cookie-sentinel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--motion-ink-dark);
  color: var(--motion-surface-pure);
  z-index: 9999;
  padding: 1.5rem 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  display: none;
}

.motion-cookie-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.motion-cookie-text {
  font-size: 0.9rem;
  max-width: 800px;
}

.motion-cookie-buttons {
  display: flex;
  gap: 1rem;
}

.motion-cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--motion-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.motion-cookie-accept {
  background-color: var(--motion-accent-teal);
  color: var(--motion-surface-pure);
}

.motion-cookie-decline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--motion-surface-pure);
}

.motion-cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Menu Code (Pure CSS) */
@media (max-width: 768px) {
  .motion-hamburger-trigger {
    display: flex;
  }
  
  .motion-main-links {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--motion-surface-pure);
    flex-direction: column;
    padding-top: 4rem;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--motion-shadow);
  }
  
  .motion-hamburger-input:checked ~ .motion-main-links {
    left: 0;
  }
  
  .motion-hamburger-input:checked ~ .motion-hamburger-trigger .motion-hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .motion-hamburger-input:checked ~ .motion-hamburger-trigger .motion-hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .motion-hamburger-input:checked ~ .motion-hamburger-trigger .motion-hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}