/* 
  Terrenos en Querétaro — Tierra Blanca
  Fondo blanco, estilo moderno y profesional.
*/
:root{
  --bg: #ffffff;
  --ink: #0c1222;
  --muted: #5b657a;
  --line: rgba(12,18,34,.10);
  --soft: rgba(12,18,34,.04);
  --shadow: 0 18px 40px rgba(12,18,34,.10);
  --shadow2: 0 12px 28px rgba(12,18,34,.10);
  --radius: 18px;
  --radius2: 22px;
  --max: 1160px;
  --accent: #5c2cff;
  --accent2:#00b3ff;
  --accent3:#00d3a7;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
p{margin:0 0 14px}
h1,h2,h3{margin:0 0 10px; letter-spacing:-.02em}
h1{font-size:clamp(30px, 3.4vw, 48px); line-height:1.1}
h2{font-size:clamp(22px, 2.4vw, 34px); line-height:1.15}
h3{font-size:18px}
strong{font-weight:700}
.muted{color:var(--muted)}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.top-accent{
  height:6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}

/* Header */
.header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
  z-index:50;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__mark{
  width:40px; height:40px; border-radius:14px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.2) 35%),
              linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(92,44,255,.18);
  border:1px solid rgba(12,18,34,.12);
}
.brand__text{display:flex; flex-direction:column; gap:2px}
.brand__title{font-weight:700; font-size:14px}
.brand__subtitle{font-weight:600; font-size:12px; color:var(--muted)}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav a{
  font-size:13px;
  color:rgba(12,18,34,.86);
  padding:10px 10px;
  border-radius:999px;
  transition:background .2s ease, transform .2s ease;
}
.nav a:hover{
  background:var(--soft);
  transform:translateY(-1px);
}
.nav__cta{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white !important;
  box-shadow: 0 10px 22px rgba(92,44,255,.14);
}
.nav__cta:hover{background: linear-gradient(135deg, var(--accent2), var(--accent))}

.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background:white;
  border-radius:999px;
  padding:10px 12px;
  box-shadow: 0 10px 22px rgba(12,18,34,.06);
}
.hamburger{
  width:22px; height:14px; display:block; position:relative;
}
.hamburger::before, .hamburger::after{
  content:""; position:absolute; left:0; right:0; height:2px; border-radius:2px;
  background:rgba(12,18,34,.8);
}
.hamburger::before{top:0}
.hamburger::after{bottom:0}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

/* Hero */
.hero{
  padding:56px 0 26px;
  background:
    radial-gradient(900px 240px at 15% 0%, rgba(92,44,255,.12), transparent 60%),
    radial-gradient(900px 260px at 85% 10%, rgba(0,179,255,.12), transparent 58%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:stretch;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(12,18,34,.78);
  background:rgba(12,18,34,.04);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:14px;
}
.lead{font-size:16px; color:rgba(12,18,34,.84); max-width:60ch}

.quickcards{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.quickcard{
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  padding:14px 14px;
  box-shadow: 0 10px 20px rgba(12,18,34,.06);
}
.quickcard__kicker{font-size:12px; color:var(--muted); margin-bottom:4px}
.quickcard__value{font-weight:800; font-size:14px}

.hero__actions{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  border:1px solid var(--line);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow: 0 14px 28px rgba(12,18,34,.10)}
.btn--primary{
  border:0;
  color:white;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn--ghost{
  background:white;
}
.hero__note{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(12,18,34,.76);
  font-size:13px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 20px rgba(92,44,255,.18);
}

/* Media Card + Gallery */
.media-card{
  height:100%;
  border:1px solid var(--line);
  border-radius:var(--radius2);
  background:white;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.media-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
}
.media-card__title{font-weight:800; font-size:13px}
.media-card__controls{display:flex; gap:8px}
.icon-btn{
  border:1px solid var(--line);
  background:white;
  border-radius:999px;
  width:36px; height:34px;
  display:grid; place-items:center;
  cursor:pointer;
  font-weight:900;
}
.icon-btn:hover{background:var(--soft)}
.gallery{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.gallery__slide{
  position:absolute;
  inset:0;
  margin:0;
  opacity:0;
  transform:scale(1.02);
  transition:opacity .5s ease, transform .6s ease;
}
.gallery__slide.is-active{
  opacity:1;
  transform:scale(1);
}
.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-card__bottom{padding:12px 14px 16px}
.pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  font-size:12px;
  color:rgba(12,18,34,.84);
  background:rgba(12,18,34,.04);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
}

/* Sections */
.section{padding:56px 0}
.section--soft{
  background: linear-gradient(180deg, rgba(12,18,34,.03), rgba(12,18,34,.01));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.section__head{
  max-width:70ch;
  margin-bottom:18px;
}
.info-list{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.info-item{
  display:flex;
  gap:12px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
  box-shadow: 0 12px 26px rgba(12,18,34,.06);
}
.info-item__icon{width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:var(--soft)}
.info-item__title{font-weight:800; font-size:13px}
.info-item__desc{color:var(--muted); font-size:12px; margin-top:4px}

/* Stack images */
.stack{
  position:relative;
  min-height:420px;
}
.stack figure{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
  background:white;
}
.stack img{width:100%; height:100%; object-fit:cover}
.stack__a{position:absolute; inset:0 70px 120px 0}
.stack__b{position:absolute; inset:110px 0 40px 110px}
.stack__c{position:absolute; inset:230px 90px 0 0}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 16px;
  background:white;
  box-shadow: 0 12px 24px rgba(12,18,34,.06);
}
.card__icon{
  width:40px; height:40px; border-radius:16px;
  background: linear-gradient(135deg, rgba(92,44,255,.18), rgba(0,179,255,.18));
  border:1px solid rgba(12,18,34,.10);
  display:grid; place-items:center;
  margin-bottom:10px;
}
.card p{color:var(--muted); font-size:13px}

/* Callout */
.callout{
  margin-top:18px;
  border:1px dashed rgba(92,44,255,.35);
  background: radial-gradient(700px 200px at 10% 0%, rgba(92,44,255,.12), transparent 60%),
              radial-gradient(700px 200px at 90% 0%, rgba(0,179,255,.10), transparent 60%),
              white;
  border-radius:18px;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.callout__badge{
  font-weight:900;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(12,18,34,.74);
  background:rgba(12,18,34,.04);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
}
.callout__text{font-size:14px}

/* Price */
.price{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.price__box{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px 18px;
  background:white;
  box-shadow: var(--shadow);
}
.price__label{font-size:12px; color:var(--muted); margin-bottom:8px}
.price__value{
  font-size:42px;
  font-weight:900;
  letter-spacing:-.03em;
}
.price__value span{font-size:14px; font-weight:800; color:var(--muted)}
.price__meta{margin-top:8px; color:rgba(12,18,34,.86)}
.price__foot{margin-top:14px; display:flex; gap:10px; align-items:center; color:rgba(12,18,34,.76); font-size:13px}

.wide-photo{
  margin:0;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
  background:white;
}
.wide-photo img{height:320px; width:100%; object-fit:cover}
.wide-photo figcaption{padding:10px 12px; font-size:12px; color:var(--muted); border-top:1px solid var(--line)}

/* Docs section */
.doc{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.doc__panel{
  border:1px solid var(--line);
  border-radius:22px;
  background:white;
  padding:18px 18px;
  box-shadow: var(--shadow2);
}
.doc__line{
  font-size:16px;
  padding:12px 12px;
  border-radius:16px;
  background:rgba(12,18,34,.04);
  border:1px solid var(--line);
}
.mini-gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.mini-gallery img{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: 0 12px 24px rgba(12,18,34,.06);
  height:180px;
  width:100%;
  object-fit:cover;
}
.mini-gallery img:nth-child(3){
  grid-column:1 / -1;
  height:220px;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:28px;
  align-items:center;
}
.notice{
  margin-top:14px;
  display:flex;
  gap:12px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 14px;
  background:white;
  box-shadow: 0 12px 26px rgba(12,18,34,.06);
}
.notice__icon{
  width:34px; height:34px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(0,179,255,.14);
  border:1px solid rgba(12,18,34,.10);
}
.notice__text{font-size:13px; color:rgba(12,18,34,.86)}
.contact__actions{margin-top:14px; display:flex; gap:12px; flex-wrap:wrap}
.contact-photo{
  margin:0;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
  background:white;
}
.contact-photo img{height:420px; width:100%; object-fit:cover}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  background:white;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__brand{display:flex; align-items:center; gap:12px}
.footer__title{font-weight:800; font-size:13px}
.footer__sub{font-size:12px; color:var(--muted)}
.footer__links{display:flex; gap:12px; flex-wrap:wrap}
.footer__links a{
  font-size:12px;
  color:rgba(12,18,34,.78);
  padding:8px 10px;
  border-radius:999px;
}
.footer__links a:hover{background:var(--soft)}

/* Responsive */
@media (max-width: 980px){
  .hero__grid, .section__grid, .price, .doc, .contact{
    grid-template-columns: 1fr;
  }
  .stack{min-height:360px}
  .stack__a{inset:0 60px 130px 0}
  .stack__b{inset:120px 0 40px 90px}
  .stack__c{inset:240px 70px 0 0}
  .cards{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 760px){
  .nav__toggle{display:inline-flex}
  .nav{
    position:fixed;
    left:16px; right:16px; top:70px;
    background:white;
    border:1px solid var(--line);
    border-radius:18px;
    padding:10px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    box-shadow: var(--shadow);
  }
  .nav.is-open{display:flex}
  .nav a{padding:12px 12px}
  .gallery{aspect-ratio: 1 / 1}
  .quickcards{grid-template-columns: 1fr}
  .wide-photo img{height:260px}
  .contact-photo img{height:320px}
  .stack{min-height:320px}
}


/* WhatsApp Floating Button */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(0,211,167,1), rgba(0,179,255,1));
  color:#fff;
  font-weight:900;
  font-size:13px;
  box-shadow: 0 18px 40px rgba(12,18,34,.18);
  border:1px solid rgba(255,255,255,.22);
  transition:transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover{transform:translateY(-1px); box-shadow: 0 22px 46px rgba(12,18,34,.22)}
.wa-float__icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  font-size:12px;
  letter-spacing:.06em;
}
.wa-float__text{line-height:1}
@media (max-width: 520px){
  .wa-float__text{display:none;}
  .wa-float{padding:12px;}
}
