/* ──────────────────────────────────────────
   Home — Ángela Clair
   ──────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--ac-paper) 0%, var(--ac-paper) 60%, rgba(242,233,214,0) 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 96px);
}
.hero-text { padding-bottom: 24px; }
.hero-text .ac-eyebrow { margin-bottom: 28px; }
.hero-text .ac-display span,
.hero-text .ac-display em { display: inline; }
.hero-text .ac-display span + span,
.hero-text .ac-display em { margin-left: 0; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
  border-top: 1px solid var(--ac-line);
  padding-top: 28px;
}
.hero-proof .num {
  font-family: var(--ac-serif);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: var(--ac-display-tight-2);
  line-height: 1;
}
.hero-proof .num span { font-family: var(--ac-sans); font-size: .5em; color: var(--ac-gold); margin-left: 3px; vertical-align: top; }
.hero-proof .lab { font-size: 12px; color: var(--ac-ink-3); margin-top: 8px; letter-spacing: .02em; text-wrap: pretty; }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual image-slot { box-shadow: var(--ac-shadow-2); }
.hero-caption {
  position: absolute;
  left: -16px;
  bottom: 36px;
  background: var(--ac-paper);
  padding: 14px 18px;
  border: 1px solid var(--ac-line-soft);
  box-shadow: var(--ac-shadow-1);
}
.hero-caption .sig {
  font-family: var(--ac-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: var(--ac-ink);
}
.hero-caption .role { font-size: 11px; color: var(--ac-ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.hero-stamp {
  position: absolute;
  right: -28px;
  top: -28px;
  background: var(--ac-paper);
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--ac-shadow-2);
  animation: stamp-spin 60s linear infinite;
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-stamp { animation: none; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stamp { right: 8px; top: 8px; width: 76px; }
  .hero-stamp svg { width: 76px; height: 76px; }
}
@media (max-width: 560px) {
  .hero-proof { grid-template-columns: 1fr; gap: 14px; }
  .hero-caption { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero-caption .sig { font-size: 18px; }
}

/* ── Trust bar (legacy, kept for fallback) ───────────── */
.trust-bar {
  border-top: 1px solid var(--ac-line-soft);
  border-bottom: 1px solid var(--ac-line-soft);
  padding: 22px 0;
  background: var(--ac-paper);
}
.trust-bar .ac-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  row-gap: 12px;
}
.trust-bar .ac-label { white-space: nowrap; }
.trust-name {
  font-family: var(--ac-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ac-ink-2);
  letter-spacing: .01em;
  opacity: .85;
}

/* ── Portales bar ────────────────────────────────────── */
.portals-bar {
  background: var(--ac-paper);
  border-top: 1px solid var(--ac-line-soft);
  border-bottom: 1px solid var(--ac-line-soft);
  padding: 40px 0 32px;
}
.portals-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.portals-head .ac-eyebrow { margin-bottom: 10px; }
.portals-head p {
  font-size: 14px;
  color: var(--ac-ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}
.portals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ac-line-soft);
  border: 1px solid var(--ac-line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.portals-list li { background: var(--ac-paper); }
.portals-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 16px 18px;
  align-items: center;
  transition: background .15s ease;
  position: relative;
}
.portals-list a:hover { background: var(--ac-paper-2); }
.portals-list .logo {
  font-family: var(--ac-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  grid-row: 1;
}
.portals-list .logo em { font-style: normal; font-weight: 400; opacity: .7; }
.portals-list .meta { grid-row: 2; grid-column: 1; display: flex; flex-direction: column; gap: 1px; }
.portals-list .meta strong { font-size: 12px; font-weight: 600; color: var(--ac-ink); }
.portals-list .meta small { font-size: 11px; color: var(--ac-ink-3); letter-spacing: .02em; }
.portals-list .ext { grid-row: 1 / span 2; grid-column: 2; color: var(--ac-ink-3); transition: transform .15s ease, color .15s ease; }
.portals-list a:hover .ext { color: var(--ac-ink); transform: translate(2px, -2px); }

/* Portal brand colors (subtle hint, mostly typographic) */
.logo-idealista { color: #C6017E; }
.logo-habitaclia { color: #E4002B; }
.logo-fotocasa { color: #00BFA5; }
.logo-pisos { color: #1A1714; }
.logo-pisos em { color: var(--ac-gold); }
.logo-enalquiler { color: #2A3324; }
.logo-inv {
  font-family: var(--ac-serif);
  font-weight: 500;
  font-style: italic;
  color: var(--ac-gold);
}
.logo-inv em { font-style: normal; color: var(--ac-ink); }

.press-row {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ac-line-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  row-gap: 10px;
}

@media (max-width: 900px) {
  .portals-grid { grid-template-columns: 1fr; gap: 20px; }
  .portals-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portals-list { grid-template-columns: 1fr; }
}

/* ── Section head ────────────────────────────────────── */
.section-head { margin-bottom: clamp(36px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head.with-cta {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 24px;
  flex-wrap: wrap;
}
.method-head { max-width: 880px; }

/* ── Needs grid ──────────────────────────────────────── */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ac-line-soft);
  border: 1px solid var(--ac-line-soft);
}
.need-card {
  background: var(--ac-paper);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 260px;
  color: var(--ac-ink);
  transition: background .2s ease;
}
.need-card:hover { background: var(--ac-paper-2); }
.need-card .num {
  font-family: var(--ac-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ac-gold);
  letter-spacing: 0;
}
.need-card h3 { margin-top: 2px; }
.need-card p { font-size: 14px; color: var(--ac-ink-2); margin: 4px 0 0; flex: 1; line-height: 1.55; max-width: 32ch; }
.need-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-ink);
  margin-top: 12px;
}
.need-card .link .arrow { width: 14px; height: 14px; transition: transform .2s ease; }
.need-card:hover .link .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .needs-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 0; padding: 28px 24px; }
}

/* ── Method timeline ─────────────────────────────────── */
.method-section { background: var(--ac-paper-2); }
.method-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ac-olive-2);
  position: relative;
}
.method-timeline li {
  padding: 32px 20px 0 0;
  position: relative;
  border-right: 1px solid rgba(42,51,36,.18);
}
.method-timeline li:last-child { border-right: 0; }
.method-timeline li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ac-paper-2);
  border: 2px solid var(--ac-olive);
}
.method-timeline .ix {
  font-family: var(--ac-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ac-olive);
}
.method-timeline h4 {
  font-family: var(--ac-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 12px 0 8px;
  letter-spacing: var(--ac-display-tight-2);
}
.method-timeline p {
  margin: 0;
  font-size: 13px;
  color: var(--ac-ink-2);
  line-height: 1.55;
  padding-right: 12px;
}
@media (max-width: 900px) {
  .method-timeline { grid-template-columns: 1fr 1fr; }
  .method-timeline li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .method-timeline { grid-template-columns: 1fr; }
  .method-timeline li { border-right: 0; border-bottom: 1px solid rgba(42,51,36,.18); padding-bottom: 24px; }
  .method-timeline li:last-child { border-bottom: 0; }
}

/* ── Rebeca block ────────────────────────────────────── */
.rebeca-block { background: var(--ac-ink); color: var(--ac-paper); }
.rebeca-block .ac-eyebrow { color: var(--ac-gold-soft); }
.rebeca-block .ac-eyebrow::before { background: var(--ac-gold-soft); }
.rebeca-block .ac-h2 { color: var(--ac-paper); }
.rebeca-block .ac-body { color: rgba(251,246,236,.72); }
.rebeca-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.rebeca-visual { position: relative; }
.rebeca-visual image-slot {
  --image-slot-bg: #2C2925;
}
.quote-card {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: min(360px, 78%);
  background: var(--ac-gold);
  color: #1A1714;
  padding: 28px 26px;
  box-shadow: var(--ac-shadow-3);
}
.quote-card .ac-display { color: #1A1714; line-height: 1.15; font-weight: 400; }

.rebeca-text { padding-block: 24px; }
.rebeca-text .ac-h2 em { font-family: var(--ac-serif); }
.rebeca-text p.ac-body { margin: 24px 0; max-width: 48ch; }
.rebeca-facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rebeca-facts li {
  font-size: 14px;
  color: rgba(251,246,236,.85);
  border-top: 1px solid rgba(231,221,198,.18);
  padding-top: 10px;
}
.rebeca-facts li span {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ac-gold-soft);
  margin-bottom: 4px;
  font-weight: 600;
  font-family: var(--ac-sans);
}
.rebeca-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.rebeca-ctas .ac-btn.primary { background: var(--ac-gold); color: #1A1714; }
.rebeca-ctas .ac-btn.primary:hover { background: var(--ac-gold-soft); }
.rebeca-ctas .ac-btn.ghost { color: var(--ac-paper); border-bottom-color: var(--ac-gold-soft); }

@media (max-width: 920px) {
  .rebeca-grid { grid-template-columns: 1fr; }
  .quote-card { position: relative; right: 0; bottom: 0; margin-top: 16px; width: 100%; }
  .rebeca-facts { grid-template-columns: 1fr; }
}

/* ── Property grid + photo placeholders ──────────────── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
}
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .prop-grid { grid-template-columns: 1fr; } }

/* Architectural SVG photo placeholders — drop-in look */
.prop-photo { position: absolute; inset: 0; }
.prop-photo[data-photo="1"] {
  background:
    radial-gradient(140% 90% at 50% 110%, rgba(168,133,62,.18), transparent 60%),
    linear-gradient(180deg, #d8c9a6 0%, #b89e72 60%, #8f7548 100%);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.prop-photo[data-photo="1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(26,23,20,.18) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, rgba(26,23,20,.12) 0 2px, transparent 2px 24px);
  opacity: .35;
}
.prop-photo[data-photo="1"]::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 0; top: 18%;
  background:
    linear-gradient(180deg, rgba(26,23,20,.0) 60%, rgba(26,23,20,.25)),
    repeating-linear-gradient(0deg, rgba(251,246,236,.55) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(251,246,236,.4) 0 1px, transparent 1px 22px);
  border-top: 1px solid rgba(26,23,20,.35);
}

.prop-photo[data-photo="2"] {
  background: linear-gradient(180deg, #c2b48a, #9d8458);
  overflow: hidden;
}
.prop-photo[data-photo="2"]::before {
  content: "";
  position: absolute;
  inset: 30% 0 0 0;
  background:
    radial-gradient(50% 60% at 30% 100%, rgba(26,23,20,.35), transparent 60%),
    radial-gradient(50% 60% at 75% 100%, rgba(26,23,20,.4), transparent 60%);
}
.prop-photo[data-photo="2"]::after {
  content: "";
  position: absolute;
  inset: 22% 14% 0 14%;
  background:
    linear-gradient(180deg, rgba(251,246,236,.6) 0 60%, rgba(26,23,20,.3) 100%),
    repeating-linear-gradient(0deg, rgba(26,23,20,.25) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(26,23,20,.18) 0 1px, transparent 1px 22px);
  border-top: 1px solid rgba(26,23,20,.4);
  border-left: 1px solid rgba(26,23,20,.2);
  border-right: 1px solid rgba(26,23,20,.2);
}

.prop-photo[data-photo="3"] {
  background: linear-gradient(180deg, #b8a37a, #7d6541 55%, #4f3f23);
  overflow: hidden;
}
.prop-photo[data-photo="3"]::before {
  content: "";
  position: absolute;
  inset: 18% 18% 12% 18%;
  background:
    linear-gradient(180deg, rgba(251,246,236,.65), rgba(251,246,236,.05)),
    repeating-linear-gradient(0deg, rgba(26,23,20,.25) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(26,23,20,.35);
}
.prop-photo[data-photo="3"]::after {
  content: "";
  position: absolute;
  inset: 70% 10% 0 10%;
  background: linear-gradient(180deg, rgba(26,23,20,.35), transparent);
}

/* ── Guides ──────────────────────────────────────────── */
.guides-section { background: var(--ac-paper-2); }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
}
.guide-card {
  background: var(--ac-paper);
  border: 1px solid var(--ac-line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ac-ink);
  transition: border-color .15s ease;
}
.guide-card:hover { border-color: var(--ac-ink); }
.guide-cover {
  aspect-ratio: 5 / 4;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ac-paper);
  position: relative;
  overflow: hidden;
}
.guide-cover .kind {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(251,246,236,.7);
}
.guide-cover h3 { color: var(--ac-paper); max-width: 80%; }
.guide-cover-1 { background: var(--ac-burgundy); }
.guide-cover-1::after {
  content: "";
  position: absolute;
  right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  background: rgba(168,133,62,.28);
  border-radius: 50%;
  filter: blur(20px);
}
.guide-cover-2 { background: var(--ac-olive); }
.guide-cover-2::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 140px; height: 140px;
  border: 1px solid rgba(231,221,198,.3);
  border-radius: 50%;
}
.guide-cover-3 { background: #25313c; }
.guide-cover-3::after {
  content: "";
  position: absolute;
  right: 16px; top: 16px;
  width: 50px; height: 50px;
  border: 1px solid var(--ac-gold-soft);
}
.guide-card p { margin: 0 22px; font-size: 14px; color: var(--ac-ink-2); line-height: 1.55; }
.guide-card .link {
  margin: 8px 22px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac-ink);
}
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-section { padding-block: clamp(56px, 7vw, 96px); }
.faq-list { border-top: 1px solid var(--ac-line); }
.faq-list details {
  border-bottom: 1px solid var(--ac-line);
  padding: 22px 0;
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--ac-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: var(--ac-display-tight-2);
  line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--ac-sans);
  font-size: 22px;
  color: var(--ac-gold);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ac-line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 14px 0 0; color: var(--ac-ink-2); font-size: 16px; line-height: 1.6; max-width: 60ch; }

/* ── Form ────────────────────────────────────────────── */
.form-section { background: var(--ac-paper-2); }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 24px; font-size: 15px; color: var(--ac-ink); }
.contact-list .lbl { width: 90px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ac-ink-3); padding-top: 4px; flex-shrink: 0; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--ac-line); text-underline-offset: 4px; }
.contact-list a:hover { text-decoration-color: var(--ac-ink); }

.ac-form {
  background: var(--ac-paper);
  border: 1px solid var(--ac-line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ac-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ac-form .ac-btn.primary { align-self: flex-start; }
.form-status {
  background: var(--ac-olive);
  color: var(--ac-paper);
  padding: 14px 18px;
  font-size: 14px;
  display: none;
}
.form-status.shown { display: block; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .ac-form .two-col { grid-template-columns: 1fr; }
}

/* ac-responsive-fixes v1 */
@media (max-width: 920px) {
  .hero h1, h1.ac-display { font-size: 44px !important; line-height: 1.05 !important; max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
  .listing-hero { grid-template-columns: 1fr !important; gap: 24px !important; }
  .logo-yaencontre { color: #e5005a; font-weight: 600; }
}
@media (max-width: 560px) {
  .hero h1, h1.ac-display { font-size: 34px !important; }
}
