/* ============================================================
   P&L Abogados — Custom styles
   Complementa Tailwind CSS (cargado vía CDN en index.html)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color palette — navy + white + neutral grays (NO vibrant colors) */
  --pl-navy-900: #0a162e;
  --pl-navy-800: #0f1e3d;   /* primary brand */
  --pl-navy-700: #18305f;
  --pl-navy-600: #2a4a85;
  --pl-navy-100: #e7ecf4;

  --pl-gray-900: #111418;
  --pl-gray-700: #3a4150;
  --pl-gray-500: #6b7280;
  --pl-gray-300: #d1d5db;
  --pl-gray-200: #e5e7eb;
  --pl-gray-100: #f3f4f6;
  --pl-gray-50:  #f8f9fb;

  --pl-white: #ffffff;
  --pl-accent: #b89968; /* warm subtle accent for thin lines / sello */

  /* Type */
  --pl-font-sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pl-font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;

  /* Layout */
  --pl-max-width: 1200px;
  --pl-section-y: clamp(64px, 9vw, 120px);
  --pl-radius: 4px;
  --pl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--pl-font-sans);
  color: var(--pl-gray-900);
  background-color: var(--pl-white);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Selection */
::selection { background: var(--pl-navy-800); color: white; }

/* Focus visible — accessibility */
*:focus-visible {
  outline: 2px solid var(--pl-navy-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
.pl-display {
  font-family: var(--pl-font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.pl-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pl-navy-700);
}

.pl-rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--pl-navy-800);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Container ---------- */
.pl-container {
  max-width: var(--pl-max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- Header ---------- */
.pl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s var(--pl-ease),
              border-color 0.3s var(--pl-ease),
              backdrop-filter 0.3s var(--pl-ease);
  border-bottom: 1px solid transparent;
}

.pl-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--pl-gray-200);
}

.pl-logo {
  font-family: var(--pl-font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--pl-white);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: color 0.3s var(--pl-ease);
}
.pl-logo .pl-logo-mono {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pl-logo .pl-logo-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: currentColor;
  opacity: 0.4;
  transform: translateY(2px);
}
.pl-logo .pl-logo-tail {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.pl-header.is-scrolled .pl-logo { color: var(--pl-navy-900); }

.pl-nav a {
  position: relative;
  color: var(--pl-white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s var(--pl-ease);
}
.pl-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--pl-ease);
}
.pl-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.pl-header.is-scrolled .pl-nav a { color: var(--pl-gray-700); }
.pl-header.is-scrolled .pl-nav a:hover { color: var(--pl-navy-800); }

/* Mobile menu button */
.pl-burger {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--pl-white);
  transition: color 0.3s var(--pl-ease);
}
.pl-header.is-scrolled .pl-burger { color: var(--pl-navy-900); }
.pl-burger span,
.pl-burger span::before,
.pl-burger span::after {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--pl-ease), opacity 0.3s var(--pl-ease);
}
.pl-burger span { position: relative; }
.pl-burger span::before,
.pl-burger span::after {
  content: "";
  position: absolute; left: 0;
}
.pl-burger span::before { top: -7px; }
.pl-burger span::after  { top:  7px; }
.pl-burger.is-open span                { transform: rotate(45deg); background: currentColor; }
.pl-burger.is-open span::before        { transform: translateY(7px) rotate(0); opacity: 0; }
.pl-burger.is-open span::after         { transform: translateY(-7px) rotate(-90deg); }

/* Mobile menu */
.pl-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--pl-white);
  padding: 96px 32px 48px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--pl-ease);
  z-index: 45;
  border-bottom: 1px solid var(--pl-gray-200);
  box-shadow: 0 24px 40px -16px rgba(15, 30, 61, 0.12);
}
.pl-mobile-menu.is-open { transform: translateY(0); }
.pl-mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 1.15rem;
  color: var(--pl-navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--pl-gray-100);
  font-weight: 500;
}
.pl-mobile-menu a:last-of-type { border-bottom: none; }

/* ---------- Buttons ---------- */
.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--pl-radius);
  transition: background-color 0.25s var(--pl-ease),
              color 0.25s var(--pl-ease),
              border-color 0.25s var(--pl-ease),
              transform 0.25s var(--pl-ease);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.pl-btn--primary {
  background: var(--pl-navy-800);
  color: var(--pl-white);
  border-color: var(--pl-navy-800);
}
.pl-btn--primary:hover {
  background: var(--pl-navy-900);
  border-color: var(--pl-navy-900);
}
.pl-btn--ghost {
  background: transparent;
  color: var(--pl-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.pl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pl-white);
}
.pl-btn--outline {
  background: transparent;
  color: var(--pl-navy-800);
  border-color: var(--pl-navy-800);
}
.pl-btn--outline:hover {
  background: var(--pl-navy-800);
  color: var(--pl-white);
}
.pl-btn .pl-arrow {
  width: 14px; height: 10px;
  transition: transform 0.3s var(--pl-ease);
}
.pl-btn:hover .pl-arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.pl-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--pl-white);
  overflow: hidden;
  background: var(--pl-navy-900);
}

/* Hero real image (foto cliente) */
.pl-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7) saturate(0.85);
}
/* Hero overlay (degradado para legibilidad del texto) */
.pl-hero-bg {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(135deg, rgba(10, 22, 46, 0.78) 0%, rgba(10, 22, 46, 0.45) 50%, rgba(10, 22, 46, 0.78) 100%);
  background-size: cover;
  background-position: center;
}
.pl-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.pl-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 96px;
  width: 100%;
}
.pl-hero-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.pl-hero-eyebrow .pl-rule { background: rgba(255, 255, 255, 0.55); }
.pl-hero h1 {
  font-family: var(--pl-font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 32px;
}
.pl-hero h1 em {
  font-style: italic;
  color: var(--pl-accent);
  font-weight: 400;
}
.pl-hero p.pl-hero-sub {
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  line-height: 1.65;
}
.pl-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.pl-hero-meta {
  position: absolute;
  bottom: 32px; right: clamp(20px, 5vw, 40px);
  z-index: 2;
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pl-hero-meta strong { color: var(--pl-white); font-weight: 500; display: block; margin-top: 4px; }

@media (max-width: 700px) {
  .pl-hero-meta { display: none; }
}

/* ---------- Generic section ---------- */
.pl-section {
  padding-block: var(--pl-section-y);
}
.pl-section--gray { background: var(--pl-gray-50); }
.pl-section--dark {
  background: var(--pl-navy-900);
  color: var(--pl-white);
}
.pl-section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.pl-section-head .pl-eyebrow { margin-bottom: 20px; }
.pl-section-head h2 {
  font-family: var(--pl-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pl-navy-900);
  margin-bottom: 20px;
}
.pl-section--dark .pl-section-head h2 { color: var(--pl-white); }
.pl-section--dark .pl-eyebrow { color: rgba(255, 255, 255, 0.7); }
.pl-section--dark .pl-rule { background: rgba(255, 255, 255, 0.55); }
.pl-section-head p { color: var(--pl-gray-500); font-size: 1.05rem; max-width: 56ch; margin-inline: auto; }

/* ---------- Welcome block ---------- */
.pl-welcome {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.pl-welcome p.pl-lede {
  font-family: var(--pl-font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.4;
  color: var(--pl-gray-900);
  letter-spacing: -0.005em;
}
.pl-welcome p.pl-lede strong { color: var(--pl-navy-800); font-weight: 500; }

/* ---------- Values (3 cols) ---------- */
.pl-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
  border-top: 1px solid var(--pl-gray-200);
  padding-top: 64px;
}
.pl-value { text-align: center; padding-inline: 16px; }
.pl-value-icon {
  width: 48px; height: 48px;
  margin: 0 auto 24px;
  color: var(--pl-navy-800);
}
.pl-value h3 {
  font-family: var(--pl-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--pl-navy-900);
}
.pl-value p { color: var(--pl-gray-500); font-size: 0.95rem; }

@media (max-width: 800px) {
  .pl-values { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
}

/* ---------- Practice areas grid ---------- */
.pl-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pl-practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pl-white);
  border: 1px solid var(--pl-gray-200);
  border-radius: var(--pl-radius);
  padding: 40px 32px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--pl-ease),
              box-shadow 0.4s var(--pl-ease),
              border-color 0.4s var(--pl-ease);
  overflow: hidden;
  isolation: isolate;
}
.pl-practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pl-navy-900);
  transform: translateY(101%);
  transition: transform 0.5s var(--pl-ease);
  z-index: -1;
}
.pl-practice-card:hover {
  transform: translateY(-4px);
  border-color: var(--pl-navy-900);
  color: var(--pl-white);
}
.pl-practice-card:hover::before { transform: translateY(0); }
.pl-practice-card:hover .pl-practice-icon { color: var(--pl-white); }
.pl-practice-card:hover .pl-practice-num,
.pl-practice-card:hover .pl-practice-more { color: rgba(255, 255, 255, 0.7); }
.pl-practice-card:hover h3 { color: var(--pl-white); }
.pl-practice-card:hover p { color: rgba(255, 255, 255, 0.85); }

.pl-practice-num {
  font-family: var(--pl-font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--pl-gray-500);
  margin-bottom: 28px;
  transition: color 0.4s var(--pl-ease);
}
.pl-practice-icon {
  width: 44px; height: 44px;
  color: var(--pl-navy-800);
  margin-bottom: 24px;
  transition: color 0.4s var(--pl-ease);
}
.pl-practice-card h3 {
  font-family: var(--pl-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--pl-navy-900);
  transition: color 0.4s var(--pl-ease);
  line-height: 1.2;
}
.pl-practice-card p {
  font-size: 0.95rem;
  color: var(--pl-gray-500);
  flex-grow: 1;
  margin-bottom: 28px;
  transition: color 0.4s var(--pl-ease);
}
.pl-practice-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-navy-800);
  transition: color 0.4s var(--pl-ease);
}
.pl-practice-more svg { transition: transform 0.3s var(--pl-ease); }
.pl-practice-card:hover .pl-practice-more svg { transform: translateX(4px); }

@media (max-width: 900px) { .pl-practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pl-practice-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.pl-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin-inline: auto;
}
.pl-team-card {
  background: var(--pl-white);
  border: 1px solid var(--pl-gray-200);
  border-radius: var(--pl-radius);
  padding: 48px 40px;
  text-align: center;
  transition: border-color 0.3s var(--pl-ease), box-shadow 0.3s var(--pl-ease);
}
.pl-team-card:hover {
  border-color: var(--pl-navy-700);
  box-shadow: 0 16px 40px -20px rgba(15, 30, 61, 0.2);
}
.pl-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--pl-navy-800), var(--pl-navy-700));
  color: var(--pl-white);
  font-family: var(--pl-font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pl-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pl-team-card h3 {
  font-family: var(--pl-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pl-navy-900);
  margin-bottom: 6px;
}
.pl-team-role {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pl-gray-500);
  margin-bottom: 24px;
}
.pl-team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--pl-gray-200);
  padding-top: 20px;
  font-size: 0.95rem;
}
.pl-team-contact a {
  color: var(--pl-gray-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s var(--pl-ease);
}
.pl-team-contact a:hover { color: var(--pl-navy-800); }
.pl-team-contact svg { color: var(--pl-navy-700); width: 14px; height: 14px; }

@media (max-width: 700px) { .pl-team-grid { grid-template-columns: 1fr; } }

/* ---------- Offices ---------- */
.pl-offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.pl-office {
  background: var(--pl-white);
  border: 1px solid var(--pl-gray-200);
  border-radius: var(--pl-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pl-office-map {
  aspect-ratio: 16 / 9;
  background: var(--pl-navy-900);
  position: relative;
  overflow: hidden;
}
.pl-office-map svg { width: 100%; height: 100%; display: block; }
.pl-office-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 28px; height: 36px;
  color: var(--pl-accent);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.pl-office-body { padding: 32px; }
.pl-office-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pl-gray-500);
  margin-bottom: 8px;
}
.pl-office-name {
  font-family: var(--pl-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pl-navy-900);
  margin-bottom: 16px;
}
.pl-office-info {
  font-size: 0.95rem;
  color: var(--pl-gray-700);
  line-height: 1.65;
}
.pl-office-info p { margin-bottom: 6px; }
.pl-office-info a {
  color: var(--pl-navy-800);
  text-decoration: none;
  font-weight: 500;
}
.pl-office-info a:hover { text-decoration: underline; }

@media (max-width: 800px) { .pl-offices { grid-template-columns: 1fr; } }

/* ---------- Single office (large layout) ---------- */
.pl-office-single {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--pl-white);
  border: 1px solid var(--pl-gray-200);
  border-radius: var(--pl-radius);
  overflow: hidden;
  min-height: 460px;
}
.pl-office-single-map {
  position: relative;
  background: var(--pl-navy-900);
  overflow: hidden;
  min-height: 380px;
}
.pl-office-single-map svg { width: 100%; height: 100%; display: block; }
.pl-office-pin--large {
  width: 40px; height: 52px;
}
.pl-office-single-body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pl-office-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin: 24px 0 32px;
}
.pl-office-meta > div { display: flex; flex-direction: column; gap: 6px; }
.pl-office-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pl-gray-500);
  font-weight: 500;
}
.pl-office-meta dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--pl-gray-700);
  line-height: 1.55;
}
.pl-office-meta dd a {
  color: var(--pl-navy-800);
  text-decoration: none;
  font-weight: 500;
}
.pl-office-meta dd a:hover { text-decoration: underline; }
.pl-office-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .pl-office-single { grid-template-columns: 1fr; min-height: 0; }
  .pl-office-single-map { min-height: 280px; aspect-ratio: 16/10; }
}
@media (max-width: 500px) {
  .pl-office-meta { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Final CTA ---------- */
.pl-cta-final { text-align: center; }
.pl-cta-final h2 {
  font-family: var(--pl-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pl-cta-final h2 strong {
  font-weight: 500;
  color: var(--pl-accent);
}
.pl-cta-final p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin: 0 auto 40px;
}
.pl-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.pl-cta-final .pl-btn--primary {
  background: var(--pl-white);
  color: var(--pl-navy-900);
  border-color: var(--pl-white);
}
.pl-cta-final .pl-btn--primary:hover {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
  color: var(--pl-navy-900);
}

/* ---------- Contact form ---------- */
.pl-contact-form {
  max-width: 640px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}
.pl-field { display: flex; flex-direction: column; gap: 6px; }
.pl-field--full { grid-column: 1 / -1; }
.pl-field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-gray-500);
  font-weight: 500;
}
.pl-field input,
.pl-field textarea {
  background: var(--pl-white);
  border: 1px solid var(--pl-gray-300);
  border-radius: var(--pl-radius);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--pl-gray-900);
  transition: border-color 0.2s var(--pl-ease), box-shadow 0.2s var(--pl-ease);
}
.pl-field input:focus,
.pl-field textarea:focus {
  outline: none;
  border-color: var(--pl-navy-700);
  box-shadow: 0 0 0 4px rgba(15, 30, 61, 0.08);
}
.pl-field textarea { resize: vertical; min-height: 140px; }
.pl-field-error { color: #b91c1c; font-size: 0.85rem; margin-top: 4px; display: none; }
.pl-field.is-invalid input,
.pl-field.is-invalid textarea { border-color: #b91c1c; }
.pl-field.is-invalid .pl-field-error { display: block; }

.pl-form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--pl-gray-500);
  align-items: flex-start;
}
.pl-form-consent input { margin-top: 4px; }
.pl-form-consent a { color: var(--pl-navy-800); text-decoration: underline; }

.pl-form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.pl-form-success {
  grid-column: 1 / -1;
  display: none;
  padding: 20px;
  background: var(--pl-navy-100);
  border-left: 3px solid var(--pl-navy-800);
  color: var(--pl-navy-900);
  font-size: 0.95rem;
  border-radius: var(--pl-radius);
}
.pl-form-success.is-visible { display: block; }

@media (max-width: 600px) {
  .pl-contact-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.pl-footer {
  background: var(--pl-navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 80px 0;
  font-size: 0.9rem;
}
.pl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.pl-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pl-white);
  margin-bottom: 20px;
  font-weight: 500;
}
.pl-footer ul { list-style: none; padding: 0; margin: 0; }
.pl-footer li { margin-bottom: 10px; }
.pl-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--pl-ease);
}
.pl-footer a:hover { color: var(--pl-white); }
.pl-footer .pl-logo { color: var(--pl-white); font-size: 1.4rem; margin-bottom: 16px; }
.pl-footer-tagline { line-height: 1.65; max-width: 32ch; }

.pl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.pl-footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .pl-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .pl-footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp FAB ---------- */
.pl-whatsapp {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 40;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform 0.3s var(--pl-ease), box-shadow 0.3s var(--pl-ease);
}
.pl-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.65);
}
.pl-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Reveal animations ---------- */
.pl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--pl-ease), transform 0.8s var(--pl-ease);
}
.pl-reveal.is-revealed { opacity: 1; transform: translateY(0); }
.pl-reveal[data-delay="1"] { transition-delay: 0.08s; }
.pl-reveal[data-delay="2"] { transition-delay: 0.16s; }
.pl-reveal[data-delay="3"] { transition-delay: 0.24s; }
.pl-reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .pl-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */
.pl-legal-page {
  padding: 160px 0 96px;
}
.pl-legal-page article {
  max-width: 760px;
  margin-inline: auto;
}
.pl-legal-page h1 {
  font-family: var(--pl-font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pl-navy-900);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pl-legal-page .pl-legal-updated {
  font-size: 0.85rem;
  color: var(--pl-gray-500);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pl-gray-200);
}
.pl-legal-page h2 {
  font-family: var(--pl-font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--pl-navy-900);
  margin: 40px 0 12px;
}
.pl-legal-page p, .pl-legal-page li {
  color: var(--pl-gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
}
.pl-legal-page ul { padding-left: 24px; }
.pl-legal-page a {
  color: var(--pl-navy-800);
  text-decoration: underline;
}
.pl-legal-page .pl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--pl-gray-500);
  text-decoration: none;
  margin-bottom: 40px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pl-legal-page .pl-back:hover { color: var(--pl-navy-800); }
.pl-legal-page .pl-back svg { transition: transform 0.2s var(--pl-ease); }
.pl-legal-page .pl-back:hover svg { transform: translateX(-3px); }

/* For legal pages, header has solid bg from the start */
.pl-header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--pl-gray-200);
}
.pl-header--solid .pl-logo { color: var(--pl-navy-900); }
.pl-header--solid .pl-nav a { color: var(--pl-gray-700); }
.pl-header--solid .pl-burger { color: var(--pl-navy-900); }
