/* Brava Home Care — estilos compartidos (es / en) */

:root {
  --navy: #14284b;
  --navy-deep: #0e1d38;
  --gold: #b8955a;
  --gold-soft: #d8c19a;
  --cream: #f1ebe1;
  --cream-light: #f8f5ef;
  --white: #ffffff;
  --text: #1f2a3c;
  --muted: #5b6577;
  --line: #e4dccd;

  --font-brand: "Cinzel", "Times New Roman", serif;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 75, 0.08);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3 { font-size: 1.1rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section { padding: 88px 0; }
.section--cream { background: var(--cream-light); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); margin: 0; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #a6824a; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* Cabecera */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.brand__sub {
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.nav__links a:hover { color: var(--gold); }

.lang { display: flex; gap: 6px; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--white); background: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* Portada */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-light) 100%);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__underline {
  width: 220px;
  height: 14px;
  margin: -6px 0 22px;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__area {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__area svg { color: var(--gold); flex: none; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 600 / 425;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero__badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.hero__badge span { display: block; color: var(--gold-soft); font-weight: 500; }
.hero__badge svg { color: var(--gold); flex: none; }

/* Valores */
.values { background: var(--cream); padding: 40px 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value svg { color: var(--gold); flex: none; }
.value h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px;
}
.value p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

/* Iconos circulares */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }

.not-included {
  margin-top: 40px;
  padding: 22px 26px;
  border-left: 4px solid var(--gold);
  background: var(--cream-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.97rem;
  color: var(--muted);
}
.not-included strong { color: var(--navy); }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
}
.plan--featured { border: 2px solid var(--gold); transform: translateY(-8px); }
.plan__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.plan__freq { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.plan__price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan__tax { font-size: 0.8rem; color: var(--muted); margin: 6px 0 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan li {
  position: relative;
  padding: 7px 0 7px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.plan li:last-child { border-bottom: 0; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.plan li.is-off { color: #a3aab6; }
.plan li.is-off::before {
  border: 0;
  width: 12px;
  height: 2px;
  top: 18px;
  background: #c9ced6;
  transform: none;
}
.plan .btn { width: 100%; }

.extras {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
}
.extras h3 { color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.extras ul { list-style: none; margin: 0; padding: 0; }
.extras li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.extras li:last-child { border-bottom: 0; }
.extras li span:last-child { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.extras p { margin: 0 0 10px; font-size: 0.95rem; color: #d3d9e4; }
.extras p strong { color: var(--white); }

/* Zona */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.area__towns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.area__towns button {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.area__towns button:hover { border-color: var(--gold); }
.area__towns button.is-main { border-color: var(--navy); }
.area__towns button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.area__note { font-size: 0.88rem; color: var(--muted); margin: 18px 0 0; }

.area__map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--cream);
  z-index: 0; /* que los paneles de Leaflet no tapen la cabecera fija */
}
.area__map-fallback { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--muted); }

/* Mapa base en tonos suaves, a juego con la marca */
.area__map .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.18) brightness(1.04); }
.area__map .leaflet-container { font-family: var(--font-body); }

.map-pin {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  box-shadow: 0 2px 6px rgba(20, 40, 75, 0.35);
}
.map-pin--main { width: 22px; height: 22px; background: var(--gold); border-color: var(--navy); }

.area__map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }
.area__map .leaflet-popup-content { margin: 14px 18px; line-height: 1.4; }
.map-popup__title { display: block; font-family: var(--font-head); color: var(--navy); font-size: 0.95rem; }
.map-popup__text { display: block; color: var(--muted); font-size: 0.85rem; margin: 2px 0 8px; }
.area__map a.map-popup__cta { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; color: var(--gold); text-decoration: none; }

.map-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 40, 75, 0.85);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.3s;
}
.map-hint.is-hidden { opacity: 0; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact__list li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact__list .icon-circle { width: 48px; height: 48px; margin: 0; }
.contact__list a { text-decoration: none; font-weight: 700; color: var(--navy); }
.contact__list small { display: block; color: var(--muted); font-size: 0.85rem; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream-light);
  text-transform: none;
  letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: var(--white);
}
.form textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; }

/* Pie */
.footer { background: var(--navy); color: #c9d1de; padding: 56px 0 28px; }
.footer__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--gold-soft);
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.3;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}
.footer .brand__name { color: var(--white); }
.footer a { color: #c9d1de; }
.footer__credit {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
}
.footer__credit a { text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { transform: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lang { padding-top: 16px; }

  .hero { padding: 48px 0 72px; }
  .hero__grid, .area, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__badge { left: 12px; bottom: -20px; }
  .extras { grid-template-columns: 1fr; padding: 28px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .services, .steps, .values__grid, .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .brand img { width: 44px; }
  .brand__name { font-size: 1.2rem; }
  .hero__ctas .btn { width: 100%; }
}

/* Formulario: casilla de privacidad */
.form label.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.form label.form__check input { width: auto; margin: 4px 0 0; accent-color: var(--navy); }
.form label.form__check a { color: var(--navy); }

/* Pie: enlaces legales */
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* Páginas legales */
.nav.nav--legal { display: flex; flex-direction: row; align-items: center; gap: 24px; }
.nav__back {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.nav__back:hover { color: var(--gold); }

.legal { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.legal h2 { font-size: 1.15rem; margin-top: 2.2em; text-transform: none; letter-spacing: 0; }
.legal h3 { font-size: 1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--navy); }
.legal__updated { color: var(--muted); font-size: 0.9rem; }
.legal__note { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.legal__data { list-style: none; padding: 20px 24px !important; background: var(--cream-light); border-radius: var(--radius); }

/* Datos pendientes de rellenar: muy visibles a propósito */
mark.todo { background: #ffe066; color: #5a4500; padding: 0 4px; border-radius: 4px; font-weight: 700; }

@media (max-width: 960px) {
  .nav.nav--legal { position: static; display: flex; padding: 0; border: 0; background: none; }
  .nav--legal .lang { padding-top: 0; }
}
@media (max-width: 560px) {
  .nav__back { display: none; }
}
