/* Página de perfil de especialista (especialista.html) */
.esp {
    --navy: #0C5578;
    --navy-2: #1579a8;
    --navy-ink: #0a3d56;
    --pink: #E8A2A8;
    --pink-d: #c9737b;
    --cream: #FAF5F2;
    --cream-2: #F3E9E4;
    --line: #ece4df;
    --text: #5b6672;
    --muted: #97a1ab;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Lato", system-ui, sans-serif;
    font-family: var(--sans);
    color: var(--text);
    font-variant-numeric: lining-nums;
    background: #fff;
}
.esp h1, .esp h2, .esp h3, .esp h4 { font-family: var(--serif); color: var(--navy-ink); letter-spacing: -0.01em; }
.esp-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pink-d); margin-bottom: 14px; }
.esp-eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--pink); }

/* ---------- HERO ---------- */
.esp-hero { position: relative; padding: 56px 0 48px; background: radial-gradient(ellipse 45% 70% at 80% 30%, rgba(232, 162, 168, .22), transparent 70%), var(--cream); }
.esp-hero .container { position: relative; z-index: 1; }
.esp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 34px; }
.esp-crumbs a { color: var(--text); text-decoration: none; }
.esp-crumbs a:hover { color: var(--navy); }
.esp-crumbs i { font-size: 9px; }
.esp-hero__text { padding-bottom: 56px; }
.esp-hero .row { margin-bottom: 30px; }
.esp-hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; font-weight: 700; margin: 0 0 18px; }
.esp-hero h1 .pre { display: block; font-style: italic; font-weight: 400; font-size: .5em; color: var(--pink-d); margin-bottom: 6px; letter-spacing: 0; }
.esp-hero__role { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.esp-hero__summary { font-size: 17px; line-height: 1.75; max-width: 560px; margin-bottom: 34px; }
.esp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.esp-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 600px; }
.esp-trust div { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.esp-trust i { color: var(--pink-d); font-size: 15px; }

.esp-portrait { position: relative; max-width: 470px; margin: 0 auto; padding: 0 0 0 28px; }
.esp-portrait__frame { position: absolute; inset: 22px -22px -22px 50px; border: 1.5px solid var(--pink); border-radius: 999px 999px 26px 26px; opacity: .7; }
.esp-portrait__img { position: relative; aspect-ratio: 4/5; border-radius: 999px 999px 26px 26px; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 40px 80px -30px rgba(10, 61, 86, .45); }
.esp-portrait__img img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.esp-portrait__img .mteam__initials { font-family: var(--serif); font-size: 120px; font-weight: 600; }
.esp-float { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 20px 45px -15px rgba(10, 61, 86, .28); display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.esp-float--exp { left: 0; bottom: 38px; }
.esp-float--exp i { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); color: var(--pink-d); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.esp-float--exp strong { display: block; font-family: var(--serif); color: var(--navy-ink); font-size: 17px; line-height: 1.2; }
.esp-float--exp span { font-size: 12.5px; color: var(--muted); }
.esp-float--cat { right: -6px; top: 46px; padding: 10px 16px; border-radius: 40px; font-size: 13px; font-weight: 700; color: var(--navy); }
.esp-float--cat i { color: var(--pink-d); }

/* ---------- BOTONES ---------- */
.esp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 40px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .2px; text-decoration: none; border: 1.5px solid transparent; transition: all .25s ease; cursor: pointer; white-space: nowrap; }
.esp-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -12px rgba(12, 85, 120, .6); }
.esp-btn--primary:hover { background: var(--navy-ink); color: #fff; transform: translateY(-2px); }
.esp-btn--ghost { border-color: rgba(12, 85, 120, .25); color: var(--navy); background: transparent; }
.esp-btn--ghost:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.esp-btn--block { width: 100%; }
.esp-btn--light { background: var(--cream); color: var(--navy); border-color: var(--line); }
.esp-btn--light:hover { background: var(--cream-2); color: var(--navy); }
.esp-btn--wa { background: #25D366; color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .6); }
.esp-btn--wa:hover { background: #1fb75a; color: #fff; }
.esp-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.esp-btn .fa-arrow-right { transition: transform .2s; }
.esp-btn:hover .fa-arrow-right { transform: translateX(3px); }

/* ---------- CREDENCIALES ---------- */
.esp-facts { position: relative; z-index: 2; background: #fff; border-radius: 22px; box-shadow: 0 25px 60px -25px rgba(10, 61, 86, .22); display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 0; }
.esp-fact { display: flex; align-items: center; gap: 16px; padding: 28px 32px; }
.esp-fact + .esp-fact { border-left: 1px solid var(--line); }
.esp-fact i { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.esp-fact strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--navy-ink); line-height: 1.15; }
.esp-fact span { font-size: 13.5px; color: var(--muted); }

/* ---------- CUERPO ---------- */
.esp-main { padding: 150px 0 90px; background: #fff; }
.esp-sec { margin-bottom: 64px; scroll-margin-top: 110px; }
.esp-sec:last-child { margin-bottom: 0; }
.esp-sec h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; margin: 0 0 22px; line-height: 1.15; }
.esp-lead { font-size: 19px; line-height: 1.75; color: #3f4b57; margin-bottom: 18px; }
.esp-bio p { font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.esp-bio b, .esp-lead b { color: var(--navy); font-weight: 700; }
.esp-quote { position: relative; margin: 32px 0; padding: 34px 36px 30px 92px; background: var(--cream); border-radius: 22px; }
.esp-quote::before { content: "\201C"; position: absolute; left: 28px; top: 4px; font-family: var(--serif); font-size: 110px; line-height: 1; color: var(--pink); }
.esp-quote p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--navy-ink); margin: 0 0 12px; }
.esp-quote cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink-d); }


.esp-process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.esp-process::before { content: ""; position: absolute; top: 25px; left: 12%; right: 12%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--pink) 0 6px, transparent 6px 12px); }
.esp-step { position: relative; text-align: center; }
.esp-step::before { counter-increment: step; content: "0" counter(step); position: relative; z-index: 1; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--pink); color: var(--navy-ink); font-family: var(--serif); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.esp-step h4 { font-size: 17px; margin: 0 0 6px; }
.esp-step p { font-size: 14px; line-height: 1.55; margin: 0; }

.esp-location { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.esp-location > div { padding: 28px 30px; display: flex; gap: 16px; align-items: flex-start; }
.esp-location > div + div { border-left: 1px solid var(--line); }
.esp-location > div > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--cream); color: var(--pink-d); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.esp-location h4 { font-size: 18px; margin: 0 0 4px; }
.esp-location p { font-size: 14.5px; margin: 0 0 6px; line-height: 1.55; }
.esp-location a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.esp-location a:hover { text-decoration: underline; }

.esp-extra { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 22px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.esp-extra:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 25px 50px -25px rgba(10, 61, 86, .6); }
.esp-extra > i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.esp-extra strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 2px; }
.esp-extra span { font-size: 14px; opacity: .85; }
.esp-extra .fa-arrow-right { margin-left: auto; background: none; width: auto; height: auto; }

/* ---------- FORMULARIO ---------- */
.esp-aside { position: sticky; top: calc(var(--esp-top, 90px) + var(--esp-subnav, 64px) + 20px); transition: top .3s ease; }
.esp-form { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 40px 80px -40px rgba(10, 61, 86, .35); overflow: hidden; scroll-margin-top: 110px; }
.esp-form__head { padding: 28px 30px 22px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.esp-form__avatar { position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--pink); }
.esp-form__avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.esp-form__avatar .mteam__initials { font-family: var(--serif); font-size: 21px; }
.esp-form__head h3 { font-size: 23px; margin: 0 0 2px; }
.esp-form__head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.esp-steps-bar { display: flex; gap: 8px; padding: 18px 30px 0; }
.esp-steps-bar div { flex: 1; }
.esp-steps-bar span { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; transition: background .3s; }
.esp-steps-bar small { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; transition: color .3s; }
.esp-steps-bar .active span { background: var(--navy); }
.esp-steps-bar .active small { color: var(--navy); }
.esp-form__body { padding: 22px 30px 28px; }
.esp-pane { display: none; animation: espFade .35s ease; }
.esp-pane.active { display: block; }
@keyframes espFade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.esp-field { margin-bottom: 16px; }
.esp-field label, .esp-label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-ink); margin-bottom: 7px; letter-spacing: .2px; }
.esp-field .opt { color: var(--muted); font-weight: 400; }
.esp-input { width: 100%; height: 50px; border: 1px solid #e3e7ec; border-radius: 12px; padding: 0 15px; font-family: var(--sans); font-size: 15px; color: #26323d; background: #fff; transition: border-color .2s, box-shadow .2s; }
.esp-input::placeholder { color: #b3bcc5; }
textarea.esp-input { height: auto; min-height: 104px; padding: 13px 15px; resize: vertical; line-height: 1.55; }
select.esp-input { appearance: auto; cursor: pointer; }
.esp-input:hover { border-color: #cfd6dd; }
.esp-input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(21, 121, 168, .1); }
.esp-input.is-invalid { border-color: #d9505e; box-shadow: 0 0 0 4px rgba(217, 80, 94, .08); }
.esp-form .iti { width: 100%; display: block; }
.esp-form .iti input.esp-input { padding-left: 92px; }
.esp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esp-choice label { margin: 0; cursor: pointer; }
.esp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.esp-choice span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 1px solid #e3e7ec; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--text); transition: all .2s; }
.esp-choice span i { color: var(--muted); transition: color .2s; }
.esp-choice label:hover span { border-color: #cfd6dd; }
.esp-choice input:checked + span { border-color: var(--navy); background: rgba(12, 85, 120, .05); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.esp-choice input:checked + span i { color: var(--navy); }
.esp-choice input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.esp-choice.is-invalid span { border-color: #d9505e; }
.esp-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.55; margin: 4px 0 20px; cursor: pointer; }
.esp-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
.esp-consent.is-invalid { color: #d9505e; }
.esp-actions { display: flex; gap: 10px; }
.esp-actions .esp-btn--light { flex: 0 0 auto; padding: 0 20px; }
.esp-actions .esp-btn--primary { flex: 1; }
.esp-error { display: none; gap: 10px; align-items: flex-start; background: #fdf0f1; border: 1px solid #f6d3d7; color: #a8323f; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.esp-error.show { display: flex; }
.esp-form__foot { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 16px 30px; background: var(--cream); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.esp-form__foot i { color: var(--pink-d); margin-right: 5px; }
.esp-success { display: none; text-align: center; padding: 44px 32px 38px; }
.esp-success.show { display: block; }
.esp-success__icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 22px; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 0 0 10px rgba(232, 162, 168, .15); animation: espPop .5s ease; }
.esp-success h3 { font-size: 27px; margin-bottom: 10px; }
.esp-success p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.esp-success__again { display: inline-block; margin-top: 16px; color: var(--navy); font-weight: 700; font-size: 14px; background: none; border: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes espPop { 0% { transform: scale(.4); opacity: 0; } 80% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- OTROS ---------- */
.esp-others { padding: 90px 0 100px; background: var(--cream); }
.esp-others__head { text-align: center; margin-bottom: 44px; }
.esp-others__head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; margin: 0; }
.esp-notfound { padding: 120px 0; text-align: center; }

/* ---------- BARRA MÓVIL ---------- */
.esp-mbar { display: none; }
@media (max-width: 991px) {
    .esp-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -10px rgba(10, 61, 86, .2); transform: translateY(110%); transition: transform .3s ease; }
    .esp-mbar.show { transform: none; }
    .esp-mbar__who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
    .esp-mbar__who .esp-form__avatar { width: 40px; height: 40px; box-shadow: none; }
    .esp-mbar__who .esp-form__avatar .mteam__initials { font-size: 14px; }
    .esp-mbar__who strong { display: block; font-family: var(--serif); color: var(--navy-ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .esp-mbar__who span { font-size: 12px; color: var(--muted); }
    .esp-mbar .esp-btn { height: 46px; padding: 0 20px; font-size: 14px; }
    body.esp-mbar-on .floating-whatsapp-btn { bottom: 90px !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199px) {
    .esp-fact { padding: 22px 22px; }
}
@media (max-width: 991px) {
    .esp-hero { padding-top: 36px; }
    .esp-hero__text { padding-bottom: 40px; }
    .esp-portrait { max-width: 380px; margin-bottom: 30px; }
    .esp-facts { grid-template-columns: 1fr; }
    .esp-fact + .esp-fact { border-left: none; border-top: 1px solid var(--line); }
    .esp-main { padding-top: 110px; }
    .esp-aside { position: static; }
    .esp-process { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .esp-process::before { display: none; }
}
@media (max-width: 767px) {
    .esp-svc { grid-template-columns: 1fr; }
    .esp-location { grid-template-columns: 1fr; }
    .esp-location > div + div { border-left: none; border-top: 1px solid var(--line); }
    .esp-quote { padding: 70px 24px 24px; }
    .esp-quote::before { top: 0; left: 22px; }
    .esp-quote p { font-size: 19px; }
}
@media (max-width: 575px) {
    .esp-hero__ctas .esp-btn { width: 100%; }
    .esp-float--cat { right: 0; top: 24px; }
    .esp-float--exp { bottom: 22px; padding: 10px 14px; }
    .esp-portrait { padding-left: 14px; }
    .esp-portrait__frame { inset: 16px -12px -14px 30px; }
    .esp-form__head, .esp-form__body, .esp-steps-bar { padding-left: 20px; padding-right: 20px; }
    .esp-sec { margin-bottom: 50px; }
    .esp-main { padding-bottom: 60px; }
}

/* =====================================================================
   MEJORAS: sticky real, menú de secciones, animaciones, FAQ, fechas, CTA
   ===================================================================== */

/* El tema pone overflow-x:hidden en html/body/#smooth-*, lo que anula position:sticky.
   "clip" recorta igual pero sin crear contenedor de scroll. */
html.esp-page, html.esp-page body, .esp-page #smooth-wrapper, .esp-page #smooth-content { overflow-x: clip !important; }
.esp-page main { overflow: clip !important; }

/* Entrada del hero */
.esp-in { animation: espUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.esp-in--2 { animation-delay: .12s; }
.esp-in--3 { animation-delay: .24s; }
@keyframes espUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }



/* Aparición al hacer scroll */
.esp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.esp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .esp-in, .esp-facts.esp-in { animation: none; }
    .esp-reveal { opacity: 1; transform: none; transition: none; }
}

/* Botones extra */
.esp-btn--sm { height: 42px; padding: 0 22px; font-size: 14px; }
.esp-btn--pink { background: var(--pink); color: #fff; box-shadow: 0 14px 30px -12px rgba(232, 162, 168, .8); }
.esp-btn--pink:hover { background: #df8f96; color: #fff; transform: translateY(-2px); }
.esp-btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.esp-btn--glass:hover { background: #fff; color: var(--navy); }
.esp-iconbtn { width: 42px; height: 42px; padding: 0; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .2s; }
.esp-iconbtn:hover { border-color: var(--navy); background: var(--cream); }

/* Menú de secciones */
.esp-subnav { position: sticky; top: var(--esp-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, top .3s; }
.esp-subnav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 12px 30px -20px rgba(10, 61, 86, .35); }
.esp-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.esp-subnav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.esp-subnav__links::-webkit-scrollbar { display: none; }
.esp-subnav__links a { position: relative; padding: 21px 16px; font-size: 14.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.esp-subnav__links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2.5px; border-radius: 3px; background: var(--navy); transform: scaleX(0); transition: transform .3s ease; }
.esp-subnav__links a:hover { color: var(--navy); }
.esp-subnav__links a.active { color: var(--navy-ink); }
.esp-subnav__links a.active::after { transform: scaleX(1); }
.esp-subnav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.esp-subnav__actions .esp-btn { opacity: 0; pointer-events: none; transform: translateX(8px); transition: all .3s; }
.esp-subnav.is-stuck .esp-subnav__actions .esp-btn { opacity: 1; pointer-events: auto; transform: none; }
.esp-main { padding-top: 64px; }
.esp-sec { scroll-margin-top: calc(var(--esp-top, 90px) + 90px); }

/* Botón "Consultar" en cada servicio */

/* Preguntas frecuentes */
.esp-faq { border-top: 1px solid var(--line); }
.esp-faq__item { border-bottom: 1px solid var(--line); }
.esp-faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy-ink); transition: color .2s; }
.esp-faq__item summary::-webkit-details-marker { display: none; }
.esp-faq__item summary:hover { color: var(--navy); }
.esp-faq__icon { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); transition: all .3s; }
.esp-faq__icon::before, .esp-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .3s; }
.esp-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.esp-faq__item[open] .esp-faq__icon { background: var(--navy); border-color: var(--navy); }
.esp-faq__item[open] .esp-faq__icon::before, .esp-faq__item[open] .esp-faq__icon::after { background: #fff; }
.esp-faq__item[open] .esp-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.esp-faq__a { padding: 0 60px 22px 4px; animation: espFade .35s ease; }
.esp-faq__a p { margin: 0; font-size: 15.5px; line-height: 1.75; }

/* Selector rápido de fechas */
.esp-dates { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.esp-dates label { margin: 0; cursor: pointer; }
.esp-dates input { position: absolute; opacity: 0; pointer-events: none; }
.esp-dates span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 70px; border: 1px solid #e3e7ec; border-radius: 14px; transition: all .2s; }
.esp-dates small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.esp-dates b { font-family: var(--serif); font-size: 21px; color: var(--navy-ink); line-height: 1.1; }
.esp-dates__other i { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.esp-dates label:hover span { border-color: #cfd6dd; }
.esp-dates input:checked + span { background: var(--navy); border-color: var(--navy); box-shadow: 0 10px 22px -10px rgba(12, 85, 120, .7); }
.esp-dates input:checked + span small, .esp-dates input:checked + span b, .esp-dates input:checked + span i { color: #fff; }
.esp-dates input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.esp-dates.is-invalid span { border-color: #d9505e; }
.esp-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Resumen tras enviar */
.esp-summary { text-align: left; background: var(--cream); border-radius: 16px; padding: 6px 18px; margin-bottom: 20px; }
.esp-summary div { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14.5px; color: var(--navy-ink); font-weight: 600; }
.esp-summary div + div { border-top: 1px solid var(--line); }
.esp-summary i { width: 18px; color: var(--pink-d); text-align: center; }

/* Llamado final */
.esp-cta { padding: 0 0 90px; background: #fff; }
.esp-cta__box { position: relative; overflow: hidden; display: flex; align-items: center; gap: 36px; padding: 44px 52px; border-radius: 30px; background: linear-gradient(120deg, var(--navy-ink) 0%, var(--navy) 55%, var(--navy-2) 100%); }
.esp-cta__box::before { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 162, 168, .35), transparent); }
.esp-cta__photo { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); }
.esp-cta__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.esp-cta__photo .mteam__initials { font-family: var(--serif); font-size: 38px; }
.esp-cta__text { position: relative; flex: 1; }
.esp-cta__text .esp-eyebrow { color: #f5c3c7; margin-bottom: 8px; }
.esp-cta__text .esp-eyebrow::before { background: #f5c3c7; }
.esp-cta__text h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 8px; }
.esp-cta__text p { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.6; margin: 0; max-width: 520px; }
.esp-cta__btns { position: relative; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* Aviso flotante */
.esp-toast { position: fixed; left: 50%; bottom: 30px; z-index: 2000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy-ink); color: #fff; font-size: 14px; font-weight: 700; padding: 13px 22px; border-radius: 40px; box-shadow: 0 15px 35px -10px rgba(0, 0, 0, .4); transition: all .3s ease; }
.esp-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1199px) {
    .esp-cta__box { flex-wrap: wrap; }
    .esp-cta__btns { flex-direction: row; width: 100%; padding-left: 156px; }
}
@media (max-width: 991px) {

    .esp-subnav__actions .esp-btn { display: none; }
    .esp-main { padding-top: 44px; }
    .esp-cta__box { padding: 36px 30px; gap: 22px; }
    .esp-cta__btns { padding-left: 0; }
}
@media (max-width: 575px) {
    .esp-subnav__links a { padding: 18px 11px; font-size: 13.5px; }
    .esp-subnav__links a::after { left: 11px; right: 11px; }
    .esp-subnav__inner { min-height: 56px; gap: 8px; }
    .esp-iconbtn { width: 38px; height: 38px; }
    .esp-dates { grid-template-columns: repeat(3, 1fr); }
    .esp-faq__item summary { font-size: 17px; padding: 18px 2px; }
    .esp-faq__a { padding-right: 10px; }
    .esp-cta__box { flex-direction: column; text-align: center; padding: 34px 22px; }
    .esp-cta__text .esp-eyebrow { justify-content: center; }
    .esp-cta__text p { margin: 0 auto; }
    .esp-cta__btns { flex-direction: column; width: 100%; }
    .esp-cta__btns .esp-btn { width: 100%; }
    .esp-toast { bottom: 90px; }
}

/* =====================================================================
   FORMACIÓN Y EXPERIENCIA
   ===================================================================== */
.esp-cred { position: relative; overflow: hidden; isolation: isolate; padding: 40px 40px 36px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, #fff 0%, var(--cream) 100%); }
.esp-cred::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 162, 168, .28), transparent); }
.esp-cred__head h2 { margin: 0 0 30px; }
.esp-cred__list { list-style: none; padding: 0; margin: 0 0 32px; }
.esp-cred__list li { position: relative; display: flex; align-items: center; gap: 20px; padding-bottom: 18px; }
.esp-cred__list li:last-child { padding-bottom: 0; }
.esp-cred__list li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--pink) 0 5px, transparent 5px 10px); }
.esp-cred__icon { position: relative; z-index: 1; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #fff, 0 14px 26px -10px rgba(12, 85, 120, .7); }
.esp-cred__list li > div { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.esp-cred__list li:hover > div { transform: translateX(6px); border-color: rgba(232, 162, 168, .6); box-shadow: 0 18px 36px -24px rgba(10, 61, 86, .4); }
.esp-cred__list small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink-d); margin-bottom: 4px; }
.esp-cred__list strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--navy-ink); }
.esp-cred__focus { border-top: 1px solid var(--line); padding-top: 26px; }
.esp-cred__label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.esp-cred__focus ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.esp-cred__focus li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px 10px 11px; background: #fff; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; font-weight: 700; color: var(--navy-ink); transition: all .25s ease; }
.esp-cred__focus li i { width: 22px; height: 22px; border-radius: 50%; background: rgba(232, 162, 168, .2); color: var(--pink-d); font-size: 10px; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.esp-cred__focus li:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(10, 61, 86, .45); }
.esp-cred__focus li:hover i { background: var(--navy); color: #fff; }

/* =====================================================================
   SERVICIOS
   ===================================================================== */
.esp-svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.esp-svc-head h2 { margin: 0; }
.esp-svc-head__count { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }
.esp-svc-head__count b { font-family: var(--serif); font-size: 30px; color: var(--navy-ink); line-height: 1; }

.esp-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.esp-svc__card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 260px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: opacity .7s ease var(--delay, 0ms), transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease; }
.esp-svc__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, var(--navy-ink) 0%, var(--navy) 60%, var(--navy-2) 100%); opacity: 0; transition: opacity .45s ease; }
.esp-svc__card.esp-reveal.is-in:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 60px -30px rgba(10, 61, 86, .6); }
.esp-svc__card:hover::before { opacity: 1; }
.esp-svc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.esp-svc__icon { width: 58px; height: 58px; border-radius: 18px; background: var(--cream); color: var(--navy); font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background .4s, color .4s, transform .4s; }
.esp-svc__card:hover .esp-svc__icon { background: var(--pink); color: #fff; transform: rotate(-6deg) scale(1.06); }
.esp-svc__num { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 1.2px #d9cdc7; transition: -webkit-text-stroke-color .4s; }
.esp-svc__card:hover .esp-svc__num { -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
.esp-svc__body h3 { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; transition: color .4s; }
.esp-svc__body p { font-size: 14.5px; line-height: 1.7; margin: 0; transition: color .4s; }
.esp-svc__card:hover .esp-svc__body h3 { color: #fff; }
.esp-svc__card:hover .esp-svc__body p { color: rgba(255, 255, 255, .8); }
.esp-svc__cta { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; transition: color .4s; }
.esp-svc__cta i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(12, 85, 120, .25); font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all .35s ease; }
.esp-svc__card:hover .esp-svc__cta { color: #fff; }
.esp-svc__card:hover .esp-svc__cta i { background: var(--pink); border-color: var(--pink); color: #fff; transform: translateX(4px); }
.esp-svc__ghost { position: absolute; z-index: -1; right: -18px; bottom: -34px; font-size: 150px !important; color: rgba(12, 85, 120, .035); transform: rotate(-12deg); pointer-events: none; transition: color .45s, transform .6s ease; }
.esp-svc__card:hover .esp-svc__ghost { color: rgba(255, 255, 255, .07); transform: rotate(-4deg) scale(1.08); }
.esp-svc__badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 6px 14px; border-radius: 30px; background: rgba(232, 162, 168, .22); color: #ffd9dc; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.esp-svc__badge i { font-size: 10px; color: var(--pink); }

/* Servicio destacado (el primero) */
.esp-svc__card--featured { grid-column: 1 / -1; min-height: 0; padding: 38px 40px; border-color: transparent; box-shadow: 0 34px 60px -34px rgba(10, 61, 86, .65); }
.esp-svc__card--featured::before { opacity: 1; }
.esp-svc__card--featured::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 162, 168, .35), transparent); }
.esp-svc__card--featured .esp-svc__icon { background: var(--pink); color: #fff; }
.esp-svc__card--featured .esp-svc__num { -webkit-text-stroke-color: rgba(255, 255, 255, .4); }
.esp-svc__card--featured .esp-svc__body h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); }
.esp-svc__card--featured .esp-svc__body p { color: rgba(255, 255, 255, .82); font-size: 15.5px; max-width: 520px; }
.esp-svc__card--featured .esp-svc__cta { color: #fff; height: 50px; padding: 0 8px 0 24px; margin-top: 26px; border-radius: 40px; background: var(--pink); box-shadow: 0 14px 30px -12px rgba(232, 162, 168, .8); }
.esp-svc__card--featured .esp-svc__cta i { border: none; background: rgba(255, 255, 255, .22); }
.esp-svc__card--featured:hover .esp-svc__cta i { background: #fff; color: var(--pink-d); }
.esp-svc__card--featured .esp-svc__ghost { font-size: 240px !important; right: 10px; bottom: -60px; color: rgba(255, 255, 255, .06); }

/* Último servicio a lo ancho cuando el número es impar */
.esp-svc__card--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 24px; }
.esp-svc__card--wide .esp-svc__top { display: contents; }
.esp-svc__card--wide .esp-svc__num { order: 0; font-size: 40px; }
.esp-svc__card--wide .esp-svc__icon { order: 1; flex-shrink: 0; }
.esp-svc__card--wide .esp-svc__body { order: 2; flex: 1; }
.esp-svc__card--wide .esp-svc__cta { order: 3; margin: 0; padding: 0; align-self: center; flex-shrink: 0; }
.esp-svc__card--wide .esp-svc__ghost { display: none; }

/* Ayuda */
.esp-svc-help { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 24px; border-radius: 20px; border: 1.5px dashed rgba(232, 162, 168, .7); background: var(--cream); }
.esp-svc-help__icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--pink-d); font-size: 19px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -12px rgba(10, 61, 86, .4); }
.esp-svc-help strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy-ink); margin-bottom: 2px; }
.esp-svc-help div span { font-size: 14px; }
.esp-svc-help .esp-btn { margin-left: auto; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .esp-svc__card, .esp-svc__card::before, .esp-svc__icon, .esp-svc__ghost { transition: none; }
}
@media (max-width: 767px) {
    .esp-cred { padding: 30px 22px 26px; border-radius: 22px; }
    .esp-cred__list li { gap: 14px; }
    .esp-cred__icon { width: 48px; height: 48px; font-size: 17px; }
    .esp-cred__list li:not(:last-child)::before { left: 23px; top: 48px; }
    .esp-cred__list li > div { padding: 14px 16px; }
    .esp-cred__list strong { font-size: 17px; }
    .esp-svc-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .esp-svc { grid-template-columns: 1fr; }
    .esp-svc__card { min-height: 0; padding: 24px; }
    .esp-svc__card--featured { padding: 30px 24px; }
    .esp-svc__card--wide { flex-direction: column; align-items: stretch; gap: 0; }
    .esp-svc__card--wide .esp-svc__top { display: flex; margin-bottom: 24px; }
    .esp-svc__card--wide .esp-svc__icon { order: 0; }
    .esp-svc__card--wide .esp-svc__num { order: 1; font-size: 46px; }
    .esp-svc__card--wide .esp-svc__body { padding-right: 0; }
    .esp-svc__card--wide .esp-svc__cta { margin-top: auto; padding-top: 22px; align-self: flex-start; }
    .esp-svc-help { flex-wrap: wrap; padding: 20px; }
    .esp-svc-help > div { flex: 1; min-width: 0; }
    .esp-svc-help .esp-btn { width: 100%; margin-left: 0; }
}

/* El tema fuerza "p, span, a { font-size: 15px !important }" en <= 768px.
   Aquí se restauran los tamaños propios del perfil. */
@media (max-width: 768px) {
    .esp .esp-eyebrow { font-size: 11.5px !important; }
    .esp .esp-hero h1 .pre { font-size: .5em !important; }
    .esp .esp-crumbs a, .esp .esp-crumbs span { font-size: 13px !important; }
    .esp .esp-hero__summary { font-size: 16px !important; }
    .esp .esp-float span { font-size: 12px !important; }
    .esp .esp-fact span { font-size: 13px !important; }
    .esp .esp-subnav__links a { font-size: 13.5px !important; }
    .esp .esp-lead { font-size: 17px !important; }
    .esp .esp-bio p { font-size: 15.5px !important; }
    .esp .esp-quote p { font-size: 19px !important; }
    .esp .esp-cred__label { font-size: 12px !important; }
    .esp .esp-cred__icon { font-size: 17px !important; }
    .esp .esp-svc-head__count { font-size: 13px !important; }
    .esp .esp-svc__icon { font-size: 20px !important; }
    .esp .esp-svc__num { font-size: 42px !important; }
    .esp .esp-svc__badge { font-size: 11px !important; }
    .esp .esp-svc__body p { font-size: 14.5px !important; }
    .esp .esp-svc__cta { font-size: 14px !important; }
    .esp .esp-svc-help div span { font-size: 14px !important; }
    .esp .esp-step p { font-size: 14px !important; }
    .esp .esp-faq__a p { font-size: 15px !important; }
    .esp .esp-location p { font-size: 14.5px !important; }
    .esp .esp-location a { font-size: 14px !important; }
    .esp .esp-extra span { font-size: 14px !important; }
    .esp .esp-cta__text p { font-size: 15px !important; }
    .esp .esp-form__head p { font-size: 13.5px !important; }
    .esp .esp-field .opt { font-size: 13px !important; }
    .esp .esp-choice span { font-size: 14px !important; }
    .esp .esp-consent span { font-size: 13px !important; }
    .esp .esp-count span { font-size: 12px !important; }
    .esp .esp-error span { font-size: 14px !important; }
    .esp .esp-form__foot span { font-size: 12px !important; }
    .esp .esp-success p { font-size: 15px !important; }
    .esp .esp-mbar__who span { font-size: 12px !important; }
}

/* El tema fuerza en <= 768px "button { min-height:48px; padding:14px 24px; border-radius:12px; font-size:16px; width:auto }" (!important).
   Se restauran los botones propios del perfil. */
@media (max-width: 768px) {
    .esp button { min-height: 0 !important; }
    .esp .esp-btn { padding: 0 26px !important; border-radius: 40px !important; font-size: 15px !important; }
    .esp .esp-btn--block { width: 100% !important; }
    .esp .esp-actions .esp-btn--light { padding: 0 20px !important; }
    .esp .esp-iconbtn { width: 38px !important; padding: 0 !important; border-radius: 50% !important; font-size: 15px !important; }
    .esp .esp-success__again { padding: 0 !important; border-radius: 0 !important; font-size: 14px !important; }
}

/* Formulario de consulta: si es más alto que la pantalla, se desplaza dentro de su tarjeta */
@media (min-width: 992px) {
    .esp-aside .esp-form {
        max-height: calc(100vh - (var(--esp-top, 90px) + var(--esp-subnav, 64px) + 40px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #E8A2A8 transparent;
    }
    .esp-aside .esp-form::-webkit-scrollbar { width: 6px; }
    .esp-aside .esp-form::-webkit-scrollbar-thumb { background: #E8A2A8; border-radius: 6px; }
    .esp-aside .esp-form::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
    .esp-aside .esp-form__head { position: sticky; top: 0; z-index: 2; }
}
