:root {
  color-scheme: light;
  --orange: #e79720;
  --orange-dark: #bb7411;
  --ink: #0b1b26;
  --text: #313638;
  --muted: #62696b;
  --line: #dcdedb;
  --paper: #f4f3f0;
  --white: #fff;
  --font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
section[id] { scroll-margin-top: 80px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: -50px; left: 16px; padding: 10px 15px; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { position: relative; z-index: 10; background: var(--white); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.brand-copy { display: block; white-space: nowrap; line-height: 1; }
.brand-copy strong { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: -.055em; }
.brand-copy small { display: block; margin-top: 5px; font-size: .57rem; font-weight: 800; letter-spacing: .13em; }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 3vw, 40px); }
.main-nav > a { font-size: .8rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; transition: color .2s ease; }
.main-nav > a:hover { color: var(--orange); }
.main-nav .nav-contact { padding: 14px 17px; color: var(--white); background: var(--ink); }
.main-nav .nav-contact:hover { color: var(--white); background: var(--orange); }
.nav-contact span { margin-left: 11px; font-size: 1rem; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(700px, calc(100svh - 94px)); display: flex; align-items: center; color: var(--white); background: linear-gradient(90deg, rgba(7,20,29,.88) 0%, rgba(7,20,29,.63) 49%, rgba(7,20,29,.23) 100%), url('assets/hero-obra.png') center / cover no-repeat; }
.hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--orange); content: ''; }
.hero-content { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 86px 100px; }
.hero-copy { max-width: 850px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; color: #f8d6a4; font-size: .75rem; font-weight: 800; letter-spacing: .2em; }
.hero-kicker span { width: 36px; height: 3px; background: var(--orange); }
.hero h1 { margin-bottom: 23px; font-size: clamp(3.5rem, 7vw, 6.4rem); font-weight: 900; letter-spacing: -.068em; line-height: .98; text-transform: uppercase; }
.hero h1 em { color: #ffc16a; font-style: normal; }
.hero-description { max-width: 560px; margin-bottom: 30px; color: #e5e5e0; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 0 21px; border: 2px solid transparent; font-size: .79rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1rem; }
.button-orange { color: var(--white); background: var(--orange); border-color: var(--orange); }
.button-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.button-outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.7); }
.button-outline:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.hero-index { align-self: end; padding: 0 0 6px 20px; color: rgba(255,255,255,.85); font-size: .65rem; font-weight: 800; letter-spacing: .14em; white-space: nowrap; writing-mode: vertical-rl; }

.services-rail { color: var(--white); background: var(--ink); }
.rail-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rail-inner span { font-size: .71rem; font-weight: 850; letter-spacing: .18em; white-space: nowrap; }
.rail-inner i { width: 5px; height: 5px; flex: 0 0 5px; background: var(--orange); transform: rotate(45deg); }

.eyebrow { margin-bottom: 16px; color: var(--orange); font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.intro-section { padding: clamp(80px, 9vw, 130px) 0; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: end; gap: 90px; }
.intro-section h2, .services-section h2, .method-section h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.4vw, 4.7rem); font-weight: 850; letter-spacing: -.065em; line-height: 1.06; }
.intro-section h2 span, .method-section h2 span { color: var(--orange); }
.intro-body { max-width: 435px; padding-bottom: 7px; }
.intro-body p { margin-bottom: 26px; color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.underlined-link { display: inline-flex; align-items: center; gap: 23px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); font-size: .78rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.underlined-link span { color: var(--orange); font-size: 1.1rem; }
.underlined-link:hover { color: var(--orange); }

.services-section { padding: clamp(80px, 9vw, 120px) 0; background: var(--white); }
.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 48px; }
.services-heading p:last-child { max-width: 330px; margin-bottom: 0; color: var(--muted); font-size: .97rem; line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { min-height: 350px; display: flex; flex-direction: column; padding: 30px; background: #f6f6f3; border: 1px solid #e8e9e5; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.service-card:hover { background: var(--white); border-color: var(--orange); transform: translateY(-4px); }
.service-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 39px; }
.service-number { color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.service-top svg { width: 61px; height: 61px; color: var(--ink); }
.service-top svg path[stroke="#ed5a26"] { stroke: var(--orange); }
.service-card h3 { margin-bottom: 14px; font-size: 1.55rem; font-weight: 850; letter-spacing: -.045em; }
.service-card p { max-width: 290px; margin-bottom: 25px; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.service-card a { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid #d9ddda; font-size: .72rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.service-card a span { color: var(--orange); font-size: 1rem; }
.service-card a:hover { color: var(--orange); }

.work-section { padding: clamp(80px, 9vw, 120px) 0; background: var(--paper); }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 38px; }
.work-heading h2 { max-width: 740px; margin-bottom: 0; font-size: clamp(2.5rem, 4.4vw, 4.7rem); font-weight: 850; letter-spacing: -.065em; line-height: 1.06; }
.work-heading > p { max-width: 315px; margin-bottom: 0; color: var(--muted); font-size: .97rem; line-height: 1.65; }
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.work-card { min-width: 0; grid-column: span 2; margin: 0; background: var(--white); }
.work-card:nth-child(-n+2) { grid-column: span 3; }
.work-card img { width: 100%; height: 285px; display: block; object-fit: cover; }
.work-card:nth-child(-n+2) img { height: 390px; }
.work-card figcaption { display: flex; flex-direction: column; gap: 8px; padding: 18px 21px 21px; }
.work-card figcaption span { color: var(--orange-dark); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.work-card figcaption strong { font-size: 1.17rem; font-weight: 850; letter-spacing: -.035em; }

.method-section { padding: clamp(80px, 9vw, 120px) 0; color: var(--white); background: #102834; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 140px); }
.method-heading h2 { max-width: 590px; }
.method-heading > p:last-child { max-width: 460px; margin: 24px 0 0; color: #bfc5c5; font-size: .97rem; line-height: 1.7; }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #536062; }
.method-list li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid #536062; }
.method-list li > span { color: var(--orange); font-size: .76rem; font-weight: 850; letter-spacing: .1em; }
.method-list h3 { margin-bottom: 8px; font-size: 1.1rem; font-weight: 800; }
.method-list p { max-width: 380px; margin: 0; color: #bfc5c5; font-size: .87rem; line-height: 1.6; }

.contact-section { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; }
.contact-photo { min-height: 500px; background: url('assets/detalle-reforma.png') center / cover no-repeat; }
.contact-panel { display: flex; align-items: center; background: #ecebe7; }
.contact-content { width: min(510px, calc(100% - 80px)); margin-inline: auto; padding-block: 80px; }
.contact-content h2 { max-width: 510px; }
.contact-content > p:not(.eyebrow) { max-width: 460px; margin: 22px 0 26px; color: var(--text); font-size: .98rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 8px; margin-top: 31px; padding-top: 19px; border-top: 1px solid #c8cbc7; }
.contact-details strong { color: var(--orange-dark); font-size: .71rem; font-weight: 850; letter-spacing: .1em; }
.contact-details a { width: fit-content; color: var(--ink); font-size: 1.08rem; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--orange-dark); text-decoration: underline; }
.contact-details span { color: var(--muted); font-size: .88rem; }

.site-footer { color: #d1d5d3; background: var(--ink); }
.footer-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-block: 55px 45px; }
.brand-footer .brand-copy strong { color: var(--white); }
.footer-top p { max-width: 280px; margin: 0; font-size: .86rem; line-height: 1.6; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid #424a4c; font-size: .74rem; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 930px) {
  .main-nav { gap: 18px; }
  .main-nav > a { font-size: .72rem; }
  .intro-grid { gap: 44px; }
  .service-card { padding: 23px; }
  .contact-content { width: min(510px, calc(100% - 48px)); }
}

@media (max-width: 900px) {
  .menu-toggle { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; color: var(--ink); background: var(--white); border: 1px solid #cdd1cc; cursor: pointer; }
  .menu-toggle svg { width: 23px; height: 23px; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 22px rgba(0,0,0,.1); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav > a { padding: 16px 5px; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .main-nav .nav-contact { margin-top: 12px; padding: 16px; text-align: center; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 36px), 620px); }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 54px; height: 54px; flex-basis: 54px; }
  .brand-copy strong { font-size: 1.25rem; }
  .brand-copy small { font-size: .49rem; }
  .hero { min-height: 640px; background-position: 52% center; }
  .hero-content { padding-block: 80px; }
  .hero h1 { font-size: clamp(3rem, 10vw, 5.4rem); }
  .hero-index { display: none; }
  .rail-inner { justify-content: center; gap: 14px; }
  .rail-inner span { font-size: .59rem; letter-spacing: .1em; }
  .intro-grid, .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-body { max-width: 560px; }
  .services-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 32px; }
  .services-heading p:last-child { max-width: 560px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .service-top { margin-bottom: 20px; }
  .work-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 30px; }
  .work-heading > p { max-width: 560px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card, .work-card:nth-child(-n+2) { grid-column: span 1; }
  .work-card img, .work-card:nth-child(-n+2) img { height: 300px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-photo { min-height: 320px; }
  .contact-content { width: min(calc(100% - 36px), 620px); padding-block: 70px; }
}

@media (max-width: 480px) {
  .hero { min-height: 620px; }
  .hero-kicker { font-size: .62rem; letter-spacing: .14em; }
  .hero h1 { font-size: clamp(2.75rem, 12.2vw, 4.2rem); }
  .hero-description { max-width: 360px; font-size: .95rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .button { justify-content: space-between; }
  .rail-inner { gap: 8px; }
  .rail-inner span { font-size: .51rem; }
  .intro-section h2, .services-section h2, .method-section h2, .contact-section h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .work-heading h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card img, .work-card:nth-child(-n+2) img { height: 330px; }
  .footer-top { align-items: start; flex-direction: column; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
