/* --------- Header --------- */
.header__main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: space-between;
}

.brand__logo {
  height: 40px;
  width: auto;
}


/* --------- FAQ Links --------- */
.faq-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color .15s;
  word-break: break-all;
  text-underline-offset: 2px;
}
.faq-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* --------- Layout: Footer always bottom --------- */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.footer {
  flex-shrink: 0;
}
/* --------- Content Extra (cards debajo del valorador) --------- */
.content-extra {
  padding: 64px 0;
  background: #fff;
}
.content-extra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.content-extra__item {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .18s, border-color .18s;
}
.content-extra__item:hover {
  box-shadow: 0 16px 48px rgba(108,99,255,0.13), 0 4px 16px rgba(2,6,23,.10);
  border-color: var(--primary);
}
.content-extra__item i {
  font-size: 2.3rem;
  background: var(--grad-main);
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(108,99,255,0.10);
}
.content-extra__item h3 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.content-extra__item p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}
@media (max-width: 900px) {
  .content-extra__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
/* =========================
   Estimar inmueble · styles.css
   ========================= */

/* --------- Variables --------- */
:root{
  /* Brand (rosas) */
  --primary:   #E93D82; /* rosa intenso */
  --primary-light: #F1A7B8; /* rosa claro */
  --secondary: #FF8FAB; /* rosa suave/peach */
  --accent:    #FF4D8D; /* fucsia moderno */

  /* Neutrales */
  --bg:    #FFF5F8;   /* fondo claro con tinte rosado */
  --ink:   #1F2937;   /* texto principal */
  --muted: #6B7280;   /* texto secundario */
  --line:  #FCE7F3;   /* bordes sutiles rosados */
  --paper: #FFFFFF;   /* superficies */

  /* UI */
  --radius: 16px;
  --shadow: 0 12px 40px rgba(2,6,23,.12), 0 4px 16px rgba(2,6,23,.08);

  /* Gradients */
  --grad-main: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-accent: linear-gradient(135deg, var(--accent), var(--primary));
}

/* --------- Reset & base --------- */
* { box-sizing: border-box }
html,body { margin:0; padding:0 }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body{
 font-family: 'Urbanist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{ max-width:100%; display:block }
a{ color:inherit; text-decoration:none }
.container{ width:min(1300px,85vw); margin:0 auto }

/* --------- Buttons --------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.9rem 1.15rem; border-radius:14px; font-weight:700;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
  will-change: transform;
}
.btn--primary{
  background: var(--primary); 
  color:#fff; 
  font-size: 15px;
  border: 1px solid var(--primary);
}
.btn--primary:hover{ 
  background-color: rgba(255,255,255,0.5);
  color: var(--primary);
  border: 1px solid var(--primary);
      transform: translateY(-1px);
}
.btn--ghost{
  background: var(--paper); 
  border:1px solid var(--line); color: var(--ink);
}
.btn--ghost:hover{ transform: translateY(-1px) }


/* --------- Header --------- */
.header{
  position: sticky; top:0; z-index:1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.header__row{
  display:flex; align-items:center; justify-content:space-between; padding:12px 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a{ padding:.6rem .75rem; border-radius:10px }
.nav a:hover{ background: #EEF2FF }

.highlight{ color: var(--accent); font-weight:700 }


/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/pink_texture.jpg') no-repeat center center/cover;
  padding-bottom: 20px;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero__text {
  max-width: 600px;
}

.hero__text h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 18px;
  line-height: 1.1;
}

.hero__text p {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.kpis {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.kpis li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
}

/* --------- Benefits (valor diferencial) --------- */
.benefits{ padding:56px 0; background:#fff }
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.benefit{
  border:1px solid var(--line); 
  border-radius: 10px; 
  padding:18px; 
  background:#fff; 
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  align-items: center;
}
.benefit h3{ 
  margin:.25rem 0 .35rem; 
}
.benefit p{ color:var(--muted); margin:0 }
.icon{
  display:inline-grid; place-items:center; width:42px; height:42px; border-radius:8px;
  background: var(--grad-main); color:#fff; margin-bottom:8px;
}

/* --------- Steps (horizontal con flechas) --------- */
.steps{ padding:64px 0; background: linear-gradient(180deg,#fff,#F7FAFF) }
.steps h2{ margin:0 0 14px; font-size: clamp(22px,3vw,34px) }
.steps__row{
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:12px;
}
.step{
  padding:16px; border:1px dashed #CBD5E1; border-radius:16px; background:#fff; font-weight:600
}
.arrow{ font-size:24px; opacity:.6 }

/* --------- Valuator (se mantiene el #app) --------- */
.valuator{
  position:relative; 
  padding:70px 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(108,99,255,.15), transparent 60%),
    radial-gradient(1100px 600px at 95% -20%, rgba(0,201,167,.15), transparent 60%),
    radial-gradient(1400px 800px at 100% 100%, rgba(17,24,39,.15), transparent 70%);
    height: 1170px;
}
.valuator__wrap{
  width: min(1300px, 85vw); 
  margin: 0 auto;
  height: 820px;
}
.valuator .container {
  margin-bottom: 20px;
}
#app{
  height: 100%;
}

@media (max-width: 600px){
  .valuator{ height: 1370px; }
}


/* ===== FAQ ===== */
.faq {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.faq__title {
  font-size: clamp(22px, 3vw, 34px);
  margin: 0 0 16px;
}

.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq__item[open] {
  box-shadow: var(--shadow);
  border-color: #E2E8F0;
}

.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq__item > summary::-webkit-details-marker { display: none; }

/* Icono +/– con CSS puro */
.faq__item > summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 700;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}
.faq__item[open] > summary::after {
  content: "–";
  color: var(--ink);
}

.faq__content {
  padding: 16px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* CTA bajo FAQ */
.faq__cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 560px){
  .faq__cta { flex-direction: column; }
}


/* --------- Footer --------- */
.footer{ padding:28px 0; border-top:1px solid var(--line); background:#fff; color:var(--muted); text-align:center }

/* --------- Utilities --------- */
.section{ padding:60px 0 }
.section h2{ font-size: clamp(22px,3vw,34px); margin:0 0 10px }

/* --------- Responsive --------- */
@media (max-width: 980px){
  .hero__grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .benefits__grid{ grid-template-columns:1fr; }
  .steps__row{ grid-template-columns: 1fr; gap:10px }
  .arrow{ display:none }
}

@media (max-width: 600px){
  .kpis {
    flex-direction: column;
    gap: 12px;
  }
  .kpis li {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* --------- Small polish --------- */
::selection{ background:#DDE3FF }
.btn:active{ transform: translateY(0) scale(.99) }
