/* ========== TOKENS ========== */
:root {
  --navy-900: #111a3a;
  --navy-700: #14286b;
  --blue: #0a3cff;
  --yellow: #ffc20e;
  --grey-100: #f2f2f2;
  --white: #fff;
  --text: #111a3a;
  --text-muted: #5c647a;
  --green-wa: #25d366;

  --font: 'Poppins', system-ui, sans-serif;
  --fs-xs: .6875rem;  --fs-sm: .8125rem;  --fs-md: .9375rem;
  --fs-xl: 1.5rem;
  --fs-h2: clamp(2rem, 4.5vw, 3rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);

  --radius-sm: 999px; --radius-md: 14px; --radius-lg: 22px; --radius-section: 32px;
  --container: 1040px;
  --space-section: clamp(3.5rem, 7vw, 5.5rem);
  --shadow: 0 5px 15px rgba(17, 26, 58, .42);
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; color: var(--text); background: var(--navy-900); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

/* Fondo de imagen con placeholder si el archivo aún no existe */
.img-bg { background: var(--img) center / cover no-repeat, linear-gradient(135deg, #3b4560, #1b2340); }

/* ========== TIPOGRAFÍA ========== */
.title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.title--center { text-align: center; }
.title--light { color: var(--white); }
.title--light-weight { font-weight: 300; }
.title--light-weight strong { font-weight: 700; }
.lead { font-size: var(--fs-sm); line-height: 1.6; max-width: 46ch; }
.lead--center { text-align: center; margin: .75rem auto 0; color: var(--white); max-width: none; }
.bar { display: block; width: 46px; height: 10px; background: var(--yellow); margin-top: 1rem; }

/* ========== BOTONES (único sistema) ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.4rem; font: 600 var(--fs-sm)/1 var(--font); border: 2px solid var(--yellow); border-radius: var(--radius-sm); cursor: pointer; transition: background .2s, color .2s; }
.btn--primary { background: var(--yellow); color: var(--navy-900); }
.btn--primary:hover { background: #ffd24a; border-color: #ffd24a; }
.btn--outline { background: transparent; color: var(--yellow); }
.btn--outline:hover { background: var(--yellow); color: var(--navy-900); }
.btn--sm { padding: .45rem 1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; border-radius: var(--radius-md); text-transform: uppercase; letter-spacing: .02em; padding: 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ========== INSIGNIAS Y ETIQUETAS ========== */
.badge { display: inline-block; padding: .25rem .7rem; font-size: var(--fs-xs); font-weight: 500; border-radius: var(--radius-sm); }
.badge--light { background: rgba(255,255,255,.9); color: var(--text); }
.badge--blue { background: var(--blue); color: var(--white); text-transform: uppercase; font-size: .5625rem; letter-spacing: .05em; align-self: flex-start; }
.tags { display: flex; gap: .4rem; margin: .5rem 0 .8rem; }
.tag { background: rgba(255,255,255,.85); color: var(--text); font-size: .5625rem; padding: .15rem .7rem; border-radius: var(--radius-sm); }

/* ========== PRECIO ========== */
.price { font-size: var(--fs-xl); font-weight: 600; color: var(--white); line-height: 1; }
.price::first-letter { color: var(--yellow); }
.price small { font-size: var(--fs-sm); font-weight: 600; }

/* ========== TOPBAR / LOGO ========== */
.topbar { background: var(--navy-900); display: flex; justify-content: center; padding: .6rem 0; }
.logo { display: inline-flex; align-items: center; gap: .35rem; color: var(--white); font-weight: 600; }
.logo__icon { display: grid; place-items: center; width: 1.4em; height: 1.4em; border: 1.5px solid currentColor; border-radius: 5px; font-size: .7rem; }
.logo__text { font-size: .7rem; }
.logo--footer .logo__text { font-size: 1.1rem; }
.logo--footer .logo__icon { font-size: 1rem; }

/* ========== HERO ========== */
.hero { position: relative; min-height: 580px; padding: 3.5rem 0rem; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,26,58,.65), rgba(17,26,58,.1) 70%); }
.hero > * { position: relative; }
.hero__title { font-size: var(--fs-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.hero__text { max-width: 36ch; margin: 1.5rem 0; font-size: var(--fs-sm); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__strip { display: flex; flex-wrap: wrap; justify-content:center; gap: .5rem 2.5rem; margin-top: 3rem; font-size: var(--fs-xs); letter-spacing: .12em; }

/* WhatsApp flotante */
.whatsapp { position: fixed; z-index: 20; right: clamp(1rem, 12vw, 11rem); bottom: 5%; display: flex; align-items: center; }
.whatsapp__label {width: 0px;transition: .3s; white-space: nowrap; overflow: hidden; background: var(--green-wa); color: var(--white); font-size: .5625rem; font-weight: 700; padding: 0xp; border-radius: var(--radius-sm); margin-right: -1.4rem; }
.whatsapp__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; background: var(--green-wa); color: var(--white); border: 10px solid var(--green-wa); border-radius: 50%; font-weight: 700; box-shadow: var(--shadow); }
.whatsapp:hover .whatsapp__label{width: 142px; padding: .35rem 1.8rem .35rem .75rem;}
/* ========== SECCIONES ========== */
.section { padding: var(--space-section) 0; }
.section--white { background: var(--white); }
.section--grey { background: var(--grey-100); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--round-top { border-radius: var(--radius-section) var(--radius-section) 0 0; margin-top: calc(var(--radius-section) * -1); position: relative; }
.section--round { border-radius: var(--radius-section); position: relative; margin-top: calc(var(--radius-section) * -1); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.split--line { grid-template-columns: 1fr auto; align-items: center; }
.split--line .bar { margin: 0; }
.split--top { gap: 3rem; }

/* ========== SLIDER (Slick) ========== */
.section--slider { padding: 2.5rem 0 3.5rem; }
.container--slider { position: relative; }
.property-slider { max-width: 860px; margin: 0 auto; }
.slide { position: relative; display: flex; height: 430px; border-radius: var(--radius-md); overflow: hidden; color: var(--white); }
.property-slider .slick-list { padding: 1rem 0 2rem; }
.property-slider .slick-slide > div { padding: 0 .5rem; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 55%); }
.slide > * { position: relative; }
.slide .badge { position: absolute; top: 1rem; left: 1rem; }
.slide__star { position: absolute; top: 1rem; right: 1rem; color: var(--yellow); }
.slide__info { position: absolute; left: 2rem; bottom: 1.5rem; }
.slide__title { font-size: var(--fs-xl); font-weight: 500; line-height: 1.1; }
.slide__place { font-size: var(--fs-sm); }
.slide .price { position: absolute; right: 2rem; bottom: 2.5rem; }
.slide .price-discount{position: absolute;right: 2rem; bottom:1rem; font-size: .9rem;text-decoration: line-through;}
.slick-arrow-custom { position: absolute; top: 45%; transform: translateY(-50%); background: none; border: 0; color: var(--text-muted); font-size: 3.5rem; line-height: 1; cursor: pointer; z-index: 5; }
.slick-arrow-custom--prev { left: 0; } .slick-arrow-custom--next { right: 0; }
.property-slider .slick-dots { bottom: -2rem; }
.property-slider .slick-dots li { width: 10px; height: 10px; margin: 0 4px; }
.property-slider .slick-dots li button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #cfd2da; }
.property-slider .slick-dots li button::before { display: none; }
.property-slider .slick-dots li.slick-active button { background: var(--yellow); }

/* ========== PAQUETES ========== */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.package { background: var(--navy-700); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; }
.package__loc { font-size: var(--fs-xl); font-weight: 300; margin-top: 1.25rem; line-height: 1.1; }
.package__loc small { display: block; font-size: var(--fs-sm); }
.package__qty { font-size: 2rem; font-weight: 600; line-height: 1.15; margin: 1.5rem 0; }
.package__qty span { display: block; font-size: 1.5rem; }
.package__sub { font-size: var(--fs-xs); font-weight: 600; margin: 1.5rem 0 .5rem; }
.checks { display: grid; gap: .3rem; margin-bottom: 1.5rem; font-size: var(--fs-xs); }
.checks li::before { content: "✔"; color: #3b82f6; margin-right: .5rem; font-size: .6rem; }

/* ========== TARJETAS CON IMAGEN ========== */
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.1) 80%); }
.card > * { position: relative; }
.card__arrow { position: absolute; right: 1.1rem; bottom: 1rem; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.75rem; }
.card--offer { min-height: 260px; padding: 1.5rem 3.25rem 1.5rem 1.9rem; }
.card--offer h3 { font-size: var(--fs-xl); font-weight: 500; }
.card--offer p { font-size: var(--fs-xs); line-height: 1.5; margin-top: .4rem; }
.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.5rem; }
.card--city { min-height: 230px; padding: 1rem; }
.card--city h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.1; }
.card--city small { display: block; font-size: var(--fs-xs); font-weight: 500; }

/* ========== PROPIEDADES REALES ========== */
.feature-img { position: relative; height: 330px; margin-top: 1.5rem; border-radius: var(--radius-md); }
.feature-img__thumb { position: absolute; top: -2.5rem; right: -1rem; display: grid; place-items: center; width: 6rem; height: 6rem; font-size: 2.5rem;}
.benefits { margin-top: 1rem; display: flex;flex-direction: column;justify-content: space-between; height: 100%;}
.benefits li { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1.5px solid #c9d0e4; font-size: var(--fs-sm); color: var(--text-muted); }
.benefits li:first-child { border-top: 1.5px solid #c9d0e4; }
.benefits li::before { content: "✔"; display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; background: var(--navy-700); color: var(--white); border-radius: 50%; }

/* ========== FOOTER ========== */
.footer { background: var(--navy-900); color: var(--white); padding: 2.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__text { font-size: var(--fs-xs); margin-top: .75rem; }
.footer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; align-content: start; }
.footer__contact h4 { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 600; }
.footer__contact p { font-size: var(--fs-xs); max-width: 24ch; }
.footer__contact li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); margin-bottom: .6rem; }
.ico { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .5625rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .packages, .cities { grid-template-columns: 1fr 1fr; }
  .whatsapp { bottom: 10%; }
}
@media (max-width: 640px) {
  .split, .offers, .packages, .footer__grid, .footer__contact { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero__strip { justify-content: flex-start; }
  .slide { height: 340px; }
  .slide .price { font-size: 1.1rem; right: 1rem; }
  .slide__info { left: 1rem; }
  .feature-img__thumb { right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
