/* --------- FAQ Links --------- */
.faq-link {
  color: #2563eb;
  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;
  }
}

.content-extra__image {
  margin: 24px 0;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 400px;
}


/* =========================
   Preciopiso · styles.css
   ========================= */

/* --------- Variables --------- */
:root{
  /* Brand */
  --primary:   #6C63FF; /* indigo tech */
  --secondary: #00C9A7; /* turquesa */
  --accent:    #FF6584; /* coral moderno */

  /* Neutrales */
  --bg:    #F9FAFB;   /* fondo claro */
  --ink:   #1F2937;   /* texto principal */
  --muted: #6B7280;   /* texto secundario */
  --line:  #E5E7EB;   /* bordes sutiles */
  --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 }
body{
 font-family: 'Urbanist', system-ui, -apple-system, Segoe UI, Roboto, Arial, 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(1120px,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(--grad-main); color:#fff; box-shadow: var(--shadow);
}
.btn--primary:hover{ 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:20;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header__row{
  display:flex; align-items:center; justify-content:space-between; padding:12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px }
.brand__logo{ height:28px; width:auto }
.nav a{ padding:.6rem .75rem; border-radius:10px }
.nav a:hover{ background: #EEF2FF }
@media (max-width: 600px) {
  .nav a:not(:last-child) {
    display: none; /* oculta todos menos el último (Calcular) */
  }

  .nav a:last-child {
    display: inline-flex; /* el CTA siempre visible */
  }
}


/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 65vh; /* más estrecho */
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/Ciudad_futurista.jpg') no-repeat center center/cover;
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(160, 153, 255, 0.55),  /* lavanda con transparencia */
    rgba(0, 0, 0, 0.85)         /* degradado al oscuro */
  );
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.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;
  color: #f5f5f5;
}

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

/* --------- Benefits (valor diferencial) --------- */
.benefits{ padding:56px 0; background:#fff }
.benefits__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px }
.benefit{
  border:1px solid var(--line); border-radius:18px; padding:18px; background:#fff; box-shadow: var(--shadow);
}
.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:12px;
  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 auto 1fr; align-items:center; gap:12px;
}
.step{
  padding:16px; 
  border: 1px solid var(--primary); 
  border-radius:16px; 
  background: transparent; 
  font-weight:600;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow{ font-size:24px; opacity:.6; color: var(--primary); }

/* --------- 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: 970px;
}
.valuator__wrap{
  width: min(1100px, 85vw); 
  margin: 0 auto;
  height: 820px;
}
#app{
  height: 100%;
}


/* ===== 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; }
  .benefits__grid{ grid-template-columns:1fr; }
  .steps__row{ grid-template-columns: 1fr; gap:10px }
  .arrow{ display:none }
}

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