/* Sitio público — estudio jurídico */
.page-flush {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  animation: rise 800ms var(--ease) both;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroZoom 12s var(--ease) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.28) 0%, rgba(10, 16, 24, 0.62) 55%, rgba(10, 16, 24, 0.82) 100%);
}

.hero:not(.hero-has-media) {
  background:
    radial-gradient(900px 420px at 12% -8%, var(--accent-soft), transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 48%, var(--bg) 100%);
}
.hero:not(.hero-has-media) .hero-scrim { display: none; }
.hero:not(.hero-has-media) .hero-copy {
  color: var(--ink);
}
.hero:not(.hero-has-media) .hero-tagline { color: var(--ink-strong); opacity: 1; }
.hero:not(.hero-has-media) .hero-lead { color: var(--muted); }
.hero:not(.hero-has-media) .brand-mark { color: var(--ink-strong); }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: #f4f7fa;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.02;
  max-width: 16ch;
  color: inherit;
}

.hero-tagline {
  margin: 0.7rem 0 0.55rem;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  opacity: 0.94;
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.02rem;
  color: rgba(244, 247, 250, 0.78);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.hero-ghost:hover { color: #fff; border-color: #fff; }

.pub-section {
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}
.pub-section-soft { background: var(--bg-soft); }
.pub-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
.pub-section h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
.pub-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.servicios-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.servicios-list li {
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.servicios-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.servicios-list p {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
}

.equipo-carousel { position: relative; }
.equipo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.equipo-slide {
  scroll-snap-align: start;
  animation: rise 700ms var(--ease) both;
}
.equipo-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 0.85rem;
}
.equipo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipo-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.equipo-slide h3 {
  margin: 0;
  font-size: 1.35rem;
}
.equipo-cargo {
  margin: 0.2rem 0 0.45rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.equipo-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.carousel-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contact-page {
  padding: 2rem 0 3rem;
  animation: rise 600ms var(--ease) both;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
.contact-page h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.contact-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
}
.contact-form {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--ink);
  padding: 0.5rem 0.7rem;
  font: inherit;
}
.contact-aside { color: var(--muted); }
.contact-aside a { color: inherit; }
.contact-social { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float-icon { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.wa-float:hover { transform: translateY(-2px); color: #fff !important; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}
.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-strong);
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-social a { text-decoration: none; font-weight: 500; }
.footer-msa-wrap { grid-column: 1 / -1; margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35); }
  50% { box-shadow: 0 14px 36px rgba(18, 140, 126, 0.55); }
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}
