/* Spanish site (/es/*) components. Built on the tokens in wk-theme.css. */

.wk-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.wk-menu-toggle .wk-icon { width: 24px; height: 24px; }

.es-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--wk-primary); color: #fff; padding: 0.5rem 1rem; }
.es-skip:focus { left: 1rem; }
.es-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.es-center { text-align: center; margin-top: var(--wk-space-8); }
.es-muted { color: var(--wk-text-secondary); font-size: var(--wk-font-size-sm); }
.es-narrow { max-width: 760px; }
.es-actions { display: flex; flex-wrap: wrap; gap: var(--wk-space-4); justify-content: center; }
.es-link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
#factories[hidden], .wk-factory-empty[hidden], #factoryTable[hidden] { display: none !important; }
.hero.reveal-on-scroll { opacity: 1; transform: none; }

/* ---------- home hero with form ---------- */
.es-home-hero { min-height: auto; padding: var(--wk-space-16) 0 var(--wk-space-20); }
.es-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr); gap: var(--wk-space-10); align-items: center; max-width: 1200px; text-align: left; }
.es-hero-text h1 { text-align: left; }
.hero .es-hero-text p.hero-lead { margin-left: 0; margin-right: 0; }
.es-hero-text .hero-buttons { justify-content: flex-start; }
.es-hero-card { background: var(--wk-white); color: var(--wk-text-primary); border-radius: var(--wk-radius-xl); padding: var(--wk-space-6); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); }
.es-hero-card h2 { font-size: var(--wk-font-size-xl); color: var(--wk-primary); margin: 0 0 var(--wk-space-2); }
.hero .es-hero-card p { opacity: 1; color: var(--wk-gray-600); font-size: var(--wk-font-size-sm); margin: 0 0 var(--wk-space-4); max-width: none; line-height: 1.5; }
.hero .es-hero-card .es-hero-card-note { margin: var(--wk-space-3) 0 0; text-align: center; font-size: var(--wk-font-size-xs); color: var(--wk-gray-700); }
.es-hero-card .wk-form-group { margin-bottom: var(--wk-space-3); }

/* ---------- stats band ---------- */
.es-stats { position: relative; margin-top: calc(-1 * var(--wk-space-12)); z-index: 2; }
.es-stats .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wk-space-4); max-width: 960px; margin: 0 auto; }
.es-stats .stat-item { min-width: 0; background: var(--wk-white); border: 1px solid var(--wk-gray-200); box-shadow: var(--wk-shadow-lg); backdrop-filter: none; padding: var(--wk-space-5) var(--wk-space-3); text-align: center; border-radius: var(--wk-radius-lg); }
.es-stats .stat-item:hover { background: var(--wk-white); }
.es-stats .stat-number { display: block; color: var(--wk-primary); text-shadow: none; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1; margin-bottom: var(--wk-space-2); }
.es-stats .stat-label { color: var(--wk-text-secondary); font-size: var(--wk-font-size-xs); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* ---------- section header + grids + cards ---------- */
.wk-section-subtitle { color: var(--wk-text-secondary); max-width: 720px; margin: var(--wk-space-3) auto 0; }
.es-grid { display: grid; gap: var(--wk-space-6); }
.es-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.es-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.es-card { display: flex; flex-direction: column; gap: var(--wk-space-2); background: var(--wk-white); border: 1px solid var(--wk-gray-200); border-radius: var(--wk-radius-lg); padding: var(--wk-space-6); color: var(--wk-text-primary); text-decoration: none; position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.es-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--wk-primary-light); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.es-card:hover { transform: translateY(-4px); box-shadow: var(--wk-shadow-lg); border-color: var(--wk-primary-light); }
.es-card:hover::after { transform: scaleX(1); }
.es-card h3 { font-size: var(--wk-font-size-lg); color: var(--wk-primary); margin: 0; }
.es-card p { color: var(--wk-text-secondary); margin: 0; line-height: 1.6; }
.es-card-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--wk-info-light); color: var(--wk-primary); font-size: 26px; margin-bottom: var(--wk-space-2); }
.es-card--compact { padding: var(--wk-space-5); }
.es-card--compact h3 { font-size: var(--wk-font-size-base); }
.es-card--compact p { font-size: var(--wk-font-size-sm); }
.es-card-more { margin-top: auto; padding-top: var(--wk-space-2); font-size: var(--wk-font-size-sm); font-weight: 600; color: var(--wk-primary-light); }
@media (prefers-reduced-motion: reduce) { .es-card, .es-card::after { transition: none; } .es-card:hover { transform: none; } }

/* ---------- steps ---------- */
.es-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--wk-space-6); counter-reset: step; position: relative; }
.es-step { background: var(--wk-white); border: 1px solid var(--wk-gray-200); border-radius: var(--wk-radius-lg); padding: var(--wk-space-6); display: flex; flex-direction: column; gap: var(--wk-space-3); }
.es-step h3 { margin: 0 0 var(--wk-space-2); color: var(--wk-primary); font-size: var(--wk-font-size-lg); }
.es-step p { margin: 0; color: var(--wk-text-secondary); line-height: 1.6; }
.es-step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--wk-primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- rabbis ---------- */
.es-rabbis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wk-space-6); }
.es-rabbi .rabbi-image { height: 260px; background: var(--wk-gray-100); }
.es-rabbi .rabbi-image img { object-position: center 20%; }
.es-rabbi .rabbi-info { padding: var(--wk-space-5); }
.es-rabbi .rabbi-info h3 { margin: 0 0 var(--wk-space-1); font-size: var(--wk-font-size-lg); color: var(--wk-primary); }
.es-rabbi .rabbi-title { font-weight: 600; color: var(--wk-accent-text); margin-bottom: var(--wk-space-2); }
.es-rabbi .rabbi-info p { color: var(--wk-text-secondary); margin: 0 0 var(--wk-space-2); font-size: var(--wk-font-size-sm); line-height: 1.6; }
.es-rabbi .es-rabbi-years { font-weight: 600; color: var(--wk-text-primary); }

/* ---------- FAQ ---------- */
.es-faq { max-width: 860px; margin: 0 auto; display: grid; gap: var(--wk-space-3); }
.es-faq .faq-item { margin: 0; text-align: left; padding: var(--wk-space-4) var(--wk-space-5); }
.es-faq .faq-item summary { margin: 0; }
.es-faq .faq-item p { margin: 0; }

/* ---------- inner page hero ---------- */
.es-page-hero { background: linear-gradient(135deg, var(--wk-primary) 0%, #172554 100%); color: #fff; padding: var(--wk-space-16) 0 var(--wk-space-12); text-align: center; }
.es-page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 auto var(--wk-space-4); max-width: 900px; }
.es-page-lead { max-width: 760px; margin: 0 auto var(--wk-space-6); font-size: var(--wk-font-size-lg); line-height: 1.7; opacity: 0.95; }
.es-crumbs { font-size: var(--wk-font-size-sm); opacity: 0.85; margin-bottom: var(--wk-space-4); }
.es-crumbs a { color: #fff; text-decoration: underline; }
.es-page-hero .wk-btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }

/* ---------- panels, lists ---------- */
.es-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wk-space-8); }
.es-panel { background: var(--wk-white); border: 1px solid var(--wk-gray-200); border-radius: var(--wk-radius-lg); padding: var(--wk-space-8); }
.es-panel h2 { color: var(--wk-primary); font-size: var(--wk-font-size-2xl); margin: 0 0 var(--wk-space-4); }
.es-panel h2:not(:first-child) { margin-top: var(--wk-space-8); }
.es-panel h3 { color: var(--wk-primary); margin: var(--wk-space-6) 0 var(--wk-space-2); }
.es-panel p { line-height: 1.7; color: var(--wk-text-primary); }
.es-panel--note { margin-top: var(--wk-space-8); background: var(--wk-gray-50); }
.es-panel--note h3 { margin-top: 0; display: flex; align-items: center; gap: var(--wk-space-2); }
.es-list { padding-left: 1.2rem; margin: 0 0 var(--wk-space-4); line-height: 1.7; }
.es-list li { margin-bottom: var(--wk-space-2); }
.es-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--wk-space-2) var(--wk-space-6); margin: var(--wk-space-4) 0; }
.es-dl dt { font-weight: 600; color: var(--wk-text-secondary); }
.es-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .es-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .es-dl dd { margin-bottom: var(--wk-space-3); }
}

/* ---------- CTA ---------- */
.es-cta { background: linear-gradient(135deg, #172554 0%, var(--wk-primary) 100%); color: #fff; text-align: center; padding: var(--wk-space-16) 0; }
.es-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 var(--wk-space-4); }
.es-cta p { max-width: 640px; margin: 0 auto var(--wk-space-6); opacity: 0.95; line-height: 1.7; }
.es-cta .wk-btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }

/* ---------- forms ---------- */
.es-form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--wk-space-8); align-items: start; }
.es-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--wk-space-4); }
.es-form select.wk-form-input { appearance: auto; }
.es-consent { display: flex; gap: var(--wk-space-2); align-items: flex-start; font-size: var(--wk-font-size-sm); color: var(--wk-text-secondary); line-height: 1.5; margin: var(--wk-space-2) 0 var(--wk-space-4); cursor: pointer; }
.es-consent input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; }
.es-form-submit { width: 100%; justify-content: center; }
.es-form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wk-sol-msg { margin-top: var(--wk-space-3); padding: var(--wk-space-3); border-radius: 10px; font-size: var(--wk-font-size-sm); display: none; }
.wk-sol-msg.wk-sol-msg--ok, .wk-sol-msg.wk-sol-msg--err { display: block; }
.wk-sol-msg--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.wk-sol-msg--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.es-side h2 { font-size: var(--wk-font-size-xl); }
.es-side .wk-icon { color: var(--wk-primary); margin-right: 0.35rem; }
.es-mini-steps { padding-left: 1.2rem; line-height: 1.7; }
.es-contact-list { list-style: none; padding: 0; margin: 0 0 var(--wk-space-4); display: grid; gap: var(--wk-space-3); }

/* ---------- company directory ---------- */
.es-search { display: flex; align-items: center; gap: var(--wk-space-3); background: var(--wk-white); border: 2px solid var(--wk-gray-200); border-radius: 999px; padding: var(--wk-space-3) var(--wk-space-5); max-width: 640px; margin: 0 auto var(--wk-space-4); font-size: 1.2rem; color: var(--wk-gray-500); }
.es-search:focus-within { border-color: var(--wk-primary-light); }
.es-search input { flex: 1; border: 0; outline: 0; font-size: var(--wk-font-size-base); background: transparent; color: var(--wk-text-primary); min-width: 0; }
.es-directory-count { text-align: center; color: var(--wk-text-secondary); margin-bottom: var(--wk-space-4); }
.es-directory-table { border: 1px solid var(--wk-gray-200); border-radius: var(--wk-radius-lg); overflow: hidden; background: var(--wk-white); }
.es-directory-head, .es-directory-row { display: grid; grid-template-columns: 2fr 1.5fr 1.3fr 1fr 1fr; gap: var(--wk-space-4); padding: var(--wk-space-3) var(--wk-space-5); align-items: center; }
.es-directory-head { background: var(--wk-gray-50); font-size: var(--wk-font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wk-text-secondary); }
.es-directory-row { border-top: 1px solid var(--wk-gray-200); color: var(--wk-text-primary); text-decoration: none; font-size: var(--wk-font-size-sm); }
.es-directory-row:hover { background: var(--wk-info-light); }
.es-directory-name { font-weight: 600; color: var(--wk-primary); }
.es-directory-empty { display: block; padding: var(--wk-space-8); text-align: center; color: var(--wk-text-secondary); margin: 0; }
.es-status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: var(--wk-font-size-xs); font-weight: 700; background: var(--wk-gray-100); color: var(--wk-gray-600); }
.es-status--valid { background: var(--wk-success-light); color: #065f46; }
.es-status--expiring_soon { background: var(--wk-warning-light); color: var(--wk-accent-text); }
.es-status--expired { background: var(--wk-gray-200); color: var(--wk-gray-600); }

/* ---------- logos on sector pages ---------- */
.es-logos-static { margin-top: var(--wk-space-6); }

/* ---------- legal ---------- */
.es-legal { max-width: 820px; line-height: 1.75; }
.es-legal h2 { color: var(--wk-primary); font-size: var(--wk-font-size-xl); margin: var(--wk-space-8) 0 var(--wk-space-3); }
.es-legal h2:first-child { margin-top: 0; }
.es-table-wrap { overflow-x: auto; }
.es-cookie-table td, .es-cookie-table th { font-size: var(--wk-font-size-sm); vertical-align: top; }
.es-legal-links { margin-bottom: var(--wk-space-2); }
.es-legal-links a, .es-legal-links .es-link-button { color: inherit; }

/* ---------- cookie banner ---------- */
.wk-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 760px; margin: 0 auto; background: var(--wk-white); color: var(--wk-text-primary); border: 1px solid var(--wk-gray-200); border-radius: var(--wk-radius-lg); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); padding: var(--wk-space-5); display: flex; gap: var(--wk-space-4); align-items: center; }
.wk-consent[hidden] { display: none; }
.wk-consent-text { margin: 0; font-size: var(--wk-font-size-sm); line-height: 1.5; flex: 1; }
.wk-consent-text a { color: var(--wk-primary); }
.wk-consent-actions { display: flex; gap: var(--wk-space-2); flex-shrink: 0; }
.wk-consent-btn { border: 2px solid var(--wk-primary); background: var(--wk-white); color: var(--wk-primary); font-weight: 700; border-radius: 999px; padding: 0.55rem 1.25rem; cursor: pointer; font-size: var(--wk-font-size-sm); }
.wk-consent-btn:hover { background: var(--wk-primary); color: #fff; }

/* ---------- dark theme ---------- */
[data-theme="dark"] .es-card, [data-theme="dark"] .es-step, [data-theme="dark"] .es-panel, [data-theme="dark"] .es-directory-table,
[data-theme="dark"] .es-search, [data-theme="dark"] .es-stats .stat-item, [data-theme="dark"] .es-hero-card, [data-theme="dark"] .wk-consent { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .es-card h3, [data-theme="dark"] .es-panel h2, [data-theme="dark"] .es-step h3, [data-theme="dark"] .es-directory-name,
[data-theme="dark"] .es-stats .stat-number, [data-theme="dark"] .es-legal h2, [data-theme="dark"] .es-hero-card h2 { color: #93c5fd; }
[data-theme="dark"] .es-panel p, [data-theme="dark"] .es-directory-row { color: #e2e8f0; }
[data-theme="dark"] .es-directory-head, [data-theme="dark"] .es-panel--note { background: #0f172a; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .es-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .es-rabbis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .es-hero-grid { grid-template-columns: 1fr; max-width: 720px; }
    .es-steps { grid-auto-flow: row; grid-auto-columns: auto; }
}
@media (max-width: 768px) {
    .es-grid-3, .es-two-col, .es-form-layout { grid-template-columns: 1fr; }
    .es-stats { margin-top: calc(-1 * var(--wk-space-8)); }
    .es-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wk-space-3); }
    .es-panel { padding: var(--wk-space-5); }
    .es-directory-head { display: none; }
    .es-directory-row { grid-template-columns: 1fr; gap: var(--wk-space-1); padding: var(--wk-space-4); }
    .es-directory-row [data-label]::before { content: attr(data-label) ': '; color: var(--wk-text-secondary); font-size: var(--wk-font-size-xs); }
    .wk-consent { flex-direction: column; align-items: stretch; }
    .wk-consent-actions .wk-consent-btn { flex: 1; }
    .wk-top-bar-right { flex-wrap: wrap; justify-content: center; row-gap: 0.35rem; max-width: 100%; }
}
@media (max-width: 560px) {
    .es-grid-4, .es-rabbis, .es-form-grid { grid-template-columns: 1fr; }
    .es-home-hero { padding-top: var(--wk-space-10); }
    .es-hero-text h1, .es-hero-text { text-align: center; }
    .es-hero-text .hero-buttons { justify-content: center; }
    .hero .es-hero-text p.hero-lead { margin-left: auto; margin-right: auto; }
}

/* footer column titles are h2 for a correct heading order; keep the footer look */
.wk-footer h2.wk-footer-title { font-size: var(--wk-font-size-base); margin-top: 0; line-height: 1.3; }
.wk-consent-text, .es-consent { color: var(--wk-gray-700); }

/* ======================= Phase C: motion & layout ======================= */

/* Hero: one photo with a very slow zoom, text fades in on load */
.es-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.es-motion .es-hero-img, .es-hero-img { animation: esHeroZoom 24s ease-out both; }
.es-hero-text > *, .es-hero-card { animation: esFadeUp 0.7s ease both; }
.es-hero-text > :nth-child(2) { animation-delay: 0.08s; }
.es-hero-text > :nth-child(3) { animation-delay: 0.16s; }
.es-hero-text > :nth-child(4) { animation-delay: 0.24s; }
.es-hero-card { animation-delay: 0.2s; }
@keyframes esHeroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes esFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Header: transparent over the home hero (desktop), solid after scrolling */
@media (min-width: 769px) {
    .es-has-hero .wk-header { margin-bottom: -82px; transition: background-color 0.25s ease, box-shadow 0.25s ease; }
    .es-has-hero .wk-header:not(.is-solid) { background: transparent; box-shadow: none; }
    .es-has-hero .wk-header:not(.is-solid) .wk-logo-title,
    .es-has-hero .wk-header:not(.is-solid) .wk-nav-link { color: #fff; }
    .es-has-hero .wk-header:not(.is-solid) .wk-logo-tagline { color: rgba(255, 255, 255, 0.8); }
    .es-has-hero .wk-header:not(.is-solid) .wk-nav-link::after { background: #fff; }
    .es-has-hero .wk-logo img { background: #fff; border-radius: 50%; }
    .es-has-hero .es-home-hero { padding-top: calc(82px + var(--wk-space-16)); }
}

/* Logo strip: slow continuous scroll, pauses on hover/focus, logos colour on hover */
.es-marquee { overflow: hidden; margin: var(--wk-space-8) 0 var(--wk-space-10); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.es-marquee-track { display: flex; width: max-content; animation: esMarquee 55s linear infinite; }
.es-marquee:hover .es-marquee-track, .es-marquee:focus-within .es-marquee-track { animation-play-state: paused; }
.es-marquee .es-marquee-set { display: flex; flex-wrap: nowrap; gap: var(--wk-space-6); padding-right: var(--wk-space-6); justify-content: flex-start; }
.es-marquee .company-logo { flex: 0 0 auto; min-width: 170px; }
.es-marquee .company-logo img { filter: none; opacity: 1; }
@keyframes esMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Steps: connector line and numbers light up when the list comes into view */
.es-steps { position: relative; }
.es-steps::before, .es-steps::after { content: ''; position: absolute; top: calc(var(--wk-space-6) + 19px); left: 6%; right: 6%; height: 3px; border-radius: 3px; background: var(--wk-gray-200); z-index: 0; }
.es-steps::after { background: var(--wk-success); transform: scaleX(0); transform-origin: left; transition: transform 1.2s ease; }
.es-steps.is-visible::after { transform: scaleX(1); }
.es-step { position: relative; z-index: 1; }
.es-step-num { transition: background-color 0.4s ease; }
.es-steps.is-visible .es-step-num { background: var(--wk-success); }
.es-steps.is-visible .es-step:nth-child(2) .es-step-num { transition-delay: 0.3s; }
.es-steps.is-visible .es-step:nth-child(3) .es-step-num { transition-delay: 0.6s; }
.es-steps.is-visible .es-step:nth-child(4) .es-step-num { transition-delay: 0.9s; }
.es-steps.is-visible .es-step:nth-child(5) .es-step-num { transition-delay: 1.2s; }
.es-motion .es-step { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.es-motion .es-steps.is-visible .es-step { opacity: 1; transform: none; }
.es-motion .es-steps.is-visible .es-step:nth-child(2) { transition-delay: 0.15s; }
.es-motion .es-steps.is-visible .es-step:nth-child(3) { transition-delay: 0.3s; }
.es-motion .es-steps.is-visible .es-step:nth-child(4) { transition-delay: 0.45s; }
.es-motion .es-steps.is-visible .es-step:nth-child(5) { transition-delay: 0.6s; }
@media (max-width: 1024px) {
    .es-steps::before, .es-steps::after { top: 6%; bottom: 6%; left: calc(var(--wk-space-6) + 19px); right: auto; width: 3px; height: auto; }
    .es-steps::after { transform: scaleY(0); transform-origin: top; }
    .es-steps.is-visible::after { transform: scaleY(1); }
}

/* Contact dock: floating WhatsApp on desktop, call + WhatsApp bar on mobile */
.es-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; background: #0f7a3f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3); transition: transform 0.2s ease; }
.es-wa-float:hover { transform: translateY(-3px); }
.es-mobile-bar { display: none; }
@media (max-width: 768px) {
    .es-wa-float { display: none; }
    .es-mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: var(--wk-white); border-top: 1px solid var(--wk-gray-200); box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12); }
    .es-mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem; font-weight: 700; text-decoration: none; color: var(--wk-primary); }
    .es-mobile-bar a + a { background: #0f7a3f; color: #fff; }
    .es-site { padding-bottom: 56px; }
    .wk-consent { bottom: 72px; }
}
[data-theme="dark"] .es-mobile-bar { background: #1e293b; border-color: #334155; }

/* Large entrance motion stops when the system asks for less motion.
   The logo strip keeps scrolling (it pauses on hover) so every language
   shows the same moving row instead of a stacked grid. */
@media (prefers-reduced-motion: reduce) {
    .es-hero-img, .es-hero-text > *, .es-hero-card { animation: none; }
    .es-steps::after { transition: none; }
}

/* Header button: a shorter label on phones when the language's label is long (L.cta.short). */
.es-cta-short { display: none; }
@media (max-width: 560px) {
    .es-cta-full { display: none; }
    .es-cta-short { display: inline; }
}
