/* ============================================================
   NOVARA REALTY — premium real estate landing
   Paleta:
     navy profundo     #0a1929 (basada en el logo)
     navy intermedio   #14233a
     marfil cálido     #f5f3ef
     beige piedra      #d9d4cc
     champagne dorado  #c8a268 (acento — del logo)
     gris azulado      #8a96a8
     verde oliva       #5e7a65 (CTA alternativa)
   Fonts: Cormorant Garamond (display) + Inter (UI)
============================================================ */

:root {
    --navy-deep:     #0a1929;
    --navy-mid:      #14233a;
    --navy-soft:     #1f3148;
    --ivory:         #f5f3ef;
    --beige-stone:   #d9d4cc;
    --champagne:     #c8a268;
    --champagne-soft:#d4b078;
    --champagne-deep:#a8854a;
    --gray-blue:     #8a96a8;
    --gray-light:    #b7c0c7;
    --olive:         #5e7a65;
    --white:         #ffffff;
    --black:         #000;
    --line:          #e5e0d6;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-ui:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1240px;
    --shadow-sm: 0 2px 8px rgba(10, 25, 41, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 25, 41, 0.08);
    --shadow-lg: 0 18px 40px rgba(10, 25, 41, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ivory);
    color: var(--navy-deep);
    font-family: var(--font-ui);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Reveal-on-scroll
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
    cursor: pointer;
    line-height: 1;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--champagne);
    color: var(--navy-deep);
    border-color: var(--champagne);
}
.btn-primary:hover {
    background: var(--champagne-deep);
    border-color: var(--champagne-deep);
    color: var(--ivory);
}

.btn-ghost {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(245, 243, 239, .35);
}
.btn-ghost:hover {
    background: rgba(245, 243, 239, .08);
    border-color: var(--ivory);
}

.btn-link {
    color: var(--navy-deep);
    border-bottom: 1px solid var(--champagne);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 12px;
    font-weight: 500;
}
.btn-link:hover { color: var(--champagne-deep); }

/* ============================================================
   Navigation
============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
    background: rgba(10, 25, 41, .96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .2);
    backdrop-filter: blur(6px);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ivory);
}
.nav-mark { width: 28px; height: auto; }
.nav-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .15em;
}
.nav-name em {
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .3em;
    color: var(--champagne);
    margin-left: 4px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--ivory);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .04em;
    transition: color .2s;
    position: relative;
}
.nav-links a:hover { color: var(--champagne); }
.nav-links a.nav-cta {
    border: 1px solid var(--champagne);
    color: var(--champagne);
    padding: 8px 18px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 500;
}
.nav-links a.nav-cta:hover {
    background: var(--champagne);
    color: var(--navy-deep);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    width: 22px;
    background: var(--ivory);
    transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--ivory);
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(200, 162, 104, .12), transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(94, 122, 101, .08), transparent 60%),
        linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><rect width='200' height='200' fill='none'/><circle cx='100' cy='100' r='1' fill='rgba(200,162,104,0.4)'/></svg>");
    background-size: 200px 200px;
    opacity: .35;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 920px;
    z-index: 1;
}

.hero-mark {
    width: 64px;
    height: auto;
    margin: 0 auto 32px;
    opacity: .95;
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--champagne);
    margin: 0 0 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 8vw, 92px);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 28px;
    color: var(--ivory);
}
.hero-title span { display: block; }
.hero-title em {
    font-style: italic;
    color: var(--champagne);
    font-weight: 400;
}

.hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.65;
    color: var(--gray-light);
    margin: 0 auto 44px;
    max-width: 640px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--champagne);
    width: 1px;
    height: 60px;
    overflow: hidden;
}
.hero-scroll span {
    position: absolute;
    top: -60px;
    left: 0;
    width: 1px;
    height: 60px;
    background: var(--champagne);
    animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { top: -60px; }
    50%  { top: 0; }
    100% { top: 60px; }
}

/* ============================================================
   Section base
============================================================ */
.section {
    padding: 120px 0;
}
.section-light {
    background: var(--ivory);
    color: var(--navy-deep);
}
.section-dark {
    background: var(--navy-deep);
    color: var(--ivory);
}
.section-dark .eyebrow { color: var(--champagne); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -.01em;
}
.section-head .lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-blue);
    font-weight: 300;
    margin: 0;
}
.section-dark .section-head .lead { color: var(--gray-light); }

.section-foot {
    text-align: center;
    margin-top: 56px;
}

/* ============================================================
   Project Grid
============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--white);
    overflow: hidden;
    border: 1px solid rgba(10, 25, 41, .06);
    transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-type {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--champagne-deep);
    margin-bottom: 14px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--navy-deep);
    line-height: 1.2;
}
.project-location {
    font-size: 13px;
    color: var(--gray-blue);
    margin: 0 0 18px;
}
.project-price {
    font-size: 14px;
    color: var(--navy-deep);
    margin: 0 0 20px;
}
.project-price strong {
    font-weight: 600;
    color: var(--navy-deep);
}
.project-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy-deep);
    border-bottom: 1px solid var(--champagne);
    padding-bottom: 4px;
    transition: color .2s, border-color .2s;
}
.project-link:hover {
    color: var(--champagne-deep);
}

/* ============================================================
   Tipos de propiedades (dark)
============================================================ */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.type-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(245, 243, 239, .1);
    transition: background .35s, border-color .35s, transform .35s;
}
.type-card:hover {
    background: rgba(200, 162, 104, .04);
    border-color: rgba(200, 162, 104, .3);
    transform: translateY(-3px);
}
.type-icon {
    width: 56px;
    height: 56px;
    color: var(--champagne);
    margin: 0 auto 24px;
    display: block;
}
.type-card h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--ivory);
}
.type-card p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* ============================================================
   Por qué Novara
============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1px;
    background: rgba(10, 25, 41, .08);
    border: 1px solid rgba(10, 25, 41, .08);
}
.why-card {
    background: var(--ivory);
    padding: 48px 36px;
    transition: background .35s;
}
.why-card:hover {
    background: var(--white);
}
.why-num {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--champagne);
    margin-bottom: 18px;
    font-style: italic;
}
.why-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 14px;
    color: var(--navy-deep);
    line-height: 1.25;
}
.why-card p {
    font-size: 14px;
    color: var(--gray-blue);
    line-height: 1.65;
    margin: 0;
    font-weight: 300;
}

/* ============================================================
   Inversión
============================================================ */
.section-inversion {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    color: var(--ivory);
    padding: 120px 0;
}

.inversion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.inversion-text .eyebrow { color: var(--champagne); }
.inversion-text h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--ivory);
}
.inversion-text .lead {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.7;
    margin: 0 0 32px;
    font-weight: 300;
}

.inversion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.inversion-list li {
    padding: 18px 0;
    border-bottom: 1px solid rgba(245, 243, 239, .1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inversion-list li:last-child { border-bottom: 0; }
.inversion-list strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--champagne);
    font-style: italic;
}
.inversion-list span {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    font-weight: 300;
}

.inversion-image > div {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(200, 162, 104, .2);
}

/* ============================================================
   Contacto
============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 44px;
    border: 1px solid rgba(10, 25, 41, .06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 20px;
}
.contact-form label span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gray-blue);
    margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--ivory);
    border: 1px solid rgba(10, 25, 41, .1);
    border-radius: 2px;
    color: var(--navy-deep);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--champagne);
    background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.form-note {
    font-size: 12px;
    color: var(--gray-blue);
    margin: 16px 0 0;
    line-height: 1.5;
}

.contact-info {
    align-self: start;
    background: var(--navy-deep);
    color: var(--ivory);
    padding: 44px;
}
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 24px;
    color: var(--champagne);
}
.contact-info h3.contact-social-head { margin-top: 36px; }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(245, 243, 239, .1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gray-light);
}
.contact-list a {
    color: var(--ivory);
    font-size: 15px;
    transition: color .2s;
}
.contact-list a:hover { color: var(--champagne); }

.contact-social {
    display: flex;
    gap: 14px;
}
.contact-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 243, 239, .15);
    color: var(--ivory);
    transition: background .25s, border-color .25s, color .25s;
}
.contact-social a:hover {
    background: var(--champagne);
    border-color: var(--champagne);
    color: var(--navy-deep);
}
.contact-social svg { width: 18px; height: 18px; }

/* Contact toast (shown after successful form submit) */
.contact-toast {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 16px 24px;
    background: rgba(94, 122, 101, .12);
    border: 1px solid rgba(94, 122, 101, .35);
    color: var(--olive);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: 2px;
}

/* ============================================================
   Footer
============================================================ */
.footer {
    background: var(--navy-deep);
    color: var(--gray-light);
    padding: 72px 0 32px;
    border-top: 1px solid rgba(245, 243, 239, .05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245, 243, 239, .1);
}

.footer-brand {
    max-width: 340px;
}
.footer-mark { width: 36px; margin-bottom: 18px; }
.footer-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ivory);
    letter-spacing: .15em;
    margin: 0 0 14px;
}
.footer-name em {
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-left: 8px;
}
.footer-tag {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-light);
    margin: 0;
    font-weight: 300;
}

.footer-links h4 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--champagne);
    margin: 0 0 20px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
    font-size: 13px;
}
.footer-links a {
    color: var(--gray-light);
    transition: color .2s;
}
.footer-links a:hover { color: var(--champagne); }

.footer-bottom {
    padding-top: 28px;
    text-align: center;
    font-size: 11px;
    color: var(--gray-blue);
    letter-spacing: .1em;
}

/* ============================================================
   Floating WhatsApp
============================================================ */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    z-index: 50;
    transition: transform .2s, box-shadow .2s;
    animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
    transform: scale(1.08);
    animation-play-state: paused;
}
.wa-float svg { width: 28px; height: 28px; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, .35); }
    70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   Project detail page (/proyecto/<slug>)
============================================================ */
.proj-hero {
    position: relative;
    background-color: var(--navy-deep);
    background-size: cover;
    background-position: center;
    color: var(--ivory);
    padding-top: 120px;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}
.proj-hero-overlay {
    width: 100%;
    background: linear-gradient(180deg,
        rgba(10,25,41,.35) 0%,
        rgba(10,25,41,.85) 60%,
        rgba(10,25,41,.95) 100%);
    padding: 80px 0 56px;
}
.crumbs {
    font-size: 12px;
    color: var(--gray-light);
    margin-bottom: 24px;
    letter-spacing: .04em;
}
.crumbs a { color: var(--gray-light); text-decoration: none; }
.crumbs a:hover { color: var(--champagne); }
.crumbs span { margin: 0 8px; opacity: .6; }
.proj-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 4px 0 18px;
    color: var(--ivory);
}
.proj-price-hero {
    font-size: 15px;
    color: var(--gray-light);
    margin: 0;
}
.proj-price-hero strong {
    color: var(--champagne);
    font-weight: 500;
    font-size: 22px;
    margin-left: 8px;
}
.proj-price-hero small { font-size: 12px; color: var(--gray-light); }

.proj-body { padding: 80px 0; }
.proj-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
}

.proj-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 32px;
    margin: 56px 0 20px;
    letter-spacing: -.01em;
}
.proj-h2:first-child { margin-top: 0; }

.proj-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: rgba(10, 25, 41, .08);
    border: 1px solid rgba(10, 25, 41, .08);
}
.proj-facts .fact {
    background: var(--white);
    padding: 20px 18px;
    text-align: center;
}
.proj-facts .fact-label {
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gray-blue);
    margin-bottom: 6px;
}
.proj-facts .fact-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--navy-deep);
}

.proj-prose {
    font-size: 16px;
    line-height: 1.75;
    color: #3a4a5e;
    font-weight: 300;
}
.proj-prose p { margin: 0 0 16px; }

.proj-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.gal-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--beige-stone);
}
.gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.gal-item:hover img { transform: scale(1.04); }

.proj-video {
    aspect-ratio: 16/9;
    background: var(--navy-deep);
    overflow: hidden;
}
.proj-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.proj-map {
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid var(--line);
}
.proj-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.proj-aside { position: sticky; top: 90px; }

.proj-cta-card {
    background: var(--navy-deep);
    color: var(--ivory);
    padding: 32px;
    margin-bottom: 20px;
}
.proj-cta-card .eyebrow { color: var(--champagne); margin-bottom: 16px; }
.proj-cta-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--ivory);
    line-height: 1.25;
}
.proj-cta-card h3 em {
    font-style: italic;
    color: var(--champagne);
}
.proj-cta-card p {
    font-size: 13px;
    color: var(--gray-light);
    margin: 0 0 20px;
    line-height: 1.55;
    font-weight: 300;
}
.proj-contact-detail { display: flex; flex-direction: column; gap: 8px; }
.proj-contact-detail a {
    color: var(--gray-light);
    font-size: 13px;
    transition: color .15s;
}
.proj-contact-detail a:hover { color: var(--champagne); }

.proj-broker-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px;
    text-align: center;
}
.proj-broker-card .eyebrow {
    color: var(--champagne-deep);
    margin: 0 0 14px;
}
.broker-photo {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 2px solid var(--champagne);
}
.proj-broker-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px;
}
.broker-bio {
    font-size: 13px;
    color: var(--gray-blue);
    margin: 0 0 16px;
    line-height: 1.55;
}
.broker-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
}
.broker-contact a {
    color: var(--navy-deep);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 1px solid var(--champagne);
    padding: 4px 0;
}
.broker-contact a:hover { color: var(--champagne-deep); }

/* ============================================================
   Catalog page (/proyectos/)
============================================================ */
.catalog-head {
    background: linear-gradient(180deg, var(--navy-deep), var(--navy-mid));
    color: var(--ivory);
    padding: 140px 0 60px;
    text-align: center;
}
.catalog-head .eyebrow { color: var(--champagne); margin: 0 0 16px; }
.catalog-head h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 12px;
    color: var(--ivory);
}
.catalog-head .lead {
    color: var(--gray-light);
    font-size: 15px;
    margin: 0;
    font-weight: 300;
}

.catalog-wrap { padding: 56px 0 96px; }
.catalog-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--line);
    margin-bottom: 36px;
    align-items: end;
}
.catalog-filters label { display: block; }
.catalog-filters label > span {
    display: block;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gray-blue);
    margin-bottom: 6px;
}
.catalog-filters input,
.catalog-filters select {
    width: 100%;
    padding: 10px 12px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--navy-deep);
    font-family: inherit;
    font-size: 14px;
}
.catalog-filters input:focus,
.catalog-filters select:focus {
    outline: none; border-color: var(--champagne); background: var(--white);
}
.catalog-filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.catalog-grid .project-card {
    text-decoration: none;
    color: inherit;
}
.catalog-mini-specs {
    font-size: 12px;
    color: var(--gray-blue);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fdfaf3;
    border: 1px solid var(--line);
}
.catalog-empty p { color: var(--gray-blue); margin: 0 0 24px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}
.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    color: var(--gray-blue);
    background: var(--white);
    font-size: 13px;
    transition: border-color .2s, color .2s, background .2s;
}
.pagination a:hover { border-color: var(--champagne); color: var(--navy-deep); }
.pagination a.cur {
    background: var(--navy-deep);
    color: var(--ivory);
    border-color: var(--navy-deep);
}

/* ============================================================
   Footer login link (discrete)
============================================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-login {
    color: var(--gray-blue);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.footer-login:hover {
    color: var(--champagne);
    border-color: var(--champagne);
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 920px) {
    .section { padding: 88px 0; }
    .section-head { margin-bottom: 48px; }

    .proj-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .proj-aside { position: static; }
    .proj-body { padding: 56px 0; }
    .proj-hero { padding-top: 80px; }

    .catalog-head { padding: 110px 0 40px; }
    .catalog-filter-actions { grid-column: 1 / -1; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        bottom: 0;
        width: min(80vw, 320px);
        background: var(--navy-deep);
        flex-direction: column;
        gap: 0;
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.22,1,.36,1);
        align-items: flex-start;
        box-shadow: -20px 0 40px rgba(0,0,0,.3);
    }
    .nav-links.is-open { transform: translateX(0); }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(245, 243, 239, .08);
    }
    .nav-links a.nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: 1px solid var(--champagne);
    }

    .inversion-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .inversion-image > div { aspect-ratio: 16/10; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-form { padding: 28px; }
    .contact-info { padding: 32px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .hero { padding: 96px 16px 64px; }
    .hero-mark { width: 48px; margin-bottom: 24px; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-cta .btn { width: 100%; }
    .container { padding: 0 16px; }
    .project-grid, .type-grid, .why-grid { gap: 24px; }
    .project-body { padding: 24px; }
    .why-card { padding: 36px 28px; }
    .wa-float { width: 52px; height: 52px; bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); }
    .wa-float svg { width: 24px; height: 24px; }
    .catalog-filters { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
    .contact-form { padding: 18px; }
    .contact-info { padding: 20px; }
    .contact-form label { margin-bottom: 14px; }
    .proj-facts .fact { padding: 14px 10px; }
    .proj-gallery { gap: 6px; }
}

/* Tap targets mas comodos en el footer (movil, accesibilidad) */
@media (max-width: 768px) {
    .footer-links a,
    .footer-bottom .footer-login {
        display: inline-block;
        padding: 10px 0;
        line-height: 1.4;
    }
}
