/* ============================================================
   LM Homes — Administración de propiedades · Torreón
   Vanilla CSS · Premium
   ============================================================ */

/* ============================================================
   FUENTES LOCALES — Plus Jakarta Sans (variable, pesos 400–800)
   Servidas desde /public/assets/fonts/ · sin dependencia de Google Fonts.
   Es una fuente variable: un solo archivo cubre todos los pesos.
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../public/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../public/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --coral: #f85c70;
  --coral-dark: #e8475c;
  --light-red: #ffc6c3;
  --gray: #898989;
  --white: #ffffff;
  --ink: #222222;
  --soft: #fff7f7;
  --gray-soft: #f7f7f7;

  --shadow-sm: 0 4px 16px rgba(34, 34, 34, .06);
  --shadow-md: 0 12px 32px rgba(34, 34, 34, .10);
  --shadow-lg: 0 24px 60px rgba(248, 92, 112, .18);
  --shadow-coral: 0 10px 28px rgba(248, 92, 112, .35);

  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --container: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.08; font-weight: 800; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--soft { background: var(--soft); }

.section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.section__lead { margin-top: 18px; color: var(--gray); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: none; border-radius: var(--radius-pill); padding: 14px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  text-align: center; white-space: nowrap;
}
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #ff7e8e 55%, var(--light-red) 130%);
  box-shadow: var(--shadow-coral);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(248, 92, 112, .45); }

.btn--ghost {
  color: var(--ink); background: rgba(255, 255, 255, .7);
  border: 1.5px solid rgba(34, 34, 34, .12); backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--coral); color: var(--coral); }

.btn--white { background: #fff; color: var(--coral); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo-img { height: 42px; width: auto; transition: opacity .3s; }
.header__logo-img--light { display: none; }

.header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 600; font-size: .98rem; color: var(--ink); position: relative; transition: color .25s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--coral); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--coral); }
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 11px 22px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 110;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 3px;
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(120px, 16vh, 180px) 0 clamp(60px, 8vw, 90px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 480px; height: 480px; background: var(--light-red); top: -120px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: rgba(248, 92, 112, .35); bottom: -140px; left: -120px; }

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

.hero__eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--coral); background: rgba(248, 92, 112, .1); padding: 8px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.hero__subtitle { margin-top: 22px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink); font-weight: 500; max-width: 560px; }
.hero__text { margin-top: 16px; color: var(--gray); max-width: 540px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__badges li {
  font-size: .85rem; font-weight: 600; color: var(--gray);
  background: #fff; border: 1px solid rgba(34, 34, 34, .08); padding: 8px 15px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}

.hero__media { position: relative; }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__media:hover .hero__img img { transform: scale(1.06); }

.hero__card {
  position: absolute; left: -10px; bottom: 28px; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 18px; max-width: 280px;
}
.hero__card strong { display: block; font-size: .98rem; }
.hero__card p { font-size: .82rem; color: var(--gray); line-height: 1.4; }
.hero__card-dot { width: 12px; height: 12px; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 5px rgba(40, 199, 111, .18); flex: none; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-md);
}

/* ---------- Image zoom helper ---------- */
.img-zoom { border-radius: var(--radius-lg); overflow: hidden; }
.img-zoom img { width: 100%; transition: transform 1.1s var(--ease); }
.img-zoom:hover img { transform: scale(1.07); }

/* ---------- Fallback elegante (cuando la imagen aún no existe) ----------
   Si el <img> falla (onerror -> display:none), el contenedor .img-fallback
   muestra un fondo premium con gradiente coral/rosa y formas decorativas,
   para que el sitio nunca se vea roto. Al colocar tus fotos reales en
   /public/assets/ el fallback queda oculto automáticamente. */
.img-fallback {
  position: relative;
  background: linear-gradient(135deg, var(--light-red) 0%, var(--coral) 70%, var(--coral-dark) 100%);
  min-height: 320px;
}
.img-fallback::before,
.img-fallback::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.img-fallback::before {
  width: 240px; height: 240px; top: -60px; right: -50px;
  background: rgba(255, 255, 255, .22); filter: blur(8px);
}
.img-fallback::after {
  width: 180px; height: 180px; bottom: -40px; left: -30px;
  background: rgba(255, 198, 195, .55); filter: blur(6px);
}
.hero__img.img-fallback { min-height: clamp(360px, 50vh, 520px); }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: clamp(40px, 6vw, 70px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: var(--gray-soft); box-shadow: var(--shadow-sm); }
.stat__num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--coral); letter-spacing: -.04em; }
.stat__num--text { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.stat__label { font-size: .92rem; color: var(--gray); font-weight: 600; }

/* ============================================================
   PROBLEMAS
   ============================================================ */
.problems__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chip {
  background: #fff; border: 1px solid rgba(34, 34, 34, .07); border-radius: var(--radius);
  padding: 22px 20px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; padding-left: 48px;
}
.chip::before {
  content: '×'; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(248, 92, 112, .12); color: var(--coral); font-weight: 800; font-size: .9rem;
}
.chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--light-red); }

/* ============================================================
   CARDS / SERVICIOS / TESTIMONIOS
   ============================================================ */
.services__grid, .testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { border-radius: var(--radius-lg); padding: 34px 30px; }
.card__icon { font-size: 2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--soft); margin-bottom: 20px; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 1rem; }
.card--hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card--hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--light-red); }

.testimonials__grid .card { background: rgba(255, 255, 255, .8); }
.stars { color: var(--coral); letter-spacing: 3px; margin-bottom: 14px; }
blockquote { font-size: 1.08rem; font-weight: 500; line-height: 1.6; }
figcaption { margin-top: 18px; color: var(--gray); font-weight: 600; font-size: .92rem; }

/* ============================================================
   DIFERENCIACIÓN / IDEAL
   ============================================================ */
.diff__inner, .ideal__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.diff__media img, .ideal__media img { aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: var(--shadow-lg); }
.ideal__inner { grid-template-columns: 1fr 1fr; }

.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 38px; font-weight: 500; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--light-red)); color: #fff;
  font-size: .8rem; font-weight: 800;
}

/* ============================================================
   PROCESO
   ============================================================ */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-sm); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, var(--coral), var(--light-red)); color: #fff;
  font-weight: 800; font-size: 1.3rem; margin-bottom: 20px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--gray); font-size: .98rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; background: var(--coral); color: #fff; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; overflow: hidden; }
.cta-band__logo { position: absolute; right: -40px; bottom: -50px; width: 320px; opacity: .12; transform: rotate(-8deg); }
.cta-band__inner { position: relative; max-width: 760px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { margin: 18px auto 32px; font-size: 1.15rem; opacity: .94; max-width: 580px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid rgba(34, 34, 34, .07); border-radius: var(--radius); padding: 6px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__item summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 18px 36px 18px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--coral); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 20px; color: var(--gray); }

/* ============================================================
   CONTACTO / FORM
   ============================================================ */
.contacto__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.contacto__list { margin-top: 30px; display: grid; gap: 18px; }
.contacto__list li { display: flex; flex-direction: column; }
.contacto__list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); font-weight: 700; }
.contacto__list a { font-size: 1.15rem; font-weight: 700; color: var(--coral); }

.form { border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 14px 16px; border: 1.5px solid rgba(34, 34, 34, .12); border-radius: 14px;
  background: rgba(255, 255, 255, .8); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: #b8b8b8; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(248, 92, 112, .15);
}
.form input.invalid, .form select.invalid { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(248, 92, 112, .12); }
.form__success {
  margin-top: 4px; background: rgba(40, 199, 111, .12); color: #1d8f50; font-weight: 600;
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(40, 199, 111, .25); text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding-top: clamp(50px, 7vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { height: 40px; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, .65); max-width: 320px; font-size: .98rem; }
.footer__nav, .footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__nav a, .footer__contact a { color: rgba(255, 255, 255, .75); font-weight: 500; transition: color .25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--coral); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 24px 0; text-align: center; }
.footer__bottom p { color: rgba(255, 255, 255, .5); font-size: .88rem; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease); animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 480px; }
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid, .problems__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .diff__inner, .ideal__inner, .contacto__inner { grid-template-columns: 1fr; }
  .diff__media, .ideal__media { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px);
    padding: 40px; box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    transform: translateX(105%); transition: transform .4s var(--ease); z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-size: 1.2rem; }
  .nav__cta { margin-top: 6px; }
  .hamburger { display: flex; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .services__grid, .testimonials__grid, .steps__grid, .problems__grid, .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
