/* Pro Integral layout · Site Engine (editor piloto)
   Brand colors via --ink --sand --accent --teal */
:root {
  --ink: #1a1214;
  --sand: #e8e6e1;
  --accent: #5e0b25;
  --teal: #8fa67a;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --radius: 1rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-800);
  background: var(--slate-50);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

#app { min-height: 100vh; }

/* —— Nav —— */
.pi-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.pi-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pi-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}
.pi-nav__brand img.brand-logo {
  width: auto;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
.brand-logo-wrap { position: relative; display: inline-flex; }
.logo-resize {
  display: none;
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: nwse-resize;
}
body.ed-on .logo-resize { display: block; }

.pi-nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}
.pi-nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-800);
  transition: color 0.2s;
}
.pi-nav__links a:hover { color: var(--accent); }

.pi-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-login {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  padding: 0.4rem 0.7rem;
}
.btn-social {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1877f2;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-social:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 119, 242, 0.35);
}
.btn-social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 0.7rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 0.85rem;
  backdrop-filter: blur(6px);
}
.pi-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}
.pi-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.pi-nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--slate-100);
  background: #fff;
}
.pi-nav__mobile.is-open { display: flex; }
.pi-nav__mobile a { font-weight: 600; }

@media (min-width: 900px) {
  .pi-nav__links { display: flex; }
  .pi-nav__burger { display: none; }
  .pi-nav__mobile { display: none !important; }
}

/* —— Sections —— */
.section { position: relative; }
.section-handle {
  display: none;
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--slate-500);
  background: #fff;
  border: 1px dashed var(--slate-200);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  z-index: 5;
}
body.ed-on .section-handle { display: inline-block; }

.pi-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pi-title {
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--slate-800);
  font-weight: 800;
}
.pi-lead {
  color: var(--slate-600);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Hero */
.pi-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 6rem 1.5rem 7rem;
}
.pi-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pi-hero__media .hero-media,
.pi-hero__media img,
.pi-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pi-hero__media .hero-media {
  display: block;
}
.pi-hero__media .hero-media img,
.pi-hero__media .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pi-hero__media .media-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.pi-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
    linear-gradient(to bottom, transparent, transparent, var(--slate-50));
  z-index: 1;
  pointer-events: none;
}
.pi-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 48rem;
}
.pi-hero__badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  color: #f8fafc;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.pi-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
}
.pi-hero .lede {
  margin: 0 auto 1.8rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #f1f5f9;
}
.pi-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.pi-hero .btn-solid {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
  background: var(--accent);
}

/* Stats strip */
.pi-stats {
  position: relative;
  z-index: 20;
  margin-top: -5rem;
  padding: 0 1.5rem 2rem;
}
.pi-stats__card {
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .pi-stats__card { grid-template-columns: repeat(4, 1fr); }
}
.pi-stat {
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid var(--slate-100);
}
.pi-stat:last-child { border-right: 0; }
@media (max-width: 767px) {
  .pi-stat:nth-child(2n) { border-right: 0; }
  .pi-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--slate-100); }
}
.pi-stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 800;
}
.pi-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* Services */
.pi-services {
  padding: 5rem 1.5rem;
  background: var(--slate-50);
}
.pi-services__inner,
.pi-reviews__inner,
.pi-about__inner,
.pi-contact__inner {
  max-width: 72rem;
  margin: 0 auto;
}
.pi-center { text-align: center; margin-bottom: 3rem; }
.pi-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pi-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .pi-cards { grid-template-columns: repeat(4, 1fr); }
}
.pi-card {
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s, box-shadow 0.35s;
}
.pi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.pi-card__img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  background: color-mix(in srgb, var(--teal) 25%, #fff);
}
.pi-card__body { padding: 1.35rem; }
.pi-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-weight: 800;
}
.pi-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}
.pi-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Reviews */
.pi-reviews {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, var(--slate-50), #fff);
}
.pi-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-top: 0.4rem;
  font-size: 1.1rem;
}
.pi-stars small {
  color: var(--slate-600);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 0.4rem;
  letter-spacing: 0;
}
.pi-review {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.4rem;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s;
}
.pi-review:hover { transform: translateY(-6px); }
.pi-review__name { font-weight: 800; margin: 0.6rem 0 0.15rem; }
.pi-review__loc { color: var(--slate-500); font-size: 0.85rem; margin: 0 0 0.7rem; }
.pi-review__text { margin: 0; color: var(--slate-600); line-height: 1.55; }

/* About */
.pi-about {
  padding: 5rem 1.5rem;
  background: #fff;
}
.pi-about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .pi-about__grid { grid-template-columns: 1fr 1fr; }
}
.pi-about__media {
  position: relative;
}
.pi-about__media img {
  width: 100%;
  height: min(500px, 70vw);
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  background: var(--sand);
}
.pi-about__badge {
  position: absolute;
  right: -0.5rem;
  bottom: -0.75rem;
  background: var(--accent);
  color: #fff;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.pi-about__badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}
.pi-about__badge span { font-size: 0.85rem; }
.pi-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}
.pi-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.pi-check__dot {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 28%, #fff);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
}
.pi-check strong { display: block; font-size: 0.95rem; }
.pi-check span { font-size: 0.8rem; color: var(--slate-500); }
.pi-expertise {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
  padding: 1.2rem;
}
.pi-expertise h3 { margin: 0 0 0.9rem; font-size: 1rem; }
.pi-bar { margin-bottom: 0.75rem; }
.pi-bar__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pi-bar__track {
  height: 0.45rem;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}
.pi-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s ease;
}
.pi-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .pi-gallery { grid-template-columns: repeat(4, 1fr); }
}
.pi-gallery img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s;
  background: var(--sand);
}
.pi-gallery img:hover { transform: scale(1.03); }

/* Contact */
.pi-contact {
  padding: 5rem 1.5rem;
  background: color-mix(in srgb, var(--ink) 88%, var(--accent));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pi-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 20%, var(--teal), transparent 40%),
    radial-gradient(circle at 80% 80%, var(--accent), transparent 40%);
  pointer-events: none;
}
.pi-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .pi-contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.pi-contact .pi-kicker { color: color-mix(in srgb, var(--teal) 70%, #fff); }
.pi-contact .pi-title { color: #fff; }
.pi-contact .pi-lead { color: rgba(255, 255, 255, 0.82); }
.pi-contact__rows { display: grid; gap: 1rem; margin-top: 1.5rem; }
.pi-contact__row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.pi-contact__ico {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pi-contact__row small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}
.pi-contact__row strong { font-size: 1rem; }
.pi-contact__panel {
  background: #fff;
  color: var(--slate-800);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.pi-contact__panel h3 { margin: 0 0 0.5rem; }
.pi-contact__panel p {
  margin: 0 0 1.2rem;
  color: var(--slate-600);
  line-height: 1.5;
}
.pi-social-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.pi-social-row .btn-solid { flex: 1; min-width: 140px; }
.pi-social-row .btn-social {
  width: auto;
  height: auto;
  padding: 0.75rem 1.1rem;
  gap: 0.45rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

/* Footer */
.pi-foot {
  background: #0f0a0c;
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 1.5rem;
}
.pi-foot__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
}
.pi-foot__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 800;
}
.pi-foot__brand img { max-height: 40px; width: auto; }
.pi-foot__meta { font-size: 0.9rem; }
.pi-foot__social { display: flex; gap: 0.5rem; }
.pi-foot__social .btn-social { width: 2.2rem; height: 2.2rem; }

/* WA float */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}
.wa-float-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
}
.wa-float.is-pulse { animation: pulseWa 2s infinite; }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.solos-layer { position: relative; z-index: 40; }
.solo { position: absolute; }

/* Anim helpers used by editor */
.anim-pending { opacity: 0; transform: translateY(24px); }
.anim-ready.anim-fade-up,
.anim-ready.anim-fade-in { opacity: 1; transform: none; transition: 0.7s ease; }
.anim-ready.anim-slide-left,
.anim-ready.anim-slide-right,
.anim-ready.anim-zoom-in { opacity: 1; transform: none; transition: 0.7s ease; }
.is-pulse { animation: pulseWa 2s infinite; }
