/* =============================================================
   Curaciones Wundheilung — Editorial Light Cream (sage + clay)
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Buttons
   6. Nav  7. Splash  8. Sections  9. Effects  10. Responsive  11. Reduced-motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg:        #f4efe7;   /* warm cream */
  --bg-2:      #ece4d6;   /* sand */
  --paper:     #fffdf8;
  --ink:       #1f211c;   /* warm near-black */
  --ink-soft:  #353830;
  --ink-mute:  #6d6f63;
  --accent:    #3a6b59;   /* deep sage — clinical calm/trust */
  --accent-2:  #4f8770;   /* lighter sage */
  --clay:      #c07a4f;   /* warm clay — human closeness */
  --clay-soft: #d89b76;
  --wa:        #25a35a;   /* whatsapp-ish green, tuned to palette */
  --celeste:   #1f9ed1;   /* celeste — slogan destacado (pedido cliente) */
  --line:      rgba(31,33,28,0.12);
  --line-2:    rgba(31,33,28,0.07);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --maxw: 1200px;
  --pad: clamp(1.2rem, 5vw, 4rem);
  --radius: 18px;
  --shadow-soft: 0 18px 50px -22px rgba(31,33,28,0.28);
  --shadow-card: 0 10px 30px -18px rgba(31,33,28,0.30);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilities ------------------------------------------------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

.kicker {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.1rem; max-width: 42rem; }

/* 4. Typography ------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent); }
h1 em, h2 em { color: var(--clay); }

/* 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-weight: 500; font-size: .98rem; letter-spacing: .005em;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
  will-change: transform;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px -12px rgba(37,163,90,.7); }
.btn-wa:hover { background: #1f9050; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(37,163,90,.75); }

.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255,253,248,.5); }
.btn-ghost:hover { background: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(58,107,89,.8); }

.wa-glyph {
  width: 18px; height: 18px; flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C9 3 3.5 8.5 3.5 15.5c0 2.4.7 4.7 1.9 6.7L4 29l7-1.8c1.9 1 4 1.6 6.2 1.6 7 0 12.5-5.5 12.5-12.5S23 3 16 3zm0 22.6c-1.9 0-3.7-.5-5.3-1.5l-.4-.2-3.9 1 1-3.8-.3-.4a10 10 0 01-1.6-5.5C5.5 9.9 10.2 5.4 16 5.4s10.5 4.5 10.5 10.1S21.8 25.6 16 25.6zm5.8-7.6c-.3-.2-1.9-.9-2.2-1s-.5-.2-.7.2-.8 1-1 1.2-.4.3-.7.1c-1.9-.9-3.1-1.7-4.4-3.8-.3-.6.3-.5.9-1.7.1-.2 0-.4 0-.6s-.7-1.7-1-2.3c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-1.2 1.2-1 2.8-.1 4.3 1.7 2.7 3.4 4.4 6.5 5.7 2.2.9 2.6.8 3.4.7.9-.1 1.9-.8 2.2-1.6.3-.8.3-1.4.2-1.6z'/%3E%3C/svg%3E");
  mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C9 3 3.5 8.5 3.5 15.5c0 2.4.7 4.7 1.9 6.7L4 29l7-1.8c1.9 1 4 1.6 6.2 1.6 7 0 12.5-5.5 12.5-12.5S23 3 16 3z'/%3E%3C/svg%3E");
}

/* 6. Nav ------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244,239,231,.85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .9rem var(--pad);
  display: flex; align-items: center; gap: 1.4rem;
}
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.brand-cross {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.brand-logo { border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.brand .brand-logo { width: 92px; height: 92px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--serif); font-weight: 700; font-size: 1.24rem; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--ink-mute); letter-spacing: .02em; }

.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: .62rem 1.1rem; font-size: .9rem; }

.nav-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg); padding: 6rem var(--pad) 2rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
  display: flex; visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .4rem; width: 100%; margin-top: 1rem; }
.mobile-menu nav a { font-family: var(--serif); font-size: 1.7rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.mobile-menu nav a.btn { font-family: var(--sans); font-size: 1rem; border: 0; margin-top: 1.2rem; justify-content: center; }

/* 7. Splash ---------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .7s var(--ease-out), clip-path .8s var(--ease-out); clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { display: flex; align-items: center; gap: .8rem; opacity: 0; animation: splashIn .9s .15s var(--ease-out) forwards; }
.splash-cross {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: var(--bg); font-size: 2rem; font-weight: 700;
}
.splash-logo { width: 66px; height: 66px; border-radius: 50%; object-fit: contain; }
.splash-name { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 500; letter-spacing: -.01em; }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 8. Sections -------------------------------------------------- */

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem var(--pad) clamp(3rem, 7vw, 5rem); overflow: clip; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.06); will-change: transform; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,33,28,.1) 0%, rgba(31,33,28,.02) 28%, rgba(244,239,231,.55) 74%, var(--bg) 100%),
    linear-gradient(90deg, rgba(244,239,231,.7) 0%, rgba(244,239,231,.2) 30%, transparent 52%);
}
.hero-content { position: relative; max-width: 38rem; }
.hero-title { font-size: clamp(2.4rem, 6.4vw, 5rem); margin: 1rem 0 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.hero-by { font-size: .92rem; color: var(--ink-mute); }
.hero-by strong { color: var(--ink-soft); font-weight: 600; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px; display: grid; place-items: start center; padding-top: 7px; }
.hero-scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scrollDot 1.8s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Credenciales + marquee */
.creds { max-width: var(--maxw); margin-inline: auto; padding: clamp(2rem,5vw,3.5rem) var(--pad) 1rem; }
.creds-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.creds-grid li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
.cred-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: rgba(58,107,89,.12); color: var(--accent); font-size: 1rem; }
.creds-grid strong { display: block; font-weight: 600; font-size: 1rem; }
.creds-grid small { color: var(--ink-mute); font-size: .86rem; }

.marquee { margin-top: 2.4rem; overflow: hidden; border-block: 1px solid var(--line); padding-block: .9rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 1.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink-soft); white-space: nowrap; }
.marquee-track .dot { color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Servicios */
.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  position: relative; padding: 1.8rem 1.7rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  overflow: hidden;
}
.card::before { /* halo following cursor */
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  left: var(--hx, 50%); top: var(--hy, 0%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(58,107,89,.16), transparent 68%);
  opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(31,33,28,.42); border-color: rgba(58,107,89,.35); }
.card:hover::before { opacity: 1; }
.card-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(58,107,89,.10); color: var(--accent); margin-bottom: 1.1rem; }
.card-ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }

/* About */
.about { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); border-radius: 0; max-width: none; }
.about-grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); grid-template-columns: 1fr; align-items: center; }
.about-fig { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.about-fig figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,253,248,.92); backdrop-filter: blur(6px); padding: .5rem .9rem; border-radius: 100px; font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.about-body h2 { margin: .6rem 0 1.1rem; }
.about-body p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 36rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 1.8rem 0; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 500; color: var(--accent); line-height: 1; }
.stats span { font-size: .86rem; color: var(--ink-mute); margin-top: .3rem; }

/* Proceso */
.steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: step; }
.step { padding: 1.7rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .4s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.step-n { font-family: var(--serif); font-size: 1.1rem; color: var(--clay); font-weight: 600; letter-spacing: .04em; }
.step h3 { margin: .6rem 0 .4rem; }
.step p { color: var(--ink-mute); font-size: .96rem; }

/* Educación */
.education { background: var(--ink); color: var(--bg); border-radius: 0; max-width: none; }
.edu-grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); grid-template-columns: 1fr; align-items: center; }
.education .kicker { color: var(--clay-soft); }
.education h2 { color: var(--bg); }
.education h2 em { color: var(--clay-soft); }
.edu-body p { color: rgba(244,239,231,.78); margin-bottom: 1.4rem; max-width: 34rem; }
.edu-list { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.edu-list li { display: flex; gap: .7rem; color: rgba(244,239,231,.9); font-size: 1.02rem; align-items: baseline; }
.edu-list li span { color: var(--clay-soft); }
.education .btn-dark { background: var(--bg); color: var(--ink); }
.education .btn-dark:hover { background: var(--wa); color: #fff; }
.edu-fig { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.edu-fig img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }

/* Statement band */
.statement { position: relative; min-height: 58svh; display: flex; align-items: center; padding: clamp(3rem,8vw,6rem) var(--pad); overflow: clip; }
.statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; z-index: -2; }
.statement-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31,33,28,.78) 0%, rgba(31,33,28,.5) 45%, rgba(31,33,28,.15) 100%); }
.statement-inner { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.statement .kicker { color: var(--clay-soft); }
.statement-line { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.08; color: var(--bg); max-width: 18ch; text-wrap: balance; }
.statement-line em { color: var(--clay-soft); }

/* Testimonios */
.testimonials { text-align: left; }
.quotes { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.quote { padding: 1.8rem 1.7rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: .2rem; right: 1.2rem; font-family: var(--serif); font-size: 4rem; color: rgba(58,107,89,.16); line-height: 1; }
.quote blockquote { font-family: var(--serif); font-size: 1.18rem; line-height: 1.45; color: var(--ink-soft); }
.quote figcaption { margin-top: 1.2rem; display: flex; flex-direction: column; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { font-size: .84rem; color: var(--ink-mute); }
.testimonials-note { margin-top: 1.4rem; font-size: .8rem; color: var(--ink-mute); font-style: italic; }

/* Contacto */
.contact { position: relative; }
.contact-halo { position: absolute; inset: -20% -10% auto -10%; height: 70%; background: radial-gradient(50% 60% at 30% 30%, rgba(58,107,89,.18), transparent 70%); filter: blur(80px); pointer-events: none; z-index: -1; }
.contact-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.6rem); grid-template-columns: 1fr; }
.contact-intro h2 { margin: .6rem 0 1rem; }
.contact-intro > p { color: var(--ink-soft); max-width: 32rem; margin-bottom: 1.6rem; }
.contact-meta { margin-top: 1.6rem; display: grid; gap: .6rem; }
.contact-meta li { display: flex; gap: .6rem; align-items: center; color: var(--ink-soft); font-size: .96rem; }
.contact-meta span { color: var(--accent); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg);
  font: inherit; color: var(--ink); transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,107,89,.14); }
.btn-check { width: 20px; height: 20px; display: none; }
.contact-form.is-sent .btn-label { display: none; }
.contact-form.is-sent .btn-check { display: block; }
.contact-form.is-sent .btn-dark { background: var(--wa); }
.form-note { margin-top: .9rem; font-size: .88rem; color: var(--accent); min-height: 1.2em; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 1.8rem; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-brand { display: flex; gap: .9rem; align-items: center; }
.footer-brand .brand-logo { width: 92px; height: 92px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.22rem; }
.footer-brand p { font-size: .88rem; color: var(--ink-mute); margin-top: .2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-content: start; }
.footer-nav a { font-size: .92rem; color: var(--ink-soft); padding: .35rem 0; display: inline-block; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--maxw); margin: 2.4rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-credits { font-size: .82rem; color: var(--ink-mute); }
.footer-credits a { color: var(--accent); }
.footer-copy { font-size: .82rem; color: var(--ink-mute); }

/* 9. Effects --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split-text elements never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* 10. Responsive ----------------------------------------------- */
@media (min-width: 540px) {
  .creds-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nav-toggle, .mobile-menu { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 0.85fr 1fr; }
  .edu-grid { grid-template-columns: 1fr 0.9fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 959px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}
@media (min-width: 1280px) {
  .hero-content { max-width: 42rem; }
}

/* 11. Reduced-motion — only intrusive effects ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .marquee-track { animation-duration: 90s; }
  .splash-mark { animation-duration: .3s; }
}

/* 12. Slogan en hero + Galería de trabajos (ajuste cliente) ----- */
.hero-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: .55rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(255,255,255,.5), 0 2px 4px rgba(31,33,28,.12);
}

.gallery { }
.gallery-note {
  margin-top: .9rem; font-size: .82rem; color: var(--ink-mute);
  font-style: italic;
}
.gallery-grid {
  display: grid; gap: 1.1rem; grid-template-columns: 1fr;
  margin-top: .4rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(31,33,28,.42); border-color: rgba(58,107,89,.35); }
.gallery-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  background: var(--bg-2);
}
.gallery-item figcaption {
  padding: .85rem 1rem 1rem;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.4;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 13. Diplomados + Síndrome del cuidador (ajuste cliente) ------- */
.dip-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.4rem; list-style: none; }
.dip {
  padding: 1.5rem 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.dip:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(58,107,89,.35); }
.dip-ic {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: rgba(58,107,89,.1); color: var(--accent);
  font-size: 1.1rem; margin-bottom: .9rem;
}
.dip h3 { font-size: 1.12rem; margin-bottom: .4rem; line-height: 1.2; }
.dip p { color: var(--ink-mute); font-size: .92rem; font-weight: 500; }
@media (min-width: 720px) { .dip-grid { grid-template-columns: repeat(2, 1fr); } }

.caregiver-card {
  max-width: 52rem; margin-inline: auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: clamp(1.8rem, 5vw, 3.4rem);
}
.caregiver-card h2 { margin-top: .4rem; }
.caregiver-card p { color: var(--ink-soft); margin-top: 1.1rem; }
.caregiver-card .edu-list { margin: 1.5rem 0 .4rem; }
.caregiver-card .edu-list li { color: var(--ink-soft); font-size: 1rem; }
.caregiver-card .edu-list li span { color: var(--clay); }
.caregiver-card .btn { margin-top: 1.4rem; }
