/* =====================================================================
   Gabinete Tudela - hoja de estilos principal
   Para cambiar colores o tipografía, edita las variables de :root.
   ===================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #17067a;          /* color principal (botones, títulos) */
  --navy-dark: #0d0345;
  --purple: #8955c0;        /* color secundario (bandas moradas) */
  --purple-dark: #6d3ca1;
  --purple-soft: #f1eaf9;
  --cream: #f8f5f0;
  --gray: #f6f6f8;
  --ink: #1a1a1a;           /* titulares */
  --text: #5d6370;          /* texto */
  --line: #e7e3ee;
  --white: #fff;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --radius-sm: 16px;
  --container: 1340px;
  --shadow: 0 10px 40px rgba(23, 6, 122, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.125rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip:focus { left: 10px; top: 10px; color: #fff; }
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--navy); color: #fff;
  font: 500 .9rem/1 var(--font); letter-spacing: .02em;
  padding: 1.05em 1.7em; border-radius: 48px; border: 0; cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--purple); color: #fff; }
.btn--purple { background: var(--purple); }
.btn--purple:hover { background: var(--navy); }

.badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--purple); color: #fff;
  font-size: .82rem; line-height: 1; padding: .55em 1.1em; border-radius: 30px; margin-bottom: 1.1rem;
}
.badge::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.badge--light { background: #fff; color: var(--navy); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--purple, .section--navy, .section--cream {
  margin: 0 clamp(8px, 1.5vw, 24px); border-radius: var(--radius);
}
.section--purple { background: var(--purple); color: rgba(255,255,255,.88); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--cream { background: var(--cream); }
.section--purple h2, .section--purple h3, .section--purple h4, .section--purple h5,
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head h2 { color: var(--navy); }
.section--purple .section__head h2 { color: #fff; }
.lead { font-size: 1.12rem; }

.img-round { border-radius: var(--radius); width: 100%; object-fit: cover; }
.grid-2 > *, .layout > *, .testi > *, .faq-wrap > *, .profile > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--purple); color: #fff; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: .5em; color: #fff; }
.topbar__info a:hover { color: var(--cream); }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
}
.social a:hover { background: #fff; color: var(--purple); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.header__logo img { width: 140px; height: auto; }
.nav { margin: 0 auto; }
.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a {
  display: block; padding: 12px 16px; color: var(--ink);
  font-size: .86rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}
.nav__item > a:hover, .nav__item > a[aria-current="page"] { color: var(--purple); }
.nav__toggle { display: none; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  list-style: none; margin: 0; padding: 12px; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: .95rem; }
.nav__sub a:hover { background: var(--purple-soft); color: var(--navy); }

.header__cta { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.header__cta-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem; transition: background .25s; }
.header__cta:hover .header__cta-icon { background: var(--purple); }
.header__cta-text { display: flex; flex-direction: column; line-height: 1.2; font-weight: 500; }
.header__cta-text small { color: var(--text); font-weight: 400; font-size: .78rem; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--gray); border-radius: 50%; cursor: pointer; padding: 0 12px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero portada ---------- */
.hero { padding: 0 clamp(8px, 1.5vw, 24px); }
.hero__media { position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; min-height: clamp(560px, 78vh, 760px); display: flex; align-items: flex-end; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__card {
  position: relative; margin: clamp(16px, 4vw, 56px); max-width: 560px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 52px);
}
.hero__card h1 { margin-bottom: .35em; }
.hero__card p { color: var(--ink); font-size: 1.1rem; }
.hero__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.hero__list li { display: flex; gap: .6em; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.hero__list .i { color: var(--purple); margin-top: .3em; }

.marquee { margin: 0 clamp(8px, 1.5vw, 24px); background: var(--purple); color: #fff; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; padding: 0 1.4em; white-space: nowrap; display: flex; align-items: center; gap: 2.8em; }
.marquee__track span::after { content: "●"; font-size: .45em; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Por qué confiar ---------- */
.why { display: grid; grid-template-columns: 1fr minmax(260px, 420px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.why__img { position: relative; }
.why__img img.photo { border-radius: 50% 50% var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.why__img .origami { position: absolute; width: 90px; top: -40px; right: -10px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
.why__col { display: grid; gap: 40px; }
.feature { display: grid; gap: 10px; }
.feature__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-size: 1.6rem; }
.feature h3 { font-size: 1.35rem; margin: 6px 0 0; }
.feature p { margin: 0; }

/* ---------- Tarjetas de servicios (carrusel) ---------- */
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.5) transparent; }
.card-svc { scroll-snap-align: start; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, background .3s; }
.card-svc:hover { transform: translateY(-6px); background: rgba(255,255,255,.22); }
.card-svc img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-svc__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-svc h3 { font-size: 1.35rem; margin: 0; color: #fff; }
.card-svc a { margin-top: auto; color: #fff; display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .92rem; }
.card-svc a:hover { color: var(--cream); }
.cards-foot { text-align: center; margin-top: 44px; }

/* ---------- Testimonios ---------- */
.testi { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.testi__img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.quotes { display: grid; gap: 24px; }
.quote { background: var(--cream); border-radius: var(--radius); padding: 34px 36px; margin: 0; }
.quote .i { font-size: 2rem; color: var(--purple); }
.quote blockquote { margin: 12px 0 16px; font-size: 1.15rem; color: var(--ink); line-height: 1.55; }
.quote figcaption { font-weight: 600; color: var(--navy); }
.stars { color: #e7a524; letter-spacing: 2px; margin-left: .5em; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-side img { border-radius: var(--radius); margin: 24px 0; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.faq-side h3 { font-size: 1.3rem; }
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border-radius: var(--radius-sm); padding: 0 26px; transition: background .3s; }
.section--purple .faq details { background: rgba(255,255,255,.14); }
.section--purple .faq details[open] { background: rgba(255,255,255,.22); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; font-size: 1.18rem; color: var(--ink); }
.section--purple .faq summary { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.2rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; }
.faq details p:last-child { margin: 0; }
.faq--light details { background: var(--cream); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__img { position: relative; }
.post-card__img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.post-card__date { position: absolute; left: 20px; bottom: -22px; background: var(--navy); color: #fff; border-radius: 14px; padding: 8px 14px; text-align: center; line-height: 1.1; font-size: .8rem; }
.post-card__date strong { display: block; font-size: 1.3rem; font-weight: 500; }
.post-card__body { padding: 40px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.3rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--purple); }
.post-card p { font-size: .95rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .92rem; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  margin: 0 clamp(8px, 1.5vw, 24px); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(23,6,122,.78), rgba(137,85,192,.35)), url("/assets/img/banner.jpg") center/cover;
  color: #fff; padding: clamp(70px, 10vw, 130px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { max-width: 700px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .9rem; margin-top: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: #fff; opacity: .85; }
.crumbs a:hover { opacity: 1; color: #fff; }

/* ---------- Listado de servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.svc { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); display: flex; flex-direction: column; }
.svc img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s; }
.svc:hover img { transform: scale(1.05); }
.svc__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc__num { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--navy); border-radius: 30px; padding: 4px 14px; font-weight: 600; font-size: .85rem; }
.svc h3 { font-size: 1.4rem; margin: 0; }
.svc p { margin: 0; font-size: .97rem; }
.svc .more { margin-top: auto; padding-top: 8px; }

/* ---------- Página de detalle con barra lateral ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 60px); align-items: start; }
.prose > img, .prose .cover { border-radius: var(--radius); margin-bottom: 36px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--navy); margin-top: 1.4em; }
.prose h3 { color: var(--navy); margin-top: 1.4em; }
.prose h4 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--purple); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--purple-soft); color: var(--navy); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.situations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 30px 0 10px; }
.situation { background: var(--cream); border-radius: var(--radius-sm); padding: 26px 26px 22px; }
.situation h4 { font-size: 1.15rem; color: var(--navy); margin: 0 0 .6em; display: flex; gap: .5em; align-items: baseline; }
.situation h4 span { color: var(--purple); font-size: .85rem; font-weight: 600; }
.situation p { font-size: .96rem; margin-bottom: .6em; }
.situation p:first-of-type { color: var(--ink); font-weight: 500; }
.situation p:last-child { margin: 0; }

.info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.info-strip > div { background: var(--purple-soft); border-radius: var(--radius-sm); padding: 28px; }
.info-strip h3 { font-size: 1.35rem; margin-top: 0; }
.info-strip p:last-child { margin: 0; }

.aside { display: grid; gap: 24px; position: sticky; top: 110px; }
.aside__box { background: var(--cream); border-radius: var(--radius); padding: 30px; }
.aside__title { font-size: 1.4rem; color: var(--navy); }
.aside__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside__menu a { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 13px 16px; color: var(--ink); font-size: .97rem; }
.aside__menu a:hover, .aside__menu a[aria-current="page"] { background: var(--navy); color: #fff; }
.aside__call { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; }
.aside__call p { margin: 0 0 4px; opacity: .85; }
.aside__call a { color: #fff; font-size: 1.8rem; font-weight: 500; }
.aside .form__row { grid-template-columns: 1fr; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .88rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(137,85,192,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.check input { margin-top: .3em; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.form__note { font-size: .78rem; line-height: 1.5; margin: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-card { background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 30px; justify-content: center; }
.member { text-align: center; }
.member__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; aspect-ratio: 400/532; background: var(--gray); }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.member:hover .member__img img { transform: scale(1.04); }
.member h3 { font-size: 1.45rem; margin-bottom: .2em; }
.member h3 a { color: var(--ink); }
.member h3 a:hover { color: var(--purple); }
.member p { margin: 0; font-size: .95rem; }

/* ---------- Ficha de profesional ---------- */
.profile { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.profile__img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile__data { margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 28px; }
.profile__data h2 { font-size: 1.4rem; color: var(--navy); }
.profile__data dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.profile__data dt { color: var(--ink); font-weight: 600; }
.profile__data dd { margin: 0; }

/* ---------- Cifras ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 30px 0; }
.stat strong { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; color: var(--navy); line-height: 1; }
.stat span { color: var(--ink); }

.pill-list { display: grid; gap: 18px; }
.pill-list > div { display: flex; gap: 16px; align-items: flex-start; }
.pill-list .feature__icon { width: 50px; height: 50px; font-size: 1.3rem; }
.pill-list h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.pill-list p { margin: 0; }

/* ---------- Pasos / actividades ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; font-size: .96rem; }
.duo-img { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-img img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.duo-img img:last-child { margin-top: 48px; }

/* ---------- Contacto ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: var(--cream); border-radius: var(--radius); padding: 34px; }
.info-card .feature__icon { margin-bottom: 18px; }
.info-card h2 { font-size: 1.4rem; margin-bottom: .4em; }
.info-card p { margin: 0; }
.info-card a { color: var(--text); }
.info-card a:hover { color: var(--purple); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; height: 100%; background: var(--purple-soft) url("/assets/img/contacto.jpg") center/cover; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { position: relative; background: rgba(255,255,255,.94); border-radius: var(--radius-sm); padding: 26px; max-width: 360px; text-align: center; margin: 20px; }
.map__consent p { font-size: .88rem; }

/* ---------- Banda final de llamada a la acción ---------- */
.cta { margin: 0 clamp(8px, 1.5vw, 24px) clamp(8px, 1.5vw, 24px); border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--purple)); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta p { margin: 8px 0 0; opacity: .85; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.72); margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(56px, 7vw, 90px); }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer .btn--light { color: var(--navy); }
.footer .btn--light:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__about img { width: 150px; margin-bottom: 20px; }
.footer__about p { max-width: 380px; }
.footer__title { color: #fff; font-size: 1.15rem; font-weight: 500; margin-bottom: 1em; }
.footer__list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.social--footer { margin-top: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .88rem; }
.footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1.15rem; opacity: 0; visibility: hidden; transition: .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---------- Artículo del blog ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; margin-bottom: 28px; color: var(--text); }
.article__cover { border-radius: var(--radius); margin-bottom: 40px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__cover--natural { aspect-ratio: auto; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; height: auto; }
.article .prose { font-size: 1.06rem; }
/* Artículos con texto justificado (añade la clase article--justify al <article>) */
.article--justify .prose p, .article--justify .prose li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.article__back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.notice { background: var(--purple-soft); border-left: 4px solid var(--purple); border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__cta-text { display: none; }
  .nav__item > a { padding: 12px 11px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .header__in { gap: 14px; }
  .header__cta { order: 2; }
  .burger { order: 3; margin-left: 0; }
  .header__logo { margin-right: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); margin: 0;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.12);
    padding: 100px 24px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item > a { flex: 1; padding: 16px 4px; font-size: 1rem; }
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 1.1rem; }
  .nav__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .nav__sub { position: static; width: 100%; box-shadow: none; padding: 0 0 12px 10px; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.is-open .nav__sub { display: block; }
  .has-sub:hover .nav__sub { display: none; }
  .has-sub.is-open:hover .nav__sub { display: block; }
  body.menu-open { overflow: hidden; }

  .why { grid-template-columns: 1fr 1fr; }
  .why__img { grid-column: 1 / -1; grid-row: 1; max-width: 420px; margin: 0 auto; }
  .posts, .svc-grid, .steps { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .info-cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar__info li:first-child { display: none; }
  .topbar__in { min-height: 38px; }
  .topbar__info { gap: 4px 16px; }
  .grid-2, .testi, .faq-wrap, .profile, .why, .info-strip { grid-template-columns: 1fr; }
  .why__img { grid-row: auto; }
  .posts, .svc-grid, .steps, .situations, .team { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 620px; }
  .container { padding: 0 16px; }
  .header__in { min-height: 70px; }
  .header__logo img { width: 120px; }
  .duo-img img:last-child { margin-top: 24px; }
}
