/* =========================================================
   Lomas de Pradomar — Hoja de estilos principal
   Paleta basada en logo: verde (teal) + naranja
   ========================================================= */

:root {
  --green-900: #0f4a3f;
  --green-800: #1a7060;
  --green-700: #2a9d8f;
  --green-300: #62c2b7;
  --green-100: #e6f5f2;

  --orange-700: #d65a3a;
  --orange-600: #e76f51;
  --orange-500: #f4a261;
  --orange-100: #fde7c2;

  --ink-900: #1d2b30;
  --ink-700: #264653;
  --ink-500: #4a5d68;
  --ink-300: #8aa0aa;

  --bg: #ffffff;
  --bg-alt: #f6faf9;
  --bg-soft: #eef6f4;
  --line: #dde8e6;

  --shadow-sm: 0 1px 2px rgba(15, 74, 63, .06), 0 1px 3px rgba(15, 74, 63, .08);
  --shadow-md: 0 4px 12px rgba(15, 74, 63, .08), 0 2px 4px rgba(15, 74, 63, .06);
  --shadow-lg: 0 18px 40px rgba(15, 74, 63, .15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;
  --gap: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-600); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* =========================================================
   Top bar
   ========================================================= */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.top-bar__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-900); font-weight: 700;
}
.top-bar__brand:hover { color: var(--ink-900); }
.top-bar__logo { width: 44px; height: auto; flex: 0 0 auto; }
.top-bar__name { display: flex; flex-direction: column; line-height: 1.1; }
.top-bar__name strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.top-bar__name small { font-size: .75rem; color: var(--green-800); letter-spacing: .12em; text-transform: uppercase; }

.primary-nav {
  display: flex; align-items: center; gap: 28px;
}
.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px;
}
.primary-nav a {
  color: var(--ink-700); font-weight: 500; font-size: .95rem;
  position: relative;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--orange-600); transition: width .25s ease;
}
.primary-nav a:hover { color: var(--green-800); }
.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink-900); border-radius: 3px; margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: 70px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .primary-nav .btn { margin-top: 18px; align-self: flex-start; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px; font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary { background: var(--orange-600); color: #fff; }
.btn--primary:hover { background: var(--orange-700); color: #fff; }

.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; color: #fff; }

.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--outline:hover { background: var(--ink-900); color: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 130px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 70%);
}
.hero__bg {
  position: absolute; inset: 0;
  /* Fondo: foto del conjunto + degradado de respaldo si la foto aún no existe */
  background-image:
    url('../assets/images/foto-jardines.jpg'),
    url('../assets/images/hero-illustration.svg'),
    linear-gradient(180deg, #fde7c2 0%, #a8dadc 55%, #62c2b7 100%);
  background-size: cover, cover, cover;
  background-position: center 40%, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* Velo blanco-verde para asegurar legibilidad sobre cualquier foto */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .92) 100%);
  pointer-events: none;
}
.hero--photo .hero__overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .25) 45%, rgba(255, 255, 255, .92) 100%),
    linear-gradient(120deg, rgba(26, 112, 96, .12), rgba(231, 111, 81, .05));
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 820px;
}
.hero__logo {
  width: min(420px, 80%); margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(15, 74, 63, .35));
  background: rgba(255, 255, 255, .85);
  padding: 18px 26px; border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}
.hero__tagline {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--green-900); margin: 0 0 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .5);
}
.hero__description {
  color: var(--ink-700); font-size: 1.05rem; max-width: 640px; margin-bottom: 28px;
  background: rgba(255, 255, 255, .78); padding: 14px 18px; border-radius: var(--radius-md);
  backdrop-filter: blur(2px);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* =========================================================
   Quick access
   ========================================================= */
.quick-access {
  margin-top: -50px; position: relative; z-index: 2; padding-bottom: 30px;
}
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  color: var(--ink-700);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.quick-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--green-300); color: var(--ink-700);
}
.quick-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; margin-bottom: 8px;
}
.quick-card h3 { margin: 0; font-size: 1.05rem; }
.quick-card p { margin: 0; color: var(--ink-500); font-size: .9rem; }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-access { margin-top: 0; padding-top: 30px; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.section__head .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--orange-100); color: var(--orange-700);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section__lead { color: var(--ink-500); font-size: 1.05rem; }

/* Conjunto */
.conjunto-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start;
  margin-bottom: 50px;
}
.conjunto-text p { color: var(--ink-500); }
.amenities {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.amenities li {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-size: .9rem; font-weight: 500;
  color: var(--ink-700);
}
.amenity-ico { font-size: 1.2rem; }

.conjunto-card {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff; padding: 30px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: sticky; top: 90px;
}
.conjunto-card h3 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 18px; }
.conjunto-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.conjunto-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.conjunto-card dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; }

@media (max-width: 900px) {
  .conjunto-grid { grid-template-columns: 1fr; gap: 30px; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .conjunto-card { position: static; }
}

/* Galería */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery__item {
  position: relative; margin: 0;
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(15, 74, 63, .85) 0%, rgba(15, 74, 63, 0) 100%);
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Documentos
   ========================================================= */
.docs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.doc-cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.doc-cat__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.doc-cat__head h3 { margin: 0; }
.doc-cat__count { font-size: .8rem; color: var(--green-800); font-weight: 600; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--ink-700);
  border: 1px solid transparent; transition: all .2s ease;
}
.doc-list a:hover {
  background: #fff; border-color: var(--green-300);
  transform: translateX(3px);
}
.doc-list--pending { opacity: .55; pointer-events: none; }
.doc-list__icon { font-size: 1.4rem; flex: 0 0 auto; }
.doc-list__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.doc-list__text strong { font-weight: 600; }
.doc-list__text small { font-size: .8rem; color: var(--ink-500); }
.doc-list__cta {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange-600); padding: 6px 12px; border-radius: 999px; background: var(--orange-100);
}

@media (max-width: 700px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Pagos
   ========================================================= */
.payments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.pay-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.pay-card--featured {
  border-color: var(--orange-500); box-shadow: var(--shadow-md);
  position: relative;
}
.pay-card--featured::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(244, 162, 97, .07), rgba(231, 111, 81, .03));
  pointer-events: none;
}
.pay-card > * { position: relative; }
.pay-card__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.pay-card__head h3 { margin: 0; font-size: 1.2rem; }
.pay-card__badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--orange-100); color: var(--orange-700);
}
.pay-card__badge--alt { background: var(--green-100); color: var(--green-800); }
.pay-card__badge--soft { background: var(--bg-soft); color: var(--ink-500); }
.pay-card__steps {
  list-style: none; padding: 0; margin: 16px 0 0; counter-reset: step;
}
.pay-card__steps li {
  counter-increment: step;
  position: relative; padding: 6px 0 6px 32px; font-size: .9rem; color: var(--ink-500);
}
.pay-card__steps li::before {
  content: counter(step); position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-weight: 700; font-size: .75rem;
}
.pay-card__hint { margin-top: 16px; font-size: .9rem; color: var(--ink-500); }
.pay-card__hint strong { color: var(--ink-900); }

.qr-wrap {
  display: grid; place-items: center;
  background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 16px; margin: 12px 0;
}
.qr-img { max-width: 240px; width: 100%; height: auto; border-radius: 12px; }

.bank-card {
  margin: 14px 0; padding: 16px; border: 1px dashed var(--green-300); border-radius: var(--radius-sm);
  background: var(--green-100);
}
.bank-row {
  display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem;
  border-bottom: 1px dashed rgba(26, 112, 96, .25);
}
.bank-row:last-child { border-bottom: 0; }
.bank-row span { color: var(--ink-500); }
.bank-row strong { color: var(--ink-900); }

.pay-note {
  margin-top: 30px; padding: 18px 22px; border-radius: var(--radius-md);
  background: var(--green-100); color: var(--ink-700);
  border-left: 4px solid var(--green-700);
}
.pay-note strong { display: block; margin-bottom: 4px; color: var(--ink-900); }

@media (max-width: 1000px) {
  .payments { grid-template-columns: 1fr; }
}

/* =========================================================
   Formulario PQRS
   ========================================================= */
.pqrs-form {
  max-width: 760px; margin: 0 auto;
  background: #fff; padding: 36px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-field label { font-weight: 600; color: var(--ink-700); font-size: .9rem; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink-900);
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0; border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, .15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field--check {
  flex-direction: row; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-500);
}
.form-field--check input { margin-top: 4px; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 6px;
}
.form-help { color: var(--ink-300); font-size: .85rem; margin: 0; }
.form-status {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; display: none;
}
.form-status.is-ok { display: block; background: var(--green-100); color: var(--green-900); border-left: 4px solid var(--green-700); }
.form-status.is-error { display: block; background: #ffe7e2; color: #952b18; border-left: 4px solid #d65a3a; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .pqrs-form { padding: 24px; }
}

/* =========================================================
   Contacto
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  background: #fff; padding: 18px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-item h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--green-800); font-family: var(--font-sans); font-weight: 700; }
.contact-item p { margin: 4px 0; color: var(--ink-500); }
.contact-item p strong { color: var(--ink-900); }
.contact-map {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  min-height: 480px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 360px; }
  .contact-map iframe { min-height: 360px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-900); color: #cfd9de; padding: 50px 0 30px;
}
.site-footer__inner { display: grid; gap: 22px; }
.site-footer__brand {
  display: flex; align-items: center; gap: 16px;
}
.site-footer__brand img { width: 60px; }
.site-footer__brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.site-footer__brand small { color: #a2b3bb; }
.site-footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
}
.site-footer__links a { color: #cfd9de; font-size: .9rem; }
.site-footer__links a:hover { color: var(--orange-500); }
.site-footer__legal {
  margin: 0; font-size: .8rem; color: #8aa0aa;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px;
}

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.float-wa {
  position: fixed; right: 20px; bottom: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
  z-index: 90; animation: pulse 2.6s ease-out infinite;
}
.float-wa:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   Páginas internas (privacidad)
   ========================================================= */
.legal-page {
  padding: 60px 0;
}
.legal-page article {
  max-width: 820px; margin: 0 auto;
  background: #fff; padding: 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.legal-page h1 { font-family: var(--font-display); font-size: 2.2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 32px; }
.legal-page p, .legal-page li { color: var(--ink-500); }
.legal-page ul { padding-left: 22px; }
.legal-page a.back { display: inline-block; margin-bottom: 22px; font-weight: 600; }

@media (max-width: 700px) {
  .legal-page article { padding: 26px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
