/* TIKUNPRO – landing estática, mobile-first.
   Paleta: verde oscuro, arena y blanco cálido. */
:root {
  --green: #1f3d30;
  --green-800: #172f25;
  --green-600: #2d5544;
  --sand: #e6d8bf;
  --sand-200: #efe5d3;
  --sand-500: #c9b38c;
  --warm: #faf7f1;
  --white: #ffffff;
  --ink: #1b2620;
  --muted: #55625b;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(23, 47, 37, .08), 0 8px 24px rgba(23, 47, 37, .08);
  --shadow-up: 0 6px 12px rgba(23, 47, 37, .12), 0 18px 40px rgba(23, 47, 37, .16);
  --lift: 200ms cubic-bezier(.2, .7, .3, 1);
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* Trazo de brocha (estilo del anuncio) en color arena */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath fill='%23e6d8bf' d='M6 14c40-9 110-6 170-8s150-3 214 4c6 1 9 8 5 12 4 6 2 12-3 15 5 5 2 14-6 15-70 6-160 2-230 4-55 1-100 5-148-1-8-1-10-9-4-13-6-4-6-11 0-14-5-4-5-12 2-14Z'/%3E%3C/svg%3E");
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--warm);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .45em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--green); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #d79b2b; outline-offset: 3px; border-radius: 8px; }

/* Aviso de vista previa */
.preview-note { background: #fff1cf; color: #5a4300; font-size: .85rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid #ecd59a; }

/* Cabecera */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(31, 61, 48, .08); }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green); margin-inline-end: auto; }
.brand__name { font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; direction: ltr; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--green); }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--green); border-radius: 999px; background: var(--white); color: var(--green);
  font: 600 .95rem/1 var(--font); cursor: pointer;
}
.lang-toggle:hover { background: var(--sand-200); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: 999px; border: 0;
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--sand { background: var(--sand); color: var(--green-800); }
.btn--block { width: 100%; }
.wa-icon { flex: none; }
.btn.is-disabled { background: #c9ccc6; color: #4a524d; box-shadow: none; cursor: not-allowed; }

/* Fotos */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand-200); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-illustrative {
  position: absolute; inset-block-end: 10px; inset-inline-start: 10px;
  background: rgba(23, 47, 37, .72); color: var(--white); font-size: .75rem; line-height: 1;
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
}

/* 1. Portada: en móvil foto arriba y texto debajo; deja asomar la sección siguiente */
.hero { display: flex; flex-direction: column; }
.hero__media { padding: 12px 12px 0; }
.photo--hero { height: clamp(190px, 30svh, 420px); border-radius: 22px; }
.photo--hero img { object-position: 62% 50%; }
.hero__content { padding: 18px 20px 26px; }
.hero__area {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  background: var(--sand-200); color: var(--green); font-weight: 600; font-size: .92rem;
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(1.9rem, 7.6vw, 3.6rem); color: var(--green); font-weight: 900; }
.tagline { margin: 0 0 10px; }
.tagline span {
  display: inline-block; background: var(--brush) center / 100% 100% no-repeat;
  color: var(--green-800); font-weight: 900; font-size: clamp(.95rem, 3.8vw, 1.15rem);
  padding: .35em .9em .4em; transform: rotate(-1.5deg);
}
[dir="ltr"] .tagline span { text-transform: uppercase; letter-spacing: .02em; }
.hero__sub { font-size: clamp(1.05rem, 4.2vw, 1.3rem); color: var(--muted); margin-bottom: 20px; }
.hero .btn { width: 100%; }
.hero__how { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

/* Secciones */
.section { padding: 64px 0; }
#work { padding-top: 36px; }
.section--warm { background: var(--sand-200); }
.section--green { background: var(--green); color: var(--white); }
.section__head { margin-bottom: 28px; max-width: 640px; }
.section h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); color: var(--green); }
.section--green h2 { color: var(--white); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 8px; }
.kicker--light { color: var(--sand); }
.section__note { color: var(--muted); font-size: .95rem; margin: 0; }

/* Sello de confianza */
.trust { background: var(--green); color: var(--white); }
.trust__list { list-style: none; margin: 0 auto; padding-block: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.trust__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; line-height: 1.25; }
.trust__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--green-800); }
[dir="ltr"] .trust__list li { text-transform: uppercase; letter-spacing: .03em; font-size: .78rem; }

/* Yehuda (dentro del cierre) */
.person { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.person__photo {
  width: 104px; height: 104px; flex: none; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--sand); box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.person .kicker { margin-bottom: 2px; }
.person__name { font-weight: 900; font-size: 1.35rem; color: var(--white); margin: 0; }
.person__text { color: #dbe5df; font-size: 1.08rem; }
.phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  color: var(--green); font-weight: 700; text-decoration: none;
}
.phone__num { font-size: 1.15rem; font-weight: 900; text-decoration: underline; text-decoration-color: var(--sand-500); text-underline-offset: 5px; }
.phone--light { color: var(--sand); margin-top: 10px; }
.phone--light .phone__num { color: var(--white); text-decoration-color: var(--sand); }
.footer a { color: inherit; }

/* 2. Trabajos propios */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work__item { margin: 0; }
.work__item--main { grid-column: 1 / -1; }
.work__item .photo { aspect-ratio: 3 / 4; }
.work__item--main .photo { aspect-ratio: 4 / 5; }
.work__item figcaption { font-size: .92rem; font-weight: 500; color: var(--green); margin-top: 8px; }
.work__video video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--green-800); }
.badge-own {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
  background: var(--sand); color: var(--green-800); font-size: .75rem; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
}

/* Antes / después */
.ba { margin-bottom: 28px; }
.ba__frame { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; --pos: 50%; background: var(--sand-200); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba__divider span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.ba__divider span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-weight: 700; }
.ba__label { position: absolute; top: 12px; background: rgba(23, 47, 37, .78); color: var(--white); font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; pointer-events: none; }
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba__range:focus-visible + * { outline: none; }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid #d79b2b; outline-offset: 3px; }
.ba__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--white); color: var(--green); font: 600 .95rem var(--font); cursor: pointer; }

/* 3. Servicios */
.services { display: grid; gap: 22px; }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service__photo { border-radius: 0; aspect-ratio: 4 / 3; }
.service__body { padding: 22px 22px 26px; }
.service__num { display: inline-block; font-family: var(--display); font-weight: 900; color: var(--green-800); font-size: 1rem; margin-bottom: 10px; background: var(--brush) center / 100% 100% no-repeat; padding: .2em .8em; }
.service h3 { font-size: 1.6rem; color: var(--green); }
.service p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* 4. Cierre */
.closing { display: grid; gap: 30px; }
.steps { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.steps__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--green-800); font-weight: 700; }
.closing__area { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); margin: 0; }
.draft { margin: 0 0 18px; }
.draft figcaption { font-size: .95rem; color: #dbe5df; margin-bottom: 10px; }
.bubble {
  background: #dcf3d6; color: #12301f; padding: 14px 16px; border-radius: 16px; border-start-start-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12); white-space: pre-wrap;
}
.missing { margin: 12px 0 0; font-size: .9rem; color: #ffe3a3; }

.footer { background: var(--green-800); color: #c5d2cb; font-size: .88rem; padding: 22px 0 calc(96px + env(safe-area-inset-bottom)); text-align: center; }
.footer p { margin: 0 0 6px; }
.footer__credits { font-size: .78rem; opacity: .8; }

/* Barra fija de WhatsApp (solo móvil) */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 241, .96); border-top: 1px solid rgba(31, 61, 48, .1);
  transform: translateY(110%); transition: transform 250ms ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }

/* ===== Efecto de elevación: solo hover real + puntero preciso ===== */
.btn--lift, .card-lift, .photo--lift {
  transition: transform var(--lift), box-shadow var(--lift);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .btn--lift:not(.is-disabled):hover,
  .card-lift:hover,
  .photo--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
  .photo--lift { cursor: default; }
}
/* Respuesta táctil breve */
@media (hover: none) {
  .btn:not(.is-disabled):active { filter: brightness(.92); transform: scale(.985); transition: transform 80ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--lift, .card-lift, .photo--lift, .sticky-cta { transition: none; }
  .btn--lift:hover, .card-lift:hover, .photo--lift:hover { transform: none !important; }
  .btn:active { transform: none !important; }
}

/* ===== Tablet / escritorio ===== */
@media (min-width: 640px) {
  .hero .btn { width: auto; }
  .work { gap: 18px; }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: flex; margin-inline-start: auto; }
  .brand { margin-inline-end: 0; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 24px; }

  /* Portada amplia: texto + foto grande */
  .hero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; min-height: min(78vh, 720px); max-width: 1400px; margin-inline: auto; }
  .hero__content { order: -1; padding: 48px 56px 48px 40px; }
  .hero__media { padding: 24px; height: 100%; }
  .photo--hero { height: 100%; min-height: 520px; border-radius: 28px; }
  [dir="ltr"] .hero__content { padding: 48px 40px 48px 56px; }

  .section, #work { padding: 104px 0; }
  .section__head { margin-bottom: 40px; }

  .work { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .work__item--main { grid-column: auto; }
  .work__item--main .photo { aspect-ratio: 3 / 4; }

  /* Composición alterna imagen / texto */
  .services { gap: 40px; }
  .service { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
  .service:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
  .service:nth-child(even) .service__photo { order: 2; }
  .service__photo { aspect-ratio: auto; height: 100%; min-height: 380px; }
  .service__body { padding: 44px; }
  .service h3 { font-size: 2.1rem; }

  .closing { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

  .trust__list { padding-block: 22px; }
  .trust__list li { flex-direction: row; justify-content: center; font-size: 1rem; gap: 12px; }
  [dir="ltr"] .trust__list li { font-size: .9rem; }
  .person__photo { width: 140px; height: 140px; }
}
[dir="rtl"] .kicker { letter-spacing: 0; }
