/* =========================================================
   JGR Cleaning Services
   Layout: cabecera con foto y velo crema, título a la izquierda y formulario
   a la derecha; luego garantías, servicios, proceso (franja verde) y preguntas.
   Colores tomados del logo: crema y verde bosque.
   ========================================================= */
:root {
  --bg: #f6f1e9;           /* crema del logo */
  --surface: #fffdf9;
  --ink: #1b3128;          /* verde bosque del logo */
  --ink-2: #3c4d45;
  --muted: #6c7770;
  --line: #e3dccf;
  --accent: #1b3128;       /* botones oscuros */
  --accent-ink: #2d4a3d;   /* hover */
  --olive: #6d7045;        /* verde oliva: botones redondeados, estrellas, iconos */
  --olive-ink: #5a5d37;
  --accent-soft: #ece5d8;
  --taupe: #8b785b;        /* detalles (sombra de hojas) */
  --deep: #1b3128;
  --on-deep: #d6ddd8;
  --on-deep-accent: #cdbfa6;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 2px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 15.5px; line-height: 1.7;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 4.4vw, 3.6rem); }
h1 em { font-style: italic; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.eyebrow { font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 18px; }
.eyebrow--light { color: var(--on-deep-accent); }
.stars { color: var(--taupe); letter-spacing: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 28px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent-ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--sm { padding: 12px 20px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 233, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo img { width: 44px; height: auto; }
.logo__text { display: flex; flex-direction: column; font-size: 1.15rem; font-weight: 400; letter-spacing: .42em; line-height: 1; }
.logo__sub { font-size: .55rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 44px; background: var(--bg); }
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: none; transform: scale(1); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .hero__slide, .hero__bg { transition: none; } .hero__slide.is-active .hero__bg { transform: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251, 249, 244, .8) 0%, rgba(251, 249, 244, .6) 34%, rgba(251, 249, 244, .12) 56%, rgba(251, 249, 244, 0) 72%);
}
.hero__inner { display: grid; gap: 44px; }
.hero__main { max-width: 600px; min-width: 0; }
.hero__rule { display: block; width: 96px; height: 1px; background: var(--ink); margin-bottom: 28px; }
.hero h1 { margin-bottom: 18px; }
.hero__stars { display: flex; gap: 8px; margin-bottom: 22px; }
.hero__stars svg { width: 28px; height: 28px; fill: var(--olive); }
.hero .lead { color: var(--ink-2); font-size: 1.05rem; max-width: 48ch; margin-bottom: 30px; }
.btn--pill { background: var(--olive); color: #fff; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: 1rem; font-weight: 500; padding: 17px 30px; gap: 14px; }
.btn--pill:hover { background: var(--olive-ink); }
.btn--pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--pill.btn--sm { padding: 11px 20px; font-size: .88rem; gap: 10px; }
.btn--pill.btn--sm svg { width: 20px; height: 20px; stroke: none; }
.hero__services { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; max-width: 720px; }
.hero__services li + li { border-left: 1px solid rgba(27, 49, 40, .25); }
.hero__services a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 18px; text-align: center; font-size: .8rem; line-height: 1.3; color: var(--ink-2); transition: color .2s; }
.hero__services li:first-child a { padding-left: 0; }
.hero__services a:hover { color: var(--olive-ink); }
.hero__services svg { width: 28px; height: 28px; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Presupuesto ---------- */
.quote { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.quote__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.quote__copy h2 { margin-bottom: 12px; }
.quote__copy p:not(.eyebrow) { color: var(--muted); max-width: 42ch; }
.quote .booking { box-shadow: none; border: 1px solid var(--line); background: var(--bg); }
.quote .booking input, .quote .booking select { background: var(--surface); }

.booking { background: var(--surface); padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 60px -28px rgba(27, 49, 40, .45); }
.booking__title { font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.25; }
.booking__title span { display: block; font-family: var(--body); font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking label { display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); min-width: 0; }
.booking input, .booking select {
  font: 400 .98rem var(--body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%;
  text-transform: none; letter-spacing: 0; transition: border-color .2s, background .2s;
}
.booking input:focus, .booking select:focus { outline: none; border-color: var(--taupe); background: #fff; }
.booking input.is-invalid { border-color: #b4472f; }
.booking__msg { font-size: .88rem; color: var(--accent); min-height: 1.2em; text-align: center; }
.booking__msg.is-error { color: #b4472f; }
.booking__msg:empty { display: none; }
.booking__msg a { font-weight: 700; text-decoration: underline; }

/* ---------- Garantías ---------- */
.assure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.assure__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assure p { padding: 28px 24px; font-size: .88rem; color: var(--muted); }
.assure p + p { border-left: 1px solid var(--line); }
.assure strong { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
picture { display: block; }

/* Zonas */
.zones { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.zones__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.zones h2 { margin-bottom: 12px; }
.zones__text { color: var(--muted); max-width: 46ch; }
.zones__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones__list li { padding: 10px 18px; border: 1px solid var(--line); background: var(--bg); font-size: .9rem; font-weight: 500; color: var(--ink); }
.zones__list li:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section--dark { background: var(--deep); color: var(--on-deep); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.service img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.service:hover img { transform: scale(1.04); }
.service__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; position: relative; background: var(--surface); }
.service h3 { font-size: 1.15rem; font-weight: 500; }
.service p { font-size: .93rem; color: var(--muted); }
.service ul { list-style: none; padding: 16px 0 0; margin: 6px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service li { font-size: .88rem; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--taupe); transform: rotate(45deg) translateY(-2px); }
.services__more { margin-top: 28px; color: var(--muted); }
.services__more strong { color: var(--ink); font-weight: 600; }
.services__more a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* Proceso */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; row-gap: 4px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps span { grid-row: span 2; width: 52px; height: 52px; border: 1px solid var(--on-deep-accent); border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; font-weight: 300; color: var(--on-deep-accent); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: #a9b4af; font-size: .95rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--ink); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 36px 22px 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.footer { background: var(--deep); color: var(--on-deep); padding: 48px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__logo { position: relative; display: inline-block; width: 170px; }
.footer__logo img { display: block; width: 100%; height: auto; }
.footer__logo .footer__flor { position: absolute; left: 40.295%; top: 7.198%; width: 19.277%; animation: flor-gira 4s linear infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .footer__logo .footer__flor { animation: none; } }
.footer__copy { font-size: .78rem; color: #8d9893; margin-top: 8px; }
.footer__contact { font-style: normal; display: grid; gap: 6px; text-align: right; font-size: .92rem; }
.footer__services { font-size: .78rem; color: #aab5af; margin-top: 18px; max-width: 46ch; line-height: 1.6; }
.footer__contact a:hover { color: var(--on-deep-accent); }

/* WhatsApp flotante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .55); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; }


/* Barra de contacto (solo celular) */
.mbar { display: none; }
html { -webkit-tap-highlight-color: transparent; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .quote__inner { grid-template-columns: 1fr; gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service__body { padding: 20px; }
  .assure__grid { grid-template-columns: repeat(2, 1fr); }
  .assure p:nth-child(3) { border-left: 0; }
  .assure p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; }

  .container { padding: 0 18px; }
  .hero { padding: 40px 0; }
  .hero::before { background: linear-gradient(180deg, rgba(246, 241, 233, .86) 0%, rgba(246, 241, 233, .8) 50%, rgba(246, 241, 233, .9) 100%); }
  .hero__inner { gap: 32px; }
  .hero__rule { margin-bottom: 20px; }
  .hero__stars svg { width: 22px; height: 22px; }
  .hero .lead { margin-bottom: 24px; }
  .hero__main .btn--pill { width: 100%; }
  .hero__services { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .hero__services li + li { border-left: 0; }
  .hero__services li:nth-child(3n+2), .hero__services li:nth-child(3n) { border-left: 1px solid rgba(27, 49, 40, .2); }
  .hero__services a, .hero__services li:first-child a { padding: 2px 6px; font-size: .74rem; }
  .quote { padding: 44px 0; }
  .booking { padding: 20px; }
  .booking__grid label:nth-child(n+3) { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .services, .faq { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16 / 9; }
  .assure p { padding: 20px 16px; }
  .assure strong { font-size: 1.15rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contact { text-align: left; }
  .zones { padding: 48px 0; }
  .zones__inner { grid-template-columns: 1fr; gap: 24px; }
  .zones__list li { padding: 8px 14px; font-size: .85rem; }

  /* Optimización para celular */
  h1 { font-size: clamp(2.1rem, 9vw, 2.5rem); }
  h2 { font-size: clamp(1.8rem, 7.6vw, 2.2rem); }
  .hero .lead { font-size: 1rem; }
  .booking { gap: 14px; }
  .booking input, .booking select { font-size: 16px; padding: 12px 13px; }
  .btn { padding: 16px 22px; }
  .assure p { padding: 18px 14px; font-size: .82rem; line-height: 1.5; }
  .assure strong { font-size: .9rem; }
  .faq summary { padding: 18px 32px 18px 0; font-size: .95rem; }
  .wa { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(246, 241, 233, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mbar.is-visible { transform: none; }
  .mbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    font-size: .9rem; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--ink); color: var(--ink); background: var(--surface);
  }
  .mbar__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__btn--wa { background: var(--ink); color: #fff; }
  .mbar__btn--wa svg { width: 21px; height: 21px; }
  .footer { padding-bottom: calc(48px + 72px + env(safe-area-inset-bottom, 0px)); }
}

/* Servicios con icono (hasta tener las fotos) */
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 28px 26px 0; background: var(--accent-soft); color: var(--olive); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service:has(.service__icon) .service__body { padding-top: 20px; }
.service:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service:has(.service__icon) { flex-direction: row; align-items: flex-start; }
  .service__icon { width: 48px; height: 48px; flex: none; margin: 20px 0 0 18px; }
  .service__icon svg { width: 24px; height: 24px; }
  .service:has(.service__icon) .service__body { padding: 18px 18px 20px; gap: 6px; }
}

/* ===== Ajustes finos para celular ===== */
@media (max-width: 760px) {
  .hero { padding: 28px 0 32px; }
  .hero__inner { gap: 26px; }
  .hero__rule { width: 72px; margin-bottom: 18px; }
  .hero h1 { margin-bottom: 14px; }
  .hero__stars { margin-bottom: 16px; gap: 6px; }
  .hero__stars svg { width: 20px; height: 20px; }
  .hero .lead { font-size: .97rem; line-height: 1.6; margin-bottom: 20px; }
  .hero__services { row-gap: 14px; }
  .hero__services svg { width: 24px; height: 24px; }
  .hero__services a, .hero__services li:first-child a { gap: 6px; font-size: .72rem; }

  /* Servicios: tarjetas compactas (foto a la izquierda, texto a la derecha) */
  #servicios .section__head { margin-bottom: 24px; }
  #servicios .services { display: grid; grid-template-columns: 1fr; gap: 12px; }
  #servicios .service { flex-direction: row; align-items: stretch; }
  #servicios .service__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
  #servicios .service:hover img { transform: none; }
  #servicios .service__body { padding: 14px 14px 16px; gap: 6px; justify-content: center; }
  #servicios .service h3 { font-size: 1rem; line-height: 1.3; }
  #servicios .service p { font-size: .84rem; line-height: 1.5; margin-bottom: 0; }
  #servicios .service ul { display: none; }
  .services__more { margin-top: 18px; font-size: .92rem; }
  .services__more a { display: inline-block; padding: 10px 0; margin-left: 0; }
  .section { padding: 56px 0; }
  .zones { padding: 44px 0; }
}
.services__hint { display: none; align-items: center; gap: 8px; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.services__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Tablet (761–1100 px) ===== */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero { padding: 56px 0 40px; }
  .hero::before { background: linear-gradient(90deg, rgba(246, 241, 233, .88) 0%, rgba(246, 241, 233, .76) 45%, rgba(246, 241, 233, .3) 72%, rgba(246, 241, 233, .05) 100%); }
  .hero__main { max-width: 540px; }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 3rem); }
  .services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service__body { padding: 18px 16px 20px; }
  .service h3 { font-size: 1.02rem; }
  .service p, .service li { font-size: .86rem; }
  .faq { column-gap: 32px; }
}

/* Botón principal de WhatsApp */
.btn--wa .wa-ico { width: 22px; height: 22px; stroke: none; }
@media (max-width: 760px) {
  .hero__main .btn--wa { white-space: nowrap; font-size: .95rem; padding: 16px 18px; gap: 10px; }
}

/* Servicios: fotos que se van intercambiando */
.service__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--accent-soft); }
.service__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.service__slide.is-active { opacity: 1; }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .service__slide { transition: none; } }

@media (min-width: 1101px) { .service__body { padding: 22px 20px 24px; } .service h3 { font-size: 1.05rem; } .service p, .service li { font-size: .86rem; } }

.hero h1, .hero .lead, .hero__services span { text-shadow: 0 0 18px rgba(251, 249, 244, .9), 0 0 2px rgba(251, 249, 244, .6); }

/* Barra Llamar / WhatsApp también en tablet (evita que el botón flotante tape el formulario) */
@media (min-width: 761px) and (max-width: 1100px) {
  .wa { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(246, 241, 233, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mbar.is-visible { transform: none; }
  .mbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    font-size: .9rem; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--ink); color: var(--ink); background: var(--surface);
  }
  .mbar__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__btn--wa { background: var(--ink); color: #fff; }
  .mbar__btn--wa svg { width: 21px; height: 21px; }
  .footer { padding-bottom: calc(48px + 72px + env(safe-area-inset-bottom, 0px)); }
  .mbar { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* Logo: la flor del centro gira */
.logo__mark { position: relative; display: block; width: 44px; flex: none; }
.logo .logo__mark img { display: block; width: 100%; height: auto; }
.logo .logo__mark .logo__flor { position: absolute; left: 14.904%; top: 15.217%; width: 69.231%; animation: flor-gira 4s linear infinite; transform-origin: 50% 50%; }
@keyframes flor-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo .logo__mark .logo__flor { animation: none; } }

/* SEO: texto introductorio de servicios */
.section__intro { margin-top: 14px; color: var(--muted); max-width: 62ch; }

/* Logo: animación de entrada al abrir la web */
.logo__letters { display: flex; }
.logo__l { display: inline-block; animation: letra-cae .9s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: calc(.25s + var(--i) * .18s); }
.logo__sub { animation: sub-abre 1.2s cubic-bezier(.2, .7, .2, 1) .95s both; }
.logo__mark { animation: marca-entra 1s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes letra-cae {
  0%   { opacity: 0; transform: translateY(-18px) rotate(-12deg) scale(1.3); filter: blur(4px); }
  60%  { opacity: 1; transform: translateY(3px) rotate(3deg) scale(.96); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes sub-abre {
  0%   { opacity: 0; letter-spacing: 0; filter: blur(3px); }
  100% { opacity: 1; letter-spacing: .3em; filter: blur(0); }
}
@keyframes marca-entra {
  0%   { opacity: 0; transform: scale(.6) rotate(-90deg); }
  100% { opacity: 1; transform: none; }
}
.logo:hover .logo__l { animation: letra-salta .6s ease both; animation-delay: calc(var(--i) * .08s); }
@keyframes letra-salta { 40% { transform: translateY(-5px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo__l, .logo__sub, .logo__mark, .logo:hover .logo__l { animation: none; }
}

/* ===== Sección destacada: fin de obra ===== */
.obra { background: var(--deep); color: var(--on-deep); padding: 88px 0; }
.obra__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.obra__media { display: block; position: relative; }
.obra__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(1.05); }
.obra h2 { color: #fff; margin-bottom: 16px; }
.obra__lead { color: #c9d3ce; max-width: 50ch; margin-bottom: 24px; }
.obra__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.obra__list li { display: flex; gap: 10px; align-items: baseline; font-size: .93rem; color: #e6ece9; }
.obra__list li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--on-deep-accent); transform: rotate(45deg) translateY(-1px); }
.obra__note { font-size: .85rem; color: #9fb0a8; margin-bottom: 26px; }
.obra__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.obra__link { color: #e6ece9; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
.obra__link:hover { color: #fff; }
@media (min-width: 761px) and (max-width: 1100px) {
  .obra { padding: 64px 0; }
  .obra__inner { gap: 32px; }
  .obra__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .obra { padding: 0 0 52px; }
  .obra__inner { grid-template-columns: 1fr; gap: 28px; }
  .obra__media { margin: 0 -18px; }
  .obra__media img { aspect-ratio: 16 / 10; }
  .obra__list { grid-template-columns: 1fr; gap: 9px; }
  .obra__cta .btn { width: 100%; }
}

/* WhatsApp flotante también en móvil y tablet (sustituye a la barra de abajo) */
@media (max-width: 1100px) {
  .mbar { display: none !important; }
  .wa { display: grid; width: 58px; height: 58px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .wa svg { width: 32px; height: 32px; }
  .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
}
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulso 2.4s ease-out infinite; }
@keyframes wa-pulso { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .wa::after { animation: none; } }

/* Portada: la foto del equipo ocupa la parte derecha en pantallas grandes */
@media (min-width: 1101px) {
  .hero__slide--derecha { left: 40%; }
  .hero__slide--derecha .hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 32%); }
}

/* Cabecera fija: sin zoom ni cambio de fotos */
.hero__bg, .hero__slide.is-active .hero__bg { transform: none !important; transition: none !important; }

/* Móvil: la foto de la cabecera se ve entera, arriba, y el texto debajo */
@media (max-width: 760px) {
  .hero { padding: 0 0 36px; }
  .hero::before { display: none; }
  .hero__slides { position: relative; inset: auto; z-index: 0; }
  .hero__slide, .hero__slide.is-active { position: relative; inset: auto; opacity: 1; }
  .hero__slide:not(.is-active) { display: none; }
  .hero .hero__bg { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1320 / 731; object-fit: cover; object-position: center !important; }
  .hero__inner { margin-top: 26px; }
  .hero h1, .hero .lead { text-shadow: none; }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; padding: 30px 0 0; }
  .hero > .container { order: 1; }
  .hero__slides { order: 2; margin-top: 30px; }
  .hero__inner { margin-top: 0; }
}
