@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..700&display=swap');

/* ===========================================================
   Salvar Mi Casa — hoja de estilos
   Paleta y tipografía centralizadas en variables para que
   sea muy fácil ajustar el look sin tocar el resto del CSS.
   =========================================================== */

:root {
  --brand: #8a4a4f;          /* burdeos del logo */
  --brand-dark: #6f3a3e;
  --brand-tint: #f6eeee;     /* fondo suave para secciones */
  --ink: #1a1a1a;            /* titulares */
  --body: #45474a;           /* texto */
  --muted: #8a8d92;          /* texto secundario */
  --line: #e6e6e8;           /* bordes / separadores */
  --bg: #ffffff;
  --bg-alt: #faf9f9;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(26, 26, 26, 0.06);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .6rem; }
p { margin: 0 0 1.1rem; font-size: 1.08rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .6rem; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--body); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--brand);
  transition: all .18s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--block { width: 100%; text-align: center; border: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav__logo img { height: 66px; width: auto; display: block; }
.nav__links { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav__links a:hover { color: var(--brand); }
.nav__cta { background: var(--brand); color: #fff !important; padding: 11px 22px; border-radius: 999px; }
.nav__cta:hover { background: var(--brand-dark); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 11vw, 130px) 0 clamp(50px, 9vw, 100px); }
.hero p { font-size: 1.2rem; max-width: 56ch; color: var(--body); }
.hero .btn { margin-top: 1rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: stretch; }
.hero__text p { max-width: 52ch; }
.hero__media { display: flex; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__media img { height: 340px; }
}

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(138,74,79,.12); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--brand); }
.card p { margin: 0; font-size: 1rem; }

/* ---------- Banner / CTA strip ---------- */
.banner { background: var(--brand); color: #fff; text-align: center; }
.banner h2 { color: #fff; max-width: 22ch; margin: 0 auto 1rem; }
.banner p { color: rgba(255,255,255,.92); font-size: 1.15rem; margin-bottom: 1.8rem; }
.banner .btn--ghost { color: #fff; border-color: #fff; }
.banner .btn--ghost:hover { background: #fff; color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 40px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; color: var(--body); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.review {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow);
}
.review__stars { color: var(--brand); letter-spacing: 2px; font-size: .9rem; margin-bottom: 8px; }
.review blockquote { margin: 0; }
.review p { font-style: italic; color: var(--ink); font-size: .94rem; line-height: 1.5; margin: 0 0 10px; }
.review__author { font-style: normal; font-weight: 700; color: var(--brand); font-size: .85rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info p { color: var(--body); }
.contact-info .contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.contact-info .contact-line svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.badge { display: inline-block; background: var(--brand-tint); color: var(--brand); font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }

form .field { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .field { margin-bottom: 0; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138,74,79,.12); }
form textarea { min-height: 88px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 12px; max-width: 480px; margin: 26px auto 0; }
.newsletter input { flex: 1; }
@media (max-width: 520px) { .newsletter form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: #211b1c; color: #cfc7c8; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.site-footer a { color: #cfc7c8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.footer-claim { font-weight: 700; color: #fff; font-size: 1.15rem; max-width: 30ch; }
.social { display: flex; gap: 14px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border: 1px solid #4a4042; border-radius: 50%; display: grid; place-items: center; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #3a3032; margin-top: 44px; padding-top: 22px; text-align: center; font-size: .9rem; color: #9c9092; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: inline-block; }
}
