:root {
  --jp-header-blue: #013274;
}

html {
  scroll-behavior: auto !important;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 96px;
}

/* Cabecera: color sólido tomado del fondo real del logotipo. */
.site-header {
  background: var(--jp-header-blue) !important;
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.brand,
.brand img,
.nav {
  background-color: var(--jp-header-blue) !important;
}

/* Subtítulo principal más fino y sobrio. */
.hero-kicker {
  color: #d8e5ef !important;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(12px, 1vw, 14px) !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  text-transform: none !important;
}

/* Elimina los símbolos decorativos de flecha. */
.button > span[aria-hidden="true"],
.text-link > span[aria-hidden="true"] {
  display: none !important;
}

.button,
.text-link {
  gap: 0 !important;
}

.area-row {
  grid-template-columns: 65px 1fr 1fr !important;
}

.area-row > a {
  display: none !important;
}

/* Balanza del logotipo, integrada como medallón animado. */
.process-intro::before {
  content: "";
  display: block;
  width: 140px;
  aspect-ratio: 1;
  margin-bottom: 38px;
  border: 1px solid rgba(1, 50, 116, 0.16);
  border-radius: 50%;
  background-color: var(--jp-header-blue);
  background-image: url("/images/logo-horizontal.jpeg");
  background-repeat: no-repeat;
  background-position: -20px -48px;
  background-size: 550px auto;
  box-shadow: 0 18px 45px rgba(1, 50, 116, 0.14);
  transform-origin: 50% 22%;
  animation: jp-balance-sway 4.8s ease-in-out infinite;
}

@keyframes jp-balance-sway {
  0%, 100% {
    transform: translateY(0) rotate(-1.8deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.8deg);
  }
}

/* Mejoras táctiles y de lectura en móvil. */
@media (max-width: 800px) {
  section[id] {
    scroll-margin-top: 82px;
  }

  .nav {
    background: var(--jp-header-blue) !important;
  }

  .hero-kicker {
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    line-height: 1.65 !important;
  }

  .area-row {
    grid-template-columns: 35px 1fr !important;
  }

  .area-row p {
    grid-column: 2 !important;
  }

  .process-intro::before {
    width: 110px;
    margin-bottom: 28px;
    background-position: -16px -38px;
    background-size: 435px auto;
  }

  .appointment-form input,
  .appointment-form select {
    font-size: 16px !important;
  }

  .nav a,
  .button,
  .menu-toggle,
  .footer-bottom button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-intro::before {
    animation: none !important;
  }
}

/* Marca tipográfica del pie: sin fondo rectangular de la imagen. */
.footer-brand img {
  display: none !important;
}
.footer-brand::before {
  content: "Játiva Porcar";
  display: block;
  color: #fff;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.footer-brand p::before {
  content: "ASESORES & ABOGADOS";
  display: block;
  margin: 8px 0 20px;
  color: #adc4d1;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

/* Larger brand, stable header geometry and one uninterrupted entrance. */
.site-header{height:94px}.brand{width:280px;height:72px;flex-shrink:0}.hero h1{font-size:clamp(52px,5.8vw,88px);line-height:1.03}.hero{padding-top:164px}.hero h1 em{animation:none}.hero-media img{animation-duration:10s}.hero-kicker,.hero h1,.hero-copy,.hero-actions{animation-delay:0s;animation-duration:.65s}.hero-content{width:min(880px,78vw)}section[id]{scroll-margin-top:110px!important}.jp-dialog{border:0;padding:40px;max-width:680px;width:calc(100% - 40px);max-height:85vh;color:#273d52}.jp-dialog::backdrop{background:#031125b8}.jp-dialog h2{font:34px/1.2 Georgia,serif;color:#082f67;margin:0 0 24px}.jp-dialog p{font:14px/1.75 Arial,sans-serif}.jp-dialog button{margin-top:20px}
@media(max-width:800px){.site-header{height:82px}.brand{width:218px;height:64px}.hero{padding-top:132px}.hero h1{font-size:clamp(43px,10.7vw,64px)}.hero-content{width:100%}section[id]{scroll-margin-top:96px!important}.nav{top:82px}.jp-dialog{padding:28px}}
@media(prefers-reduced-motion:reduce){.hero-media img,.hero-kicker,.hero h1,.hero-copy,.hero-actions{animation:none!important;opacity:1!important;transform:none!important}}
