/* =========================================================
   MultiReformas CostaSol · Hoja de estilos
   ========================================================= */

:root {
  --primary: #0f3d4c;
  --primary-dark: #0a2a35;
  --primary-light: #e6eff1;
  --accent: #e07a3f;
  --accent-dark: #c4632b;
  --bg: #f7f5f2;
  --white: #ffffff;
  --text: #1d2a30;
  --muted: #5b6b72;
  --border: #e2ddd6;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 42, 53, .10);
  --shadow-lg: 0 20px 50px rgba(10, 42, 53, .22);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .8em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(224, 122, 63, .35); }
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { background: var(--primary-light); }

.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.btn--small { padding: .65em 1.2em; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  margin-right: auto;
}
.header .logo .logo__img {
  height: 52px;
  width: auto;
  max-width: none;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
}
.logo__text { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.logo__text strong { color: var(--accent); font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }

.header__phone { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(100deg, rgba(10, 42, 53, .95) 0%, rgba(10, 42, 53, .86) 42%, rgba(15, 61, 76, .55) 100%),
    url('/img/hero.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(224, 122, 63, .18), transparent 45%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero__lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.hero__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  font-size: .97rem;
}
.hero__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Formulario ---------- */
.form {
  background: var(--white);
  color: var(--text);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form__title { font-size: 1.6rem; margin-bottom: .2em; }
.form__subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 1.4em; }

.form__field { margin-bottom: 14px; }
.form__field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.optional { font-weight: 500; color: var(--muted); }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 84px; }

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b72' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 61, 76, .12);
}

/* Campo trampa antispam: invisible para personas */
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: .88rem;
  color: var(--muted);
}
.form__check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.form__note {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--primary-dark); color: var(--white); }

.section__header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__header p:last-child { color: var(--muted); font-size: 1.05rem; }
.section__header--light p:last-child { color: rgba(255, 255, 255, .75); }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service__num {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(224, 122, 63, .1);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 14px;
}
.service h3 { margin-bottom: .4em; color: var(--primary); }
.service p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Bloque dividido (baños) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.split__content p { color: var(--muted); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.split__highlight {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

/* ---------- Por qué elegirnos ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 4px 14px rgba(10, 42, 53, .05);
}
.feature h3 { color: var(--primary); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.step p { color: rgba(255, 255, 255, .75); margin: 0; }

/* ---------- CTA final ---------- */
.cta {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pie ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 24px;
  font-size: .95rem;
}
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer p { margin: 0 0 .4em; }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand { color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer__legal { display: flex; flex-direction: column; gap: 6px; }

.footer__copy {
  text-align: center;
  font-size: .85rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .5);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* =========================================================
   Responsive
   ========================================================= */

/* Menú hamburguesa a partir de 1100 px */
@media (max-width: 1100px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 400px; }
  .nav a {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .services { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
    background-image:
      linear-gradient(180deg, rgba(10, 42, 53, .92) 0%, rgba(10, 42, 53, .88) 100%),
      url('/img/hero.webp');
    background-position: center;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }

  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }

  body { font-size: 16px; }

  .header__inner { gap: 16px; }
  .header__phone { display: none; }
  .header .logo .logo__img { height: 40px; }
  .logo__text { font-size: .95rem; }

  .hero__list { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1; }

  .form { padding: 24px 20px; }

  .services { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service { padding: 20px 18px; }

  .features { grid-template-columns: 1fr; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__buttons { width: 100%; }
  .cta__buttons .btn { flex: 1; }
}

@media (max-width: 420px) {
  .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}