:root {
  --paper: #ebe9e3;
  --ink: #1c1b19;
  --line: #aaa79e;
  --muted: #66635d;
  --accent: #b39772;
  --font: 'Manrope', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #ab8252; outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: #b39772; color: #fff; }
.site-header { width: 100%; height: 96px; padding: 0 max(4.5vw, 25px); background: var(--paper); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; }
.brand { display: flex; width: 78px; height: 70px; align-items: center; overflow: hidden; }
.brand img { display: block; width: 70px; height: 58px; object-fit: contain; filter: brightness(0); }
.desktop-nav { display: flex; align-items: center; gap: clamp(13px, 1.9vw, 35px); }
.desktop-nav a { font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(10px, .75vw, 12px); font-weight: 600; letter-spacing: .075em; white-space: nowrap; transition: color .25s; }
.desktop-nav a:hover { color: #a17e58; }
.menu-toggle { display: none; }
.hero { min-height: min(760px, calc(100svh - 96px)); height: 760px; position: relative; overflow: hidden; color: #fff; background: #352d29; }
.hero-image { position: absolute; inset: 0; background: url('terraza-conceptual.png') center 55% / cover no-repeat; transform: scale(1.025); animation: settle 1.7s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 15, .65), rgba(12, 12, 12, .24) 58%, rgba(12, 12, 12, .08)); }
.hero-content { position: relative; width: min(100% - 9vw, 1500px); margin: auto; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 18px; }
.eyebrow, .intro-index, .portfolio-heading > div, .contact-grid > div:first-child, .project-number { font-size: 12px; font-weight: 600; letter-spacing: .19em; }
.hero-eyebrow { margin: 0 0 38px; }
.hero-eyebrow span { padding: 0 9px; opacity: .7; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(72px, 8.6vw, 155px); line-height: .99; letter-spacing: -.075em; font-weight: 300; margin: 0; }
em { font-style: normal; font-weight: 300; }
h1 em, .intro h2 em, .portfolio h2 em, .contact h2 em { font-family: Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.07em; }
.hero-bottom { margin-top: 48px; display: flex; gap: 80px; align-items: end; }
.hero-bottom p { font-size: 15px; line-height: 1.6; letter-spacing: .01em; margin: 0; }
.round-link { width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; display: grid; place-items: center; font-size: 27px; font-weight: 300; transition: background .3s, color .3s; }
.round-link:hover { background: #fff; color: #111; }
.hero-vertical { position: absolute; right: 3%; bottom: 35px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .2em; opacity: .8; }
.section-wrap { width: min(100% - 9vw, 1500px); margin-inline: auto; }
.intro { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(400px, 1.9fr) minmax(250px, .9fr); gap: 5vw; align-items: start; padding-block: clamp(90px, 12vw, 190px); }
.intro-index, .portfolio-heading > div, .contact-grid > div:first-child { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.small-rule { display: inline-block; width: 34px; height: 1px; background: currentColor; }
.intro-kicker { font-size: 12px; letter-spacing: .22em; font-weight: 600; margin: 0 0 35px; }
.intro h2 { font-size: clamp(44px, 5vw, 85px); font-weight: 300; letter-spacing: -.065em; line-height: 1.14; margin-bottom: 42px; max-width: 870px; }
.intro-copy > p:not(.intro-kicker) { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.75; max-width: 600px; color: #55524d; margin-bottom: 47px; }
.text-link, .project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: .12em; border-bottom: 1px solid currentColor; padding-bottom: 14px; transition: gap .3s, color .3s; }
.text-link:hover, .project-link:hover { gap: 45px; color: #987149; }
.text-link span, .project-link span { font-size: 21px; font-weight: 300; line-height: .6; }
.portrait-frame { padding-top: 66px; }
.portrait-frame img { display: block; width: 100%; aspect-ratio: .68; object-fit: cover; object-position: center; filter: saturate(.76); }
.portrait-frame > span { display: block; margin-top: 15px; font-size: 10px; letter-spacing: .15em; text-align: right; }
.portfolio { background: #dedbd3; }
.portfolio-heading { min-height: 500px; display: grid; grid-template-columns: 1fr 2.2fr .9fr; align-items: center; gap: 5vw; padding-block: 100px; }
.portfolio-heading h2 { font-size: clamp(58px, 7vw, 120px); font-weight: 300; letter-spacing: -.075em; line-height: 1.05; margin: 0; }
.portfolio-heading > p { align-self: end; margin: 0 0 20px; font-size: 16px; line-height: 1.5; max-width: 230px; }
.project-row { min-height: 665px; display: grid; grid-template-columns: 53% 47%; }
.project-row--reverse .project-visual { order: 2; }
.project-row--reverse .project-info { order: 1; }
.project-visual { position: relative; min-height: 620px; overflow: hidden; background-position: center; background-size: cover; }
.project-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.3), transparent 45%); }
.project-visual--projects { background-image: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), url('terraza-conceptual.png'); background-position: 75% 50%; filter: grayscale(.8); }
.project-visual--terraces { background-image: url('terraza-conceptual.png'); background-position: 12% 70%; }
.project-visual--heat { background: radial-gradient(circle at 47% 85%, #8a482c 0%, #432822 18%, #181715 56%, #0b0c0e 100%); }
.project-visual--heat::before { content: ''; position: absolute; width: 44%; aspect-ratio: 1; border: 1px solid rgba(255,188,111,.26); border-radius: 50%; top: 27%; left: 30%; box-shadow: 0 0 110px 45px rgba(205,91,39,.12), inset 0 0 70px rgba(223,130,64,.1); }
.project-visual--home { background: #aea99d; }
.project-visual--home::before { content: ''; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.45); }
.visual-mark { position: absolute; z-index: 1; top: 35px; left: 40px; color: #fff; font-size: 14px; letter-spacing: .15em; }
.visual-mark span { opacity: .6; }
.heat-caption { position: absolute; bottom: 35px; left: 40px; z-index: 1; color: #fff; font-size: 11px; letter-spacing: .18em; }
.home-statement { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 300 clamp(56px, 6vw, 115px)/.98 var(--font); letter-spacing: -.08em; color: #f5f1e9; }
.home-statement i { font: italic 1.1em Georgia, serif; }
.project-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(50px, 7vw, 150px); background: #f1efea; }
.terraces .project-info { background: #e7e5de; }
.heat .project-info { background: #d5d0c5; }
.home .project-info { background: #eeeae1; }
.project-number { color: #656059; margin-bottom: 60px; }
.project-info h3 { font-size: clamp(72px, 6.7vw, 122px); font-weight: 300; letter-spacing: -.09em; line-height: .99; margin-bottom: 39px; }
.period { color: var(--accent); }
.project-info p { max-width: 460px; color: #4d4b46; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; margin-bottom: 58px; }
.contact { background: #20201e; color: #f4f1ea; padding-block: clamp(100px, 12vw, 185px); }
.contact-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; }
.contact h2 { font-size: clamp(60px, 7.2vw, 125px); font-weight: 300; line-height: 1.06; letter-spacing: -.075em; margin-bottom: 75px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 20px 90px; }
.contact-actions a { min-width: 260px; padding-bottom: 17px; border-bottom: 1px solid #8f8d87; display: flex; justify-content: space-between; gap: 35px; font-size: 13px; letter-spacing: .12em; }
.contact-actions a:hover { color: #c1a781; }
.contact-actions span { font-size: 19px; line-height: .8; }
footer { min-height: 145px; padding: 35px 4.5vw; background: #20201e; color: #b1aca3; border-top: 1px solid #4f4c47; display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 11px; letter-spacing: .1em; }
.footer-brand { font: 42px Georgia, serif; color: #eeeae2; letter-spacing: -.13em; }
@keyframes settle { from { transform: scale(1.09); opacity: .6; } to { transform: scale(1.025); opacity: 1; } }
@media (max-width: 1150px) {
  .desktop-nav { gap: 13px; }
  .desktop-nav a { font-size: 9px; }
  .intro { grid-template-columns: 1fr 2.5fr 1.1fr; gap: 3vw; }
  .portfolio-heading { grid-template-columns: 1fr 2fr; }
  .portfolio-heading > p { display: none; }
  .project-info { padding: 8vw; }
}
@media (max-width: 850px) {
  .site-header { height: 78px; padding-inline: 6vw; }
  .brand, .brand img { width: 64px; }
  .desktop-nav { display: none; }
  .menu-toggle { border: 0; background: transparent; width: 45px; height: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
  .menu-toggle span { display: block; width: 29px; height: 1px; background: #1c1b19; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: absolute; z-index: 19; top: 78px; left: 0; right: 0; background: var(--paper); display: flex; flex-direction: column; padding: 20px 6vw 45px; box-shadow: 0 30px 35px #0002; }
  .mobile-nav a { padding: 16px 0; border-bottom: 1px solid #c7c4bc; font-size: 14px; letter-spacing: .08em; }
  .hero { height: min(780px, calc(100svh - 78px)); min-height: 660px; }
  .hero-image { background-position: 65% center; }
  .hero-shade { background: linear-gradient(0deg, #111a 0%, #1115 58%, #1112); }
  .hero-content, .section-wrap { width: 88%; }
  .hero-content { justify-content: end; padding-bottom: 80px; }
  h1 { font-size: clamp(62px, 12vw, 112px); }
  .hero-vertical { display: none; }
  .intro { grid-template-columns: 1fr 1fr; gap: 50px; }
  .intro-index { grid-column: 1 / -1; }
  .portrait-frame { padding-top: 0; }
  .intro h2 { font-size: clamp(43px, 5vw, 75px); }
  .portfolio-heading { min-height: 360px; padding-block: 70px; }
  .project-row { min-height: 540px; }
  .project-visual { min-height: 540px; }
  .project-info h3 { font-size: clamp(56px, 7vw, 90px); }
  .project-number { margin-bottom: 35px; }
  .project-info p { margin-bottom: 38px; }
  .contact-grid { grid-template-columns: 1fr; gap: 55px; }
}
@media (max-width: 620px) {
  .hero { height: calc(100svh - 78px); min-height: 600px; }
  .hero-image { background-position: 62% center; }
  .hero-content { padding-bottom: 64px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 24px; }
  h1 { font-size: clamp(60px, 14vw, 91px); }
  .hero-bottom { justify-content: space-between; gap: 15px; margin-top: 36px; }
  .hero-bottom p { font-size: 13px; }
  .round-link { width: 50px; height: 50px; }
  .intro { display: flex; flex-direction: column; gap: 0; padding-block: 85px; }
  .intro-index { margin-bottom: 55px; }
  .intro h2 { font-size: clamp(42px, 10vw, 65px); margin-bottom: 28px; }
  .intro-copy > p:not(.intro-kicker) { font-size: 16px; margin-bottom: 35px; }
  .portrait-frame { margin: 75px 0 0 auto; width: 78%; }
  .portfolio-heading { display: block; min-height: 0; padding-block: 75px 85px; }
  .portfolio-heading > div { margin-bottom: 40px; }
  .portfolio-heading h2 { font-size: clamp(54px, 13vw, 85px); }
  .project-row { display: flex; flex-direction: column; }
  .project-row--reverse .project-visual, .project-row--reverse .project-info { order: initial; }
  .project-visual { width: 100%; min-height: 430px; }
  .project-visual--projects { background-position: 76% center; }
  .project-visual--terraces { background-position: 16% center; }
  .project-info { padding: 73px 6vw 88px; }
  .project-info h3 { font-size: clamp(70px, 16vw, 110px); margin-bottom: 29px; }
  .project-number { margin-bottom: 45px; }
  .project-info p { font-size: 16px; margin-bottom: 45px; }
  .contact { padding-block: 90px 110px; }
  .contact h2 { font-size: clamp(55px, 12vw, 80px); margin-bottom: 55px; }
  .contact-actions { gap: 35px; }
  footer { padding: 45px 6vw; display: grid; grid-template-columns: 1fr 1fr; row-gap: 30px; font-size: 9px; }
  footer span:nth-of-type(2) { grid-column: 1; }
  footer a:last-child { grid-column: 2; grid-row: 2; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* Slider principal */
.hero-slider { isolation: isolate; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background: var(--slide-image) center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .hero-shade { background: linear-gradient(90deg, rgba(8, 10, 10, .67) 0%, rgba(8, 10, 10, .19) 63%, rgba(8, 10, 10, .14) 100%); }
.hero-slide .hero-content { justify-content: center; padding-bottom: 35px; }
.hero-slide h1 { font-size: clamp(84px, 11vw, 190px); }
.hero-cta { display: inline-flex; align-self: flex-start; align-items: center; justify-content: space-between; gap: 65px; margin-top: 50px; padding: 0 0 15px; border-bottom: 1px solid rgba(255,255,255,.9); font-size: 12px; letter-spacing: .15em; font-weight: 600; transition: gap .25s ease; }
.hero-cta:hover { gap: 85px; }
.hero-cta span { font-size: 23px; line-height: .7; font-weight: 300; }
.slider-controls { position: absolute; z-index: 5; bottom: 0; left: 0; right: 0; min-height: 103px; display: flex; align-items: stretch; justify-content: space-between; padding-inline: 4.5vw; color: #fff; background: rgba(17,17,17,.35); backdrop-filter: blur(9px); border-top: 1px solid rgba(255,255,255,.27); }
.slider-tabs { width: min(980px, 80%); display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
.slider-tab { position: relative; appearance: none; background: none; color: rgba(255,255,255,.68); border: 0; cursor: pointer; padding: 32px 0; min-width: 110px; text-align: left; font: 600 12px var(--font); letter-spacing: .09em; transition: color .25s; }
.slider-tab span { display: inline-block; margin-right: 11px; font-size: 10px; opacity: .65; }
.slider-tab::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.slider-tab.is-active, .slider-tab:hover { color: #fff; }
.slider-tab.is-active::before { transform: scaleX(1); }
.slider-arrows { display: flex; gap: 10px; align-items: center; }
.slider-arrows button { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: none; color: #fff; font-size: 24px; font-weight: 300; cursor: pointer; transition: background .25s, color .25s; }
.slider-arrows button:hover { background: #fff; color: #111; }
.project-visual--projects { background-image: url('proyectos.jpg'); background-position: center; filter: none; }
.project-visual--terraces { background-image: url('terrazas.jpg'); background-position: center; }
.project-visual--heat { background: url('laguna.jpg') center / cover no-repeat; }
.project-visual--heat::before { display: none; }
.project-visual--home { background: url('home.jpg') center / cover no-repeat; }
.project-visual--home::before { display: none; }
.project-visual--play { background: url('play.jpg') center / cover no-repeat; }
.play .project-info { background: #ddd9d0; }
@media (max-width: 850px) {
  .hero-slide { background-position: 60% center; }
  .hero-slide .hero-content { justify-content: center; padding-bottom: 85px; }
  .slider-controls { min-height: 90px; padding-inline: 6vw; }
  .slider-tabs { gap: 10px; width: 78%; }
  .slider-tab { min-width: auto; font-size: 11px; }
  .slider-tab span { display: none; }
}
@media (max-width: 620px) {
  .hero-slide .hero-shade { background: linear-gradient(0deg, rgba(5,7,7,.62) 0%, rgba(5,7,7,.18) 80%); }
  .hero-slide .hero-content { justify-content: end; padding-bottom: 132px; }
  .hero-slide h1 { font-size: clamp(72px, 18vw, 105px); }
  .hero-cta { margin-top: 28px; font-size: 10px; gap: 22px; }
  .slider-controls { min-height: 86px; }
  .slider-tabs { gap: 4px; width: calc(100% - 80px); }
  .slider-tab { font-size: 0; padding: 15px 0; flex: 1; min-width: 0; }
  .slider-tab::after { content: ''; display: block; height: 3px; background: rgba(255,255,255,.45); }
  .slider-tab.is-active::after { background: #fff; }
  .slider-arrows { gap: 5px; }
  .slider-arrows button { width: 36px; height: 36px; font-size: 19px; }
}
/* Acceso al servicio de neuroarquitectura */
.neuro-feature { display: grid; grid-template-columns: 48% 52%; min-height: 680px; color: #f4f0e8; background: #343b34; }
.neuro-feature-image { min-height: 680px; background: url('terrazas.jpg') center / cover no-repeat; }
.neuro-feature-copy { padding: clamp(70px, 7vw, 130px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.neuro-feature-copy .eyebrow { margin-bottom: 65px; }
.neuro-feature h2 { font-size: clamp(62px, 6.6vw, 118px); font-weight: 300; line-height: 1.05; letter-spacing: -.08em; margin: 0 0 40px; }
.neuro-feature h2 em { font-family: Georgia, serif; font-style: italic; }
.neuro-feature p:not(.eyebrow) { max-width: 540px; font-size: 18px; line-height: 1.7; color: #d8ded4; margin-bottom: 50px; }
@media (max-width: 850px) {
  .neuro-feature { min-height: 0; grid-template-columns: 1fr 1fr; }
  .neuro-feature-image { min-height: 560px; }
  .neuro-feature-copy { padding: 65px 6vw; }
  .neuro-feature h2 { font-size: clamp(48px, 6vw, 70px); }
}
@media (max-width: 620px) {
  .neuro-feature { display: flex; flex-direction: column; }
  .neuro-feature-image { min-height: 440px; }
  .neuro-feature-copy { padding: 85px 6vw 95px; }
  .neuro-feature h2 { font-size: clamp(57px, 12vw, 83px); }
  .neuro-feature-copy .eyebrow { margin-bottom: 40px; }
}
/* Terrazas y juego forman parte de PH Home */
.home-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 55px 90px; }
.home-detail img { display: block; width: 100%; height: clamp(250px, 25vw, 440px); object-fit: cover; }
.home-detail span { display: block; margin-top: 20px; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
@media (max-width: 620px) {
  .home-details { gap: 16px; padding-block: 32px 65px; }
  .home-detail img { height: 210px; }
  .home-detail span { font-size: 9px; line-height: 1.45; }
}
