/* ================================================================
   MARIA PAULINA FAJARDO — Premium Design System
   High-end psychologist website: depth, imagery, editorial quality
================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
  /* Brand palette — exact violet from logo #8C59EF */
  --primary:        #8C59EF;
  --primary-dark:   #6B3DC8;
  --primary-light:  #A87DF3;
  --primary-xlight: #F0EAFF;
  --primary-glass:  rgba(140,89,239,0.12);
  --accent:         #C4D62E;
  --accent-dark:    #9AAC18;
  --bg:             #F0EAFF;
  --bg-soft:        #F9F6FF;
  --dark:           #2D1960;
  --dark-deep:      #1A0E40;
  --text:           #3D2B6E;
  --text-muted:     #7B6898;
  --border:         rgba(140,89,239,0.15);
  --white:          #FFFFFF;

  /* Shadow scale */
  --s1: 0 1px 3px rgba(45,25,96,0.06), 0 4px 12px rgba(45,25,96,0.06);
  --s2: 0 2px 8px rgba(45,25,96,0.07), 0 8px 28px rgba(45,25,96,0.09);
  --s3: 0 4px 16px rgba(45,25,96,0.08), 0 20px 56px rgba(45,25,96,0.12);
  --s4: 0 8px 24px rgba(45,25,96,0.10), 0 32px 80px rgba(45,25,96,0.18);

  /* Layout */
  --nav-h:    80px;
  --pad-sec:  120px;
  --contain:  1200px;
  --r:        18px;
  --r-lg:     28px;
  --r-xl:     40px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Motion */
  --ease:     0.3s ease;
  --ease-out: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------
   RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-soft);
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }


/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }

p  { line-height: 1.8; }
em { font-style: italic; color: var(--primary); }
strong { font-weight: 700; }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--primary);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
}


/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
.container {
  max-width: var(--contain);
  margin: 0 auto;
  padding: 0 2.5rem;
}
section { padding: var(--pad-sec) 0; }


/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(123,79,160,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(123,79,160,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--dark);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--s2);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(123,79,160,0.3);
}
.btn-sm  { padding: 0.5rem 1.4rem; font-size: 0.85rem; }
.btn-lg  { padding: 1.1rem 2.6rem; font-size: 1.05rem; }


/* ----------------------------------------------------------------
   GLASS CARD
---------------------------------------------------------------- */
.glass-card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--s3);
}


/* ----------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow var(--ease);
}
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--s1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.footer-logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}
.nav-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-controls { display: flex; align-items: center; gap: 0.75rem; }

#lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.42rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-opt {
  padding: 0.1rem 0.05rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.lang-opt.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.lang-sep { color: var(--border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
#hero {
  padding-top: var(--nav-h);
  background-color: var(--bg-soft);
  position: relative;
  overflow: visible;
}

/* Orb clipping wrapper — isolates blob overflow from #hero so content isn't clipped */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Decorative mesh orbs */
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.mesh-orb-1 {
  width: 560px; height: 560px;
  background: var(--primary-xlight);
  top: -180px; right: -100px;
  opacity: 0.8;
}
.mesh-orb-2 {
  width: 300px; height: 300px;
  background: rgba(196,214,46,0.3);
  bottom: 60px; left: 5%;
  opacity: 0.7;
}
.mesh-orb-3 {
  width: 200px; height: 200px;
  background: var(--primary-light);
  top: 40%; left: 42%;
  opacity: 0.12;
  filter: blur(80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  z-index: 1;
}

/* LEFT: photo column */
.hero-photo-panel {
  position: relative;
  overflow: hidden;
}
.hero-photo-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
/* Soft fade where the photo meets the background */
.hero-photo-panel-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(to right,
    transparent 0%,
    color-mix(in srgb, var(--bg-soft) 25%, transparent) 35%,
    color-mix(in srgb, var(--bg-soft) 65%, transparent) 65%,
    var(--bg-soft) 100%
  );
  pointer-events: none;
}

/* RIGHT: tags, copy, CTAs, compact quote */
.hero-content {
  max-width: 800px;
  padding: 48px 68px 110px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-self: center;
}

.hero-title {
  margin: 0 0 24px;
  color: var(--dark);
  line-height: 1.1;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--primary);
  line-height: 1.15;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-ctas { display: flex; justify-content: flex-start; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 100px; }

.btn-ghost-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease);
}
.btn-ghost-link:hover { color: var(--primary); }
.btn-ghost-link span { color: var(--primary); }

.hero-more-link {
  position: absolute;
  left: 24px;
  bottom: 48px;
  z-index: 3;
  white-space: nowrap;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.hero-more-link:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.hero-more-link span { color: var(--primary); }

/* Compact Dreikurs quote — thin bar + text, below the CTAs */
.hero-quote-compact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 650px;
  margin-top: auto;
}
.hero-quote-bar {
  width: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 60px;
  background: var(--primary-light);
  border-radius: 2px;
}
.hero-quote-compact .hfc-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
.hero-quote-compact .hfc-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   FOR WHOM — editorial image cards
---------------------------------------------------------------- */

.img-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.img-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: default;
  box-shadow: var(--s3);
  transition: transform var(--ease-out), box-shadow var(--ease-out);
}
.img-card-featured { aspect-ratio: 3 / 4; }

.img-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--s4);
}
.img-card:hover img { transform: scale(1.06); }

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29,10,80,0.96) 0%,
    rgba(45,25,96,0.65) 35%,
    rgba(45,25,96,0.15) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem 2rem;
}

.icard-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.img-card-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.img-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
#about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  scroll-margin-top: var(--nav-h);
}

.about-accent-block {
  position: absolute;
  width: 340px; height: 460px;
  background: linear-gradient(135deg, var(--accent), rgba(196,214,46,0.3));
  border-radius: var(--r-xl);
  top: 80px; left: 40px;
  opacity: 0.12;
  transform: rotate(-6deg);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.55fr;
  align-items: start;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Photo side */
.about-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-left: 2.5rem;
}

.about-img-frame {
  position: relative;
  display: inline-block;
}

.about-photo {
  width: 270px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--s2);
}

/* Footer strip: institution credential badges */
.about-footer-strip {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.about-logos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1rem;
}
.cred-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.cred-badge-ucm .cred-badge-text { max-width: 280px; }
.cred-badge-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.cred-badge-logo-pda { height: 32px; }
.cred-badge-initials {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cred-badge-text { display: flex; flex-direction: column; gap: 0.15rem; }
.cred-badge-text strong { font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--dark); }
.cred-badge-text span   { font-size: 0.76rem; color: var(--text-muted); line-height: 1.3; }
.cred-badge-bold .cred-badge-text span { font-weight: 700; color: var(--dark); }

/* Content side */
.about-content h2  { margin-bottom: 1rem; line-height: 1.1; }
.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.75;
}


/* ----------------------------------------------------------------
   SERVICES / PILLARS
---------------------------------------------------------------- */
#services { background: var(--white); padding-top: 40px; scroll-margin-top: var(--nav-h); }

/* ----------------------------------------------------------------
   SERVICES GRID
---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--ease-out), box-shadow var(--ease-out);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s3);
}

.service-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}
.svc-more-link { margin-top: auto; align-self: flex-end; }
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.service-body h3 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-audience { display: flex; flex-wrap: wrap; gap: 1rem; }
.service-audience .tag { font-size: 0.7rem; padding-bottom: 0.2rem; margin-bottom: 0; }


/* ----------------------------------------------------------------
   HOW IT WORKS
---------------------------------------------------------------- */
#how {
  background: var(--bg);
  position: relative;
  padding-top: 40px;
  scroll-margin-top: var(--nav-h);
}

.steps-grid {
  display: grid;
  grid-template-columns: 233px auto 233px auto 233px auto 233px;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1142px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  box-shadow: var(--s1);
  transition: transform var(--ease-out), box-shadow var(--ease-out);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s3);
}
.step-card-final {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}
.step-card-final h3, .step-card-final p { color: rgba(255,255,255,0.9); }
.step-card-final .step-num { background: rgba(255,255,255,0.2); color: var(--white); box-shadow: none; }

.step-num-wrap { margin-bottom: 1.25rem; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-xlight);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123,79,160,0.2);
}
.step-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.375rem;
}
.step-card-final .step-body p { color: rgba(255,255,255,0.7); }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  opacity: 0.5;
  padding: 0 0.5rem;
  padding-top: 1.5rem;
  width: 70px;
}
.step-connector svg { width: 60px; height: 24px; }


/* ----------------------------------------------------------------
   TESTIMONIALS
---------------------------------------------------------------- */
#testimonials {
  position: relative;
  padding-top: 40px;
  padding-bottom: var(--pad-sec);
  scroll-margin-top: var(--nav-h);
  overflow: hidden;
}

.test-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.test-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.test-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(29,10,80,0.94) 0%,
    rgba(45,25,96,0.88) 50%,
    rgba(20,5,60,0.96) 100%
  );
  z-index: 1;
}

.test-tag { color: var(--accent); border-bottom-color: var(--accent); }
.test-h2  { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.testimonials-carousel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2.4rem 0 1.25rem;
  margin-top: -0.9rem;
  flex: 1 1 0;
  min-width: 0;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.test-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}
.test-nav:hover { background: rgba(255,255,255,0.3); }

.test-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 2;
}
.test-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.test-dot:hover { background: rgba(255,255,255,0.5); }
.test-dot.active { background: var(--accent); transform: scale(1.3); }

.testimonial {
  /* exactly two cards per view: (track width - one gap) / 2 */
  flex: 0 0 calc((100% - 1.75rem) / 2);
  scroll-snap-align: start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  position: relative;
  padding: 1.95rem 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--ease), transform var(--ease-out);
}
.testimonial:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-6px);
}

.testimonial-featured {
  background: rgba(123,79,160,0.45);
  border-color: rgba(157,112,200,0.4);
  box-shadow: 0 8px 40px rgba(123,79,160,0.4);
  transform: translateY(-8px);
}
.testimonial-featured:hover {
  transform: translateY(-14px);
  background: rgba(123,79,160,0.55);
}

.quote-mark {
  position: absolute;
  top: 0.55rem; right: 1.1rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
  font-weight: 700;
  pointer-events: none;
}

.quote-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  flex: 1;
  font-style: italic;
}

.quote-author {
  position: absolute;
  top: 0; left: 1.25rem;
  transform: translateY(-50%);
  width: max-content;
  min-width: 50%;                 /* standard width: at least half the card */
  max-width: calc(100% - 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20,8,50,0.4);
}

.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.testimonial-featured .author-avatar { background: var(--accent); color: var(--dark); }

.author-name {
  display: block;
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.2;
}
.author-year {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}


/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */
#contact { background: var(--bg-soft); padding-top: 60px; scroll-margin-top: var(--nav-h); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-content h2 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.contact-content p  { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

.contact-invite {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--primary) !important;
  margin-bottom: 2rem !important;
  line-height: 1.3;
}

.contact-photo-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--s1);
}
.contact-photo-strip img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--primary-xlight);
  flex-shrink: 0;
}
.contact-photo-text { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-photo-text strong { font-size: 0.92rem; color: var(--dark); }
.contact-photo-text span  { font-size: 0.78rem; color: var(--text-muted); }

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.75rem;
  box-shadow: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-info { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 0.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  transition: color var(--ease);
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: all var(--ease);
}
.contact-item:hover {
  color: var(--primary);
  background: var(--primary-xlight);
  border-color: var(--border);
}
.ci-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: background var(--ease), color var(--ease);
}
.contact-item:hover .ci-icon-wrap {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Divider between quick-contact buttons and the form */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glass);
}

/* Honeypot — visually hidden from real users, still present for bots to fill in */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.form-consent a { color: var(--primary); font-weight: 700; }

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-feedback-success { background: var(--primary-xlight); color: var(--primary-dark); }
.form-feedback-error   { background: rgba(200,60,60,0.1); color: #a83232; }


/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
footer {
  background: var(--dark-deep);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  align-items: start;
  gap: 3rem;
}

.footer-brand { display: flex; flex-direction: row; align-items: center; gap: 1.25rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.footer-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.footer-links { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-legal { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal a { color: rgba(255,255,255,0.6); transition: color var(--ease); }
.footer-legal a:hover { color: var(--white); }
.footer-credit strong { color: rgba(196,214,46,0.8); }


/* ----------------------------------------------------------------
   WHATSAPP FAB
---------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(123,79,160,0.5);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.whatsapp-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 40px rgba(123,79,160,0.6);
}


/* ----------------------------------------------------------------
   COOKIE CONSENT BANNER
---------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1 1 340px; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.cookie-banner-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.cookie-banner-text a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }


/* ----------------------------------------------------------------
   SERVICE DETAIL PAGES
---------------------------------------------------------------- */
.svc-detail-hero { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 20px; background: var(--bg-soft); }

.svc-detail-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.75fr;
  align-items: center;
  gap: 2rem;
}
.svc-detail-visual { display: flex; justify-content: flex-end; }
.svc-detail-content .tag { margin-bottom: 0.75rem; }
.svc-detail-content h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.75rem; }
.svc-detail-content p { color: var(--text); line-height: 1.55; margin-bottom: calc(0.6rem - 4px); }
.svc-detail-quote {
  font-style: italic;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  margin-top: 0.5rem;
}
.svc-detail-photo {
  width: 100%;
  max-width: 360px;
  max-height: 200px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--s3);
}

.svc-welcome-section { padding: 16px 0 40px; }
.svc-welcome-grid {
  display: grid;
  grid-template-columns: 0.4fr 1.75fr;
  align-items: start;
  gap: 2.5rem;
}
.svc-welcome-photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  box-shadow: var(--s2);
}
.svc-welcome-content .tag { margin-bottom: 0.75rem; }
.svc-welcome-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.75rem; }
.svc-welcome-content p { color: var(--text); line-height: 1.6; margin-bottom: 0.6rem; }

.svc-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}
.svc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  flex: 0 0 212px;
}
.svc-detail-download { margin-left: auto; margin-right: 60px; font-weight: 700; white-space: nowrap; }
.svc-detail-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.svc-detail-item .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.svc-tracks-hero { padding-top: calc(var(--nav-h) + 20px); background: var(--bg); }
.svc-tracks-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.svc-tracks-hero .section-head { margin-bottom: 1.5rem; }
.svc-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.svc-track-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--s2);
}
.svc-track-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1.25rem;
}
.svc-track-card p { color: var(--text); line-height: 1.7; margin-bottom: 1rem; font-size: 0.95rem; }
.svc-track-list { display: flex; flex-direction: column; gap: 0.85rem; padding-left: 1.25rem; }
.svc-track-list li { list-style: disc; color: var(--text); line-height: 1.65; font-size: 0.92rem; }
.svc-track-list li strong { color: var(--dark); }

.svc-track-single {
  grid-template-columns: 784px 284px;
  max-width: 1100px;
  margin: 0 auto;
}
.svc-esencia-highlight {
  align-self: start;
  background: var(--primary-xlight);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
}
.svc-esencia-highlight p {
  color: var(--primary-dark);
  font-style: italic;
  font-weight: 600;
  line-height: 1.6;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .svc-tracks-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-track-single { grid-template-columns: 1fr; }
}


@media (max-width: 900px) {
  .svc-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-detail-grid .svc-detail-visual { order: -1; justify-content: center; }
  .svc-welcome-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-welcome-photo { max-width: 220px; }
  .svc-detail-item { flex: 1 1 140px; }
  .svc-detail-download { margin-right: 0; }
}

@media (max-width: 480px) {
  .svc-detail-hero { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 24px; }
  .svc-welcome-section { padding: 24px 0 48px; }
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; padding: 1.25rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}


/* ----------------------------------------------------------------
   ENTRANCE ANIMATIONS
---------------------------------------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.animate.visible { opacity: 1; transform: translateY(0); }

/* stagger */
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }
.animate:nth-child(5) { transition-delay: 0.4s; }

/* hero loads immediately */
.hero-content > * { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.24s; }
.hero-content > *:nth-child(3) { animation-delay: 0.33s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }
.hero-content > *:nth-child(5) { animation-delay: 0.51s; }
.hero-photo-panel { animation: heroFadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------------
   VIEWPORT HEIGHT — short screens (laptops with browser chrome)
---------------------------------------------------------------- */
@media (max-height: 860px) {
  .hero-content { padding-top: 24px; padding-bottom: 100px; }
  .hero-sub { margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 80px; }
}

@media (max-height: 650px) {
  .hero-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
  .hero-sub { margin-bottom: 14px; }
  .hero-ctas { margin-bottom: 56px; }
  .hero-quote-compact .hfc-text { margin-bottom: 0.2rem; }
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --pad-sec: 90px; }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }
  .step-connector { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(1),
  .pillar:nth-child(2),
  .pillar:nth-child(3),
  .pillar:nth-child(4),
  .pillar:nth-child(5) { grid-column: auto; }
}

@media (max-width: 900px) {
  .logo-name { display: none; }
  .nav-cta   { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem 2.5rem;
    box-shadow: var(--s3);
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .hero-photo-panel { height: 320px; }
  .hero-photo-panel-fade { display: none; }
  .hero-content { padding: 48px 32px; max-width: none; align-items: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-quote-compact { max-width: 420px; margin: 0 auto; text-align: left; }

  .img-cards-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .img-card, .img-card-featured { aspect-ratio: 16 / 9; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { width: 100%; height: 360px; border-radius: var(--r); }
  .about-logos { flex-wrap: wrap; gap: 1.5rem 2rem; }
  .cred-badge { flex: 0 1 auto; max-width: 220px; }

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

  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .testimonial { flex-basis: 100%; }
  .testimonial-featured { transform: none; }
  .test-nav { width: 36px; height: 36px; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 68px; --pad-sec: 64px; }
  #navbar { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 2rem 1.25rem 2.5rem; }
  .contact-card { padding: 2rem; }
  .btn-lg { padding: 1rem 2rem; }
  .hero-photo-panel { height: 260px; }
}


/* ----------------------------------------------------------------
   RECURSOS (Eventos)
---------------------------------------------------------------- */
.recursos-hero { padding-bottom: 1.5rem; }

.recursos-panel { padding: 3rem 0 4.5rem; }

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.75rem;
}

.recursos-empty {
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  text-align: center;
}

.event-date-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .recursos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .recursos-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   BLOG (feed + single post)
---------------------------------------------------------------- */
.blog-search {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 3rem;
}
.blog-search-field { position: relative; flex: 1; }
.blog-search input[type="search"] {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
}
.blog-search input[type="search"]::-webkit-search-cancel-button,
.blog-search input[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}
.blog-search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glass);
}
.blog-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--s2);
  overflow: hidden;
  z-index: 20;
  text-align: left;
}
.blog-search-suggestions a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.blog-search-suggestions a:last-child { border-bottom: none; }
.blog-search-suggestions a:hover { background: var(--primary-xlight); color: var(--primary); }

.blog-feed {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-width: 760px;
  margin: 0 auto;
}
.blog-feed-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.blog-feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.blog-feed-img {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.blog-badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.blog-feed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.blog-feed-item:hover .blog-feed-img img { transform: scale(1.04); }
.blog-feed-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.blog-feed-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.blog-feed-body h2 a { color: var(--text); }
.blog-feed-body h2 a:hover { color: var(--primary); }
.blog-feed-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.blog-feed-body .svc-more-link { align-self: flex-start; margin-top: 0.25rem; }

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.blog-back {
  display: inline-block;
  margin: 1.5rem 0;
}

.blog-post-hero-img {
  position: relative;
  max-width: 640px;
  height: 280px;
  margin: 0 auto 2.5rem;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s2);
}
.blog-post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 520px) {
  .blog-post-hero-img { height: 200px; }
}

.blog-post-body {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-docs { max-width: 700px; margin: 2rem auto 0; }

@media (max-width: 520px) {
  .blog-feed-item { grid-template-columns: 1fr; }
  .blog-feed-img { aspect-ratio: 16 / 9; }
}

.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}
.blog-filter-group, .blog-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--white);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.blog-filter-pill:hover { border-color: var(--primary-light); color: var(--primary); }
.blog-filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.blog-item-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.blog-tag-chip {
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.blog-tag-chip:hover { background: var(--primary-glass); }

.blog-feed-type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.blog-feed-video-thumb {
  appearance: none;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.blog-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  background: rgba(45,25,96,0.25);
  transition: background var(--ease);
}
.blog-feed-video-thumb:hover .blog-video-play { background: rgba(45,25,96,0.4); }


/* ============================================================
   ABOUT — expandable "Mi historia" card
============================================================ */
button.about-more-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body);
}
.about-more-link .story-close-label { display: none; }
.about-more-link[aria-expanded="true"] .story-open-label { display: none; }
.about-more-link[aria-expanded="true"] .story-close-label { display: inline; }
.about-more-link .story-arrow { display: inline-block; transition: transform var(--ease); }
.about-more-link[aria-expanded="true"] .story-arrow { transform: rotate(90deg); }

.story-card {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--s2);
  border-left: 3px solid var(--accent);
  padding: 2rem 2.25rem;
}
.story-card.is-open { animation: storyIn 0.4s ease both; }
.story-card p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.story-card p:last-child { margin-bottom: 0; }
.story-card strong { color: var(--dark); font-weight: 700; }
.story-card .story-closing { font-style: italic; color: var(--primary-dark); }
.story-card .story-closing strong { color: var(--primary-dark); }
@keyframes storyIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .story-card { padding: 1.5rem 1.25rem; } .story-card p { font-size: 1rem; } }


/* ============================================================
   SERVICES — in-page detail panel
============================================================ */
button.svc-more-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body);
}
.svc-more-link .svc-close-label { display: none; }
.svc-more-link[aria-expanded="true"] .svc-open-label { display: none; }
.svc-more-link[aria-expanded="true"] .svc-close-label { display: inline; }
.svc-more-link .svc-arrow { display: inline-block; transition: transform var(--ease); }
.svc-more-link[aria-expanded="true"] .svc-arrow { transform: rotate(90deg); }
.service-card { transition: background var(--ease), box-shadow var(--ease); }
.service-card.is-active { background: color-mix(in srgb, var(--primary) 16%, var(--white)); outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: var(--s3); }

.svc-detail-wrap { scroll-margin-top: var(--nav-h); }
.svc-panel {
  position: relative;
  margin-top: 2rem;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--accent);
  box-shadow: var(--s2);
  padding: 2.25rem 2.5rem 2rem;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.svc-panel.is-open { animation: storyIn 0.4s ease both; }
.svc-panel-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--primary);
  border: 0; cursor: pointer; box-shadow: var(--s1, 0 1px 4px rgba(61,43,110,0.12));
  transition: background var(--ease), color var(--ease);
}
.svc-panel-close:hover { background: var(--primary); color: var(--white); }
.svc-panel .tag { margin-bottom: 0.75rem; }
.svc-panel-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.75rem; }
.svc-panel-sub { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
.svc-panel .svc-detail-grid { padding: 0 2.5rem 0 0; }
.svc-panel .svc-welcome-grid { margin-top: 1.75rem; }
.svc-panel .section-head { text-align: left; max-width: none; margin: 0 0 1.25rem; }
.svc-panel .svc-track-single .svc-track-card { background: transparent; box-shadow: none; padding: 0; }
.svc-panel .svc-track-single .svc-track-card p { font-size: 1rem; }
.svc-panel .svc-tracks-grid { margin-top: 0.5rem; }
.svc-panel .svc-track-single { grid-template-columns: 1.6fr 0.9fr; max-width: none; }
.svc-panel-cta { margin-top: 1.75rem; }
@media (max-width: 900px) {
  .svc-panel { padding: 2rem 1.25rem 1.5rem; }
  .svc-panel .svc-detail-grid { padding-right: 0; }
  .svc-panel .svc-track-single { grid-template-columns: 1fr; }
}

.step-body p strong { display: block; color: var(--dark); font-weight: 700; margin-top: 0.85rem; }
.step-body p strong:first-child { margin-top: 0; }

@media (max-width: 600px) {
  .test-nav { display: none; }   /* swipe + dots on phones; frees width so a card is readable */
  .testimonials-carousel { gap: 0; }
}
