/* Movimiento estable: el encabezado conserva su altura y la foto no se desplaza. */
.site-header, .site-header.scrolled { height: 94px; transition: box-shadow .25s; }
.hero-photo { animation: none; transform: none; }
.hero-copy { opacity: 1; transform: none; }
.hero-draft { position: absolute; width: 250px; height: 184px; top: 80px; right: 35px; z-index: 3; color: #fff; pointer-events: none; background: rgba(15,30,46,.45); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(5px); }
.draft-guides { stroke: currentColor; stroke-width: .65; opacity: .23; }
.draft-trace { stroke: var(--yellow); stroke-width: 1.5; }
.draft-trace path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draft-dot { fill: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .motion-in-view .draft-trace path { animation: draft-build 7s cubic-bezier(.3,0,.2,1) infinite; }
  .motion-in-view .draft-dot { animation: draft-beacon 3.5s ease-in-out infinite; transform-origin: 160px 110px; }
  .hero .eyebrow-rule { animation: rule-intro .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  .service-shortcuts a:hover .line-icon path { animation: icon-draw .7s ease-out both; }
  .steps.is-visible article { animation: step-enter .7s ease-out both; }
  .steps.is-visible article:nth-child(2) { animation-delay: .1s; }
  .steps.is-visible article:nth-child(3) { animation-delay: .2s; }
  .steps.is-visible article:nth-child(4) { animation-delay: .3s; }
}
@keyframes draft-build { 0%,8% { stroke-dashoffset: 1; opacity: .2; } 48%,87% { stroke-dashoffset: 0; opacity: .95; } 100% { stroke-dashoffset: 0; opacity: .2; } }
@keyframes draft-beacon { 0%,100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes icon-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes rule-intro { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-enter { from { opacity: .2; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.motion-scene:not(.motion-in-view) *, .motion-paused .motion-scene * { animation-play-state: paused !important; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .js-motion .reveal, .motion-paused.js-motion .reveal { opacity: 1; transform: none; transition: none; }
.motion-paused .sim-structure { transition: none; }
.motion-paused .steps article, .motion-paused .hero .eyebrow-rule { animation: none !important; opacity: 1; transform: none; }
.motion-toggle { font-size: 10px; padding: 8px 0; border: 0; color: var(--navy); background: transparent; font-weight: 700; text-align: left; }
.motion-toggle:disabled { cursor: default; color: #53616d; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Simulador */
.simulator-section { background: #eceff0; border-top: 1px solid #d8dee1; }
.simulator-section .section-title { font-size: clamp(34px,4.4vw,64px); }
.simulator-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.simulator-grid[hidden], .sim-scope[hidden] { display: none; }
.sim-controls { padding: 35px 40px; background: #fff; min-width: 0; }
.sim-step-label { display: flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 800; letter-spacing: .1em; padding-bottom: 26px; border-bottom: 1px solid #dde2e5; }
.sim-step-label > span { color: #86703a; }
.sim-reset { margin-left: auto; font-size: 11px; letter-spacing: 0; font-weight: 600; padding: 6px 0; background: none; border: 0; color: #53616d; }
.sim-projects { border: 0; padding: 0; margin: 25px 0 29px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; min-width: 0; }
.sim-projects legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.sim-projects label { position: relative; cursor: pointer; min-width: 0; }
.sim-projects input { position: absolute; opacity: 0; top: 10px; left: 10px; width: 1px; height: 1px; }
.sim-projects label > span { border: 1px solid #d9dfe3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; padding: 16px 3px 14px; font-weight: 600; font-size: 10px; min-height: 95px; background: #fafbfb; transition: background .2s,border-color .2s; }
.sim-projects input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--yellow); }
.sim-projects input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sim-projects svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sim-area-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.sim-area-heading > label { font-weight: 700; font-size: 13px; }
.sim-area-number { display: flex; align-items: baseline; gap: 7px; border-bottom: 2px solid var(--yellow); }
.sim-area-number input { width: 90px; font-size: 30px; line-height: 1.4; font-weight: 700; text-align: right; border: 0; background: transparent; color: var(--navy); padding: 0; }
.sim-area-number span { font-size: 13px; font-weight: 600; }
#sim-area-range { display: block; appearance: none; width: 100%; height: 5px; background: linear-gradient(to right,var(--yellow) var(--range-progress,26%),#dbe1e5 var(--range-progress,26%)); border-radius: 0; margin: 26px 0 15px; cursor: pointer; }
#sim-area-range::-webkit-slider-thumb { appearance: none; width: 21px; height: 21px; border-radius: 50%; background: var(--navy); border: 4px solid var(--yellow); box-shadow: 0 0 0 4px #fff; }
#sim-area-range::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 4px solid var(--yellow); }
.sim-range-labels { display: flex; justify-content: space-between; font-size: 10px; color: #596775; font-weight: 600; }
.sim-help { font-size: 11px; line-height: 1.8; color: #596775; margin: 12px 0 23px; }
.sim-field { margin: 20px 0 0; min-width: 0; }
.sim-field > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.sim-field select { width: 100%; padding: 14px 30px 14px 12px; font-size: 12px; border: 1px solid #d4dce1; border-radius: 0; color: var(--navy); background: #f9fafb; min-height: 48px; text-overflow: ellipsis; }
.sim-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim-error { color: #a11f1f; font-size: 12px; line-height: 1.8; margin: 0; }
.sim-error:empty { display: none; }
.sim-result { background: var(--navy); color: #fff; padding: 30px 38px 25px; min-width: 0; }
.sim-result-heading { display: flex; justify-content: space-between; gap: 15px; color: #c5cfd7; font-size: 8px; letter-spacing: .12em; font-weight: 600; }
.sim-result-heading > span:first-child { display: flex; align-items: center; gap: 9px; }
.sim-result-heading i { background: var(--yellow); width: 5px; height: 5px; border-radius: 50%; flex: none; }
.sim-blueprint { position: relative; color: #d3dee5; max-width: 440px; margin: 17px auto 24px; }
.sim-blueprint svg { display: block; width: 100%; height: auto; }
.sim-structure { transform: scale(var(--model-scale,1)); transform-origin: 245px 160px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.blueprint-floor { stroke: #a6b7c4; stroke-width: 1.3; fill: #24364a; }
.sim-deck-lines { stroke: #697f92; stroke-width: 1; }
.sim-roof { stroke: var(--yellow); stroke-width: 1.25; }
.roof-fill { fill: #f2b400; fill-opacity: .08; }
.sim-grill { stroke: var(--yellow); stroke-width: 1.5; }
.sim-walls { stroke: #adc1cf; fill: #24364a; stroke-width: 1.2; }
.sim-window { fill: #112538; }
.sim-grill, .sim-walls { display: none; }
.sim-blueprint[data-kind="deck"] .sim-roof { display: none; }
.sim-blueprint[data-kind="quincho"] .sim-grill, .sim-blueprint[data-kind="ampliacion"] .sim-walls { display: block; }
.sim-blueprint[data-kind="ampliacion"] .sim-deck-lines { display: none; }
.sim-dimensions { stroke: #73899b; stroke-width: .8; }
.sim-dimensions text { stroke: none; fill: #c8d4de; font-family: 'Montserrat',Arial,sans-serif; font-size: 9px; letter-spacing: .1em; }
.sim-dimensions #sim-drawing-area { fill: var(--yellow); font-size: 14px; font-weight: 600; }
.sim-visual-note { display: block; text-align: center; font-size: 7px; letter-spacing: .13em; color: #adc0cc; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .sim-blueprint.motion-in-view .blueprint-trace { stroke-dasharray: 1; animation: blueprint-intro 1.8s ease-out both; }
}
@keyframes blueprint-intro { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sim-kicker { font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.sim-amount { padding: 20px 0; border-top: 1px solid #3a4b5c; }
.sim-amount .sim-kicker { color: #c8d4de; }
.sim-total { margin: 13px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 15px; letter-spacing: -.04em; }
.sim-total > strong { font-size: clamp(27px,2.6vw,38px); color: var(--yellow); font-weight: 700; }
.sim-total > span { font-size: 12px; color: #d7e0e7; letter-spacing: 0; }
.sim-total > span strong { font-size: clamp(19px,1.9vw,28px); letter-spacing: -.03em; color: #fff; font-weight: 600; display: block; margin-top: 3px; }
.sim-amount p { font-size: 11px; line-height: 1.8; color: #d7e0e7; margin: 8px 0; }
.sim-tax-note { font-size: 10px; line-height: 1.6; color: #c8d4de; }
.sim-warning { background: #25374a; border-left: 2px solid var(--yellow); padding: 11px 14px; font-size: 11px; line-height: 1.8; color: #e4eaf0; }
.sim-breakdown { border-top: 1px solid #3a4b5c; border-bottom: 1px solid #3a4b5c; }
.sim-breakdown summary { display: flex; justify-content: space-between; gap: 12px; padding: 17px 0; list-style: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.sim-breakdown summary::-webkit-details-marker { display: none; }
.sim-breakdown summary > span { color: var(--yellow); font-size: 18px; }
.sim-breakdown[open] summary > span { transform: rotate(45deg); }
.sim-breakdown dl { margin: 0; }
.sim-breakdown dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid #2d4051; }
.sim-breakdown dt { font-size: 10px; color: #c8d4de; line-height: 1.7; }
.sim-breakdown dd { margin: 0; text-align: right; font-size: 11px; white-space: nowrap; line-height: 1.7; }
.sim-breakdown > p { font-size: 10px; color: #c8d4de; line-height: 1.8; margin: 15px 0; }
.sim-result-actions { display: grid; gap: 14px; margin-top: 23px; }
.sim-result-actions .button { justify-content: space-between; min-height: 56px; }
.sim-download { background: none; border: 0; padding: 3px 0; color: #d7e0e7; display: flex; align-items: center; justify-content: center; gap: 13px; font-size: 11px; font-weight: 600; }
.sim-download:hover { color: var(--yellow); }
.sim-download:disabled, .sim-result-actions [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.sim-disclaimer { color: #b3c1cc; font-size: 10px; line-height: 1.85; margin: 20px 0 0; }
.sim-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; background: #fff; padding: 27px 40px; border-top: 1px solid #d9e0e5; }
.sim-scope .sim-kicker { color: var(--navy); }
.sim-scope p { font-size: 12px; line-height: 1.9; color: #53616d; margin: 12px 0 0; }
.sim-methodology { margin-top: 25px; border-bottom: 1px solid #c5cfd6; }
.sim-methodology summary { display: flex; justify-content: space-between; padding: 12px 0 18px; gap: 20px; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.sim-methodology summary::-webkit-details-marker { display: none; }
.sim-methodology-content { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 10px 0 25px; }
.sim-methodology h3 { font-size: 15px; margin: 0 0 15px; }
.sim-methodology p, .sim-methodology li { font-size: 12px; line-height: 1.9; color: #465764; }
.sim-methodology ul { padding-left: 18px; }
.sim-methodology li { padding-bottom: 10px; }
.sim-methodology a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }
.sim-noscript { background: #fff; padding: 25px; line-height: 1.8; }
@media (max-width: 1190px) {
  .desktop-nav { gap: 16px; }
  .nav-quote { font-size: 10px; padding: 15px 13px; }
  .sim-controls { padding: 30px 25px; }
  .sim-result { padding: 30px 25px; }
  .sim-field-row { grid-template-columns: 1fr; gap: 0; }
  .sim-result-heading { font-size: 7px; }
  .sim-projects { gap: 5px; }
  .sim-projects label > span { font-size: 9px; }
}
@media (max-width: 980px) {
  .site-header, .site-header.scrolled { height: 80px; }
  .hero-draft { width: 190px; top: 65px; right: 18px; opacity: .5; }
  .simulator-grid { grid-template-columns: 1fr; }
  .sim-field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sim-controls { padding: 35px; }
  .sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 30px 35px; }
  .sim-result-heading { grid-column: 1 / -1; font-size: 9px; margin-bottom: 20px; }
  .sim-blueprint { grid-column: 1; grid-row: 2 / 5; align-self: center; width: 100%; margin: 0; }
  .sim-amount, .sim-warning, .sim-breakdown, .sim-result-actions, .sim-disclaimer { grid-column: 2; }
  .sim-total > strong { font-size: 30px; }
  .sim-total > span strong { font-size: 24px; }
  .sim-scope { gap: 30px; padding: 27px 35px; }
  .sim-breakdown dl > div { flex-direction: column; gap: 3px; }
  .sim-breakdown dd { text-align: left; }
}
@media (max-width: 640px) {
  .site-header, .site-header.scrolled { height: 76px; }
  .hero-draft { display: none; }
  .simulator-section .section-title { font-size: clamp(32px,8.5vw,43px); }
  .sim-controls, .sim-result { padding: 25px 20px; }
  .sim-step-label { font-size: 8px; gap: 8px; }
  .sim-reset { font-size: 10px; }
  .sim-projects { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .sim-projects label > span { flex-direction: row; padding: 13px 5px; gap: 8px; min-height: 66px; font-size: 10px; }
  .sim-projects svg { width: 28px; height: 28px; }
  .sim-area-heading > label { font-size: 12px; }
  .sim-area-number input { width: 74px; font-size: 27px; }
  .sim-field-row { grid-template-columns: 1fr; gap: 0; }
  .sim-field select { font-size: 16px; padding: 13px 5px; }
  .sim-result { display: block; }
  .sim-result-heading { font-size: 7px; }
  .sim-blueprint { margin: 0 auto 25px; }
  .sim-amount { padding-top: 23px; }
  .sim-total { gap: 10px 20px; }
  .sim-total > strong { font-size: 31px; }
  .sim-total > span strong { font-size: 25px; }
  .sim-breakdown dl > div { flex-direction: column; }
  .sim-breakdown dd { text-align: left; }
  .sim-result-actions .button { padding: 18px 16px; font-size: 11px; gap: 10px; white-space: normal; }
  .sim-scope, .sim-methodology-content { grid-template-columns: 1fr; gap: 25px; padding: 25px 20px; }
  .sim-methodology-content { padding: 10px 0 25px; }
  .sim-methodology summary { font-size: 11px; line-height: 1.8; }
  .sim-disclaimer, .sim-help { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-draft *, .sim-blueprint *, .steps article, .hero .eyebrow-rule { animation: none !important; transition: none !important; }
  .sim-structure { transition: none; }
  .draft-trace path, .blueprint-trace { stroke-dashoffset: 0 !important; }
}
