:root {
  --navy: #071a31;
  --navy-2: #0d2a4b;
  --ink: #0b1727;
  --muted: #536277;
  --red: #ed101c;
  --red-dark: #c80812;
  --cream: #f7f6f3;
  --white: #fff;
  --line: #dce1e7;
  --shadow: 0 18px 45px rgba(4, 20, 38, .13);
  --radius: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--white); color: var(--navy); border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.16); color: var(--white); }
.nav-wrap { display: flex; align-items: center; min-height: 86px; width: min(1400px, calc(100% - 48px)); margin: auto; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; min-width: 245px; gap: .65rem; color: var(--red); line-height: 1; }
.brand-mark { width: 56px; height: 56px; flex: none; fill: none; stroke: currentColor; stroke-width: 3.2; }
.brand-mark circle { fill: rgba(220, 8, 20, .88); stroke: var(--white); stroke-width: 1.4; }
.brand-mark path { stroke: var(--white); }
.brand-copy { display: grid; text-transform: uppercase; }
.brand-copy strong { font-family: Impact, Arial Narrow, sans-serif; font-size: 1.72rem; letter-spacing: .045em; color: var(--red); }
.brand-copy em { font-size: .82rem; font-style: normal; font-weight: 800; letter-spacing: .36em; color: var(--white); }
.brand-copy small { margin-top: .38rem; font-size: .51rem; letter-spacing: .14em; font-weight: bold; color: var(--white); }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(.8rem, 1.8vw, 1.7rem); margin-left: auto; }
.main-nav a { padding: .55rem 0; color: rgba(255,255,255,.93); font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); border-color: var(--red); }
.header-cta { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-radius: 7px; background: var(--red); color: var(--white); font-size: .88rem; font-weight: 800; box-shadow: 0 7px 20px rgba(0,0,0,.22); transition: transform .2s, background .2s; }
.header-cta:hover, .btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--white); }

.hero { position: relative; display: grid; align-items: end; min-height: 675px; color: var(--white); }
.hero-image, .page-hero .hero-image { position: absolute; inset: 0; background: url('/public/assets/hero-casa-volcan.png') center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,27,.9) 0%, rgba(3,17,34,.65) 36%, rgba(1,16,30,.06) 72%), linear-gradient(0deg, rgba(2,13,27,.42), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(1400px, calc(100% - 48px)); margin: 0 auto 165px; }
.eyebrow, .kicker { margin: 0 0 .7rem; color: var(--red); font-size: .69rem; font-weight: 900; letter-spacing: .16em; }
.hero h1, .page-hero h1, .detail-main h1, .not-found h1 { max-width: 650px; margin: 0 0 .75rem; font-family: Impact, Arial Narrow, sans-serif; font-size: clamp(3rem, 5vw, 5.1rem); line-height: .96; letter-spacing: .012em; text-transform: uppercase; }
.hero h1 span { color: var(--red); }
.hero-content > p:not(.eyebrow) { max-width: 450px; margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.45; }
.text-link, .all-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--red); font-weight: 800; }
.text-link { color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: .35rem; }
.text-link:hover, .all-link:hover { color: var(--red); }
.hero-script { position: absolute; z-index: 1; right: max(5vw, 3rem); bottom: 155px; font-family: 'Brush Script MT', cursive; font-size: clamp(2rem, 4vw, 4rem); transform: rotate(-9deg); text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hero-script small { display: block; font-size: .54em; }
.operation-tabs { position: absolute; z-index: 2; bottom: 118px; left: 50%; display: flex; width: min(840px, calc(100% - 48px)); transform: translateX(-50%); }
.operation-tabs button { flex: 1; padding: .75rem; border: 1px solid rgba(255,255,255,.45); border-bottom: 0; border-radius: 9px 9px 0 0; background: rgba(4,20,38,.82); color: var(--white); font-weight: 800; }
.operation-tabs button.active, .operation-tabs button:hover { background: var(--red); }
.search-panel { position: absolute; z-index: 4; bottom: -42px; left: 50%; display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: .75rem; width: min(1180px, calc(100% - 48px)); padding: .72rem; transform: translateX(-50%); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); color: var(--ink); }
.search-panel label { position: relative; display: grid; grid-template-columns: 1.5rem 1fr; align-items: center; min-height: 50px; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); }
.search-panel label > .icon { grid-row: span 2; font-size: 1.3rem; }
.search-panel label > span { font-size: .66rem; color: var(--muted); font-weight: 700; }
.search-panel select { width: 100%; padding: 0 1.25rem 0 0; border: 0; outline: 0; appearance: none; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.search-panel label::after { content: ''; position: absolute; right: .65rem; bottom: 1rem; width: .45rem; height: .45rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.1rem; border: 1px solid transparent; border-radius: 7px; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: #edf1f5; }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline.light { border-color: rgba(255,255,255,.75); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 4.5rem max(2rem, calc((100% - 1300px) / 2)); background: var(--white); }
.benefits > div { display: flex; align-items: center; gap: .9rem; padding: .3rem 2rem; border-right: 1px solid #b9c0c9; }
.benefits > div:last-child { border-right: 0; }
.benefits .icon { color: var(--red); font-size: 2.2rem; }
.benefits p { display: grid; margin: 0; font-size: .92rem; line-height: 1.1; }
.benefits strong { font-size: .98rem; }

.section { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-heading, .catalog-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section h2 { margin: 0; color: var(--navy); font-family: Impact, Arial Narrow, sans-serif; font-size: clamp(2.15rem, 3.8vw, 3.35rem); line-height: 1; text-transform: uppercase; }
.property-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.45rem; }
.property-card { position: relative; overflow: hidden; border: 1px solid #e1e5e9; border-radius: 6px; background: var(--white); box-shadow: 0 8px 17px rgba(3, 20, 37, .06); transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.property-photo { position: relative; display: block; height: 184px; overflow: hidden; background: var(--navy); }
.property-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--card-position); transition: transform .45s; }
.property-card:hover .property-photo img { transform: scale(1.05); }
.operation { position: absolute; top: .8rem; left: .8rem; padding: .4rem .7rem; border-radius: 4px; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.operation.rent { background: #1462bd; }
.favorite { position: absolute; z-index: 2; top: .55rem; right: .55rem; color: var(--white); font-size: 2.2rem; line-height: 1; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.property-body { padding: 1rem; }
.property-type { margin: 0 0 .25rem; color: var(--red); font-size: .67rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.property-card h3 { margin: 0; font-size: 1.02rem; }
.property-card h3 a:hover { color: var(--red); }
.property-location { display: flex; align-items: center; gap: .33rem; margin: .55rem 0 .8rem; color: #465368; font-size: .78rem; }
.property-location .icon { color: var(--red); }
.property-features { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .9rem; color: #405066; font-size: .72rem; }
.property-features span { display: inline-flex; align-items: center; gap: .25rem; }
.property-price { color: var(--red); font-size: 1.18rem; }
.property-price, .detail-price { font-variant-numeric: tabular-nums; }

.region-banner, .contact-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.3rem max(2rem, calc((100% - 1300px) / 2)); color: var(--white); }
.region-banner { min-height: 160px; background: linear-gradient(90deg, rgba(3,18,35,.86), rgba(4,20,38,.3)), url('/public/assets/hero-casa-volcan.png') center 55% / cover; }
.script-text { margin: 0 0 .55rem; font-family: 'Brush Script MT', cursive; font-size: clamp(1.8rem, 3vw, 2.9rem); transform: rotate(-2deg); }
.region-banner p:not(.script-text) { margin: 0; font-size: .9rem; }
.contact-band { background: var(--navy); }
.contact-band h2 { color: var(--white); }
.contact-band p:not(.script-text) { margin: .65rem 0 0; color: #c7d4e2; }
.contact-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.page-hero { position: relative; min-height: 400px; color: var(--white); overflow: hidden; }
.page-hero.compact { min-height: 370px; }
.page-hero .hero-overlay { background: linear-gradient(90deg, rgba(2,13,27,.88), rgba(3,17,34,.53)); }
.page-hero-content { position: relative; z-index: 1; width: min(1400px, calc(100% - 48px)); padding-top: 145px; margin: auto; }
.page-hero-content p:not(.eyebrow) { max-width: 570px; margin: 0; font-size: 1.1rem; line-height: 1.5; }
.page-hero-content .eyebrow { color: var(--white); }
.catalog > .search-panel { position: static; width: 100%; margin: 0 0 2rem; transform: none; box-shadow: none; border: 1px solid var(--line); }
.results-count { margin: 0; color: var(--muted); font-weight: 700; }
.catalog-notice { margin: 0 0 1.25rem; padding: .85rem 1rem; border-left: 4px solid var(--red); background: #fff4f4; color: #6e151b; font-size: .9rem; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.detail-hero { position: relative; height: min(64vw, 580px); min-height: 400px; overflow: hidden; }
.detail-image, .detail-image img, .detail-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-image img { object-fit: cover; }
.detail-shade { background: linear-gradient(180deg, rgba(3,15,28,.73), transparent 34%, rgba(3,15,28,.25)); }
.detail-hero .site-header { position: absolute; }
.detail-layout { padding-top: 2.4rem; }
.back-link { display: inline-block; margin-bottom: 2.4rem; color: var(--red); font-weight: 800; }
.detail-main { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(2rem, 6vw, 7rem); }
.detail-main h1 { color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.5rem); }
.detail-location { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.detail-location .icon { color: var(--red); }
.detail-price { margin: 1.6rem 0 2rem; color: var(--red); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; }
.detail-features { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0 0 2rem; }
.detail-features > div { display: grid; grid-template-columns: auto auto; column-gap: .5rem; align-items: center; min-width: 120px; padding: .9rem 1rem; background: var(--white); border-radius: 7px; }
.detail-features .icon { grid-row: span 2; color: var(--red); font-size: 1.5rem; }
.detail-features strong { color: var(--navy); }
.detail-features span { color: var(--muted); font-size: .74rem; }
.detail-main hr { margin: 2.2rem 0; border: 0; border-top: 1px solid var(--line); }
.detail-main article h2 { margin: 2.5rem 0 .75rem; font-size: 2rem; }
.detail-copy { max-width: 760px; color: #465368; line-height: 1.7; }
.check-list { padding: 0; list-style: none; color: #465368; line-height: 1.9; }
.check-list li::before { content: '✓'; margin-right: .6rem; color: var(--red); font-weight: 900; }
.contact-card { align-self: start; padding: 2rem; border-top: 5px solid var(--red); border-radius: 0 0 10px 10px; background: var(--white); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.8rem; }
.contact-card > p:not(.kicker) { color: var(--muted); line-height: 1.55; }
.contact-card .btn { width: 100%; margin-top: .75rem; }
.contact-phone { display: flex; justify-content: center; align-items: center; gap: .4rem; color: var(--navy) !important; font-weight: 800; }

.info-section { display: grid; grid-template-columns: minmax(250px, .75fr) 1.45fr; gap: clamp(2rem, 7vw, 7rem); }
.intro-copy { max-width: 400px; }
.intro-copy > p:last-child { color: var(--muted); line-height: 1.7; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { min-height: 250px; padding: 1.65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.info-number { color: var(--red); font-size: 1.15rem; font-weight: 900; }
.info-card h3 { margin: 3.5rem 0 .65rem; color: var(--navy); font-size: 1.15rem; }
.info-card p { color: var(--muted); line-height: 1.55; font-size: .9rem; }
.info-card .all-link { margin-top: 1.5rem; font-size: .85rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(2rem, 9vw, 9rem); }
.contact-form-wrap > p:not(.kicker), .contact-details > p:not(.kicker) { color: var(--muted); line-height: 1.6; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-form label { display: grid; gap: .45rem; color: var(--navy); font-size: .86rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(237,16,28,.2); border-color: var(--red); }
.contact-form .btn { justify-self: start; margin-top: .4rem; }
.contact-details { align-self: start; padding: 2rem; background: var(--navy); color: var(--white); border-radius: 9px; }
.contact-details h2 { color: var(--white); font-size: 2rem; }
.contact-details > p:not(.kicker) { color: #cad6e4; }
.contact-method { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.17); }
.contact-method > .icon { color: var(--red); font-size: 1.5rem; }
.contact-method span { display: grid; gap: .2rem; }
.contact-method small { color: #ced9e4; font-size: .79rem; }
.contact-method[href]:hover strong { color: var(--red); }

.site-footer { color: var(--white); background: #061527; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; width: min(1400px, calc(100% - 48px)); margin: auto; padding: 3rem 0 2.3rem; }
.site-footer .brand { min-width: 0; }
.site-footer .brand-mark { width: 52px; height: 52px; }
.site-footer .brand-copy strong { font-size: 1.45rem; }
.site-footer .brand-copy em { font-size: .7rem; }
.site-footer .brand-copy small { display: none; }
.site-footer > .footer-grid > div > p { color: #b8c7d6; font-size: .86rem; }
.site-footer h2 { margin: .25rem 0 1rem; color: var(--white); font-family: Arial, sans-serif; font-size: .86rem; text-transform: uppercase; }
.site-footer a, .site-footer p:not(.brand *) { display: flex; align-items: center; gap: .42rem; width: fit-content; margin: .5rem 0; color: #c9d6e3; font-size: .86rem; }
.site-footer a:hover { color: var(--white); }
.site-footer a .icon, .site-footer p .icon { color: var(--red); }
.socials { display: flex; gap: .55rem; }
.site-footer .socials a { display: grid; place-items: center; width: 33px; height: 33px; margin: 0; border: 1px solid #708297; border-radius: 50%; color: var(--white); font-weight: 800; }
.copyright { padding: 1.15rem 24px; border-top: 1px solid rgba(255,255,255,.14); color: #a5b4c5; font-size: .72rem; text-align: center; }
.whatsapp-float { position: fixed; z-index: 50; right: 1.2rem; bottom: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: 999px; background: #25d366; color: #032311; box-shadow: 0 10px 27px rgba(0,0,0,.25); font-size: .88rem; font-weight: 900; transition: transform .2s; }
.whatsapp-float .icon { font-size: 1.35rem; }
.whatsapp-float:hover { transform: translateY(-3px); }
.not-found { min-height: 70vh; padding-top: 12rem; }
.not-found p:not(.kicker) { color: var(--muted); }

@media (max-width: 1080px) {
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .8rem; }
  .brand { min-width: 215px; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits > div { padding: .3rem 1.1rem; }
  .info-section { grid-template-columns: 1fr; }
  .intro-copy { max-width: 620px; }
}

@media (max-width: 780px) {
  .nav-wrap { width: min(100% - 32px, 600px); min-height: 72px; }
  .brand { min-width: 0; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 1.35rem; }
  .brand-copy em { font-size: .61rem; }
  .brand-copy small { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; font-size: 1.45rem; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: 72px 0 auto; display: none; padding: 1rem 1.5rem 1.4rem; background: var(--navy); border-top: 1px solid rgba(255,255,255,.16); box-shadow: 0 15px 25px rgba(0,0,0,.25); }
  .nav-open .main-nav { display: grid; }
  .main-nav a { padding: .75rem 0; font-size: .95rem; }
  .hero { min-height: 715px; }
  .hero-content { width: calc(100% - 32px); margin-bottom: 224px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .hero-script { right: 1.2rem; bottom: 170px; font-size: 2rem; }
  .operation-tabs { width: calc(100% - 32px); bottom: 151px; }
  .search-panel { bottom: -132px; grid-template-columns: 1fr; width: calc(100% - 32px); gap: .45rem; padding: .55rem; }
  .price-filter { display: none !important; }
  .search-panel .btn { min-height: 50px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; padding: 10rem 1rem 3.2rem; }
  .benefits > div { padding: .5rem .7rem; border-right: 0; }
  .benefits .icon { font-size: 1.85rem; }
  .benefits strong { font-size: .85rem; }
  .benefits span { font-size: .78rem; }
  .section { width: calc(100% - 32px); padding: 3.6rem 0; }
  .section-heading, .catalog-top { align-items: start; flex-direction: column; margin-bottom: 1.5rem; }
  .property-grid { grid-template-columns: 1fr; gap: 1rem; }
  .property-photo { height: 205px; }
  .region-banner, .contact-band { align-items: start; flex-direction: column; padding: 2.5rem 1rem; }
  .page-hero.compact { min-height: 360px; }
  .page-hero-content { width: calc(100% - 32px); padding-top: 140px; }
  .catalog > .search-panel { display: grid; margin-bottom: 1.4rem; }
  .detail-hero { min-height: 340px; height: 54vw; }
  .detail-main { grid-template-columns: 1fr; gap: 2rem; }
  .detail-features { gap: .7rem; }
  .detail-features > div { min-width: 0; flex: 1; padding: .75rem; }
  .contact-card { order: -1; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
  .info-card h3 { margin-top: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); gap: 1.8rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .whatsapp-float { right: 1rem; bottom: 1rem; padding: .78rem; }
  .whatsapp-float span { display: none; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 1.13rem; }
  .brand-copy em { letter-spacing: .22em; }
  .hero h1 { font-size: 2.45rem; }
  .benefits p { font-size: .72rem; }
  .detail-features { display: grid; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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