/* ReparaHogar360 — landing estática. Mobile-first, sin frameworks. */

:root {
  --navy: #12304b;
  --navy-deep: #0b2238;
  --orange: #f0762b;
  --orange-dark: #d96518;
  --whatsapp: #1fa855;
  --whatsapp-dark: #178a45;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #22303e;
  --muted: #5b6b7b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(18, 48, 75, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 28px 0 96px;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 48px; display: block; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-mark {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  line-height: 1;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  max-width: 640px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-whatsapp { background: var(--whatsapp); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-phone {
  font-weight: 800;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 10px;
  margin-left: 2px;
}

/* ---- Secciones ---- */
.section { padding: 56px 0; }

.section-alt { background: #eef2f7; }

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
  color: var(--navy);
}

.section-sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 560px;
}

/* ---- Tarjetas ---- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }

.card-name { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }

.card-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Pasos ---- */
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { font-size: 1.5rem; flex: none; }

/* ---- Tarifas de la visita ---- */
.prices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  max-width: 560px;
}

.price-card { text-align: center; }

.price {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}

@media (min-width: 640px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Contacto ---- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
}

.contact h2 { color: #fff; }

.contact .section-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin: 8px 0 20px;
  letter-spacing: 1px;
}

.contact-phone:hover { color: var(--orange); }

.contact-actions { margin-bottom: 24px; }

.contact-zone { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  padding: 24px 0;
  text-align: center;
}

.site-footer p { margin: 4px 0; }

.version { opacity: 0.8; }

/* ---- Toast de actualización ---- */
.update-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  z-index: 10;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
}

@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .perks-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding-top: 36px; }
}
