/* ==========================================================================
   SRLEGAL — Premium design layer
   Loaded after child-theme.css. Overrides the base look with a refined,
   editorial "quiet luxury" direction: dark ink sidebar, warm paper canvas,
   Cormorant Garamond display type, bronze-gold hairlines, micro-interactions.
   ========================================================================== */

@font-face {
  font-family: "Copperplate Normal";
  src: url("../fonts/Copperplate.woff2?v=20260723114718-2") format("woff2"),
    url("../fonts/Copperplate.woff?v=20260723114718-2") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Canvas */
  --pr-paper: #f6f2ea;
  --pr-paper-deep: #efe8db;
  --pr-ink: #2a1a1a;
  --pr-ink-soft: #6f5c58;

  /* Sidebar (night) — deep burgundy */
  --pr-night: #250e0f;
  --pr-night-line: rgba(243, 237, 226, 0.12);
  --pr-ivory: #f3ede2;
  --pr-ivory-muted: rgba(243, 237, 226, 0.6);

  /* Brand + accents */
  --pr-oxblood: #660708;
  --pr-oxblood-bright: #8a1c1e;
  --pr-gold: #a8854e;
  --pr-gold-soft: rgba(168, 133, 78, 0.4);
  --pr-line: rgba(58, 26, 26, 0.16);
  --pr-line-strong: rgba(58, 26, 26, 0.28);

  /* Type — everything runs on Cormorant Garamond (client request);
     Copperplate Normal is reserved for specific display titles. */
  --pr-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --pr-sans: var(--pr-serif);
  --pr-copperplate: "Copperplate Normal", "Copperplate", "Palatino Linotype", "Book Antiqua", serif;

  /* Motion */
  --pr-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Remap legacy tokens so old rules inherit the new palette */
  --srlegal-bg: var(--pr-paper);
  --srlegal-bg-soft: var(--pr-paper);
  --srlegal-surface: var(--pr-paper);
  --srlegal-text: var(--pr-ink);
  --srlegal-muted: var(--pr-ink-soft);
  --srlegal-line: var(--pr-line);
  --srlegal-line-strong: var(--pr-line-strong);
  --srlegal-accent: var(--pr-oxblood);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(168, 133, 78, 0.06), transparent 60%),
    var(--pr-paper);
  color: var(--pr-ink);
  font-family: var(--pr-serif);
  font-size: 1.14rem;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Client request: every text on the site uses Cormorant Garamond */
button,
input,
select,
textarea,
.btn,
small,
.small,
figcaption,
.form-text {
  font-family: var(--pr-serif) !important;
}

::-moz-selection {
  background: var(--pr-oxblood);
  color: var(--pr-ivory);
}

::selection {
  background: var(--pr-oxblood);
  color: var(--pr-ivory);
}

:focus-visible {
  outline: 2px solid var(--pr-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Refined scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--pr-paper-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(33, 29, 24, 0.28);
  border-radius: 999px;
  border: 2px solid var(--pr-paper-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 29, 24, 0.45);
}

/* --------------------------------------------------------------------------
   Typography — Cormorant Garamond display
   -------------------------------------------------------------------------- */

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--pr-serif);
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

.srlegal-page-title,
.srlegal-section-title,
.srlegal-team-index-name {
  font-family: var(--pr-serif);
  font-weight: 500 !important;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--pr-ink) !important;
}

.srlegal-page-title {
  font-size: clamp(2.9rem, 4.4vw, 4.4rem);
}

.srlegal-section-title {
  font-size: clamp(2.35rem, 3.4vw, 3.4rem);
}

/* Gold hairline above section titles */
.srlegal-section-header {
  position: relative;
  margin-bottom: 2.25rem;
  padding-top: 1.4rem;
}
.srlegal-section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--pr-gold), var(--pr-gold-soft));
}

.lead.srlegal-section-copy,
.srlegal-section-copy {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--pr-ink);
  font-weight: 500;
}

.srlegal-section-copy p {
  margin: 0 0 1.45rem;
}

/* --------------------------------------------------------------------------
   Sidebar — night panel
   -------------------------------------------------------------------------- */

.srlegal-sidebar-column {
  background: transparent;
  color: var(--pr-ink);
}

.srlegal-sidebar {
  position: relative;
}

/* Subtle inner hairline on the seam between sidebar and content */
@media (min-width: 768px) {
  .srlegal-sidebar-column {
    box-shadow: inset -1px 0 0 var(--pr-line);
  }
}

/* Logo: brand burgundy, untouched */
.srlegal-sidebar-brand .custom-logo-link img {
  filter: none;
  opacity: 1;
  transition: opacity 0.4s var(--pr-ease);
}
.srlegal-sidebar-brand .custom-logo-link:hover img {
  opacity: 0.88;
}

/* Sidebar nav: spaced small caps */
.srlegal-sidebar-menu-link,
.srlegal-sidebar-menu-link:visited {
  font-family: var(--pr-copperplate);
  font-weight: 600 !important;
  font-size: 0.765rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-ink-soft) !important;
  padding: 0.55rem 0;
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--pr-ease), transform 0.3s var(--pr-ease);
}

.srlegal-sidebar-menu-link::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--pr-gold);
  transition: width 0.3s var(--pr-ease);
}

.srlegal-sidebar-menu-link:hover,
.srlegal-sidebar-menu-link:focus,
.srlegal-sidebar-menu-link:focus-visible {
  color: var(--pr-oxblood) !important;
  transform: translateX(0.35rem);
}
.srlegal-sidebar-menu-link:hover::before {
  width: 0.85rem;
}

.srlegal-sidebar-menu-link.is-active {
  color: var(--pr-oxblood) !important;
  transform: translateX(0.35rem);
}
.srlegal-sidebar-menu-link.is-active::before {
  width: 0.85rem;
}

/* Legal links */
.srlegal-sidebar-legal {
  border-top: 1px solid var(--pr-line);
  padding-top: 1.4rem;
}
.srlegal-sidebar-legal-link {
  font-family: var(--pr-copperplate);
  font-weight: 600;
  font-size: 0.81rem;
  letter-spacing: 0.08em;
  color: var(--pr-ink-soft);
  opacity: 1;
  transition: color 0.3s var(--pr-ease);
}
.srlegal-sidebar-legal-link:hover {
  color: var(--pr-ink);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Home — hero + numbered index navigation
   -------------------------------------------------------------------------- */

.srlegal-shell--home .srlegal-page-title {
  max-width: 14ch;
  font-size: clamp(3.1rem, 5vw, 5rem);
}

/* Architectural backdrop: right side of the home canvas, full height */
.srlegal-shell--home .srlegal-main-column {
  overflow: hidden;
}

.srlegal-shell--home .srlegal-main-column::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48%, 80vh);
  background: url("../img/building.png") no-repeat right center;
  background-size: auto 100%;
  filter: grayscale(1) sepia(0.22) contrast(0.98);
  mix-blend-mode: multiply;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.srlegal-shell--home .srlegal-home-content {
  position: relative;
  z-index: 1;
}

.srlegal-home-subtitle {
  font-family: var(--pr-copperplate);
  font-weight: 600;
  font-size: clamp(0.855rem, 1.08vw, 0.972rem);
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--pr-ink-soft);
  max-width: 46rem;
}

/* Section intros in Copperplate Normal (client request) */
.srlegal-section-intro p {
  font-family: var(--pr-copperplate);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
}
.srlegal-section-intro p:last-child {
  margin-bottom: 0;
}

.srlegal-home-intro {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 2.25rem;
}
.srlegal-home-intro::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--pr-gold), var(--pr-gold-soft));
}

.srlegal-home-menu ul {
  counter-reset: pr-nav;
}

.srlegal-home-menu li {
  border-bottom: 1px solid var(--pr-line);
}
.srlegal-home-menu li:first-child {
  border-top: 1px solid var(--pr-line);
}

.srlegal-home-menu-link,
.srlegal-home-menu-link:visited {
  font-family: var(--pr-serif);
  font-weight: 500 !important;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  letter-spacing: -0.01em;
  color: var(--pr-ink) !important;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.15rem 0.25rem;
  position: relative;
  transition: color 0.35s var(--pr-ease), padding-left 0.35s var(--pr-ease);
}

/* Index numbers */
.srlegal-home-menu-link::before {
  counter-increment: pr-nav;
  content: counter(pr-nav, decimal-leading-zero);
  font-family: var(--pr-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--pr-gold);
  transform: translateY(-0.35em);
  transition: color 0.35s var(--pr-ease);
}

/* Sliding arrow */
.srlegal-home-menu-link::after {
  content: "\2192";
  font-family: var(--pr-serif);
  font-size: 0.75em;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-0.75rem);
  transition: opacity 0.35s var(--pr-ease), transform 0.35s var(--pr-ease);
  color: var(--pr-oxblood);
}

.srlegal-home-menu-link:hover,
.srlegal-home-menu-link:focus-visible {
  color: var(--pr-oxblood) !important;
  padding-left: 0.85rem;
}
.srlegal-home-menu-link:hover::after,
.srlegal-home-menu-link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.srlegal-home-menu-link.is-active {
  color: var(--pr-oxblood) !important;
}

/* --------------------------------------------------------------------------
   Subsection titles — spaced small caps with gold tick
   -------------------------------------------------------------------------- */

.srlegal-subsection-title,
.srlegal-member-page .h4,
.srlegal-member-page h2.h4 {
  font-family: var(--pr-copperplate);
  font-size: 0.9rem;
  font-weight: 600 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pr-ink);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}

.srlegal-subsection-title::before,
.srlegal-member-page .h4::before,
.srlegal-member-page h2.h4::before {
  content: "";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1px;
  background: var(--pr-gold);
}

/* --------------------------------------------------------------------------
   Lists — thin gold dash instead of dot
   -------------------------------------------------------------------------- */

.srlegal-bullet-list li,
.srlegal-member-copy li {
  padding-left: 1.5rem;
  line-height: 1.7;
}

.srlegal-bullet-list li::before,
.srlegal-member-copy li::before {
  top: 0.85em;
  width: 0.8rem;
  height: 1px;
  border-radius: 0;
  background: var(--pr-gold);
  transform: none;
}

.srlegal-bullet-list li + li,
.srlegal-member-copy li + li {
  margin-top: 0.85rem;
}

/* --------------------------------------------------------------------------
   Inline links — animated underline
   -------------------------------------------------------------------------- */

.srlegal-inline-link,
.srlegal-inline-link--action {
  color: var(--pr-oxblood);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 0.12em;
  transition: color 0.3s var(--pr-ease), background-size 0.35s var(--pr-ease);
}

.srlegal-inline-link:hover,
.srlegal-inline-link--action:hover {
  color: var(--pr-oxblood-bright);
  background-size: 35% 1px;
}

/* "Ver perfil" action link */
.srlegal-inline-link--action {
  font-family: var(--pr-copperplate);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  background-size: 0 1px;
}
.srlegal-inline-link--action::after {
  content: "\2192";
  transition: transform 0.3s var(--pr-ease);
}
.srlegal-inline-link--action:hover {
  background-size: 100% 1px;
}
.srlegal-inline-link--action:hover::after {
  transform: translateX(0.3rem);
}

/* --------------------------------------------------------------------------
   Team — warm duotone portraits, reveal to colour on hover
   -------------------------------------------------------------------------- */

.srlegal-team-index-card {
  gap: 1.75rem;
}

.srlegal-team-index-photo,
.srlegal-member-header-photo,
.srlegal-team-photo,
.srlegal-member-portrait-frame {
  background: #f5eee6 !important;
  filter: none;
  mix-blend-mode: normal;
  overflow: hidden;
}

.srlegal-team-index-photo img,
.srlegal-member-header-photo img,
.srlegal-team-photo img,
.srlegal-member-portrait-frame img {
    mix-blend-mode: multiply;
  filter: grayscale(1) sepia(0.14) contrast(1.02);
  transform: scale(1.001);
  transition: filter 0.7s var(--pr-ease), transform 0.9s var(--pr-ease);
}

.srlegal-team-index-card:hover .srlegal-team-index-photo img,
.srlegal-member-header:hover .srlegal-member-header-photo img,
.srlegal-member-portrait-frame:hover img {
  filter: grayscale(0) sepia(0);
  transform: scale(1.035);
}

.srlegal-team-index-name {
  font-size: clamp(1.7rem, 2.1vw, 2.05rem);
  transition: color 0.35s var(--pr-ease);
}
.srlegal-team-index-card:hover .srlegal-team-index-name {
  color: var(--pr-oxblood) !important;
}

.srlegal-member-role {
  color: var(--pr-ink-soft);
}

/* Member detail pages */
.srlegal-member-header {
  border-bottom: 1px solid var(--pr-line);
  padding-bottom: 2rem;
}

.srlegal-member-page .h6,
.srlegal-member-page h3.h6 {
  font-family: var(--pr-serif);
  font-size: 1.12rem;
  font-weight: 600 !important;
  color: var(--pr-ink);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.srlegal-contact-block {
  border-top: 1px solid var(--pr-line);
  padding-top: 1.35rem;
}
.srlegal-contact-block + .srlegal-contact-block {
  margin-top: 1.85rem;
}
.srlegal-contact-block p {
  font-size: 1.22rem;
  line-height: 1.65;
}

.srlegal-contact-map {
  border: 1px solid var(--pr-line);
  background: var(--pr-paper-deep);
  transition: border-color 0.4s var(--pr-ease);
}
.srlegal-contact-map:hover {
  border-color: var(--pr-gold-soft);
}
/* Leaflet monochrome map */
.srlegal-map-canvas {
  width: 100%;
  min-height: 30rem;
  background: var(--pr-paper-deep);
  z-index: 0;
}

.srlegal-contact-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92) brightness(1.05);
}

.srlegal-map-marker {
  background: var(--pr-oxblood);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(102, 7, 8, 0.16);
}

.srlegal-contact-map .leaflet-container {
  font-family: var(--pr-sans);
}

.srlegal-contact-map .leaflet-tooltip {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--pr-line);
  border-radius: 0;
  background: var(--pr-paper);
  color: var(--pr-ink);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.srlegal-contact-map .leaflet-control-attribution {
  background: rgba(246, 242, 234, 0.85);
  color: var(--pr-ink-soft);
  font-size: 0.62rem;
}
.srlegal-contact-map .leaflet-control-attribution a {
  color: var(--pr-ink-soft);
}

.srlegal-contact-map .leaflet-control-zoom a {
  border-radius: 0 !important;
  border-color: var(--pr-line) !important;
  background: var(--pr-paper) !important;
  color: var(--pr-ink) !important;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.srlegal-shell--legal .srlegal-section-content {
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-right: clamp(2rem, 5vw, 4rem) !important;
  padding-left: clamp(2rem, 5vw, 4rem) !important;
}

.srlegal-shell--legal .srlegal-section-title {
  max-width: min(100%, 18ch);
  margin-right: auto;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.srlegal-legal-content {
  color: var(--pr-ink);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Language switcher — minimal ES / EN in the sidebar
   -------------------------------------------------------------------------- */

/* Hide the TranslatePress floating widget: replaced by the sidebar switcher */
.trp-language-switcher.trp-floating-switcher {
  display: none !important;
}

.srlegal-sidebar-langs {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.srlegal-sidebar-langs + .srlegal-sidebar-legal {
  margin-top: 0.4rem;
}

.srlegal-lang-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--pr-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--pr-ink-soft);
}

.srlegal-lang-flag {
  display: block;
  width: 1.6rem;
  height: auto;
  border-radius: 1px;
  transition: width 0.3s var(--pr-ease), transform 0.3s var(--pr-ease);
}

.srlegal-lang-link:hover .srlegal-lang-flag,
.srlegal-lang-link:focus-visible .srlegal-lang-flag {
  transform: translateY(-1px);
}

.srlegal-lang-link[aria-current="true"] .srlegal-lang-flag {
  width: 2.35rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (classes applied by premium.js)
   -------------------------------------------------------------------------- */

.pr-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.8s var(--pr-ease),
    transform 0.8s var(--pr-ease);
  transition-delay: var(--pr-delay, 0s);
  will-change: opacity, transform;
}

.pr-reveal.pr-visible {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   Mobile refinements
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .srlegal-sidebar-column {
    background: transparent;
    border-bottom: 1px solid var(--pr-line);
  }

  .srlegal-sidebar {
    padding-top: 2rem !important;
    padding-bottom: 1.75rem !important;
  }

  .srlegal-sidebar-menu,
  .srlegal-sidebar-legal {
    text-align: center;
  }

  .srlegal-sidebar-menu-link::before {
    display: none;
  }
  .srlegal-sidebar-menu-link:hover,
  .srlegal-sidebar-menu-link.is-active {
    transform: none;
  }

  .srlegal-page-title {
    font-size: clamp(2.3rem, 9vw, 3rem);
  }
  .srlegal-shell--home .srlegal-page-title {
    font-size: clamp(2.5rem, 10vw, 3.2rem);
  }
  .srlegal-section-title {
    font-size: clamp(2rem, 8.4vw, 2.7rem);
  }
  .srlegal-shell--legal .srlegal-section-title {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }
  .srlegal-shell--legal .srlegal-section-content {
    padding-top: 2rem !important;
    padding-right: clamp(2rem, 7vw, 2.5rem) !important;
    padding-left: clamp(2rem, 7vw, 2.5rem) !important;
  }
  .srlegal-home-menu-link {
    font-size: 1.5rem;
    gap: 1rem;
  }
  .srlegal-home-content {
    padding-top: 2.5rem;
  }

  .srlegal-sidebar-langs {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .srlegal-map-canvas {
    min-height: 18rem;
  }

  .srlegal-shell--home .srlegal-main-column::before {
    width: 70vw;
    opacity: 0.12;
  }
}

/*# sourceMappingURL=premium.css.map */