/* ===== Colores y medidas (cámbialos aquí) ===== */
:root {
  /* Colores del logo Servihandyman */
  --navy: #1f3f7d;
  --navy-2: #325ca8;
  --orange: #f39a1e;
  --orange-dark: #d27d0b;
  --green-wa: #1fa855;
  --bg: #fafaf8;
  --bg-alt: #f1efea;
  --card: #ffffff;
  --text: #1d232b;
  --muted: #5d6672;
  --line: #e2e2dd;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 30, 45, .08);
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  font-weight: 600; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: .5rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  padding: .75rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, transform .1s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .5rem 1rem; font-size: .95rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e9edf3; }
.btn--whatsapp { background: var(--green-wa); color: #fff; }
.btn--whatsapp:hover { background: #178a45; }

/* ===== Encabezado ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__img { width: 56px; height: 56px; object-fit: contain; }
.logo__text { font: 700 1.25rem var(--font-title); color: var(--navy); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--orange-dark); }

.logo { margin-right: auto; }

/* Selector de idioma */
.lang {
  display: inline-flex; margin-left: 1.4rem; padding: 3px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff;
}
.lang__btn {
  font: 600 .85rem var(--font-body); color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: .35rem .7rem; cursor: pointer; transition: .15s;
}
.lang__btn:hover { color: var(--navy); }
.lang__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang__btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 480px) {
  .logo { gap: .4rem; min-width: 0; }
  .logo__img { width: 42px; height: 42px; }
  .logo__text { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang__btn { padding: .3rem .55rem; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; margin-left: .4rem; }
  .lang { margin-left: .5rem; flex-shrink: 0; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; }
}

/* ===== Portada ===== */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 500; }
.check { color: var(--green-wa); font-weight: 700; }
.hero__card { background: var(--navy); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tile {
  aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem;
  color: #fff; font: 600 1rem var(--font-title);
}
.tile svg { width: 46%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile--a { background: var(--orange); }
.tile--b { background: var(--navy-2); }
.tile--c { background: #4a76c4; }
.tile--d { background: #fff; color: var(--navy); }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 420px; }
}

/* ===== Secciones ===== */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }

/* ===== Servicios ===== */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem var(--font-body); color: var(--navy);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: .6rem 1.1rem; cursor: pointer; transition: .2s;
}
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { border-color: var(--orange); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.service p { color: var(--muted); flex: 1; }
.service__meta { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.service__meta strong { color: var(--text); }
.service .btn { align-self: flex-start; }
.note { text-align: center; margin-top: 2rem; color: var(--muted); }

/* ===== Pasos ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--card); border-radius: var(--radius); padding: 1.8rem; text-align: center; box-shadow: var(--shadow); }
.step__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 700 1.3rem var(--font-title); margin-bottom: 1rem;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ===== Reservas ===== */
.booking { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.booking__intro { position: sticky; top: 100px; }
.booking__info { list-style: none; padding: 1.2rem; margin: 1.5rem 0 0; background: var(--bg-alt); border-radius: var(--radius); }
.booking__info li { padding: .3rem 0; }
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; gap: 2rem; }
  .booking__intro { position: static; }
}

.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--shadow); }
.form__step { border: 0; padding: 0 0 1.5rem; margin: 0 0 1.5rem; border-bottom: 1px dashed var(--line); }
.form__step:last-of-type { border-bottom: 0; margin-bottom: .5rem; }
.form__step legend { font: 600 1.15rem var(--font-title); color: var(--navy); display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: 0; }
.badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field em { font-style: normal; font-weight: 400; }
input, select, textarea {
  width: 100%; font: 1rem var(--font-body); color: var(--text);
  padding: .8rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
.is-invalid { border-color: #d64545 !important; }

.chips, .slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip, .slot { position: relative; }
.chip input, .slot input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span, .slot span {
  display: inline-block; padding: .55rem 1rem; border: 2px solid var(--line); border-radius: 999px;
  cursor: pointer; font-weight: 500; font-size: .95rem; transition: .15s; user-select: none;
}
.chip span:hover, .slot span:hover { border-color: var(--orange); }
.chip input:checked + span, .slot input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.slot input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.form__error { color: #c03a3a; font-weight: 600; min-height: 1.4em; margin: 0 0 .8rem; }

/* ===== Características ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.feature { background: var(--card); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--orange); }
.feature p { color: var(--muted); margin: 0; }

/* ===== Preguntas ===== */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--muted); }

/* ===== Contacto y pie ===== */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.contact p { color: #c9d2de; margin: 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer { background: #162d5a; color: #b3c1da; padding: 1.5rem 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer p { margin: 0; }

/* ===== Botón flotante WhatsApp ===== */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green-wa);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Ventana de confirmación ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 22, 33, .55); }
.modal__box {
  position: relative; background: #fff; border-radius: 20px; padding: 1.8rem;
  width: min(480px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.summary { margin: 1rem 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.summary dt { font-weight: 600; color: var(--muted); }
.summary dd { margin: 0; }
.modal__actions { display: grid; gap: .6rem; margin-top: 1rem; }
