/* ============================================================
   FlexMove — Movilidad y Flexibilidad Corporal
   Palette: warm beige + brand violet (#CE3AFE)
   ============================================================ */

:root {
  /* Brand */
  --violet:        #CE3AFE;
  --violet-deep:   #9A1FD0;
  --violet-ink:    #5E1583;
  --violet-soft:   #F3DCFB;

  /* Beige / neutrals */
  --beige:         #F4ECE0;
  --beige-2:       #EDE2D2;
  --cream:         #FBF6EE;
  --sand:          #E4D6C1;
  --ink:           #2A2430;
  --muted:         #6E6675;

  --white:         #ffffff;

  --shadow-sm: 0 4px 18px rgba(94, 21, 131, 0.08);
  --shadow-md: 0 18px 50px rgba(94, 21, 131, 0.14);
  --radius:    22px;
  --radius-lg: 34px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 130px) 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet-deep);
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 66px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-lead { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(120deg, var(--violet-deep), var(--violet));
  color: var(--white);
  box-shadow: 0 12px 26px rgba(154, 31, 208, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(154, 31, 208, 0.42); }

.btn-ghost {
  background: transparent;
  color: var(--violet-ink);
  border-color: rgba(94, 21, 131, 0.28);
}
.btn-ghost:hover { background: var(--violet-ink); color: var(--white); border-color: var(--violet-ink); transform: translateY(-3px); }

.btn-light {
  background: var(--cream);
  color: var(--violet-ink);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(42, 36, 48, 0.07);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand-accent { color: var(--violet-deep); }
/* keep header brand readable while over the hero image */
.site-header:not(.scrolled) .brand-name { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.site-header:not(.scrolled) .brand-accent { color: #F3C9FF; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--violet); transition: width .25s ease;
}
.main-nav a:hover { color: var(--violet-deep); }
.main-nav a:hover::after { width: 100%; }
.site-header:not(.scrolled) .main-nav a { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.site-header:not(.scrolled) .main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  background: rgba(255,255,255,.14);
  border: 1.4px solid rgba(255,255,255,.5);
  color: #fff; border-radius: 100px; padding: 6px 12px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; display: flex; gap: 5px; align-items: center; transition: .25s;
}
.site-header.scrolled .lang-toggle { border-color: rgba(94,21,131,.3); color: var(--violet-ink); background: rgba(206,58,254,.06); }
.lang-toggle .lang-opt { opacity: .55; transition: .2s; }
.lang-toggle .lang-opt.active { opacity: 1; color: #fff; }
.site-header.scrolled .lang-toggle .lang-opt.active { color: var(--violet-deep); }
.lang-toggle .lang-sep { opacity: .4; }

.header-cta { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(46, 12, 66, 0.82) 0%, rgba(46, 12, 66, 0.5) 42%, rgba(94, 21, 131, 0.16) 72%, rgba(206,58,254,0.05) 100%),
    linear-gradient(to top, rgba(30,8,44,.6), rgba(30,8,44,0) 45%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 120px 0 70px; }
.hero .eyebrow { color: #F3C9FF; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); font-weight: 500; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 560px; color: rgba(255,255,255,.9); font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: #fff; color: var(--violet-ink); }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 42px; }
.hero-badges li { font-size: 0.86rem; font-weight: 400; color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: "✦"; color: var(--violet); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--violet-ink); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; animation: scroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; font-weight: 400; }
.marquee-track .dot { color: var(--violet); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
.about-media-badge {
  position: absolute; bottom: -22px; right: -12px;
  background: var(--white); border-radius: 18px; padding: 16px 22px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; line-height: 1.3;
  border: 1px solid rgba(206,58,254,.16);
}
.about-media-badge strong { font-family: var(--font-display); color: var(--violet-deep); font-size: 1.15rem; }
.about-media-badge span { font-size: .78rem; color: var(--muted); }

.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 22px; }
.about-text > p { color: var(--muted); margin-bottom: 18px; font-size: 1.03rem; }

.check-list { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--violet-soft); color: var(--violet-deep);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Services ---------- */
.services { background: var(--beige); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--cream); border-radius: var(--radius); padding: 38px 32px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(228, 214, 193, 0.6);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--violet); }
.service-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-soft), #fff);
  color: var(--violet-deep); font-size: 1.5rem; margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px rgba(206,58,254,.18);
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
.service-card p { color: var(--muted); font-size: 0.97rem; }
.services-note {
  text-align: center; margin-top: 42px; color: var(--violet-ink);
  font-style: italic; font-family: var(--font-display); font-size: 1.05rem;
}

/* ---------- Benefits ---------- */
.benefits { background: var(--cream); }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.benefits-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.benefits-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 34px; }
.benefit-item { display: flex; gap: 20px; margin-bottom: 26px; }
.benefit-num {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--violet);
  font-weight: 600; min-width: 40px;
}
.benefit-item h4 { font-size: 1.2rem; margin-bottom: 5px; font-weight: 600; }
.benefit-item p { color: var(--muted); font-size: 0.97rem; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(50px, 7vw, 80px); text-align: center;
}
.stat { background: var(--beige); border-radius: var(--radius); padding: 34px 20px; border: 1px solid rgba(228,214,193,.7); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--violet-deep); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.9rem; margin-top: 10px; display: block; }

/* ---------- Gallery ---------- */
.gallery { background: var(--beige); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--beige); border-radius: var(--radius); padding: 36px 32px;
  border: 1px solid rgba(228,214,193,.7); position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--font-display); font-size: 4rem; color: var(--violet);
  opacity: .28; position: absolute; top: 6px; left: 22px; line-height: 1;
}
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--ink); margin: 18px 0 18px; position: relative; }
.testimonial footer { font-weight: 600; color: var(--violet-deep); font-size: 0.92rem; }
.testimonial-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 0.8rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--violet-ink), var(--violet-deep) 55%, var(--violet));
  color: var(--white); text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta-inner { max-width: 660px; margin-inline: auto; }
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 30px; font-weight: 300; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { background: var(--beige); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.contact-lead { color: var(--muted); margin-bottom: 30px; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--violet-soft); color: var(--violet-deep);
  display: grid; place-items: center;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-body); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--muted); font-size: 0.97rem; }
.contact-list a:hover { color: var(--violet-deep); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #241C2B; color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { max-width: 340px; }
.footer-logo { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; color: rgba(255,255,255,.6); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-contact a { font-size: 0.94rem; color: rgba(255,255,255,.72); transition: color .2s; width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--violet); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  transition: transform .25s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: var(--cream); flex-direction: column; gap: 8px;
    padding: 100px 32px 40px; box-shadow: -20px 0 60px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .35s ease; z-index: 95;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: var(--ink); font-size: 1.1rem; padding: 10px 0; }
  .site-header:not(.scrolled) .main-nav a { color: var(--ink); text-shadow: none; }
  .nav-toggle { display: flex; z-index: 96; }
  .header-cta { display: none; }

  .about-grid, .benefits-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin-inline: auto; }
  .benefits-media { max-width: 480px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-content { padding-top: 130px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .about-media-badge { right: 50%; transform: translateX(50%); bottom: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
