/* ─────────────────────────────────────────────
   CLARPAL.COM — styles.css
   ───────────────────────────────────────────── */

:root {
  --ink:    #1a1a1a;
  --smoke:  #f5f3ef;
  --linen:  #ede9e2;
  --gold:   #b8974a;
  --gold-l: #d4b06a;
  --slate:  #2e3642;
  --mist:   #6b7280;
  --white:  #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; font-weight: 300; color: var(--ink); line-height: 1.7; font-size: 16px; overflow-x: hidden; }

.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { overflow-x: hidden; max-width: 100vw; }

.container    { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 840px;  margin: 0 auto; padding: 0 40px; }

/* ── UTILITIES ─────────────────────────────── */
.tag     { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.divider { display: block; width: 40px; height: 1px; background: var(--gold); margin: 20px 0; }

/* ── BUTTONS ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; cursor: pointer; transition: all .3s; background: none; text-decoration: none; }
.btn-gold          { background: var(--gold);        border-color: var(--gold);        color: #fff; }
.btn-gold:hover    { background: var(--gold-l);      border-color: var(--gold-l); }
.btn-outline       { background: transparent;        border-color: var(--ink);         color: var(--ink); }
.btn-outline:hover { background: var(--ink);         color: #fff; }
.btn-outline-white { background: transparent;        border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: #fff;         color: var(--ink); }

/* ── NAVIGATION ────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, box-shadow .4s; background: rgba(20,26,34,.55); backdrop-filter: blur(6px); }
nav.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
nav.always-white { background: rgba(255,255,255,.97) !important; backdrop-filter: blur(12px) !important; box-shadow: 0 1px 0 rgba(0,0,0,.08) !important; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 40px; max-width: 1400px; margin: 0 auto; }
.nav-logo  { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* Logo: hidden image on dark nav, visible on white */
.nav-logo-img-wrap { overflow: hidden; width: 0; opacity: 0; transition: width .4s, opacity .4s; }
nav.scrolled     .nav-logo-img-wrap,
nav.always-white .nav-logo-img-wrap { width: 44px; opacity: 1; margin-right: 4px; }
.nav-logo img { height: 36px; display: block; }

.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #fff; letter-spacing: .05em; transition: color .3s; }
nav.scrolled     .nav-logo-text,
nav.always-white .nav-logo-text { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); transition: color .3s; }
nav.scrolled     .nav-links a,
nav.always-white .nav-links a { color: var(--ink); }
.nav-links a:hover,
.nav-links a.active { color: var(--gold) !important; }

.nav-cta { padding: 9px 22px !important; border: 1px solid rgba(255,255,255,.6) !important; color: #fff !important; }
nav.scrolled     .nav-cta,
nav.always-white .nav-cta { border-color: var(--gold) !important; color: var(--gold) !important; }
.nav-cta:hover { background: rgba(255,255,255,.15) !important; border-color: #fff !important; color: #fff !important; }
nav.scrolled     .nav-cta:hover,
nav.always-white .nav-cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all .3s; }
nav.scrolled     .nav-toggle span,
nav.always-white .nav-toggle span { background: var(--ink); }

/* Mobile menu */
#mobileMenu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,.98); z-index: 99; padding: 24px 24px 32px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
#mobileMenu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
#mobileMenu a  { display: block; padding: 14px 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--linen); }

/* ── HERO (home) ───────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,18,24,.3) 0%, rgba(15,18,24,.1) 40%, rgba(15,18,24,.78) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 40px 88px; max-width: 1400px; margin: 0 auto; }
.hero-content .tag { color: var(--gold-l); }
.hero-content h1  { font-size: clamp(44px, 6vw, 86px); color: #fff; max-width: 820px; margin-bottom: 14px; }
.hero-content .sub { font-size: 17px; color: rgba(255,255,255,.72); margin-bottom: 40px; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll { position: absolute; right: 48px; bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.hero-scroll span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 56px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--gold); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ── PAGE HERO (interior pages) ────────────── */
.page-hero { position: relative; height: 58vh; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; margin-top: 72px; }
.ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ph-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,18,24,.2) 0%, rgba(15,18,24,.8) 100%); }
.ph-content { position: relative; z-index: 2; padding: 0 40px 72px; max-width: 1400px; width: 100%; margin: 0 auto; }
.ph-content h1 { font-size: clamp(36px, 5vw, 70px); color: #fff; max-width: 720px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a    { font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.5); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,.3); font-size: 12px; }
.breadcrumb .cur { font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.8); }

/* ── ABOUT ─────────────────────────────────── */
.about-section { background: #fff; padding: 120px 0; }
.about-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 520px; object-fit: cover; }
.about-badge    { position: absolute; bottom: -28px; right: -28px; width: 136px; height: 136px; background: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.about-badge .yr { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: #fff; line-height: 1; }
.about-badge .sc { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.about-text h2   { font-size: clamp(34px, 3.5vw, 50px); margin-bottom: 24px; }
.about-text p    { color: var(--mist); font-size: 15px; margin-bottom: 16px; line-height: 1.8; }

.partners { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--linen); margin-top: 44px; border: 1px solid var(--linen); }
.partner  { background: #fff; padding: 24px 18px; text-align: center; }
.p-icon   { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 17px; }
.partner strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.partner span   { font-size: 12px; color: var(--mist); line-height: 1.4; }

/* ── SERVICES GRID ─────────────────────────── */
.services-section { background: var(--smoke); padding: 120px 0; }
.section-header   { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 16px; }
.section-header p  { font-size: 15px; color: var(--mist); max-width: 540px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(0,0,0,.06); }
.svc-card { background: #fff; overflow: hidden; transition: all .4s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0,0,0,.12); }
.svc-card-img { height: 260px; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { padding: 32px 28px 36px; }
.svc-num { font-family: 'Cormorant Garamond', serif; font-size: 60px; font-weight: 300; color: var(--linen); line-height: 1; margin-bottom: -6px; }
.svc-card-body h3 { font-size: 22px; margin-bottom: 12px; }
.svc-card-body p  { font-size: 14px; color: var(--mist); margin-bottom: 24px; line-height: 1.75; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: gap .2s; }
.svc-link:hover { gap: 14px; }

/* ── VALUES BAR ────────────────────────────── */
.values-bar  { background: var(--slate); padding: 72px 0; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.08); }
.val-item    { padding: 40px 28px; text-align: center; background: var(--slate); }
.val-item .num { font-family: 'Cormorant Garamond', serif; font-size: 50px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.val-item strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.val-item p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ── CTA DARK ──────────────────────────────── */
.cta-dark { background: var(--ink); padding: 112px 0; text-align: center; position: relative; overflow: hidden; }
.cta-dark::before { content: 'ClarPal'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: 'Cormorant Garamond', serif; font-size: 220px; font-weight: 300; color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none; }
.cta-dark .tag { color: var(--gold-l); }
.cta-dark h2   { font-size: clamp(38px, 5vw, 66px); color: #fff; max-width: 660px; margin: 0 auto 20px; }
.cta-dark p    { color: rgba(255,255,255,.5); font-size: 15px; margin-bottom: 44px; }

/* ── SERVICE INTRO ─────────────────────────── */
.svc-intro  { padding: 96px 0; background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.intro-text h2 { font-size: clamp(30px, 3vw, 46px); margin-bottom: 22px; }
.intro-text p  { font-size: 15px; color: var(--mist); margin-bottom: 16px; line-height: 1.8; }

/* ── WHY US ────────────────────────────────── */
.why-section { background: var(--smoke); padding: 96px 0; }
.why-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list    { list-style: none; margin-top: 28px; }
.why-item    { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--linen); }
.why-item:first-child { border-top: 1px solid var(--linen); }
.why-icon    { width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; color: var(--gold); }
.why-item h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.why-item p  { font-size: 13px; color: var(--mist); line-height: 1.6; }

/* ── SERVICES TILES ────────────────────────── */
.tiles-section { padding: 96px 0; background: #fff; }
.tiles-grid    { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--linen); border: 1px solid var(--linen); margin-top: 44px; }
.tile          { background: #fff; padding: 34px 28px; display: flex; gap: 18px; }
.tile-num      { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 300; color: var(--linen); line-height: 1; flex-shrink: 0; }
.tile h4       { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.tile p        { font-size: 13px; color: var(--mist); line-height: 1.65; }

/* ── GALLERY ───────────────────────────────── */
.gallery-section { padding: 96px 0; background: var(--smoke); }
.gallery-grid    { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto auto; gap: 8px; margin-top: 44px; }
.g-main { grid-column: span 2; grid-row: span 2; }
.g-item { overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; min-height: 200px; }
.g-main img { min-height: 430px; }
.g-item:hover img { transform: scale(1.04); }

/* ── CONTACT FORM ──────────────────────────── */
.contact-section { padding: 96px 0; background: #fff; }
.contact-grid    { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.c-info h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; }
.c-info p  { font-size: 15px; color: var(--mist); margin-bottom: 36px; line-height: 1.8; }
.c-detail  { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.c-icon    { width: 42px; height: 42px; background: var(--smoke); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.c-detail strong { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.c-detail span   { font-size: 15px; }

.form-card  { background: var(--smoke); padding: 44px; }
.form-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; margin-bottom: 28px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }

label    { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 7px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; padding: 12px 15px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; color: var(--ink); background: #fff; border: 1px solid rgba(0,0,0,.1); outline: none; transition: border-color .2s; -webkit-appearance: none; border-radius: 0; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }

.form-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  border: 1px solid rgba(0,0,0,.3) !important;
  background: #fff !important;
  padding: 0 !important;
}
.form-check label { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--mist); line-height: 1.5; margin: 0; cursor: pointer; }
.form-check a { color: var(--gold); }

.form-msg         { display: none; padding: 14px 18px; font-size: 14px; margin-top: 14px; border-radius: 2px; }
.form-msg.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.form-msg.error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

/* ── PROJECTS LIST ─────────────────────────── */
.projects-list { padding: 96px 0; background: #fff; }
.proj-card     { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 2px; background: var(--linen); overflow: hidden; transition: box-shadow .3s; }
.proj-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.proj-card-img  { height: 380px; overflow: hidden; }
.proj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.proj-card:hover .proj-card-img img { transform: scale(1.05); }
.proj-card-info { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.proj-status    { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #10b981; margin-bottom: 20px; }
.proj-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.proj-card-info h3 { font-size: clamp(28px, 2.5vw, 40px); margin-bottom: 16px; }
.proj-card-info p  { font-size: 14px; color: var(--mist); line-height: 1.75; margin-bottom: 28px; }
.proj-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.proj-meta span   { font-size: 12px; color: var(--mist); display: flex; align-items: center; gap: 6px; }
.proj-meta strong { color: var(--ink); font-weight: 500; }

/* ── PEREDA PAGE ───────────────────────────── */
.pereda-features { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--linen); margin-bottom: 80px; }
.pf       { background: #fff; padding: 30px 22px; text-align: center; }
.pf .icon { font-size: 26px; margin-bottom: 10px; }
.pf strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.pf span   { font-size: 12px; color: var(--mist); }

.pereda-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 480px; margin-bottom: 80px; }
.pereda-photos .pp-main { grid-row: span 2; }
.pereda-photos img { width: 100%; height: 100%; object-fit: cover; }

.photo-row-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 80px; }
.photo-row-4 img { height: 200px; width: 100%; object-fit: cover; }

/* Viviendas grid */
.viviendas-section { background: var(--smoke); padding: 96px 0; }
.viv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(0,0,0,.06); margin-top: 44px; }
.viv-card { background: #fff; cursor: pointer; transition: all .3s; position: relative; overflow: hidden; }
.viv-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.viv-card-img { height: 200px; overflow: hidden; }
.viv-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .5s; background: var(--smoke); }
.viv-card:hover .viv-card-img img { transform: scale(1.04); }
.viv-card-body { padding: 22px 20px 26px; }
.viv-card-body h4  { font-size: 17px; margin-bottom: 6px; }
.viv-card-body .viv-meta { font-size: 13px; color: var(--mist); margin-bottom: 14px; }
.viv-open-btn { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Qualities */
.qualities-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 36px; margin-top: 44px; }
.q-block { border-left: 2px solid var(--gold); padding-left: 22px; }
.q-block h4 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.q-block ul { list-style: none; }
.q-block li { font-size: 13px; color: var(--mist); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.q-block li::before { content: ''; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* Location */
.loc-section { background: var(--smoke); padding: 96px 0; }
.loc-grid    { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.loc-cats    { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linen); margin-top: 36px; }
.loc-cat     { background: #fff; padding: 22px 18px; }
.loc-cat h5  { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.loc-cat ul  { list-style: none; }
.loc-cat li  { font-size: 13px; color: var(--mist); padding: 3px 0; }

/* Vivienda Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal-box   { background: #fff; max-width: 960px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 20px; right: 24px; font-size: 26px; cursor: pointer; color: var(--mist); z-index: 10; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.modal-img   { background: var(--smoke); padding: 40px; display: flex; align-items: center; justify-content: center; }
.modal-img img { max-height: 400px; width: 100%; object-fit: contain; }
.modal-info  { padding: 48px 40px; }
.modal-info h3 { font-size: 32px; margin-bottom: 20px; }
.modal-specs   { list-style: none; margin-bottom: 28px; }
.modal-specs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--linen); font-size: 14px; }
.modal-specs li span:first-child { color: var(--mist); }
.modal-specs li span:last-child  { font-weight: 500; color: var(--ink); }
.modal-pdf { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; margin-bottom: 28px; }

/* ── RENT TO RENT ──────────────────────────── */
.r2r-section { background: var(--slate); padding: 96px 0; }
.r2r-section .tag { color: var(--gold-l); }
.r2r-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(255,255,255,.08); margin-top: 52px; }
.r2r-step { background: var(--slate); padding: 44px 32px; text-align: center; }
.r2r-step .sn { font-family: 'Cormorant Garamond', serif; font-size: 68px; font-weight: 300; color: rgba(184,151,74,.25); line-height: 1; margin-bottom: 14px; }
.r2r-step h4  { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 10px; }
.r2r-step p   { font-size: 13px; color: rgba(255,255,255,.48); line-height: 1.7; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linen); margin-top: 44px; }
.aud-block  { background: #fff; padding: 44px 36px; }
.aud-tag    { font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px; }
.aud-block h3 { font-size: 24px; margin-bottom: 18px; }
.aud-block ul { list-style: none; }
.aud-block li { font-size: 14px; color: var(--mist); padding: 9px 0; border-bottom: 1px solid var(--linen); display: flex; gap: 10px; line-height: 1.5; }
.aud-block li::before { content: '→'; color: var(--gold); flex-shrink: 0; }

/* ── FOOTER ────────────────────────────────── */
footer { background: #111317; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 52px; }
.fb-logo-wrap { background: #fff; display: inline-block; padding: 5px 8px; margin-bottom: 14px; }
.fb-logo-wrap img { height: 32px; display: block; }
.fb-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: rgba(255,255,255,.75); margin-bottom: 14px; letter-spacing: .05em; }
.fb p    { font-size: 13px; color: rgba(255,255,255,.32); line-height: 1.7; max-width: 260px; }
.fc h4   { font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.fc ul   { list-style: none; }
.fc li   { margin-bottom: 9px; }
.fc a    { font-size: 13px; color: rgba(255,255,255,.42); transition: color .2s; }
.fc a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-bottom a { color: rgba(255,255,255,.22); margin-left: 12px; }

/* ── COOKIE BANNER ─────────────────────────── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: #111317; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-height: 50vh; overflow-y: auto; }
#cookie-banner p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 700px; }
#cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-accept { background: var(--gold); border: none; color: #fff; padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .3s; }
.cookie-accept:hover { background: var(--gold-l); }
.cookie-reject { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.6); padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.cookie-reject:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 960px) {
  .about-grid, .intro-grid, .why-grid, .contact-grid, .loc-grid, .modal-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .tiles-grid, .qualities-grid, .audience-grid, .r2r-steps, .viv-grid { grid-template-columns: 1fr; }
  .pereda-features, .values-grid { grid-template-columns: 1fr 1fr; }
  .about-badge { display: none; }
  .gallery-grid { display: flex; flex-direction: column; gap: 8px; }
  .pereda-photos { grid-template-columns: 1fr; height: auto; }
  .pereda-photos .pp-main { grid-row: span 1; }
  .pereda-photos img { height: 240px; }
  .photo-row-4 { grid-template-columns: 1fr 1fr; }
  .photo-row-4 img { height: 150px; }
  .proj-card { grid-template-columns: 1fr; }
  .proj-card-img { height: 240px; }
  .proj-card-info { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .container, .container-sm { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 0 20px 64px; }
  .ph-content { padding: 0 20px 56px; }
  .hero-scroll { display: none; }
  .loc-cats { grid-template-columns: 1fr; }
  .loc-grid > div:last-child { display: none; }
  .modal-box { width: 95%; max-height: 92vh; }
  .modal-img { padding: 20px; }
  .modal-info { padding: 24px 20px; }
  .about-section, .services-section, .tiles-section, .gallery-section,
  .contact-section, .svc-intro, .why-section, .viviendas-section,
  .loc-section, .r2r-section, .projects-list { padding: 64px 0; }
  .values-bar { padding: 48px 0; }
  .cta-dark { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .r2r-steps { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  #cookie-banner { padding: 16px 20px; flex-direction: column; align-items: stretch; gap: 16px; max-height: 60vh; }
  #cookie-banner p { font-size: 12px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cookie-accept, .cookie-reject { padding: 14px 10px; font-size: 12px; text-align: center; }
}