/* MAGUI — Agencia de selección de personal doméstico y cuidados. Uruguay. */

:root {
  /* Paleta derivada del logo real de MAGUI (azul celeste) — rebrand 2026-07-21 */
  --c-bg: #FAFBFD;
  --c-surface: #EAF2FB;
  --c-brand: #2266C2;
  --c-brand-hover: #1B57A8;
  --c-brand-dark: #123C77;
  --c-highlight: #E9A93D;
  --c-text: #1F2733;
  --c-text-soft: #566374;
  --c-border: #DCE4EE;
  --c-wa: #25D366;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --motion-fast: 160ms;
  --motion-base: 250ms;
  --motion-reveal: 600ms;

  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 10px;
}

.titulo { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 14px; }
.titulo em { font-style: normal; color: var(--c-brand); }

.lead { color: var(--c-text-soft); font-size: 1.05rem; max-width: 620px; }

section { padding: 84px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-alt { background: var(--c-surface); }
.section-dark { background: var(--c-brand-dark); color: #F2F5F1; }
.section-dark .kicker { color: var(--c-highlight); }
.section-dark .titulo { color: #FBFAF7; }
.section-dark .titulo em { color: var(--c-highlight); }
.section-dark p { color: #C7D3CB; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--c-brand-hover); transform: translateY(-1px); }
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--ghost {
  background: transparent;
  color: var(--c-brand);
  border: 1.5px solid var(--c-border);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--c-brand); background: var(--c-surface); }
}

.section-dark .btn--ghost { color: #F2F5F1; border-color: rgba(242,245,241,.3); }
.section-dark .btn--ghost:hover { border-color: #F2F5F1; background: rgba(255,255,255,.06); }

.link {
  font-weight: 600;
  color: var(--c-brand);
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--c-highlight);
  transition: opacity var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { opacity: .7; }
}
.section-dark .link { color: #F2F5F1; }

.microcopy { color: var(--c-text-soft); font-size: .9rem; margin-top: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.nav.scrolled { border-color: var(--c-border); box-shadow: 0 4px 20px rgba(30,51,44,.05); }

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-brand);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

.nav__center {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: .95rem;
}
.nav__center a { transition: color var(--motion-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__center a:hover { color: var(--c-brand); }
}

.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__work {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-text-soft);
  border-bottom: 1.5px solid var(--c-border);
}
@media (hover: hover) and (pointer: fine) {
  .nav__work:hover { color: var(--c-brand); border-color: var(--c-brand); }
}

.nav__cta.btn { padding: 11px 20px; font-size: .92rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: transform var(--motion-base) var(--ease-out), opacity var(--motion-base) ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--c-bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) ease;
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile__links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.nav-mobile__links a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.nav-mobile__cta.btn { margin-top: 14px; }

@media (max-width: 900px) {
  /* El CTA vive en el overlay del menú — en la barra ahogaba al brand (feedback Juan 2026-07-21) */
  .nav__center, .nav__right { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- Reveal (motion §5.bis) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-reveal) var(--ease-out), transform var(--motion-reveal) var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[style*="--d"] { transition-delay: var(--d); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 200ms ease; }
}

.img-reveal { clip-path: inset(0 0 12% 0); opacity: 0; transition: clip-path 700ms var(--ease-out), opacity 700ms var(--ease-out); }
.img-reveal.in { clip-path: inset(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .img-reveal { clip-path: inset(0); transition: opacity 200ms ease; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 24px 0;
  max-width: var(--wrap);
  margin: 0 auto;
}
.hero__top {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 60px;
}
.hero__badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-brand);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 20px; }
.hero__acciones { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero__foto {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__foto::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,51,44,0) 55%, rgba(30,51,44,.28) 100%);
}

/* Selector — signature element */
.selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--c-border);
}
.selector__opcion {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out), background var(--motion-base) ease;
}
.selector__opcion:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .selector__opcion:hover { border-color: var(--c-brand); transform: translateY(-2px); }
}
.selector__opcion.is-active { border-color: var(--c-highlight); background: #fff; }
.selector__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--c-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.selector__icon svg { width: 24px; height: 24px; }
.selector__opcion span { font-weight: 600; font-size: 1rem; color: var(--c-text); }

@media (max-width: 860px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__foto { order: -1; aspect-ratio: 16/10; }
  .selector { grid-template-columns: 1fr; }
}

/* ---------- Situaciones (asimétrico) ---------- */
.situaciones__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.situaciones__lista { display: flex; flex-direction: column; gap: 26px; }
.situaciones__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 1.08rem;
  color: var(--c-text);
}
.situaciones__cierre {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--c-brand);
}
@media (max-width: 860px) {
  .situaciones__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Servicios — 2 bloques grandes ---------- */
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.servicio-bloque {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .servicio-bloque:hover { transform: translateY(-4px); }
}
.servicio-bloque::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  border: 2px solid var(--c-highlight);
  opacity: 0;
  transition: opacity var(--motion-base) ease;
  pointer-events: none;
}
.servicio-bloque.is-highlight::before { opacity: 1; }
.servicio-bloque__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-surface);
  color: var(--c-brand);
  display: flex; align-items: center; justify-content: center;
}
.servicio-bloque__icon svg { width: 26px; height: 26px; }
.servicio-bloque h3 { font-size: 1.4rem; }
.servicio-bloque p { color: var(--c-text-soft); }
.servicio-bloque .link { align-self: flex-start; margin-top: 6px; }

@media (max-width: 860px) { .servicios__grid { grid-template-columns: 1fr; } }

/* ---------- Cómo funciona — 3 pasos horizontales ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.paso__n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--c-highlight);
  display: block;
  margin-bottom: 14px;
}
.paso b { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.paso p { color: var(--c-text-soft); }
@media (max-width: 780px) { .pasos { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Verificación — dark, 4 checks ---------- */
.checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.check__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(217,164,65,.14);
  color: var(--c-highlight);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.check__icon svg { width: 24px; height: 24px; }
.check b { display: block; font-size: 1.05rem; margin-bottom: 8px; color: #FBFAF7; }
@media (max-width: 900px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Garantía ---------- */
.garantia {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  background: var(--c-surface);
  border-radius: 22px;
  padding: 44px;
}
.garantia__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--c-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.garantia__icon svg { width: 32px; height: 32px; }
@media (max-width: 640px) { .garantia { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Cobertura ---------- */
.cobertura {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-text-soft);
}
.cobertura svg { width: 26px; height: 26px; color: var(--c-brand); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq__lista { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__lista details {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 20px 24px;
  background: #fff;
}
.faq__lista summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__lista summary::-webkit-details-marker { display: none; }
.faq__lista summary::after {
  content: '';
  width: 11px; height: 11px;
  flex-shrink: 0;
  border-right: 1.5px solid var(--c-brand);
  border-bottom: 1.5px solid var(--c-brand);
  transform: rotate(45deg);
  transition: transform var(--motion-base) var(--ease-out);
}
.faq__lista details[open] summary::after { transform: rotate(-135deg); }
.faq__lista p { margin-top: 14px; color: var(--c-text-soft); }

/* ---------- CTA final ---------- */
.final {
  text-align: center;
  background: var(--c-brand);
  color: #fff;
  border-radius: 28px;
  padding: 70px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.final .kicker { color: var(--c-highlight); }
.final h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.final p { color: rgba(255,255,255,.82); margin-bottom: 30px; }
.final .btn { background: #fff; color: var(--c-brand); }
@media (hover: hover) and (pointer: fine) {
  .final .btn:hover { background: var(--c-surface); }
}
.final .link { color: #fff; border-color: var(--c-highlight); display: inline-block; margin-top: 22px; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 0 auto;
  color: var(--c-text-soft);
  font-size: .9rem;
}
.footer a { font-weight: 600; color: var(--c-brand); }
.footer__paginas { display: flex; gap: 18px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform var(--motion-fast) var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-2px); }
}

/* ---------- Subpáginas — bloques compartidos ---------- */
.sub-hero {
  padding: 64px 24px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: left;
}
.sub-hero h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 16px; max-width: 780px; }

.modalidades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.modalidades.cols-4 { grid-template-columns: repeat(4, 1fr); }
.modalidad {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 30px 26px;
}
.modalidad h3 { font-size: 1.15rem; margin-bottom: 10px; }
.modalidad p { color: var(--c-text-soft); font-size: .95rem; }
@media (max-width: 900px) {
  .modalidades, .modalidades.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .modalidades, .modalidades.cols-4 { grid-template-columns: 1fr; }
}

.perfil {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.perfil__foto { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.perfil__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) { .perfil { grid-template-columns: 1fr; } }

.requisitos-ofrece {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.requisitos-ofrece ul { display: flex; flex-direction: column; gap: 16px; }
.requisitos-ofrece li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.requisitos-ofrece li svg { width: 20px; height: 20px; color: var(--c-brand); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 780px) { .requisitos-ofrece { grid-template-columns: 1fr; gap: 30px; } }

.checks-simple {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  background: var(--c-surface);
  border-radius: 20px;
  padding: 36px;
}
.checks-simple .check { display: flex; flex-direction: column; }
.checks-simple .check__icon { background: #fff; }
.checks-simple p { color: var(--c-text-soft); font-size: .92rem; }
.checks-simple b { color: var(--c-text); }
@media (max-width: 900px) { .checks-simple { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .checks-simple { grid-template-columns: 1fr; } }

.contacto-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px 0;
  color: var(--c-text-soft);
}
.contacto-datos strong { color: var(--c-text); }

/* ---------- Formulario de contacto (arma mensaje de WhatsApp) ---------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 36px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-size: .88rem; font-weight: 600; color: var(--c-text); }
.form__optional { font-weight: 400; color: var(--c-text-soft); }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.form__field textarea { min-height: 88px; resize: vertical; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(34, 102, 194, .18);
}
.form__field.has-error input,
.form__field.has-error select { border-color: #B3261E; }
.form__error {
  min-height: 1.1em;
  font-size: .82rem;
  color: #B3261E;
}
.form__submit { margin-top: 24px; width: 100%; justify-content: center; }
.form .microcopy { text-align: center; }
.form__required { color: #B3261E; margin-left: 2px; }
.form__fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px;
  min-width: 0;
}
.form__fieldset:last-of-type { margin-bottom: 0; }
.form__fieldset legend {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-brand);
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 640px) {
  .form { padding: 24px; }
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Franja de verificación compacta (landing) ---------- */
.verif-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin-top: 28px;
}
.verif-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-text);
}
.verif-strip__item svg { width: 18px; height: 18px; color: var(--c-brand); flex-shrink: 0; }
