:root {
  --primary: #111111;
  --accent: #d9ff3f;
  --surface: #f4f5f7;
  --ink: #111111;
  --muted: #62666d;
  --line: #dfe1e5;
  --font: Inter, Arial, sans-serif;
  --font-scale: 1;
  --hero-title-scale: 1;
  --section-title-scale: 1;
  --body-text-scale: 1;
  --radius: 28px;
  --max: 1240px;
  --section-space: 110px;
  --header-height: 82px;
  --logo-width: 112px;
  --hero-height: 760px;
  --mobile-hero-height: 620px;
  --hover-intensity: 1;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }
body { margin: 0; font-family: var(--font); font-size: calc(1rem * var(--body-text-scale)); color: var(--ink); background: #fff; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }


.site-header { height: var(--header-height); padding: 0 clamp(22px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(20,20,20,.08); }
.brand { width: var(--logo-width); height: 34px; display: block; }
.brand img { object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 30px; font-size: .88rem; font-weight: 600; }
.primary-nav a { position: relative; }
.primary-nav a:not(.nav-shop)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--ink); transition: .25s; }
.primary-nav a:hover::after, .primary-nav a.active::after { right: 0; }
.nav-shop { background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 999px; }
.nav-shop:hover { background: #333; }
.nav-toggle { display: none; background: none; border: 0; font-weight: 700; }


.hero { position: relative; height: min(78vh, var(--hero-height)); min-height: min(560px, var(--hero-height)); overflow: hidden; background: #111; }
.carousel-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.active { opacity: 1; visibility: visible; }
body:not([data-hero-zoom="off"]):not([data-editor-mode="true"]) .hero-slide.active .hero-media img,
body:not([data-hero-zoom="off"]):not([data-editor-mode="true"]) .hero-slide.active .hero-media video { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 48%, rgba(0,0,0,.08) 78%); }
.hero-content { position: absolute; z-index: 2; left: max(6vw, 28px); bottom: max(10vh, 70px); color: #fff; width: min(780px, 86vw); }
.hero-content h1 { margin: 12px 0 18px; font-size: clamp(2.75rem, calc(6vw * var(--hero-title-scale)), 7.5rem); line-height: .93; letter-spacing: -.065em; max-width: 11ch; }
.hero-content > p:not(.eyebrow) { max-width: 590px; font-size: clamp(1rem, 1.55vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.86); margin: 0 0 28px; }
.eyebrow { margin: 0; font-size: .72rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: #5b6067; }
.eyebrow.light { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.light { background: #fff; color: #111; }
.button.dark { background: var(--primary); color: #fff; }
.button.accent { background: var(--accent); color: #111; }
.carousel-dots { position: absolute; z-index: 4; right: max(6vw, 28px); bottom: 50px; display: flex; gap: 9px; }
.carousel-dots button { width: 42px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.38); cursor: pointer; }
.carousel-dots button.active { background: var(--accent); }


.section { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: var(--section-space) 0; }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .logo-section h2, .calculator-section h2, .store-intro h2 { margin: 10px 0 0; font-size: clamp(2.25rem, calc(4.5vw * var(--section-title-scale)), 5.2rem); line-height: .98; letter-spacing: -.055em; }
.section-heading.split { display: grid; grid-template-columns: 1.4fr .75fr; gap: 80px; align-items: end; }
.section-heading.split > p { color: var(--muted); line-height: 1.7; margin: 0; }


.promo-section { padding-bottom: 45px; }
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.promo-card { position: relative; min-height: 520px; overflow: hidden; border-radius: var(--radius); background: #222; color: #fff; }
.promo-media, .promo-shade { position: absolute; inset: 0; }
.promo-card:hover .promo-media img, .promo-card:hover .promo-media video { transform: scale(1.04); }
.promo-media img, .promo-media video { transition: transform .7s; }
.promo-shade { background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.04) 70%); }
.promo-copy { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; }
.promo-copy > span { display: inline-block; margin-bottom: 14px; background: var(--accent); color: #111; padding: 7px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.promo-copy h3 { margin: 0 0 10px; font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: .98; letter-spacing: -.045em; }
.promo-copy p { margin: 0 0 22px; max-width: 560px; color: rgba(255,255,255,.8); line-height: 1.5; }
.promo-copy a { font-weight: 700; }


.units-section { padding-top: 95px; }
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s, box-shadow .3s; }
.unit-card:hover { transform: translateY(calc(-6px * var(--hover-intensity))); box-shadow: 0 calc(24px * var(--hover-intensity)) 60px rgba(20,20,20,.1); }
.unit-image { height: 265px; overflow: hidden; }
.unit-card:hover .unit-image img { transform: scale(1.05); }
.unit-image img { transition: transform .6s; }
.unit-copy { padding: 28px; }
.unit-copy > span { font-size: .76rem; font-weight: 800; color: #8a8e94; }
.unit-copy h3 { margin: 18px 0 12px; font-size: 1.65rem; letter-spacing: -.035em; }
.unit-copy p { min-height: 76px; margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.unit-copy a { font-weight: 700; }


.logo-section { padding: 105px 0; text-align: center; overflow: hidden; background: var(--surface); }
.logo-section > .eyebrow, .logo-section > h2 { width: min(var(--max), calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.logo-section h2 { max-width: 760px; }
.logo-marquee { width: 100%; margin-top: 58px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { width: max-content; display: flex; animation: logoMarquee 22s linear infinite; animation-play-state: running; will-change: transform; }
.logo-group { min-width: 100vw; display: flex; flex-shrink: 0; align-items: center; justify-content: space-around; gap: clamp(48px, 6vw, 100px); padding: 18px clamp(32px, 5vw, 80px); }
.logo-item { width: clamp(150px, 14vw, 220px); height: 92px; flex: 0 0 auto; display: grid; place-items: center; }
.logo-item img { width: 100%; height: 100%; max-width: 190px; max-height: 76px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.logo-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
body[data-editor-mode="true"] .logo-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
body[data-editor-mode="true"] .logo-track { width: 100%; animation: none; transform: none !important; }
body[data-editor-mode="true"] .logo-group { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: center; }
body[data-editor-mode="true"] .logo-group[aria-hidden="true"] { display: none; }
@keyframes logoMarquee { to { transform: translateX(-50%); } }
body[data-animation="sin_animacion"] .logo-track { animation: none !important; }


.company-section { padding-top: 95px; padding-bottom: 95px; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: clamp(40px, 9vw, 130px); align-items: end; }
.company-grid h2 { margin: 0; max-width: 800px; font-size: clamp(2.8rem, 6vw, 6.6rem); line-height: .92; letter-spacing: -.065em; }
.company-grid p { margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.store-maintenance { min-height: calc(100vh - var(--header-height)); padding: clamp(80px, 11vw, 150px) max(6vw, 24px); display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 0%, #f1ffd0, transparent 38%), #f7f8fa; }
.store-maintenance > div { max-width: 960px; }
.store-maintenance h1 { margin: 14px 0 24px; font-size: clamp(4rem, 10vw, 9rem); line-height: .86; letter-spacing: -.075em; }
.store-maintenance > div > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 34px; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.store-maintenance-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button.outline-dark { border: 1px solid #111; color: #111; background: transparent; }

.calculator-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); padding: 110px max(6vw, 24px); background: var(--primary); color: #fff; }
.calculator-intro > p:not(.eyebrow) { color: rgba(255,255,255,.68); max-width: 520px; line-height: 1.65; }
.result-card { margin-top: 48px; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.07); }
.result-card span, .result-card small { display: block; color: rgba(255,255,255,.64); }
.result-card strong { display: block; margin: 10px 0 8px; font-size: clamp(2.1rem, 4vw, 4rem); letter-spacing: -.05em; color: var(--accent); }
.calculator-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-self: center; }
.calculator-form label { position: relative; display: grid; gap: 9px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.7); }
.calculator-form input, .calculator-form select { width: 100%; height: 58px; padding: 0 45px 0 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; outline: none; background: rgba(255,255,255,.08); color: #fff; }
.calculator-form select option { color: #111; }
.calculator-form input:focus, .calculator-form select:focus { border-color: var(--accent); }
.calculator-form label > span { position: absolute; right: 16px; bottom: 19px; color: rgba(255,255,255,.52); }
.calculator-form .button { margin-top: 10px; }
.form-note { margin: 10px 0 0; color: rgba(255,255,255,.48); font-size: .72rem; line-height: 1.5; }


.store-intro { text-align: center; max-width: 880px; }
.store-intro > p:not(.eyebrow) { margin: 22px auto 30px; max-width: 650px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 65%); }
.category-card img { transition: transform .6s; }
.category-card:hover img { transform: scale(1.05); }
.category-card span { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 25px; display: flex; justify-content: space-between; color: #fff; font-size: 1.15rem; font-weight: 700; }
.products-section { padding-top: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; }
.product-image { height: 260px; overflow: hidden; border-radius: 15px; background: var(--surface); }
.product-card > a > span { display: block; margin-top: 20px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.product-card h3 { margin: 8px 0; font-size: 1.35rem; }
.product-card p { color: var(--muted); }
.product-card b { display: block; margin-top: 22px; }


.site-footer { padding: 72px max(6vw, 24px) 46px; background: #090909; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr .5fr; gap: 60px; }
.site-footer img { width: 118px; height: 38px; object-fit: contain; object-position: left; }
.site-footer p { margin: 5px 0; max-width: 460px; color: rgba(255,255,255,.58); line-height: 1.55; }
.footer-brand > p { margin-top: 18px; }
.footer-contact, .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-contact span, .footer-label { margin-bottom: 8px; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.footer-links a, .footer-contact a, .footer-website { color: rgba(255,255,255,.78); }
.footer-company-data { margin-top: 55px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: clamp(34px, 6vw, 90px); }
.footer-company-data > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.footer-brand-list b { color: #fff; font-size: clamp(1.3rem, 2.4vw, 2.25rem); line-height: 1; letter-spacing: -.045em; }
.footer-brand-list b:nth-child(2) { font-style: italic; }
.footer-brand-list b:nth-child(3) { font-weight: 500; }
.footer-brand-list b:nth-child(4) { font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.footer-website { margin-top: 14px; font-size: 1rem; }


.maintenance { min-height: 100vh; padding: clamp(28px, 5vw, 70px); display: grid; grid-template-rows: auto 1fr; background: radial-gradient(circle at 85% 12%, #f3ffe0, transparent 34%), #f7f8fa; }
.maintenance > img { width: 112px; height: 34px; object-fit: contain; object-position: left; }
.maintenance > div { align-self: center; max-width: 1050px; }
.maintenance h1 { margin: 12px 0 22px; font-size: clamp(4rem, 11vw, 10rem); line-height: .82; letter-spacing: -.08em; }
.maintenance > div > p:not(.eyebrow) { max-width: 650px; margin-bottom: 30px; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.media-placeholder { height: 100%; display: grid; place-items: center; background: #e6e8eb; color: #7a7f85; }
.load-error { min-height: 100vh; display: grid; place-content: center; text-align: center; }


body[data-animation="dinamico"] .hero-slide { transition-duration: .45s; }
body[data-animation="dinamico"]:not([data-hero-zoom="off"]):not([data-editor-mode="true"]) .hero-slide.active .hero-media img,
body[data-animation="dinamico"]:not([data-hero-zoom="off"]):not([data-editor-mode="true"]) .hero-slide.active .hero-media video { animation-duration: 6s; transform-origin: center; }
body[data-animation="sin_animacion"] *,
body[data-animation="sin_animacion"] *::before,
body[data-animation="sin_animacion"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }


@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: var(--header-height); left: 0; right: 0; padding: 26px; display: none; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .nav-shop { text-align: center; }
  .section-heading.split, .company-grid { grid-template-columns: 1fr; gap: 25px; }
  .units-grid { grid-template-columns: 1fr; }
  .unit-card { display: grid; grid-template-columns: .9fr 1.1fr; }
  .unit-image { height: 100%; min-height: 300px; }
  .calculator-section { grid-template-columns: 1fr; }
}


@media (max-width: 700px) {
  .site-header { height: var(--header-height); }
  .primary-nav { top: var(--header-height); }
  .hero { min-height: var(--mobile-hero-height); height: var(--mobile-hero-height); }
  .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.12)); }
  .hero-content { bottom: 80px; }
  .hero-content h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .carousel-dots { left: 28px; right: auto; bottom: 34px; }
  .section { width: min(100% - 32px, var(--max)); padding: min(var(--section-space), 78px) 0; }
  .promo-grid, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 480px; }
  .unit-card { display: block; }
  .unit-image { height: 260px; min-height: 0; }
  .calculator-form { grid-template-columns: 1fr; }
  .footer-main, .footer-company-data { grid-template-columns: 1fr; gap: 34px; }
}


.editor-carousel-nav { position: absolute; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 999px; background: rgba(17,19,24,.88); color: #fff; font: 700 12px/1 Inter,Arial,sans-serif; }
.editor-carousel-nav button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 22px; cursor: pointer; }


/* Dirección visual DyP: navegación compacta y hero editorial */
.site-header{min-height:50px;padding:0 max(5vw,24px);background:rgba(255,255,255,.96);border-bottom:1px solid rgba(20,20,20,.08);color:#111;backdrop-filter:saturate(180%) blur(20px)}
.site-header .brand{width:72px}
.site-header .brand img{filter:none}
.primary-nav{gap:clamp(18px,3vw,44px)}
.primary-nav a{color:#111;font-size:12px;font-weight:400;opacity:.86}
.primary-nav a:hover{opacity:1}
.primary-nav .nav-shop{background:#111;color:#fff;opacity:1}
.primary-nav .nav-shop:hover{background:#333;color:#fff}
.hero,.hero-slide{background:#111;color:#fff}
.hero-media{top:0}
.hero-media img,.hero-media video{object-fit:cover;object-position:center}
.hero-content .button{border-radius:999px;background:#0071e3;color:#fff;border:0}
.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:80;display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:#25d366;color:#fff;font-size:12px;font-weight:800;text-decoration:none;box-shadow:0 12px 32px rgba(0,0,0,.24)}
@media(max-width:820px){
  .site-header{min-height:54px}
  .nav-toggle{color:#111}
  .primary-nav{background:#fff}
  .hero-media{top:0}
  .whatsapp-float{right:16px;bottom:16px;width:54px;height:54px}
}


/* Páginas de soluciones */
.solution-page { background: #fff; }
.solution-hero { position: relative; min-height: min(72vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: #111; color: #fff; }
.solution-hero-media, .solution-hero-overlay { position: absolute; inset: 0; }
.solution-hero-media img { object-fit: cover; object-position: center; }
.solution-hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.36) 58%, rgba(0,0,0,.08)); }
.solution-hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 0 0 clamp(70px, 10vh, 110px); }
.solution-hero-content h1 { max-width: 920px; margin: 14px 0 24px; font-size: clamp(3.3rem, calc(6vw * var(--hero-title-scale)), 7rem); line-height: .92; letter-spacing: -.065em; }
.solution-hero-content > p:not(.eyebrow) { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; }
.solution-intro { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(50px, 9vw, 130px); align-items: end; }
.solution-intro h2, .solution-systems h2, .solution-process h2, .solution-cta h2 { margin: 12px 0 0; font-size: clamp(2.4rem, calc(4.5vw * var(--section-title-scale)), 5.4rem); line-height: .96; letter-spacing: -.055em; }
.solution-intro > p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.solution-systems { padding-top: 25px; }
.solution-system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-system-card { min-height: 310px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.solution-system-card > span { color: #a2a6ac; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.solution-system-card h3 { margin: auto 0 15px; font-size: clamp(1.55rem, 2vw, 2.2rem); letter-spacing: -.04em; }
.solution-system-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.solution-process { padding: 110px max(6vw, 24px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 9vw, 130px); background: #111; color: #fff; }
.solution-process-copy > p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.62); line-height: 1.7; }
.solution-steps { display: grid; align-content: center; }
.solution-steps article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.solution-steps article:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.solution-steps article > span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.solution-steps h3 { margin: 0 0 7px; font-size: 1.25rem; }
.solution-steps p { margin: 0; color: rgba(255,255,255,.56); line-height: 1.5; }
.solution-cta { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 100px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.solution-cta > div { max-width: 800px; }
.solution-cta h2 { margin-bottom: 18px; }
.solution-cta p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.solution-cta .button { flex: 0 0 auto; }

@media (max-width: 900px) {
  .solution-intro, .solution-process { grid-template-columns: 1fr; }
  .solution-system-grid { grid-template-columns: 1fr; }
  .solution-system-card { min-height: 260px; }
  .solution-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .solution-hero { min-height: 620px; }
  .solution-hero-content { width: calc(100% - 40px); padding-bottom: 70px; }
  .solution-hero-content h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .solution-process { padding: 80px 20px; }
  .solution-cta { width: calc(100% - 32px); padding: 76px 0; }
}


/* Editable images keep existing card dimensions and readable text. */
.solution-system-card { position: relative; overflow: hidden; isolation: isolate; }
.solution-system-card > .solution-system-background { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; pointer-events: none; }
.solution-system-card > .solution-system-shade { display: none; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.84) 42%, rgba(255,255,255,.97) 100%); z-index: -1; pointer-events: none; }
.solution-system-card.has-image > .solution-system-background,
.solution-system-card.has-image > .solution-system-shade { display: block; }


/* Tarjetas de soluciones: imagen protagonista y detalle al interactuar */
.solution-system-card {
  min-height: 0;
  aspect-ratio: 4 / 3;
  justify-content: flex-end;
  padding: 30px;
  border: 0;
  background: #eef0f2;
  transition: transform .35s ease, box-shadow .35s ease;
}
.solution-system-card > .solution-system-background {
  display: block;
  z-index: -2;
  object-fit: cover;
  object-position: center;
  background: #eef0f2;
  transition: transform .7s ease, filter .45s ease;
}
.solution-system-card > .solution-system-shade {
  display: block;
  z-index: -1;
  background: linear-gradient(180deg, transparent 36%, rgba(0,0,0,.12) 58%, rgba(0,0,0,.76) 100%);
  opacity: 1;
  transition: background .4s ease, opacity .4s ease;
}
.solution-system-card > span {
  display: none;
}
.solution-system-card h3 {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.42);
  transition: transform .4s ease;
}
.solution-system-card p {
  position: relative;
  z-index: 2;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  opacity: 0;
  transform: translateY(14px);
  transition: max-height .5s ease, margin .4s ease, opacity .35s ease, transform .4s ease;
}
.solution-system-card.has-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(17,17,17,.18);
}
.solution-system-card.has-image:hover > .solution-system-background {
  transform: scale(1.01);
  filter: brightness(.72);
}
.solution-system-card.has-image:hover > .solution-system-shade {
  background: rgba(0,0,0,.52);
}
.solution-system-card.has-image:hover h3 {
  transform: translateY(-4px);
}
.solution-system-card.has-image:hover p {
  max-height: 180px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
}
.solution-system-card:not(.has-image) {
  border: 1px solid var(--line);
  background: #f5f6f7;
}
.solution-system-card:not(.has-image) > .solution-system-background,
.solution-system-card:not(.has-image) > .solution-system-shade {
  display: none;
}
.solution-system-card:not(.has-image) > span {
  color: #9ca1a9;
  text-shadow: none;
}
.solution-system-card:not(.has-image) h3 {
  color: var(--ink);
  text-shadow: none;
}
.solution-system-card:not(.has-image) p {
  max-height: 180px;
  margin-top: 16px;
  color: var(--muted);
  opacity: 1;
  transform: none;
}

@media (hover: none), (max-width: 900px) {
  .solution-system-card.has-image > .solution-system-background {
    filter: brightness(.72);
  }
  .solution-system-card.has-image > .solution-system-shade {
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.2) 48%, rgba(0,0,0,.82) 100%);
  }
  .solution-system-card.has-image p {
    max-height: 180px;
    margin-top: 14px;
    opacity: 1;
    transform: none;
  }
}


/* Imágenes editables: mostrar siempre el archivo completo por defecto. */
img, video {
  object-fit: contain;
  object-position: center;
}
.hero,
.solution-hero {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}
.hero-media,
.solution-hero-media,
.promo-media,
.unit-image,
.category-card,
.product-image,
.solution-system-card {
  background: var(--surface);
}
.hero-media img,
.hero-media video,
.solution-hero-media img,
.promo-media img,
.promo-media video,
.unit-image img,
.category-card img,
.product-image img,
.solution-system-card > .solution-system-background {
  object-fit: contain;
  object-position: center;
}
@keyframes heroZoom {
  from { transform: scale(.98); }
  to { transform: scale(1); }
}
.promo-card:hover .promo-media img,
.promo-card:hover .promo-media video,
.unit-card:hover .unit-image img,
.category-card:hover img,
.solution-system-card.has-image:hover > .solution-system-background {
  transform: scale(1);
}
@media (min-width: 701px) {
  .promo-card {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 700px) {
  .hero {
    aspect-ratio: auto;
    min-height: var(--mobile-hero-height);
    height: var(--mobile-hero-height);
  }
  .solution-hero {
    aspect-ratio: auto;
    min-height: 620px;
  }
}


/* La cantidad de tarjetas define automáticamente el ancho de la grilla. */
.solution-system-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
@media (max-width: 900px) {
  .solution-system-grid { grid-template-columns: 1fr; }
}


/* Dos tarjetas conservan una escala cómoda y quedan centradas. */
.solution-system-grid:has(> .solution-system-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 620px));
  justify-content: center;
}
.solution-system-grid:has(> .solution-system-card:only-child) {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
@media (max-width: 900px) {
  .solution-system-grid:has(> .solution-system-card:nth-child(2):last-child),
  .solution-system-grid:has(> .solution-system-card:only-child) {
    grid-template-columns: 1fr;
  }
}


/* Optimización móvil integral: banners completos, tipografía y espaciado proporcionados */
@media (max-width: 700px) {
  html { font-size: 15px; }
  body { overflow-x: hidden; }
  .site-header { height: 60px; min-height: 60px; padding: 0 18px; }
  .site-header .brand { width: 70px; height: 28px; }
  .primary-nav { top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; padding: 18px; gap: 4px; }
  .primary-nav a { padding: 12px 4px; font-size: .92rem; }
  .primary-nav .nav-shop { margin-top: 8px; padding: 13px 18px; }
  .nav-toggle { padding: 10px 0; font-size: .9rem; }

  .hero { height: 540px; min-height: 0; }
  .hero-media { top: 0; bottom: auto; height: 220px; background: #111; }
  .hero-media img, .hero-media video { object-fit: contain !important; object-position: center !important; transform: none !important; animation: none !important; }
  .hero-overlay { top: 0; bottom: auto; height: 220px; background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.02)); }
  .hero-content { top: 220px; bottom: auto; left: 0; right: 0; width: auto; padding: 26px 20px 62px; }
  .hero-content h1 { max-width: 100%; margin: 8px 0 12px; font-size: clamp(2rem, 9.5vw, 2.75rem); line-height: .98; letter-spacing: -.05em; }
  .hero-content > p:not(.eyebrow) { margin-bottom: 20px; font-size: .98rem; line-height: 1.45; }
  .hero-content .button { min-height: 44px; padding: 0 19px; font-size: .9rem; }
  .carousel-dots { left: 20px; bottom: 22px; gap: 7px; }
  .carousel-dots button { width: 30px; }

  .section { width: calc(100% - 32px); padding: 62px 0; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2, .logo-section h2, .calculator-section h2, .store-intro h2,
  .solution-intro h2, .solution-systems h2, .solution-process h2, .solution-cta h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1;
    letter-spacing: -.045em;
  }
  .company-section { padding-top: 62px; padding-bottom: 62px; }
  .company-grid { gap: 22px; }
  .company-grid h2 { max-width: 100%; font-size: clamp(2.2rem, 10vw, 3rem); line-height: .98; }
  .company-grid p { font-size: 1rem; line-height: 1.6; }

  .promo-grid, .category-grid, .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .promo-card { min-height: 0; border-radius: 18px; }
  .promo-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111; }
  .promo-media img, .promo-media video { object-fit: contain !important; object-position: center !important; transform: none !important; }
  .promo-shade { display: none; }
  .promo-copy { position: relative; left: auto; right: auto; bottom: auto; padding: 22px 20px 24px; }
  .promo-copy h3 { font-size: clamp(1.7rem, 8vw, 2.25rem); }
  .promo-copy p { font-size: .95rem; }

  .units-section { padding-top: 62px; }
  .units-grid { gap: 18px; }
  .unit-card { display: block; border-radius: 18px; }
  .unit-image { height: auto; min-height: 0; aspect-ratio: 16 / 9; background: var(--surface); }
  .unit-image img { object-fit: contain !important; object-position: center !important; transform: none !important; }
  .unit-copy { padding: 22px 20px 24px; }
  .unit-copy h3 { margin: 12px 0 9px; font-size: 1.5rem; }
  .unit-copy p { min-height: 0; }

  .category-card { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 18px; background: #111; }
  .category-card img { object-fit: contain !important; object-position: center !important; transform: none !important; }
  .product-card { padding: 14px; }
  .product-image { height: auto; aspect-ratio: 1 / 1; }
  .product-image img { object-fit: contain !important; object-position: center !important; }

  .logo-section { padding: 68px 0; }
  .logo-section > .eyebrow, .logo-section > h2 { width: calc(100% - 32px); }
  .logo-marquee { margin-top: 34px; }
  .logo-group { gap: 36px; padding: 10px 24px; }
  .logo-item { width: 125px; height: 70px; }
  .logo-item img { max-width: 125px; max-height: 60px; }

  .calculator-section { gap: 32px; padding: 68px 18px; }
  .calculator-form { grid-template-columns: 1fr; }
  .result-card { margin-top: 28px; padding: 22px; }

  .solution-hero { min-height: 0; height: 540px; display: block; }
  .solution-hero-media { top: 0; bottom: auto; height: 220px; background: #111; }
  .solution-hero-media img { object-fit: contain !important; object-position: center !important; }
  .solution-hero-overlay { top: 0; bottom: auto; height: 220px; background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.02)); }
  .solution-hero-content { position: absolute; top: 220px; bottom: auto; width: 100%; padding: 26px 20px; }
  .solution-hero-content h1 { max-width: 100%; margin: 9px 0 15px; font-size: clamp(2.15rem, 10vw, 3rem); line-height: .98; }
  .solution-hero-content > p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
  .solution-process { padding: 68px 18px; gap: 35px; }
  .solution-system-card { min-height: 230px; padding: 24px 20px; border-radius: 18px; }
  .solution-system-card > .solution-system-background { object-fit: contain !important; background: var(--surface); }
  .solution-cta { width: calc(100% - 32px); padding: 68px 0; gap: 24px; }

  .store-intro { padding-top: 62px; padding-bottom: 62px; }
  .store-maintenance { min-height: calc(100vh - 60px); padding: 68px 18px; }
  .store-maintenance h1 { font-size: clamp(2.8rem, 14vw, 4.25rem); line-height: .92; letter-spacing: -.06em; }
  .store-maintenance > div > p:not(.eyebrow) { font-size: 1rem; }
  .store-maintenance-actions { align-items: stretch; flex-direction: column; }
  .store-maintenance-actions .button { width: 100%; }

  .site-footer { padding: 54px 20px 88px; }
  .footer-main, .footer-company-data { grid-template-columns: 1fr; gap: 30px; }
  .footer-company-data { margin-top: 38px; padding-top: 30px; }
  .footer-brand-list { gap: 11px 18px; }
  .footer-brand-list b { font-size: 1.45rem; }

  .maintenance { padding: 26px 20px; }
  .maintenance h1 { font-size: clamp(3rem, 15vw, 4.75rem); line-height: .9; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (max-width: 390px) {
  .hero, .solution-hero { height: 560px; }
  .hero-media, .hero-overlay, .solution-hero-media, .solution-hero-overlay { height: 205px; }
  .hero-content, .solution-hero-content { top: 205px; }
  .hero-content h1, .solution-hero-content h1 { font-size: 2rem; }
  .section-heading h2, .logo-section h2, .calculator-section h2, .store-intro h2 { font-size: 2rem; }
}


/* En móvil, los estilos editoriales de escritorio no pueden forzar desbordes. */
@media (max-width: 700px) {
  .hero-content h1,
  .solution-hero-content h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.9rem, 8.7vw, 2.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .hero-content h1 span,
  .solution-hero-content h1 span {
    display: inline !important;
    white-space: normal !important;
  }
  .company-grid h2,
  .section-heading h2,
  .logo-section h2,
  .calculator-section h2,
  .store-intro h2,
  .solution-intro h2,
  .solution-systems h2,
  .solution-process h2,
  .solution-cta h2 {
    max-width: 100% !important;
    font-size: clamp(1.9rem, 8.5vw, 2.55rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .company-grid h2 span,
  .section-heading h2 span,
  .logo-section h2 span,
  .calculator-section h2 span,
  .store-intro h2 span,
  .solution-intro h2 span,
  .solution-systems h2 span,
  .solution-process h2 span,
  .solution-cta h2 span {
    display: inline !important;
    white-space: normal !important;
  }
  .promo-copy h3,
  .unit-copy h3,
  .solution-system-card h3 {
    max-width: 100% !important;
    font-size: clamp(1.4rem, 6.7vw, 1.9rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .promo-copy h3 span,
  .unit-copy h3 span,
  .solution-system-card h3 span {
    display: inline !important;
    white-space: normal !important;
  }
  .hero-content,
  .solution-hero-content,
  .company-grid,
  .section-heading,
  .promo-copy,
  .unit-copy {
    min-width: 0;
    overflow: hidden;
  }
}


/* Categorías interactivas de tienda: imagen secundaria y acciones editables */
.category-card { isolation: isolate; display: block; background: #f4f5f7; color: #fff; }
.category-card::after { display: none; }
.category-card__media,
.category-card__shade { position: absolute; inset: 0; }
.category-card__media { z-index: 0; overflow: hidden; background: #f4f5f7; }
.category-card .category-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; object-position: center !important; transition: opacity .42s ease, transform .65s cubic-bezier(.2,.7,.2,1), filter .42s ease !important; }
.category-card__image--primary { z-index: 1; opacity: 1; }
.category-card__image--hover { z-index: 2; opacity: 0; transform: scale(1.025) !important; }
.category-card__shade { z-index: 3; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.16) 55%, rgba(0,0,0,.82) 100%); transition: background .35s ease; pointer-events: none; }
.category-card__content { position: absolute; z-index: 4; left: 24px; right: 24px; bottom: 24px; }
.category-card__content h3 { margin: 0; color: #fff; font-size: clamp(1.15rem,1.5vw,1.45rem); line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.35); transition: transform .35s ease; }
.category-card__actions { display: flex; flex-wrap: wrap; gap: 9px; max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .35s ease, max-height .35s ease, margin-top .35s ease; }
.category-action { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 9px 14px; font-size: .74rem; font-weight: 750; line-height: 1; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.category-action--primary { border-color: #fff; background: #fff; color: #111; }
.category-action--secondary { background: rgba(17,17,17,.38); color: #fff; backdrop-filter: blur(8px); }
.category-action:hover { transform: translateY(-1px); }
.category-action--primary:hover { background: #d9ff3f; border-color: #d9ff3f; color: #111; }
.category-action--secondary:hover { background: #fff; color: #111; }
.category-card:hover .category-card__shade, .category-card:focus-within .category-card__shade { background: linear-gradient(180deg, rgba(0,0,0,.04) 12%, rgba(0,0,0,.26) 48%, rgba(0,0,0,.9) 100%); }
.category-card:hover .category-card__content h3, .category-card:focus-within .category-card__content h3 { transform: translateY(-2px); }
.category-card:hover .category-card__actions, .category-card:focus-within .category-card__actions, body[data-editor-mode="true"] .category-card__actions { max-height: 110px; margin-top: 14px; opacity: 1; transform: translateY(0); pointer-events: auto; }
.category-card.has-hover-image:hover .category-card__image--primary, .category-card.has-hover-image:focus-within .category-card__image--primary { opacity: 0; }
.category-card.has-hover-image:hover .category-card__image--hover, .category-card.has-hover-image:focus-within .category-card__image--hover { opacity: 1; transform: scale(1) !important; }
.category-card:not(.has-hover-image):hover .category-card__image--primary { transform: scale(1.035) !important; filter: saturate(1.04) contrast(1.03); }

@media (hover: none), (max-width: 900px) {
  .category-card__shade { background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.88) 100%); }
  .category-card__actions { max-height: 110px; margin-top: 12px; opacity: 1; transform: none; pointer-events: auto; }
  .category-card.has-hover-image .category-card__image--primary { opacity: 1; }
  .category-card.has-hover-image .category-card__image--hover { display: none; }
}

@media (max-width: 560px) {
  .category-card__content { left: 18px; right: 18px; bottom: 18px; }
  .category-action { min-height: 38px; padding: 9px 12px; font-size: .7rem; }
}


/* Refinamiento institucional 2026-10-13 */
.company-section {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: var(--section-space) auto 0;
  padding: clamp(54px, 7vw, 96px);
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 42px);
  background:
    radial-gradient(circle at 94% 8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 27%),
    linear-gradient(135deg, #111315 0%, #1b1e21 100%);
  color: #fff;
}
.company-section::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -42%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
  pointer-events: none;
}
.company-accent {
  width: 58px;
  height: 4px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--accent);
}
.company-section .eyebrow { color: var(--accent); }
.company-grid { position: relative; z-index: 1; align-items: start; }
.company-grid h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
  color: #fff;
}
.company-grid p {
  max-width: 610px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.78;
}

.units-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.unit-card {
  position: relative;
  min-height: clamp(390px, 43vw, 560px);
  isolation: isolate;
  border: 0;
  background: #eceef0;
  color: #fff;
}
.unit-image {
  position: absolute;
  inset: 0;
  height: 100%;
  background: #eceef0;
}
.unit-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(0,0,0,.2) 58%, rgba(0,0,0,.8) 100%);
  transition: background .45s ease;
}
.unit-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
.unit-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3.2vw, 42px);
}
.unit-copy h3 {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.35);
  transition: transform .4s ease;
}
.unit-copy p,
.unit-copy a {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(255,255,255,.88);
  transform: translateY(14px);
  transition: opacity .32s ease, transform .4s ease, max-height .45s ease, margin .4s ease;
}
.unit-copy a { color: #fff; font-weight: 750; }
.unit-card:hover .unit-image::after,
.unit-card:focus-within .unit-image::after {
  background: linear-gradient(180deg, rgba(0,0,0,.14) 8%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.92) 100%);
}
.unit-card:hover .unit-image img,
.unit-card:focus-within .unit-image img {
  transform: scale(1.02);
  filter: saturate(.9) brightness(.83);
}
.unit-card:hover .unit-copy h3,
.unit-card:focus-within .unit-copy h3 { transform: translateY(-4px); }
.unit-card:hover .unit-copy p,
.unit-card:hover .unit-copy a,
.unit-card:focus-within .unit-copy p,
.unit-card:focus-within .unit-copy a {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}
.unit-card:hover .unit-copy p,
.unit-card:focus-within .unit-copy p { margin-top: 14px; }
.unit-card:hover .unit-copy a,
.unit-card:focus-within .unit-copy a { margin-top: 18px; }

.site-footer { padding: 76px max(5vw, 24px) 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr 1fr 1.35fr .65fr;
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
}
.footer-block { min-width: 0; }
.footer-brand p {
  max-width: 280px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
}
.footer-brand-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-brand-list b {
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-locations p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
}
.footer-sublabel {
  display: block;
  margin: 22px 0 10px;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.44);
  font-size: .78rem;
}
.footer-bottom .footer-website { color: rgba(255,255,255,.72); }

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body[data-animation="dinamico"] .reveal-item { transform: translateY(38px) scale(.985); }
body[data-animation="dinamico"] .reveal-item.is-visible { transform: translateY(0) scale(1); }
body[data-animation="sin_animacion"] .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (hover: none) {
  .unit-image::after { background: linear-gradient(180deg, rgba(0,0,0,.03) 22%, rgba(0,0,0,.28) 56%, rgba(0,0,0,.88) 100%); }
  .unit-copy p,
  .unit-copy a {
    max-height: 120px;
    opacity: 1;
    transform: none;
  }
  .unit-copy p { margin-top: 12px; }
  .unit-copy a { margin-top: 16px; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .company-section {
    width: calc(100% - 28px);
    margin-top: 58px;
    padding: 42px 24px 48px;
  }
  .company-grid { grid-template-columns: 1fr; }
  .company-grid h2 { font-size: clamp(2.2rem, 11vw, 3.25rem) !important; }
  .unit-card { min-height: 430px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .unit-image img,
  .unit-copy h3,
  .unit-copy p,
  .unit-copy a { transition: none !important; }
  .reveal-item { opacity: 1 !important; transform: none !important; }
}


/* Ajuste panorámico sin recorte para unidades */
.unit-card {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
@media (max-width: 700px) {
  .unit-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}


/* Marcas del pie: texto uniforme, sin logos simulados */
.footer-brand-list b {
  font-family: var(--font) !important;
  font-style: normal !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}


/* Hero editorial DYP y revelado de scroll reforzado */
body[data-page="home"] .editorial-hero {
  height: clamp(620px, calc(100svh - var(--header-height)), 780px);
  min-height: 620px;
  background: #101214;
}
body[data-page="home"] .editorial-hero .hero-media,
body[data-page="home"] .editorial-hero .hero-overlay {
  inset: 0 !important;
  width: 100%;
  height: 100% !important;
}
body[data-page="home"] .editorial-hero .hero-media img,
body[data-page="home"] .editorial-hero .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
}
body[data-page="home"] .editorial-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,7,9,.82) 0%, rgba(5,7,9,.62) 34%, rgba(5,7,9,.12) 72%),
    linear-gradient(0deg, rgba(5,7,9,.46) 0%, transparent 48%);
}
body[data-page="home"] .editorial-hero .hero-content {
  top: auto !important;
  right: auto;
  bottom: clamp(90px, 11vh, 126px);
  left: max(6vw, 48px);
  width: min(620px, calc(100% - 96px));
  max-width: 620px;
  padding: 0 !important;
  overflow: visible;
}
body[data-page="home"] .editorial-hero .hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
}
body[data-page="home"] .editorial-hero .hero-content .eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}
body[data-page="home"] .editorial-hero .hero-content h1 {
  max-width: 620px !important;
  margin: 0;
  color: #fff;
  font-family: "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif !important;
  font-size: clamp(3.65rem, 5.4vw, 5.15rem) !important;
  font-weight: 650;
  line-height: .94 !important;
  letter-spacing: -.058em !important;
  text-transform: none !important;
  text-wrap: balance;
}
body[data-page="home"] .editorial-hero .hero-content h1 span {
  white-space: normal !important;
}
body[data-page="home"] .editorial-hero .hero-lead {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.55;
}
body[data-page="home"] .editorial-hero .button.light {
  min-height: 48px;
  margin-top: 30px;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 13px 19px 13px 22px;
  background: #fff;
  color: #111;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
body[data-page="home"] .editorial-hero .button.light span {
  margin-left: 8px;
  font-size: 1rem;
}
body[data-page="home"] .editorial-hero .button.light:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
  transform: translateY(-2px);
}

.carousel-controls {
  position: absolute;
  z-index: 8;
  right: max(5vw, 42px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}
.carousel-position {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.carousel-position b { font-size: .9rem; }
.carousel-position span { color: rgba(255,255,255,.5); font-size: .69rem; }
.carousel-progress {
  width: clamp(86px, 10vw, 150px);
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.28);
}
.carousel-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.carousel-progress i.running {
  animation: carouselProgress var(--carousel-duration, 7s) linear forwards;
}
.carousel-paused .carousel-progress i { animation-play-state: paused; }
.carousel-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(12,14,16,.16);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.carousel-controls button:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
  transform: translateY(-2px);
}
body[data-editor-mode="true"] .carousel-controls { display: none; }

body[data-page="home"] .editorial-hero .hero-slide .hero-content > * {
  opacity: 0;
  transform: translateY(24px);
}
body[data-page="home"] .editorial-hero .hero-slide.active .hero-content > * {
  animation: heroEditorialIn .72s cubic-bezier(.2,.75,.2,1) both;
}
body[data-page="home"] .editorial-hero .hero-slide.active .hero-content > :nth-child(1) { animation-delay: .12s; }
body[data-page="home"] .editorial-hero .hero-slide.active .hero-content > :nth-child(2) { animation-delay: .2s; }
body[data-page="home"] .editorial-hero .hero-slide.active .hero-content > :nth-child(3) { animation-delay: .3s; }
body[data-page="home"] .editorial-hero .hero-slide.active .hero-content > :nth-child(4) { animation-delay: .39s; }
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .editorial-hero .hero-slide.active .hero-media img {
  animation: heroImageSettle 1.15s cubic-bezier(.2,.7,.2,1) both !important;
}

body[data-animation="suave"] .reveal-item {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(52px);
  transition:
    opacity .82s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    filter .78s ease var(--reveal-delay, 0ms);
}
body[data-animation="suave"] .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
body[data-animation="dinamico"] .reveal-item {
  opacity: 0;
  filter: blur(11px);
  transform: translateY(64px) scale(.97);
}
body[data-animation="dinamico"] .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes heroEditorialIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageSettle {
  from { transform: scale(1.035); filter: saturate(.92); }
  to { transform: scale(1); filter: saturate(1); }
}
@keyframes carouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 700px) {
  body[data-page="home"] .editorial-hero {
    height: min(78svh, 700px) !important;
    min-height: 600px;
  }
  body[data-page="home"] .editorial-hero .hero-media,
  body[data-page="home"] .editorial-hero .hero-overlay {
    inset: 0 !important;
    height: 100% !important;
  }
  body[data-page="home"] .editorial-hero .hero-overlay {
    background:
      linear-gradient(0deg, rgba(5,7,9,.86) 0%, rgba(5,7,9,.38) 52%, rgba(5,7,9,.08) 78%),
      linear-gradient(90deg, rgba(5,7,9,.22), transparent 78%);
  }
  body[data-page="home"] .editorial-hero .hero-content {
    top: auto !important;
    right: 20px;
    bottom: 90px;
    left: 20px;
    width: auto;
    max-width: none;
    padding: 0 !important;
  }
  body[data-page="home"] .editorial-hero .hero-content h1 {
    max-width: 100% !important;
    font-size: clamp(2.45rem, 11.4vw, 3.45rem) !important;
    line-height: .95 !important;
  }
  body[data-page="home"] .editorial-hero .hero-lead {
    max-width: 92%;
    margin-top: 18px;
    font-size: .96rem;
  }
  body[data-page="home"] .editorial-hero .button.light {
    min-height: 45px;
    margin-top: 22px;
    padding: 11px 17px 11px 19px;
  }
  .carousel-controls {
    right: 18px;
    bottom: 23px;
    left: 18px;
    justify-content: flex-end;
  }
  .carousel-progress {
    width: auto;
    flex: 1 1 auto;
  }
  .carousel-controls button {
    width: 38px;
    height: 38px;
  }
}

body[data-animation="sin_animacion"] .editorial-hero .hero-content > *,
body[data-editor-mode="true"] .editorial-hero .hero-content > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .editorial-hero .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .carousel-progress i { animation: none !important; transform: scaleX(1); }
}


/* Legibilidad reforzada para tarjetas de unidades */
.unit-image::after {
  background:
    linear-gradient(90deg, rgba(7,10,14,.62) 0%, rgba(7,10,14,.28) 46%, rgba(7,10,14,.06) 78%),
    linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,0,0,.16) 52%, rgba(0,0,0,.82) 100%);
}
.unit-copy h3 {
  max-width: min(92%, 480px);
  font-size: clamp(1.35rem, 1.8vw, 2rem) !important;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 3px 18px rgba(0,0,0,.92), 0 1px 2px rgba(0,0,0,1);
}
.unit-card:hover .unit-image::after,
.unit-card:focus-within .unit-image::after {
  background:
    linear-gradient(90deg, rgba(7,10,14,.78) 0%, rgba(7,10,14,.5) 54%, rgba(7,10,14,.18) 84%),
    linear-gradient(180deg, rgba(0,0,0,.12) 12%, rgba(0,0,0,.42) 54%, rgba(0,0,0,.94) 100%);
}
@media (hover: none), (max-width: 700px) {
  .unit-image::after {
    background:
      linear-gradient(90deg, rgba(7,10,14,.68) 0%, rgba(7,10,14,.32) 64%, rgba(7,10,14,.1) 100%),
      linear-gradient(180deg, rgba(0,0,0,.04) 18%, rgba(0,0,0,.34) 54%, rgba(0,0,0,.94) 100%);
  }
  .unit-copy h3 { text-shadow: 0 3px 16px rgba(0,0,0,.95), 0 1px 2px #000; }
}


/* Marcas oficiales en una sola línea */
.footer-brand-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: clamp(10px, 1.25vw, 20px) !important;
  white-space: nowrap;
}
.footer-brand-list b {
  flex: 0 0 auto;
  font-size: clamp(.66rem, .72vw, .82rem) !important;
  letter-spacing: .055em !important;
}


/* Corrección estructural: hero full-bleed, tarjetas alineadas y productos Shopify */
body[data-page="home"] #site-root {
  width: 100%;
  max-width: none;
}
body[data-page="home"] .editorial-hero {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body[data-page="home"] .editorial-hero .carousel-track,
body[data-page="home"] .editorial-hero .hero-slide {
  width: 100% !important;
  max-width: none !important;
}

.unit-copy {
  align-items: flex-start;
  justify-content: center;
}
.unit-copy h3 {
  display: flex;
  min-height: 2.08em;
  width: 100%;
  max-width: 100% !important;
  align-items: center;
  margin: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: 1.04 !important;
}
.unit-copy h3 span {
  max-width: 100%;
  white-space: normal !important;
}
.unit-copy p { width: min(100%, 520px); }

.featured-products-section {
  overflow: hidden;
}
.featured-products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.featured-products-heading h2 {
  max-width: 980px;
}
.featured-products-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-bottom: 6px;
}
.featured-products-nav button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #cfd3d8;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.featured-products-nav button:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}
.featured-products-viewport {
  width: 100%;
  overflow: hidden;
}
.featured-products-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.featured-products-track::-webkit-scrollbar { display: none; }
.shopify-product-card {
  flex: 0 0 clamp(260px, 27vw, 335px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.shopify-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(17,17,17,.1);
}
.shopify-product-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.shopify-product-media {
  height: auto;
  aspect-ratio: 1 / .82;
  overflow: hidden;
  background: #f4f5f7;
}
.shopify-product-media img {
  padding: 22px;
  object-fit: contain;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.shopify-product-card:hover .shopify-product-media img { transform: scale(1.035); }
.product-image-placeholder {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.product-image-placeholder span {
  color: #111;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
}
.product-image-placeholder b {
  color: #7a7f86;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.shopify-product-copy {
  display: flex;
  min-height: 220px;
  flex: 1;
  flex-direction: column;
  padding: 23px 23px 25px;
}
.shopify-product-copy > span {
  color: #777c83;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.shopify-product-copy h3 {
  margin: 11px 0 18px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.shopify-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin-top: auto;
}
.shopify-product-price del { color: #969ba1; font-size: .82rem; }
.shopify-product-price strong { font-size: 1.17rem; }
.shopify-product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
}
.shopify-product-link i { color: var(--accent); font-size: 1rem; font-style: normal; }
.featured-products-empty {
  margin: 0;
  border: 1px dashed #cbd0d6;
  border-radius: 20px;
  padding: 42px 24px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}
.product-loading {
  min-height: 440px;
  border: 0;
  background: linear-gradient(90deg, #f0f1f3 25%, #f8f8f9 40%, #f0f1f3 60%);
  background-size: 300% 100%;
  animation: productLoading 1.3s ease infinite;
}
@keyframes productLoading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
body[data-editor-mode="true"] .product-loading { animation: none; }

@media (max-width: 700px) {
  body[data-page="home"] .editorial-hero {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .unit-copy h3 { min-height: 0; }
  .featured-products-heading { align-items: flex-end; }
  .featured-products-heading h2 { font-size: clamp(2.35rem, 11vw, 3.35rem) !important; }
  .featured-products-nav button { width: 42px; height: 42px; }
  .shopify-product-card { flex-basis: min(82vw, 310px); }
}


/* Scroll storytelling: entradas visibles, progreso y hero escalonado */
.scroll-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), #ffb24d);
  box-shadow: 0 0 12px rgba(255,136,0,.32);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .08s linear;
}

.reveal-enabled .reveal-item {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, 54px, 0);
  transition:
    opacity .9s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms),
    filter .8s ease var(--reveal-delay, 0ms);
}
.reveal-enabled .reveal-item.reveal-copy {
  transform: translate3d(0, 42px, 0);
}
.reveal-enabled .reveal-item.reveal-card {
  transform: translate3d(0, 64px, 0) scale(.965);
}
.reveal-enabled .reveal-item.reveal-wide {
  transform: translate3d(-46px, 0, 0);
}
.reveal-enabled .reveal-item.reveal-footer {
  transform: translate3d(0, 34px, 0);
}
.reveal-enabled .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

body[data-animation="dinamico"].reveal-enabled .reveal-item {
  transition-duration: 1.05s;
}
body[data-animation="dinamico"].reveal-enabled .reveal-item.reveal-card {
  transform: translate3d(0, 82px, 0) scale(.94);
}
body[data-animation="dinamico"].reveal-enabled .reveal-item.reveal-card.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes heroCopyIn {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, 36px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}
body:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .hero-slide.active .hero-content > * {
  animation: heroCopyIn .82s cubic-bezier(.2,.72,.2,1) both;
}
body:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .hero-slide.active .hero-content > :nth-child(2) { animation-delay: .08s; }
body:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .hero-slide.active .hero-content > :nth-child(3) { animation-delay: .16s; }
body:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .hero-slide.active .hero-content > :nth-child(4) { animation-delay: .24s; }

body[data-editor-mode="true"] .scroll-progress,
body[data-animation="sin_animacion"] .scroll-progress {
  display: none !important;
}

@media (max-width: 700px) {
  .scroll-progress { height: 2px; }
  .reveal-enabled .reveal-item,
  .reveal-enabled .reveal-item.reveal-copy,
  .reveal-enabled .reveal-item.reveal-card {
    filter: none;
    transform: translate3d(0, 34px, 0) scale(.985);
  }
  .reveal-enabled .reveal-item.reveal-wide {
    filter: none;
    transform: translate3d(-24px, 0, 0);
  }
  .reveal-enabled .reveal-item.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
  .reveal-enabled .reveal-item {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-slide.active .hero-content > * { animation: none !important; }
}


/* Movimiento continuo del hero y guía de scroll */
body:not([data-editor-mode="true"]):not([data-animation="sin_animacion"]) .editorial-hero .hero-media {
  transform: translate3d(0, var(--hero-scroll-y, 0px), 0) scale(1.08);
  transform-origin: center center;
  will-change: transform;
}
.site-header {
  transition: box-shadow .35s ease, background-color .35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(10,16,22,.08);
}
.hero-scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,.78);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .22em;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  transition: opacity .18s linear;
}
.hero-scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.24);
}
.hero-scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--accent);
  transform: translateY(-100%);
  animation: scrollCue 1.6s cubic-bezier(.55,.05,.35,1) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  48%, 62% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
body[data-animation="dinamico"]:not([data-editor-mode="true"]) .hero-slide.active .hero-content > * {
  animation-duration: 1.05s;
}
body[data-editor-mode="true"] .hero-scroll-cue,
body[data-animation="sin_animacion"] .hero-scroll-cue {
  display: none !important;
}
@media (max-width: 700px) {
  .hero-scroll-cue { bottom: 14px; }
  .hero-scroll-cue i { height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue i::after { animation: none; }
  .editorial-hero .hero-media { transform: none !important; }
}


/* Accesos completos en las unidades de negocio */
body:not([data-editor-mode="true"]) .unit-card[data-card-url] {
  cursor: pointer;
}
body:not([data-editor-mode="true"]) .unit-card[data-card-url]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

/* La selección Dinámico del editor tiene prioridad sobre la preferencia del sistema */
@media (prefers-reduced-motion: reduce) {
  body[data-animation="dinamico"] .reveal-enabled .reveal-item {
    opacity: 0 !important;
    filter: blur(3px) !important;
    transform: translate3d(0, 54px, 0) !important;
    transition:
      opacity 1.05s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms) !important,
      transform 1.05s cubic-bezier(.2,.72,.2,1) var(--reveal-delay, 0ms) !important,
      filter .9s ease var(--reveal-delay, 0ms) !important;
  }
  body[data-animation="dinamico"] .reveal-enabled .reveal-item.reveal-card {
    transform: translate3d(0, 82px, 0) scale(.94) !important;
  }
  body[data-animation="dinamico"] .reveal-enabled .reveal-item.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
  }
  body[data-animation="dinamico"]:not([data-editor-mode="true"]) .hero-slide.active .hero-content > * {
    animation: heroCopyIn 1.05s cubic-bezier(.2,.72,.2,1) both !important;
  }
  body[data-animation="dinamico"]:not([data-editor-mode="true"]) .hero-slide.active .hero-content > :nth-child(2) { animation-delay: .08s !important; }
  body[data-animation="dinamico"]:not([data-editor-mode="true"]) .hero-slide.active .hero-content > :nth-child(3) { animation-delay: .16s !important; }
  body[data-animation="dinamico"]:not([data-editor-mode="true"]) .hero-slide.active .hero-content > :nth-child(4) { animation-delay: .24s !important; }
  body[data-animation="dinamico"] .hero-scroll-cue i::after {
    animation: scrollCue 1.6s cubic-bezier(.55,.05,.35,1) infinite !important;
  }
  body[data-animation="dinamico"]:not([data-editor-mode="true"]) .editorial-hero .hero-media {
    transform: translate3d(0, var(--hero-scroll-y, 0px), 0) scale(1.08) !important;
  }
}


/* Movimiento editorial continuo ligado al scroll */
.fluid-scroll-item {
  backface-visibility: hidden;
  transform-origin: center center;
  transition: none !important;
  will-change: opacity, translate, scale, filter;
}
body[data-animation="dinamico"] .fluid-scroll-item {
  transition: none !important;
}
@media (max-width: 700px) {
  .fluid-scroll-item {
    will-change: opacity, translate, scale;
  }
}


/* Hover cinematográfico y continuo para unidades de negocio */
.unit-image::after,
.unit-image::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}
.unit-image::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,10,14,.58) 0%, rgba(7,10,14,.25) 48%, rgba(7,10,14,.04) 80%),
    linear-gradient(180deg, rgba(0,0,0,.02) 18%, rgba(0,0,0,.17) 55%, rgba(0,0,0,.82) 100%);
  transition: none;
}
.unit-image::before {
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(7,10,14,.78) 0%, rgba(7,10,14,.48) 56%, rgba(7,10,14,.16) 88%),
    linear-gradient(180deg, rgba(0,0,0,.09) 10%, rgba(0,0,0,.43) 54%, rgba(0,0,0,.94) 100%);
  transition: opacity .62s cubic-bezier(.2,.72,.2,1);
}
.unit-card:hover .unit-image::after,
.unit-card:focus-within .unit-image::after {
  background:
    linear-gradient(90deg, rgba(7,10,14,.58) 0%, rgba(7,10,14,.25) 48%, rgba(7,10,14,.04) 80%),
    linear-gradient(180deg, rgba(0,0,0,.02) 18%, rgba(0,0,0,.17) 55%, rgba(0,0,0,.82) 100%);
}
.unit-card:hover .unit-image::before,
.unit-card:focus-within .unit-image::before {
  opacity: 1;
}
.unit-card .unit-image img {
  transition:
    transform .78s cubic-bezier(.2,.72,.2,1),
    filter .62s cubic-bezier(.2,.72,.2,1);
}
.unit-copy h3 {
  transition: transform .58s cubic-bezier(.2,.72,.2,1);
}
.unit-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .64s cubic-bezier(.2,.72,.2,1),
    opacity .46s ease;
}
.unit-details-inner {
  min-height: 0;
  overflow: hidden;
  filter: blur(4px);
  transform: translate3d(0, 18px, 0);
  transition:
    transform .64s cubic-bezier(.2,.72,.2,1),
    filter .46s ease;
}
.unit-details .unit-details-inner p,
.unit-details .unit-details-inner a {
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: none;
}
.unit-details .unit-details-inner p {
  margin: 14px 0 0;
}
.unit-details .unit-details-inner a {
  display: inline-flex;
  margin: 18px 0 0;
}
.unit-card:hover .unit-details,
.unit-card:focus-within .unit-details {
  grid-template-rows: 1fr;
  opacity: 1;
}
.unit-card:hover .unit-details-inner,
.unit-card:focus-within .unit-details-inner {
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* Entrada inicial del banner: una sola animación, sin salto de escala */
@keyframes heroBannerInSmooth {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-content > * {
  animation: heroBannerInSmooth .88s cubic-bezier(.2,.74,.2,1) both !important;
}
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-content > :nth-child(1) { animation-delay: .04s !important; }
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-content > :nth-child(2) { animation-delay: .10s !important; }
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-content > :nth-child(3) { animation-delay: .16s !important; }
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-content > :nth-child(4) { animation-delay: .22s !important; }
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-media img,
body[data-page="home"]:not([data-editor-mode="true"]):not([data-animation="sin_animacion"])
.editorial-hero .hero-slide.active .hero-media video {
  animation: none !important;
}
body[data-page="home"] .editorial-hero .hero-slide {
  transition: opacity 1.05s cubic-bezier(.2,.72,.2,1), visibility 1.05s;
}

body[data-editor-mode="true"] .unit-details {
  grid-template-rows: 1fr;
  opacity: 1;
}
body[data-editor-mode="true"] .unit-details-inner {
  filter: none;
  transform: none;
}
@media (hover: none), (max-width: 700px) {
  .unit-details {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .unit-details-inner {
    filter: none;
    transform: none;
  }
  .unit-image::before {
    opacity: 1;
  }
}


/* Menú desplegable de soluciones */
.nav-solutions-menu {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.nav-solutions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-solutions-trigger > i {
  display: inline-block;
  color: var(--accent);
  font-size: .92rem;
  font-style: normal;
  line-height: 1;
  transform: translateY(-1px) rotate(0);
  transition: transform .32s cubic-bezier(.2,.72,.2,1);
}
.nav-solutions-dropdown {
  position: absolute;
  z-index: 150;
  top: calc(100% + 14px);
  left: 50%;
  width: min(340px, 88vw);
  padding: 9px;
  border: 1px solid rgba(17,17,17,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(15,20,26,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, 12px, 0);
  transition:
    opacity .26s ease,
    transform .36s cubic-bezier(.2,.72,.2,1),
    visibility .26s;
}
.nav-solutions-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 16px;
  content: "";
}
.primary-nav .nav-solutions-dropdown a {
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #111;
  opacity: 1;
  transition: background .22s ease, transform .22s ease;
}
.primary-nav .nav-solutions-dropdown a::after {
  display: none;
}
.nav-solutions-dropdown a > span {
  color: #a0a4aa;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.nav-solutions-dropdown a > b {
  font-size: .83rem;
  font-weight: 680;
}
.nav-solutions-dropdown a > i {
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
  text-align: right;
  transform: translateX(-4px);
  transition: transform .22s ease;
}
.nav-solutions-dropdown a:hover,
.nav-solutions-dropdown a:focus-visible {
  background: #f3f4f5;
  transform: translateX(3px);
}
.nav-solutions-dropdown a:hover > i,
.nav-solutions-dropdown a:focus-visible > i {
  transform: translateX(0);
}
.nav-solutions-menu:hover .nav-solutions-dropdown,
.nav-solutions-menu:focus-within .nav-solutions-dropdown,
.nav-solutions-menu.open .nav-solutions-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}
.nav-solutions-menu:hover .nav-solutions-trigger > i,
.nav-solutions-menu:focus-within .nav-solutions-trigger > i,
.nav-solutions-menu.open .nav-solutions-trigger > i {
  transform: translateY(1px) rotate(180deg);
}

@media (max-width: 980px) {
  .nav-solutions-menu {
    display: block;
    width: 100%;
    align-self: auto;
  }
  .nav-solutions-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .nav-solutions-menu .nav-solutions-dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0 8px;
    overflow: hidden;
    border-width: 0;
    border-radius: 14px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition:
      max-height .46s cubic-bezier(.2,.72,.2,1),
      opacity .28s ease,
      padding .46s cubic-bezier(.2,.72,.2,1),
      margin .46s cubic-bezier(.2,.72,.2,1),
      visibility .28s;
  }
  .nav-solutions-menu:not(.open) .nav-solutions-dropdown {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }
  .nav-solutions-menu.open .nav-solutions-dropdown {
    max-height: 260px;
    margin: 4px 0 8px;
    padding: 8px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav .nav-solutions-dropdown a {
    min-height: 52px;
    padding: 8px 10px;
  }
}

/* Títulos móviles legibles, incluso con líneas definidas en el editor. */
@media (max-width: 700px) {
  body[data-page] #site-root h1,
  body[data-page] #site-root h2,
  body[data-page] #site-root h3 {
    letter-spacing: -.025em !important;
    word-spacing: normal !important;
    line-height: 1.08 !important;
  }
}

/* Soluciones en móvil: imágenes completas con altura natural y texto separado. */
@media (max-width: 700px) {
  body[data-page="solution"] .solution-hero {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto;
    overflow: hidden;
    background: #111;
  }
  body[data-page="solution"] .solution-hero-media {
    position: relative;
    inset: auto !important;
    width: 100%;
    height: auto !important;
    flex: none;
    background: #111;
  }
  body[data-page="solution"] .solution-hero-media img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    object-fit: contain !important;
    object-position: center !important;
  }
  body[data-page="solution"] .solution-hero-overlay { display: none; }
  body[data-page="solution"] .solution-hero-content {
    position: relative;
    inset: auto !important;
    width: 100%;
    margin: 0;
    padding: 28px 20px 36px !important;
  }
  body[data-page="solution"] .solution-hero-content h1 {
    font-size: clamp(1.9rem, 8.7vw, 2.35rem) !important;
    margin: 12px 0 18px;
  }
  body[data-page="solution"] .solution-system-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 0 24px !important;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  body[data-page="solution"] .solution-system-card.has-image > .solution-system-background {
    position: relative;
    inset: auto !important;
    z-index: auto;
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    max-height: none;
    object-fit: contain !important;
    filter: none !important;
    transform: none !important;
    background: var(--surface);
    pointer-events: auto;
  }
  body[data-page="solution"] .solution-system-card > .solution-system-shade {
    display: none !important;
  }
  body[data-page="solution"] .solution-system-card h3 {
    margin: 24px 20px 12px !important;
    color: var(--ink) !important;
    text-shadow: none !important;
    transform: none !important;
  }
  body[data-page="solution"] .solution-system-card p {
    height: auto;
    max-height: none !important;
    min-height: 0;
    margin: 0 20px !important;
    overflow: visible;
    color: var(--muted) !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body[data-page="solution"] .solution-system-card:not(.has-image) {
    padding-top: 4px !important;
  }
}

/* Navegación y clientes: proporciones consistentes en todas las pantallas. */
.primary-nav .nav-solutions-dropdown a > b {
  color: #111 !important;
  opacity: 1 !important;
}
.logo-section { padding: 70px 0; }
body[data-page] #site-root .logo-section h2 {
  max-width: 680px;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
}
.logo-marquee { margin-top: 32px; }
.logo-item { width: clamp(210px, 19vw, 285px); height: 145px; }
.logo-item img { max-width: 100%; max-height: 130px; opacity: .9; }
.logo-group { gap: clamp(36px, 4vw, 70px); }
@media (max-width: 980px) {
  .primary-nav .nav-solutions-menu .nav-solutions-dropdown {
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .primary-nav .nav-solutions-dropdown a {
    width: 100%;
    grid-template-columns: 26px minmax(0, 1fr) 20px;
  }
  .primary-nav .nav-solutions-dropdown a > b {
    font-size: .92rem;
    white-space: normal;
  }
}
@media (max-width: 700px) {
  .logo-section { padding: 48px 0; }
  body[data-page] #site-root .logo-section h2 {
    width: calc(100% - 40px);
    max-width: 460px !important;
    font-size: clamp(1.3rem, 5.5vw, 1.65rem) !important;
    line-height: 1.2 !important;
  }
  .logo-marquee { margin-top: 24px; }
  .logo-group { gap: 30px; padding: 10px 20px; }
  .logo-item { width: 185px; height: 120px; }
  .logo-item img { max-width: 185px; max-height: 110px; }
}

/* CTA del banner: contorno ligero y flecha de líneas, escritorio y móvil. */
body[data-page] .editorial-hero .hero-content .button.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(8,12,16,.12);
  color: #fff;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body[data-page] .editorial-hero .hero-content .button.light:hover,
body[data-page] .editorial-hero .hero-content .button.light:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.15);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.hero-cta-arrow {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
@media (max-width: 700px) {
  body[data-page] .editorial-hero .hero-content .button.light {
    min-height: 44px;
    padding: 11px 16px;
    gap: 12px;
    font-size: .82rem;
  }
}

/* Menús y proceso sin numeración decorativa. */
.primary-nav .nav-solutions-dropdown a {
  grid-template-columns: minmax(0, 1fr) 20px;
}
.solution-steps article {
  grid-template-columns: 1fr;
}

/* Guía de continuidad: resplandor tenue en lugar de la línea vertical. */
body[data-page] .hero-scroll-cue {
  left: 50%;
  bottom: -18px;
  width: min(360px, 74vw);
  height: 42px;
  display: block;
  overflow: visible;
}
body[data-page] .hero-scroll-cue > i { display: none !important; }
body[data-page] .hero-scroll-cue::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.24), rgba(255,255,255,.08) 42%, transparent 72%);
  filter: blur(9px);
  transform-origin: center bottom;
  animation: heroEdgeBreath 3.4s ease-in-out infinite;
}
@keyframes heroEdgeBreath {
  0%, 100% { opacity: .25; transform: scale(.86, .78); }
  50% { opacity: .8; transform: scale(1, 1); }
}
body[data-editor-mode="true"] .hero-scroll-cue,
body[data-animation="sin_animacion"] .hero-scroll-cue { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue::before { animation: none !important; }
}

/* Institutional Shopify showcase: complete product photos and compact, readable cards. */
.featured-products-heading h2 { font-size: clamp(1.8rem, 3.8vw, 3.2rem) !important; line-height: 1.1; overflow-wrap: normal; }
.featured-products-heading > div:first-child { min-width: 0; }
.featured-products-nav[hidden] { display: none; }
.shopify-product-media { background: #fff; aspect-ratio: 4 / 3; }
.shopify-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.shopify-product-copy { min-height: 200px; padding: 20px; }
.shopify-product-copy h3 { font-size: clamp(1rem, 1.35vw, 1.15rem) !important; line-height: 1.35; letter-spacing: -.015em; text-transform: none; overflow-wrap: anywhere; }
.shopify-product-price strong { font-size: 1.05rem; }
@media (max-width: 700px) {
  .featured-products-heading h2 { font-size: clamp(1.65rem, 7vw, 2.25rem) !important; }
  .shopify-product-card { flex-basis: min(82vw, 300px); }
}

.featured-products-section .shopify-product-card{border-color:#e7e7e7;border-radius:16px;box-shadow:none}
.featured-products-section .shopify-product-media{isolation:isolate;background:#eee;aspect-ratio:1;overflow:hidden}
.featured-products-section .shopify-product-media img{display:block;width:100%;height:100%;padding:12px;object-fit:contain;object-position:center;mix-blend-mode:darken}
.featured-products-section .shopify-product-copy{padding:20px;min-height:190px}
.featured-products-section .shopify-product-copy h3{font-weight:550;overflow-wrap:normal;word-break:normal}
@media(max-width:700px){.featured-products-section .shopify-product-card{border-radius:12px}.featured-products-section .shopify-product-media img{padding:10px}.featured-products-section .shopify-product-copy{padding:18px;min-height:175px}}
