/* Shared page grid. Header, content frames and footer meet the same two axes. */
@font-face { font-family: 'Sacramento'; src: url('assets/fonts/Sacramento-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Allura'; src: url('assets/fonts/Allura-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --content: 1200px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --page-inset: max(var(--page-gutter), calc((100% - var(--content)) / 2));
  --grid-gap: 24px;
  --section-space: clamp(56px, 6vw, 88px);
}
html { scrollbar-gutter: stable; }
body { text-rendering: optimizeLegibility; }
.site-header, .section-pad, .hero, .site-footer, .statement,
.workgroup-page .site-header, .wg-footer {
  padding-inline: var(--page-inset);
}
.site-header { --header-height: 80px; height: var(--header-height); }
.site-header.is-scrolled { --header-height: 72px; }
.brand { flex-shrink: 0; }
.nav-main { gap: clamp(12px, 1.5vw, 22px); }
.hero { padding-top: clamp(24px, 3vw, 44px); padding-bottom: var(--section-space); }
.hero-art.org-flow { width: 100%; margin-inline: 0; padding: clamp(20px, 2.5vw, 34px); border-radius: 24px; box-shadow: 0 16px 38px #15304614, 0 2px 6px #15304608, inset 0 1px #fff; }
.flow-heading { align-items: center; }
.flow-kicker { color: #526a79; }
.flow-heading-desc, .flow-footnote { color: #596f7e; }
.flow-company { background: linear-gradient(145deg,#365c71,#17394e); box-shadow: 0 8px 16px #15304624, inset 0 1px 2px #ffffff55; }
.flow-bubble { box-shadow: 0 8px 18px #15304612, inset 0 1px #fff; }
.flow-bubble:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #1530461a; }
.flow-area { color: #617b8b; }
.flow-services small { color: #5b7383; }
/* Aligned baselines inside each row, even when a heading wraps. */
.flow-bubble h3 { min-height: 2.3em; margin-bottom: 9px; }
.flow-services { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); width: 100%; gap: 7px; }
.flow-services > span { align-self: start; }
.home-links-grid, .service-grid, .plan-grid { gap: var(--grid-gap); }
.home-links-grid a, .service-card, .plan-card { border-radius: 16px; box-shadow: 0 3px 12px #15304606; }
.home-links-grid a { padding: 24px; }
.home-links-grid strong { min-height: 1.25em; }
.home-links-grid small { max-width: 100%; }
.subpage-intro { padding-block: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.subpage-intro h1 { max-width: 1040px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.subpage-intro p { margin-top: 18px; }
.intro, .services, .approach, .plans, .contact, .home-links { padding-block: var(--section-space); }
.intro, .section-heading, .approach-head { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--grid-gap); }
.intro-main, .intro-side, .section-heading > *, .approach-head > * { min-width: 0; }
.intro h2, .section-heading h2, .approach-title h2 { font-size: clamp(34px, 3.7vw, 48px); line-height: 1.12; letter-spacing: -.05em; }
.section-heading .eyebrow, .approach-title .eyebrow, .intro-main .eyebrow { margin-bottom: 16px; }
.heading-note, .approach-summary { margin: 34px 0 0; max-width: none; padding: 0; }
.intro-side { padding-top: 34px; }
.section-label { line-height: 1.5; }
.service-card { padding: 24px; }
.service-card h3 { min-height: 2.5em; }
.service-card p { margin-top: 10px; }
.plan-card { padding: 26px 24px 24px; }
.plan-for { min-height: 3.2em; }
.plan-note, .plan-footnote { max-width: none; margin-left: calc((100% - 2 * var(--grid-gap)) / 3 + var(--grid-gap)); }
.plan-badge { right: 24px; }
.approach-steps { column-gap: var(--grid-gap); }
.approach-step, .approach-step + .approach-step { padding: 24px 0; border-left: 0; grid-template-columns: 30px minmax(0,1fr); gap: 12px; }
.approach-step p { max-width: none; }
.sectors { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,9fr); gap: var(--grid-gap); }
.sector-list { justify-content: flex-start; }
.visual-mosaic { gap: var(--grid-gap); }
.visual-mosaic figure { border-radius: 16px; }
.contact { gap: var(--grid-gap); grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.contact-form { border-radius: 18px; padding: 28px; box-shadow: 0 12px 30px #06172516; }
.contact .section-label { margin-bottom: 30px; }
.statement { justify-content: flex-start; }
.statement-inner { text-align: left; }
.statement-side { right: var(--page-inset); }
.site-footer { grid-template-columns: minmax(190px,1fr) minmax(220px,1.4fr) auto auto; column-gap: var(--grid-gap); padding-block: 26px; }
.site-footer > p { margin: 0; }
/* Equipo stays on the identical outer grid and preserves its single-screen overview. */
.wg-main { width: min(var(--content), calc(100% - 2 * var(--page-gutter))); }
.workgroup-page .site-header { --header-height: 74px; height: var(--header-height); flex-basis: var(--header-height); }
.wg-row { gap: var(--grid-gap); }
.wg-row::after { left: calc((100% - 3 * var(--grid-gap)) / 8); right: calc((100% - 3 * var(--grid-gap)) / 8); }
.wg-map { isolation: isolate; }
.wg-card { background: #153046; border-color: #a6bcc8; box-shadow: 0 5px 14px #15304616, inset 0 1px #ffffff30; padding: 14px 18px 17px; border-radius: 19px; color: #fff; }
.wg-card > img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; object-fit: cover; object-position: center 40%; opacity: .88; border-radius: inherit; z-index: 0; transition: opacity .25s; }
.wg-card::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(180deg,#102b416b 0%,#102b410a 37%,#102b419c 65%,#102b41f2 100%); pointer-events: none; }
.wg-card-top, .wg-card-title, .wg-card-sub { position: relative; z-index: 2; }
.wg-card-top { color: #fff; text-shadow: 0 1px 5px #102b4180; }
.wg-card-top > span:first-child { background: #102b415c; border: 1px solid #ffffff2e; border-radius: 99px; padding: 4px 8px; backdrop-filter: blur(6px); }
.wg-plus { display: grid; place-items: center; color: #fff; background: #102b415c; border: 1px solid #ffffff40; border-radius: 50%; width: 25px; height: 25px; }
.wg-card-title { margin-top: auto; width: 100%; font-weight: 700; text-shadow: 0 1px 8px #102b4180; }
.wg-card-sub { color: #e4edf1; margin-top: 5px; font-size: 11px; }
.wg-card:hover { border-color: #79a8bc; box-shadow: 0 10px 24px #15304626; }
.wg-card:hover > img { opacity: 1; }
.wg-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wg-dialog > img { border-radius: 12px; object-fit: cover; height: 190px; }
.wg-footer { padding-block: 9px; }
@media (max-width: 1100px) and (min-width: 1001px) { .brand { gap: 8px; }.nav-main { gap: 10px; }.nav-main > a:not(.nav-cta):not(.nav-whatsapp) { font-size: 11px; }.nav-whatsapp { padding: 10px; }.nav-cta { padding: 12px; } }
@media (max-width: 1000px) {
 .site-header { --header-height: 72px; }.site-header.is-scrolled { --header-height: 64px; }
 .nav-main { top: var(--header-height); padding-inline: var(--page-inset); }
 .intro, .section-heading, .approach-head { grid-template-columns: 1fr; gap: 22px; }
 .heading-note, .approach-summary, .intro-side { margin: 0; padding-top: 0; max-width: 640px; }
 .intro .section-label, .section-heading .section-label, .approach-head .section-label { margin: 0; }
 .site-footer { grid-template-columns: minmax(0,1fr) auto; row-gap: 18px; }
 .site-footer > p { grid-column: 1/-1; grid-row: 2; }
 .plan-note, .plan-footnote { margin-left: 0; }
 .wg-card { padding: 12px 14px; }
}
@media (max-width: 700px) {
 :root { --page-gutter: 20px; --grid-gap: 14px; }
 .hero-art.org-flow { padding: 20px 16px; border-radius: 18px; }
 .flow-heading { align-items: flex-start; }
 .flow-bubble { border-radius: 17px; padding: 18px 14px; }
 .flow-bubble h3 { font-size: 14px; }
 .flow-services strong { font-size: 11px; }
 .flow-services small { font-size: 10px; }
 .home-links-grid a { padding: 20px; }
 .contact { grid-template-columns: 1fr; gap: 30px; }
 .contact-form { padding: 22px; }
 .sectors { grid-template-columns: 1fr; }
 .statement-side { position: static; margin-left: auto; align-self: flex-end; font-size: 7px; }
 .wg-main { width: calc(100% - 2 * var(--page-gutter)); }
 .workgroup-page .site-header { --header-height: 62px; }
 .wg-map { column-gap: 10px; }
 .wg-card { padding: 7px 10px 10px; border-radius: 13px; }
 .wg-card > img { inset: 0; width: 100%; height: 100%; opacity: .88; object-position: center 35%; }
 .wg-card::before { background: linear-gradient(180deg,#102b4161 0%,#102b410a 25%,#102b416e 54%,#102b41ed 100%); }
 .wg-card-title { width: 100%; font-size: 13px; line-height: 1.2; }
 .wg-card-top { font-size: 8px; }
 .wg-card-top > span:first-child { padding: 3px 6px; }
 .wg-plus { width: 20px; height: 20px; font-size: 13px; }
 .wg-card-sub { display: none; }
 .wg-intro h1 { font-size: clamp(23px,5.6vw,32px); }
 .wg-bottom small { font-size: 9px; line-height: 1.3; }
}
@media (max-width: 430px) {
 .statement { display: block; }.statement-side { margin-top: 30px; }
 .visual-mosaic { grid-template-columns: 1fr; }
 .site-footer { column-gap: 12px; }
 .brand-logo { width: 58px; }
 .brand { gap: 10px; }
}
@media (max-width: 360px) {
 .wg-card-title { font-size: 12px; }.wg-card { padding: 6px 8px 7px; }.wg-plus { display: none; }.wg-card-top > span:first-child { padding: 2px 5px; }
 .flow-bubble h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .wg-card > img { transition: none; } }
.flow-bubble h3 { min-height: 1.3em; margin-bottom: 10px; }
.flow-bubble { padding-block: 18px; }
.flow-services { min-height: 0; grid-template-rows: repeat(3, minmax(0, 1fr)); }
@media (max-width: 850px) { .flow-services { grid-template-rows: repeat(3, auto); }.flow-bubble h3 { min-height: 2.3em; } }
@media (max-width: 360px) { .flow-bubble h3 { min-height: 0; } }
/* Optical alignment: fill the logo box rather than centering its transparent square. */
.brand-logo { object-fit: cover; }
@media (max-width: 700px) { html { scrollbar-gutter: auto; } }
/* Rustic lounge: one compact closing composition, walnut, linen and brass. */
.site-footer.lounge-footer { display: block; position: relative; isolation: isolate; overflow: hidden; min-height: 0; padding: 0; color: #f1e8d9; background: #292d28; border-top: 3px solid #b39367; }
.lounge-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 90% 20%,#b58b4c22,transparent 60%),repeating-linear-gradient(92deg,#e7d7b903 0 1px,transparent 1px 5px); }
.lounge-art { position: absolute; width: min(40vw,440px); height: 100%; right: -15px; top: 0; stroke: #bea275; stroke-width: .7; opacity: .24; z-index: -1; pointer-events: none; }
.lounge-main { width: min(1200px,88%); margin: auto; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 36px; align-items: center; padding: 45px 0 36px; }
.lounge-brand .brand { color: #f1e8d9; gap: 10px; }.lounge-brand .brand-logo { width: 58px; height: 48px; }.lounge-brand .brand-name small { color: #c9ba9e; }.lounge-brand > p { margin: 14px 0 8px; font-size: 11px; color: #d1c9b9; line-height: 1.7; }.lounge-brand > span { font-size: 8px; letter-spacing: .12em; color: #bfa980; line-height: 1.7; }
.lounge-message { padding-left: 30px; border-left: 1px solid #cbb68b40; }.lounge-message h2 { margin: 0; font-weight: 400; font-size: clamp(25px,2.7vw,38px); line-height: 1.25; letter-spacing: -.035em; color: #f1e8d9; }.lounge-message em { color: #d4bd92; font-family: Georgia,'Times New Roman',serif; font-weight: 400; }
.lounge-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; white-space: nowrap; padding: 13px 17px; border: 1px solid #c2a47680; border-radius: 2px; font-size: 12px; color: #f1e8d9; text-decoration: none; background: #c2a47609; transition: background .25s,color .25s; }.lounge-cta span { font-size: 22px; line-height: 1; transition: transform .25s; }.lounge-cta:hover { background: #d4bd92; color: #292d28; }.lounge-cta:hover span { transform: translate(2px,-2px); }
.lounge-bottom { width: min(1200px,88%); margin: auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 17px 0; border-top: 1px solid #cbb68b30; font-size: 10px; color: #c2bbaa; line-height: 1.6; }.lounge-bottom nav { display: flex; gap: 24px; }.lounge-bottom a { color: #d9d0be; text-decoration: none; text-underline-offset: 4px; }.lounge-bottom a:hover { text-decoration: underline; }.lounge-top { display: inline-flex; gap: 12px; align-items: center; }.lounge-top span { font-size: 17px; }
.lounge-footer a:focus-visible { outline: 2px solid #d4bd92; outline-offset: 5px; }
@media(max-width:850px) { .lounge-main { grid-template-columns: 1fr 1.4fr; gap: 25px; }.lounge-cta { grid-column: 2; justify-self: start; margin-top: -12px; }.lounge-brand { grid-row: span 2; } }
@media(max-width:540px) { .lounge-main { width: calc(100% - 40px); padding: 28px 0 25px; grid-template-columns: 1fr auto; gap: 22px 10px; }.lounge-brand { grid-row: auto; grid-column: 1/-1; }.lounge-brand .brand-logo { width: 51px; height: 42px; }.lounge-brand > p { display: inline-block; margin: 10px 0 0; }.lounge-brand > span { display: block; margin-top: 4px; font-size: 8px; }.lounge-message { grid-column: 1/-1; padding: 0; border: 0; }.lounge-message h2 { font-size: clamp(25px,6.5vw,34px); }.lounge-cta { grid-column: 1/-1; margin: 0; padding: 12px 16px; }.lounge-bottom { width: calc(100% - 40px); flex-wrap: wrap; gap: 12px; padding: 16px 0; font-size: 9px; }.lounge-bottom nav { order: -1; width: 100%; gap: 25px; font-size: 11px; }.lounge-art { width: 80%; height: 65%; top: 40px; right: -80px; opacity: .16; } }
@media(prefers-reduced-motion:reduce) { .lounge-cta,.lounge-cta span { transition: none; } }
/* Two desktop screens: diagram first, complete navigation and footer second. */
@media(min-width:1100px) and (min-height:650px) {
 .home-page { --home-footer-height: 225px; }
 .home-page .site-header { --header-height: 80px; }
 .home-page .site-header.is-scrolled { --header-height: 72px; }
 .home-page .hero { min-height: calc(100svh - 80px); }
 .home-page .home-links { min-height: 0; height: calc(100svh - 72px - var(--home-footer-height)); padding-block: clamp(16px,2.4vh,28px); display: flex; flex-direction: column; }
 .home-page .home-links .section-label { flex-shrink: 0; }
 .home-page .home-links h2 { flex-shrink: 0; font-size: clamp(27px,3.8vh,40px); line-height: 1.08; margin: 12px 0; }
 .home-page .home-links-intro { flex-shrink: 0; font-size: 13px; line-height: 1.5; margin: 0 0 16px; max-width: 900px; }
 .home-page .home-links-grid { flex: 1; min-height: 0; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 14px; }
 .home-page .home-links-grid a { min-height: 0; padding: clamp(14px,1.9vh,22px); }
 .home-page .home-links-grid strong { margin-top: clamp(8px,1.5vh,18px); font-size: 21px; }
 .home-page .home-links-grid small { margin-top: 7px; font-size: 11px; line-height: 1.45; }
 .home-page .lounge-main { padding-block: 27px 24px; }
}
@media(min-width:1100px) and (min-height:650px) and (max-height:720px) {
 .home-page .lounge-main { padding-block: 14px 12px; }
 .home-page .lounge-brand > p { margin-top: 6px; }
 .home-page .lounge-bottom { padding-block: 12px; }
 .home-page .home-links-grid a { padding: 12px 14px; }
 .home-page .home-links-grid strong { margin-top: 6px; font-size: 19px; }
}

/* Local commerce: introduction and readable service navigation. */
.home-links h2 { max-width: 900px; margin-bottom: 22px; }
.home-links-intro { max-width: 810px; margin: 0 0 36px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.75; }
.home-links-grid a { min-height: 220px; }
.home-links-grid strong { max-width: 95%; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; }
.home-links-grid small { font-size: 14px; line-height: 1.65; }
@media (max-width: 600px) {
 .home-links-intro { margin-bottom: 26px; }
 .home-links-grid a { min-height: 195px; }
 .home-links-grid strong { font-size: 21px; }
}
/* Ocean identity: infinity, coastal blue and flowing linework. */
:root { --ink: #103451; --olive: #087fae; --cream: #e8f4fa; --paper: #f6fbff; --orange: #087cae; --line: #bcd8e8; --muted: #4b697f; }
body { background: #f6fbff; }
.site-header { background: #f8fcfff2; border-bottom-color: #c5dfed; backdrop-filter: blur(16px); }
.brand-logo, .lounge-brand .brand-logo { object-fit: contain; width: 70px; height: 40px; filter: drop-shadow(0 3px 4px #087cae18); }
.brand-name { color: #103e69; }.brand-name small { color: #3f7897; }
.nav-cta, .button-dark, .flow-company { background: linear-gradient(120deg,#0b3a75,#076bb1 65%,#0896bb); color: #fff; }
.scroll-progress { background: linear-gradient(90deg,#0750b5,#32d5de); }
.hero { position: relative; isolation: isolate; background: linear-gradient(135deg,#e9f5fbe8,#f3faffd9),url('assets/concon-coast.webp') center 62% / cover; }
.hero-art.org-flow { background: linear-gradient(150deg,#ffffffed,#e5f3faed); border: 1px solid #b9d9ec; box-shadow: 0 18px 50px #164f7917,inset 0 1px #fff; }
.flow-kicker, .flow-area { color: #176b9b; }
.flow-bubble { background: linear-gradient(145deg,#fff,#edf7fd); border-color: #c1deee; }
.flow-bubble:hover { border-color: #159dc8; box-shadow: 0 10px 28px #087fae20; }
.flow-bubble h3 { color: #103e69; }.flow-services strong { color: #056dad; }
.flow-connectors { color: #168fbe; }.flow-connectors path { stroke: #329ac2; stroke-width: 1.7; }
.home-links { position: relative; isolation: isolate; background: #f5fbff; }
.home-links::before, .subpage-intro::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('assets/ocean-waves.svg') center top / max(100%, 900px) 240px no-repeat; opacity: .65; pointer-events: none; }
.home-links-grid a { background: linear-gradient(145deg,#fff,#f1f9ff); border-color: #c4dfef; box-shadow: 0 5px 18px #103e6906; }
.home-links-grid a:hover { border-color: #168fc1; box-shadow: 0 12px 28px #086ba91a; }
.home-links-grid b, .home-links-grid span, .section-label > span:first-child { color: #087fb3; }
.subpage-intro { position: relative; isolation: isolate; background: linear-gradient(120deg,#e7f4fbed,#f5fbffe3),url('assets/concon-coast.webp') center 60% / cover; }
.service-card, .plan-card { border-color: #c3dfee; }
.site-footer.lounge-footer { background: linear-gradient(100deg,#062440f2,#064777de),url('assets/concon-coast.webp') center 65% / cover; color: #edfaff; border-top: 2px solid #2fb7d0; }
.lounge-footer::before { background: url('assets/ocean-waves.svg') center bottom / cover; opacity: .55; animation: ocean-drift 16s ease-in-out infinite alternate; }
.lounge-art { stroke: #63d4ee; opacity: .4; }
.lounge-art .wave-line { transform-box:fill-box; transform-origin:center; will-change:transform; animation:lounge-wave-swell var(--wave-duration,9s) ease-in-out infinite alternate; }
.lounge-art .wave-line-a { --wave-duration:8s; animation-delay:-1s; }
.lounge-art .wave-line-b { --wave-duration:10s; animation-delay:-3s; }
.lounge-art .wave-line-c { --wave-duration:12s; animation-delay:-5s; }
@keyframes lounge-wave-swell { 0% { transform:translate(-6px,1px) scaleX(.985); } 50% { transform:translate(0,-1px) scaleX(1.005); } 100% { transform:translate(6px,1px) scaleX(.985); } }

.lounge-brand .brand, .lounge-message h2 { color: #edfaff; }
.lounge-brand .brand-name small, .lounge-brand > p, .lounge-brand > span { color: #b8dceb; }

/* Flecha dibujada como una cinta: gana grosor, sombra y brillo hacia la punta. */
.lounge-message h2 em .phrase-initial { letter-spacing:-.055em; }
.lounge-message h2 .phrase-arrow { display:inline-block; width:clamp(56px,5.8vw,76px); height:.72em; margin-left:0; overflow:visible; vertical-align:-.13em; }
.phrase-arrow-stroke { fill:none; stroke:#65d6e7; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:540px) { .lounge-message h2 em { white-space:nowrap; }.lounge-message h2 .phrase-arrow { width:52px; margin-left:0; } }
.lounge-message h2 em { color: #65d6e7; font-family: 'Sacramento',cursive; font-style: normal; font-weight: 400; font-size: 1.22em; letter-spacing: -.012em; word-spacing: .025em; font-kerning: normal; font-variant-ligatures: common-ligatures contextual; font-feature-settings: 'liga' 1,'calt' 1,'kern' 1; line-height: 1.15; }
.lounge-cta { color: #ecfaff; border-color: #78c5e077; }.lounge-cta span { color: #67d7ed; }
.lounge-bottom { border-top-color: #91d4ec38; color: #c5e4f2; }.lounge-top span { border-color: #8ccfe866; }
.wg-footer { background: #0a3559; color: #dcf4ff; }
:where(a,button,input,textarea):focus-visible { outline-color: #0498c8; }
@keyframes ocean-drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@media (prefers-reduced-motion: reduce) { .hero::before,.hero::after,.subpage-intro::before,.subpage-intro::after,.lounge-footer::before { animation:none!important; }.lounge-art .wave-line { animation:none!important; transform:none!important; will-change:auto; } }
@keyframes lounge-wave-gentle { from { transform:translateX(-2px); } to { transform:translateX(2px); } }
@media (max-width: 700px) { .brand-logo { width: 58px; height: 34px; }.hero { background-position: center; } }
/* Original emblem: crop only its transparent canvas through the display box. */
.site-header .brand, .lounge-brand .brand, .footer-brand { gap: 0; align-items: center; }
.site-header .brand-logo, .lounge-brand .brand-logo, .footer-brand .brand-logo { width: 180px; height: 40px; object-fit: contain; object-position: center; filter: none; }
.site-header .brand-name, .lounge-brand .brand-name { font-size: 11px; font-weight: 750; letter-spacing: 1.2px; line-height: 1.22; }
.site-header .brand-name { color: #124775; }
.site-header .brand-name small { display: inline-block; margin-top: 2px; color: #447892; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; }
.lounge-brand .brand-name { color: #edfaff; }.lounge-brand .brand-name small { color: #b8dceb; font-size: 8px; letter-spacing: 1.4px; }
@media(max-width:700px) { .site-header .brand-logo,.lounge-brand .brand-logo,.footer-brand .brand-logo { width: 156px; height: 35px; } }

/* Fotografía fuera de los fondos: océano vectorial animado, sin JS ni vídeo. */
.hero, .subpage-intro { background-image: linear-gradient(180deg,#e5f6fb 0%,#d4f0f7 54%,#c1eaf3 100%); }
.hero::before, .subpage-intro::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:url('assets/ocean-current.svg') center / 100% 100% no-repeat; opacity:.88; transform:translateY(0); animation:current-swell 22s ease-in-out infinite alternate; }
.hero::after { content:""; position:absolute; inset:auto 0 0; z-index:-1; height:44%; pointer-events:none; background:url('assets/ocean-waves.svg') center bottom / max(100%,900px) 100% no-repeat; opacity:.58; animation:surface-drift 34s linear infinite alternate; }
.subpage-intro::after { background:url('assets/ocean-waves.svg') center / max(100%,900px) 100% no-repeat; opacity:.42; animation:surface-drift 34s linear infinite alternate; }
.site-footer.lounge-footer { background:linear-gradient(120deg,#062b49,#07537b 58%,#063b61); }
.lounge-footer::before { background:url('assets/ocean-current.svg') center / 100% 100% no-repeat; opacity:.48; animation:current-swell 26s ease-in-out infinite alternate; }
@keyframes current-swell { 0% { transform:translate3d(-.5%,0,0) scale(1.01,1); } 100% { transform:translate3d(.5%,-5px,0) scale(1.02,1.01); } }
@keyframes surface-drift { from { background-position:0 50%; } to { background-position:80px 50%; } }
/* Oleaje vectorial: ciclos largos y desplazamiento discreto para una sensación serena. */
.hero::before,.subpage-intro::before { animation:current-swell 38s ease-in-out infinite alternate; }
.hero::after,.subpage-intro::after { animation:surface-drift 52s ease-in-out infinite alternate; }
.lounge-footer::before { animation:current-swell 42s ease-in-out infinite alternate; }
.lounge-art .wave-line { animation:lounge-wave-swell 30s ease-in-out infinite alternate; }
.lounge-art .wave-line-a { animation-delay:-8s; }
.lounge-art .wave-line-b { animation-delay:-18s; }
.lounge-art .wave-line-c { animation-delay:-26s; }
@keyframes current-swell { 0% { transform:translate3d(-.35%,0,0) scale(1.008,1); } 100% { transform:translate3d(.35%,-3px,0) scale(1.012,1.006); } }
@keyframes surface-drift { from { background-position:0 50%; } to { background-position:36px 50%; } }
@keyframes lounge-wave-swell { 0% { transform:translate(-3px,1px) scaleX(.993); } 50% { transform:translate(0,-.5px) scaleX(1); } 100% { transform:translate(3px,1px) scaleX(.993); } }
@media(prefers-reduced-motion:reduce) { .hero::before,.hero::after,.subpage-intro::before,.subpage-intro::after,.lounge-footer::before,.lounge-art .wave-line { animation:none!important; transform:none!important; } }

.flow-bubble h3 { min-height: 2.6em; overflow-wrap: anywhere; }
.service-card.service-local { background: linear-gradient(145deg,#fff,#edf7fd); color: var(--ink); padding: 26px; min-height: 0; }
.service-local-index { color: #087cae; font-size: 12px; font-weight: 700; }
.service-local h3 { margin-top: 16px; font-size: clamp(22px,2vw,28px); min-height: 0; }
.service-local p { color: var(--muted); }
.service-local ul { padding-left: 18px; margin: 18px 0; font-size: 14px; }
.service-local > a { margin-top: auto; padding-top: 16px; color: #076da6; font-size: 13px; font-weight: 700; }
/* Mapa de servicios: ritmo tipográfico y espacios consistentes. */
.flow-grid { column-gap: clamp(12px,1.5vw,20px); row-gap: 28px; }
.flow-bubble { align-items: stretch; justify-content: flex-start; padding: 18px clamp(14px,1.45vw,22px); border-radius: 19px; text-align: left; }
.flow-area { margin-bottom: 8px; font-size: 9px; }
.flow-bubble h3 { min-height: 2.5em; margin: 0 0 14px; font-size: clamp(14px,1.18vw,17px); line-height: 1.22; overflow-wrap: normal; }
.flow-services { gap: 10px; }
.flow-services > span { line-height: 1.35; }
.flow-services strong { font-size: 11px; line-height: 1.35; letter-spacing: .005em; text-transform: none; }
.flow-services small { margin-top: 2px; font-size: 10px; line-height: 1.4; }
@media (max-width: 1000px) { .flow-grid { column-gap: 14px; row-gap: 20px; }.flow-bubble h3 { font-size: 15px; }.flow-services { gap: 9px; }.flow-services strong { font-size: 11px; }.flow-services small { font-size: 10px; } }
@media (max-width: 700px) { .flow-grid { column-gap: 11px; row-gap: 14px; }.flow-bubble { padding: 14px 12px; border-radius: 16px; }.flow-area { font-size: 8px; }.flow-bubble h3 { min-height: 2.4em; margin-bottom: 10px; font-size: 13px; }.flow-services { gap: 8px; }.flow-services strong { font-size: 10px; }.flow-services small { font-size: 9px; } }/* Compacta la relación entre el nombre del área y su primer servicio. */
.flow-bubble h3 { min-height: 1.35em; margin-bottom: 9px; }
.flow-area { margin-bottom: 6px; }
.flow-services { gap: 8px; }
@media (max-width: 700px) { .flow-bubble h3 { min-height: 1.35em; margin-bottom: 8px; }.flow-services { gap: 7px; } }
/* Tarjetas giratorias de servicios */
.flow-grid { perspective:1400px; }
.flow-bubble.flip-card { padding:0; border:0; background:transparent; overflow:visible; box-shadow:none; cursor:pointer; outline:none; }
.flip-inner { position:relative; width:100%; height:100%; min-height:220px; transform-style:preserve-3d; transition:transform .72s cubic-bezier(.2,.72,.2,1); }
.flip-card.is-flipped .flip-inner { transform:rotateY(180deg); }
.flip-face { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; padding:22px; border:1px solid #a9d2e7; border-radius:20px; backface-visibility:hidden; -webkit-backface-visibility:hidden; box-shadow:0 12px 28px #103e6924; }
.flip-front { color:#fff; background:linear-gradient(180deg,#09263b20,#061d36df),url('assets/equipo/area-1.svg') center/cover; }
.flip-front::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--scene); background-size:cover; background-position:center; }
.flip-front h3,.flip-back h3 { min-height:0; margin:8px 0; color:inherit; font-size:clamp(17px,1.55vw,23px); text-transform:uppercase; }
.flip-front .flow-area { color:#d6f5ff; }.flip-hint { margin-top:8px; font-size:9px; font-weight:700; letter-spacing:.14em; opacity:.8; }
.flip-back { transform:rotateY(180deg); justify-content:center; color:#123b58; background:linear-gradient(145deg,#fff,#e7f5fc); text-align:left; }.flip-back h3 { margin:5px 0 12px; }.flip-back ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }.flip-back li strong,.flip-back li span { display:block; }.flip-back li strong { color:#0875ad; font-size:11px; }.flip-back li span { margin-top:2px; color:#587184; font-size:10px; line-height:1.4; }.flip-back .flip-hint { color:#4384a4; }
.flip-card:focus-visible .flip-inner { outline:3px solid #0798c8; outline-offset:4px; border-radius:20px; }
.scene-1 .flip-front { --scene:url('assets/equipo/foto-muebles.webp'); }
.scene-2 .flip-front { --scene:url('assets/equipo/foto-inmuebles.webp'); }
.scene-3 .flip-front { --scene:url('assets/equipo/foto-papeleria.webp'); }
.scene-4 .flip-front { --scene:url('assets/concon-coast.webp'); }
.scene-5 .flip-front { --scene:url('assets/equipo/foto-sistemas-erp.webp'); }
.scene-6 .flip-front { --scene:url('assets/equipo/foto-capacitaciones.webp'); }
.scene-7 .flip-front { --scene:url('assets/equipo/foto-capacitaciones.webp'); }
.scene-8 .flip-front { --scene:url('assets/equipo/foto-sistemas-erp.webp'); }
.flow-grid { grid-template-rows:repeat(2,220px)!important; gap:34px clamp(12px,1.3vw,18px)!important; }
.flow-bubble.flip-card { display:block!important; min-height:0!important; height:220px!important; padding:0!important; border:0!important; border-radius:20px!important; background:transparent!important; transform:none!important; overflow:visible!important; box-shadow:none!important; perspective:1200px; }
.flip-inner { position:relative!important; display:block!important; width:100%!important; height:100%!important; min-height:0!important; transform-style:preserve-3d!important; transition:transform .65s cubic-bezier(.2,.7,.2,1)!important; }
.flip-card.is-flipped .flip-inner { transform:rotateY(180deg)!important; }
.flip-face { position:absolute!important; inset:0!important; width:100%; height:100%; display:flex!important; flex-direction:column; overflow:hidden!important; padding:20px!important; border:1px solid #a9d2e7!important; border-radius:20px!important; backface-visibility:hidden!important; -webkit-backface-visibility:hidden!important; }
.flip-front { z-index:2; justify-content:flex-end!important; color:#fff!important; background-image:linear-gradient(180deg,#09263b10,#061d36dc),var(--scene)!important; background-position:center!important; background-size:cover!important; }
.flip-front::before { content:none!important; }
.flip-back { z-index:1; transform:rotateY(180deg)!important; justify-content:center!important; color:#123b58!important; background:linear-gradient(145deg,#fff,#e7f5fc)!important; }
.flip-area,.flip-face .flow-area { display:block!important; flex:0 0 auto; margin:0 0 8px!important; color:#d6f5ff!important; font-size:9px!important; letter-spacing:.13em; }
.flip-back .flow-area { color:#087cae!important; }
.flip-face h3 { display:block!important; flex:0 0 auto!important; min-height:0!important; margin:0 0 12px!important; color:inherit!important; font-size:clamp(16px,1.45vw,22px)!important; line-height:1.16!important; overflow-wrap:anywhere; }
.flip-back ul { display:grid!important; gap:9px!important; margin:0!important; padding:0!important; list-style:none!important; }
.flip-back li strong,.flip-back li span { display:block!important; }.flip-back li strong { color:#0875ad!important; font-size:11px!important; }.flip-back li span { margin-top:2px!important; color:#587184!important; font-size:10px!important; line-height:1.4!important; }
.flip-front .flip-hint,.flip-back .flip-hint { display:block!important; margin-top:12px!important; color:inherit!important; font-size:9px!important; }
.flip-card:focus-visible .flip-inner { outline:3px solid #0798c8; outline-offset:4px; border-radius:20px; }
@media(max-width:850px){.flow-grid { grid-template-rows:none!important; grid-auto-rows:220px!important; gap:16px!important; }.flow-bubble.flip-card{height:220px!important;}}
@media(max-width:600px){.flow-grid{grid-auto-rows:210px!important;gap:12px!important}.flow-bubble.flip-card{height:210px!important}.flip-face{padding:16px!important}.flip-face h3{font-size:16px!important}}
@media(max-width:360px){.flow-grid{grid-template-columns:1fr!important;grid-auto-rows:210px!important}}
@media(prefers-reduced-motion:reduce){.flip-inner{transition:none!important}}
/* Fotografía cinematográfica común, con encuadre exclusivo por área. */
.flip-front { background-image: linear-gradient(180deg,#09263b10,#061d36d8),url('assets/equipo/servicios-escenas.png') !important; background-size: cover,400% 200% !important; background-repeat:no-repeat !important; }
.scene-1 .flip-front { background-position:center,0% 0% !important; }
.scene-2 .flip-front { background-position:center,33.333% 0% !important; }
.scene-3 .flip-front { background-position:center,66.666% 0% !important; }
.scene-4 .flip-front { background-position:center,100% 0% !important; }
.scene-5 .flip-front { background-position:center,0% 100% !important; }
.scene-6 .flip-front { background-position:center,33.333% 100% !important; }
.scene-7 .flip-front { background-position:center,66.666% 100% !important; }
.scene-8 .flip-front { background-position:center,100% 100% !important; }.scene-8 .flip-front { position:relative; isolation:isolate; background-image:linear-gradient(180deg,#09263b10,#061d36dc)!important; }
.scene-8 .flip-front::before { content:''!important; position:absolute; inset:0; z-index:-1; background-image:url('assets/equipo/servicios-escenas.png'); background-size:400% 200%; background-position:100% 100%; background-repeat:no-repeat; transform:scaleX(-1); }
/* Las tarjetas usan las escenas limpias, sin rótulos incrustados en las fotos. */
.scene-6 .flip-front { background-position:center,33.333% 100% !important; }

/* Las fichas del inicio mantienen un espacio claro entre título y contenido. */
.flip-back {
  justify-content: flex-start !important;
  padding: 18px !important;
}
.flip-back .flow-area {
  margin: 0 0 5px !important;
}
.flip-back h3 {
  margin: 0 0 12px !important;
  font-size: clamp(16px, 1.3vw, 18px) !important;
  line-height: 1.18 !important;
}
.flip-back ul {
  gap: 6px !important;
}
.flip-back .flip-hint {
  margin-top: 8px !important;
  padding-top: 0;
}
/* Cambiar la visibilidad a mitad del giro evita que se trasluzca la otra cara. */
.flip-front { visibility: visible; transition: visibility 0s linear .32s; }
.flip-back { visibility: hidden; transition: visibility 0s linear .32s; }
.flip-card.is-flipped .flip-front { visibility: hidden; }
.flip-card.is-flipped .flip-back { visibility: visible; }
@media (max-width: 600px) {
  .flip-back { padding: 16px !important; }
  .flip-back h3 { margin-bottom: 10px !important; }
  .flip-back ul { gap: 5px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-front, .flip-back { transition-delay: 0s; }
}
/* En teléfonos, una tarjeta por fila evita cortes torpes en nombres largos. */
@media (max-width: 520px) {
 .flow-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
 .flow-bubble { min-height: 220px; padding: 20px; }
 .flow-bubble h3 { font-size: 16px; line-height: 1.2; overflow-wrap: normal; word-break: normal; }
 .flow-bubble .flow-area { font-size: 8px; letter-spacing: .1em; }
}
@media (min-width: 851px) {
 .flow-map { height: 610px; min-height: 610px; }
 .flow-grid { grid-template-rows: repeat(2,220px); gap: 32px 18px; }
}

/* Cada servicio parte en una escena neutra y revela la mejora al interactuar. */
.flip-front { position:relative!important; isolation:isolate!important; background:none!important; }
.flip-front::before, .scene-8 .flip-front::before { content:""!important; position:absolute!important; inset:0!important; z-index:0!important; pointer-events:none!important; background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-image)!important; background-position:center,var(--card-position,center)!important; background-size:cover,cover!important; background-repeat:no-repeat!important; filter:grayscale(.5) saturate(.5); transform:scale(1.01)!important; transition:filter .55s ease,transform .7s cubic-bezier(.2,.7,.2,1)!important; }
.flip-front > * { position:relative; z-index:1; }
.flip-card:hover .flip-front::before, .flip-card:focus-visible .flip-front::before, .flip-card.is-flipped .flip-front::before { filter:grayscale(0) saturate(1.12); transform:scale(1.055)!important; }
.scene-2 .flip-front::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-after); background-position:center,var(--card-position,center); background-size:cover,cover; background-repeat:no-repeat; transform:scale(1.01); transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
.scene-2:hover .flip-front::before,.scene-2:focus-visible .flip-front::before,.scene-2.is-flipped .flip-front::before { opacity:0; filter:grayscale(.5) saturate(.5); }
.scene-2:hover .flip-front::after,.scene-2:focus-visible .flip-front::after,.scene-2.is-flipped .flip-front::after { opacity:1; transform:scale(1.055); }
.scene-1 .flip-front { --card-image:url('assets/equipo/card-muebles-padres.webp'); --card-position:52% center; background:none!important; }
.scene-2 .flip-front { --card-image:url('assets/equipo/card-inmuebles.webp'); --card-position:50% center; background:none!important; }
.scene-3 .flip-front { --card-image:url('assets/equipo/card-seguridad-antes-patio-zinc.webp'); --card-after:url('assets/equipo/card-seguridad-automatizacion.webp'); --card-position:center; background:none!important; }
.scene-4 .flip-front { --card-image:url('assets/equipo/card-store-design.webp'); --card-position:56% center; background:none!important; }
.scene-5 .flip-front { --card-image:url('assets/equipo/card-diseno-web.webp'); --card-position:59% center; background:none!important; }
.scene-6 .flip-front { --card-image:url('assets/equipo/card-automatizacion.webp'); --card-position:54% center; background:none!important; }
.scene-7 .flip-front { --card-image:url('assets/equipo/card-capacitaciones.webp'); --card-position:50% center; background:none!important; }
.scene-8 .flip-front { --card-image:url('assets/equipo/card-desarrollo-ia.webp'); --card-position:51% center; background:none!important; }
@media(max-width:700px) { .scene-5 .flip-front, .scene-6 .flip-front { --card-position:58% center; } .scene-8 .flip-front { --card-position:50% center; } }
/* El esquema y la sección siguiente conservan su encuadre de una pantalla. */
@media (min-width:1100px) and (min-height:650px) {
 .home-page .hero { padding-top:22px; padding-bottom:24px; }
 .home-page .hero-art.org-flow { padding:24px; }
 .home-page .flow-map { height:560px; min-height:560px; margin-top:5px; }
 .home-page .flow-grid { gap:14px clamp(12px,1.3vw,18px)!important; }
 .home-page .flow-footnote { margin-top:5px; }
}

/* Escenas diferenciadas por rubro; sin mosaicos de servicios ni rótulos incrustados. */
.scene-1 .flip-front { --card-image:url('assets/equipo/card-jardines-fachadas.webp'); --card-position:center 55%; }
.scene-2 .flip-front { --card-image:url('assets/equipo/card-cerramientos-antes.webp'); --card-after:url('assets/equipo/card-cerramientos-despues.webp'); --card-position:center 55%; }
.scene-5 { --web-case-after:url('assets/equipo/card-diseno-web-despues.webp'); }
.scene-5 .flip-front { --card-image:url('assets/equipo/card-diseno-web-antes.webp'); --card-after:var(--web-case-after); --card-position:center; }
.scene-5 .flip-front::after {
 content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0;
 background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-after);
 background-position:center; background-size:cover; background-repeat:no-repeat;
 transform:scale(1.01); transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}
.scene-5:hover .flip-front::before,.scene-5:focus-visible .flip-front::before { opacity:0; }
.scene-5:hover .flip-front::after,.scene-5:focus-visible .flip-front::after { opacity:1; transform:scale(1.055); }
.scene-5 .flip-back {
 background:linear-gradient(180deg,#071c2c2e 0%,#071c2ce8 100%),var(--web-case-after) center/cover!important;
 color:#fff!important;
}
.scene-5 .flip-back .flow-area,.scene-5 .flip-back h3,.scene-5 .flip-back li strong,.scene-5 .flip-back .flip-hint { color:#fff!important; }
.scene-5 .flip-back li span { color:#edf7fb!important; text-shadow:0 1px 3px #071c2c; }
.scene-6 .flip-front { --card-image:url('assets/equipo/card-marketing-antes-despues.png'); --card-position:center; }


/* REPARQ: nombre y especialidad visibles en ambas caras de la tarjeta. */
.flip-front .flip-subtitle { display:block; max-width:19em; margin-top:-7px; color:#e1f5ff; font-size:clamp(10px,1.02vw,13px); font-weight:600; line-height:1.25; text-shadow:0 1px 4px #071b2caa; }
.flip-back .flip-service-name { margin:-8px 0 13px; color:#3d708b; font-size:10px; font-weight:700; letter-spacing:.08em; line-height:1.3; text-transform:uppercase; }


/* Adaptación final de la portada a monitores, tabletas y teléfonos. */
.home-page .hero {
  padding-inline: clamp(18px, 5vw, 88px);
}
.home-page .hero-art.org-flow {
  width: min(100%, 1440px);
  padding: clamp(20px, 2.6vw, 38px);
}
.home-page .flow-heading > div { min-width: 0; }
.home-page .flow-intro { text-wrap: balance; }
.home-page .flow-heading-desc { max-width: 76ch; line-height: 1.5; }
.home-page .flow-map { flex: none; }
.home-page .flow-footnote { max-width: 80ch; margin-inline: auto; line-height: 1.5; }

@media (min-width: 851px) {
  .home-page .flow-map {
    height: clamp(540px, 34vw, 610px);
    min-height: clamp(540px, 34vw, 610px);
    margin-top: clamp(12px, 1.6vw, 24px);
  }
  .home-page .flow-grid {
    top: clamp(98px, 6.2vw, 112px) !important;
    grid-template-rows: repeat(2, clamp(205px, 12vw, 230px)) !important;
    gap: clamp(22px, 2.3vw, 34px) clamp(12px, 1.25vw, 20px) !important;
  }
  .home-page .flow-bubble.flip-card {
    height: clamp(205px, 12vw, 230px) !important;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .home-page .hero { padding-inline: 5vw; }
  .home-page .hero-art.org-flow { padding: 24px; }
  .home-page .flow-heading { gap: 16px; }
  .home-page .flow-expand { padding: 9px 11px; }
  .home-page .flip-face { padding: 16px !important; }
  .home-page .flip-back li strong { font-size: 10px !important; }
  .home-page .flip-back li span { font-size: 9px !important; }
}

@media (max-width: 850px) {
  .home-page .hero { padding: clamp(28px, 5vw, 48px) clamp(16px, 5vw, 42px) 54px; }
  .home-page .hero-art.org-flow { padding: clamp(18px, 3vw, 26px); }
  .home-page .flow-heading { gap: 14px; }
  .home-page .flow-intro { max-width: 24ch; }
  .home-page .flow-map { padding-top: 88px; }
  .home-page .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto) !important;
    gap: clamp(12px, 2vw, 18px) !important;
  }
  .home-page .flow-bubble.flip-card { height: 220px !important; }
  .home-page .flip-face { padding: clamp(14px, 2.4vw, 20px) !important; }
  .home-page .flip-back ul { gap: 6px !important; }
  .home-page .flip-back li strong { font-size: clamp(10px, 1.6vw, 11px) !important; }
  .home-page .flip-back li span { font-size: clamp(9px, 1.4vw, 10px) !important; }
  .home-page .flow-footnote { margin-top: 14px; }
}

@media (max-width: 520px) {
  .home-page .hero { padding: 22px 14px 42px; }
  .home-page .hero-art.org-flow { padding: 18px 14px; border-radius: 22px; }
  .home-page .flow-heading { gap: 11px; }
  .home-page .flow-intro { max-width: 19ch; font-size: clamp(22px, 6.3vw, 30px) !important; }
  .home-page .flow-heading-desc { max-width: 38ch; font-size: 12px; }
  .home-page .flow-expand { min-height: 40px; }
  .home-page .flow-map { padding-top: 82px; }
  .home-page .flow-map::before { top: 64px; height: 18px; }
  .home-page .flow-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: 220px !important;
    gap: 14px !important;
  }
  .home-page .flow-bubble.flip-card { height: 220px !important; }
  .home-page .flip-face { padding: 18px !important; }
  .home-page .flip-face h3 { font-size: clamp(17px, 5vw, 21px) !important; }
  .home-page .flip-back li strong { font-size: 11px !important; }
  .home-page .flip-back li span { font-size: 10px !important; }
  .home-page .flow-footnote { font-size: 10px; }
}

@media (max-width: 360px) {
  .home-page .hero-art.org-flow { padding-inline: 11px; }
  .home-page .flow-grid { grid-auto-rows: 210px !important; gap: 12px !important; }
  .home-page .flow-bubble.flip-card { height: 210px !important; }
}
.home-page .flow-intro { margin: 7px 0 0 !important; text-align: left; }
@media (max-width: 850px) { .home-page .flow-intro { max-width: 24ch; } }
@media (max-width: 520px) { .home-page .flow-intro { max-width: 19ch; } }

/* Vista ampliada: bloqueo de página y cierre siempre visible, también en Safari móvil. */
.org-flow.is-expanded {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  box-sizing: border-box;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(env(safe-area-inset-top), 8px) clamp(14px, 3vw, 42px) max(env(safe-area-inset-bottom), 8px) !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.org-flow.is-expanded .flow-heading {
  position: sticky;
  top: 0;
  align-items: flex-start;
  z-index: 8;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, #f1f8fceF 78%, #f1f8fc00);
}
.org-flow.is-expanded .flow-expand { position: relative; z-index: 9; white-space: nowrap; }
.org-flow.is-expanded .flow-map { flex: none; margin-top: 8px; }
.org-flow.is-expanded .flow-footnote { padding-bottom: 8px; }
@media (max-width: 850px) {
  .org-flow.is-expanded { align-items: stretch; gap: 8px; }
  .org-flow.is-expanded .flow-heading { flex-direction: row; gap: 8px; }
  .org-flow.is-expanded .flow-heading > div { min-width: 0; flex: 1 1 auto; }
  .org-flow.is-expanded .flow-intro { max-width: 17ch; font-size: clamp(18px, 5vw, 25px) !important; }
  .org-flow.is-expanded .flow-heading-desc { display: none; }
  .org-flow.is-expanded .flow-expand { flex: 0 0 auto; min-height: 40px; padding-inline: 10px; font-size: 10px; }
  .org-flow.is-expanded .flow-map { width: 100%; margin-top: 0; padding-top: 82px; }
  .org-flow.is-expanded .flow-grid { position: relative; top: auto; right: auto; left: auto; }
}
@media (max-width: 520px) {
  .org-flow.is-expanded { padding-inline: 12px !important; }
  .org-flow.is-expanded .flow-expand { gap: 6px; }
  .org-flow.is-expanded .flow-map { padding-top: 76px; }
}
.org-flow.is-expanded .flow-heading { flex: 0 0 auto; }


/* Intervenciones visibles al revelar la propuesta aérea de Cerramientos. */
.scene-2 .scene-upgrades { position:absolute!important; top:14px; left:18px; z-index:2; display:grid!important; gap:5px!important; margin:0!important; padding:0!important; list-style:none!important; opacity:0; transform:translateY(5px); transition:opacity .35s ease,transform .35s ease; }
.scene-2 .scene-upgrades li { color:#fff; font-size:clamp(8px,.68vw,10px); font-weight:700; line-height:1.2; letter-spacing:.025em; text-shadow:0 1px 4px #061d36; }
.scene-2 .scene-upgrades li::before { content:'— '; color:#94e7ff; }
.scene-2:hover .scene-upgrades,.scene-2:focus-visible .scene-upgrades { opacity:1; transform:translateY(0); }
@media(prefers-reduced-motion:reduce) { .scene-2 .scene-upgrades,.scene-2 .flip-front::after { transition:none; } }

/* Exteriores: local vacío antes y fachada trabajada al posar el cursor. */
.scene-1 .flip-front::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-after); background-position:center,var(--card-position,center); background-size:cover,cover; background-repeat:no-repeat; transform:scale(1.01); transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
.scene-1:hover .flip-front::before,.scene-1:focus-visible .flip-front::before,.scene-1.is-flipped .flip-front::before { opacity:0; filter:grayscale(.5) saturate(.5); }
.scene-1:hover .flip-front::after,.scene-1:focus-visible .flip-front::after,.scene-1.is-flipped .flip-front::after { opacity:1; transform:scale(1.055); }
.scene-1 .flip-front { --card-image:url('assets/equipo/card-exteriores-antes.webp'); --card-after:url('assets/equipo/card-exteriores-cafe-ia.webp'); --card-position:center 55%; }

/* Store Design: antes deteriorado y, al interactuar, el mismo local renovado como work café playero. */
.scene-4 .flip-front { --card-image:url('assets/equipo/card-store-interior-antes-despues.webp'); --card-position:left center; background:none!important; }
.scene-4 .flip-front::before { background-size:200% 100%,200% 100%!important; background-position:center,left center!important; }
.scene-4 .flip-front::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-image); background-position:center,right center; background-size:200% 100%,200% 100%; background-repeat:no-repeat; transform:scale(1.01); transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
.scene-4:hover .flip-front::before,.scene-4:focus-visible .flip-front::before,.scene-4.is-flipped .flip-front::before { opacity:0; filter:grayscale(.5) saturate(.5); }
.scene-4:hover .flip-front::after,.scene-4:focus-visible .flip-front::after,.scene-4.is-flipped .flip-front::after { opacity:1; transform:scale(1.055); }
@media(prefers-reduced-motion:reduce) { .scene-4 .flip-front::after { transition:none; } }

/* Nuevo lockup vertical: isotipo limpio y nombre en dos tonos decrecientes. */
.site-header .brand-logo { width: 108px; height: 72px; object-fit: contain; }
.footer-brand .brand-logo, .lounge-brand .brand-logo { width: 108px; height: 72px; object-fit: contain; }
@media (max-width: 700px) {
  .site-header .brand-logo { width: 96px; height: 64px; }
}



/* Seguridad: estado inicial sin protecciones; al pasar el cursor aparece la instalación completa en color. */
.scene-3 .flip-front::before { filter:grayscale(1) saturate(0)!important; }
.scene-3 .flip-front::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background-image:linear-gradient(180deg,#08294208 8%,#061d36b8 100%),var(--card-after); background-position:center,var(--card-position,center); background-size:cover,cover; background-repeat:no-repeat; transform:scale(1.01); transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1); }
.scene-3:hover .flip-front::before,.scene-3:focus-visible .flip-front::before,.scene-3.is-flipped .flip-front::before { opacity:0; }
.scene-3:hover .flip-front::after,.scene-3:focus-visible .flip-front::after,.scene-3.is-flipped .flip-front::after { opacity:1; transform:scale(1.055); }
@media(prefers-reduced-motion:reduce) { .scene-3 .flip-front::after { transition:none; } }
