:root {
  --primary: #fd9086;
  --secondary: #2A6056;
  --soft: #ffffff;
  --ink: #262626;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #262626;
  --muted: #7E7E7E;
  --line: #e9ecef;
  --font-main: 'Open Sans', system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 34, 39, 0.08);
  --container: 1120px;
}

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-size: 16px;
}

img {
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2a6056;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.cookie-consent {
  position: fixed;
  z-index: 100000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem;
  color: #263b36;
  background: #fff;
  border: 1px solid rgba(42, 96, 86, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(20, 48, 43, 0.2);
}

.cookie-consent.is-open {
  display: block;
}

.cookie-consent__title {
  margin: 0 0 0.4rem;
  color: #2a6056;
  font-family: Lora, serif;
  font-size: 1.25rem;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie-button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #2a6056;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-button--primary {
  color: #fff;
  background: #2a6056;
}

.cookie-button--secondary {
  color: #2a6056;
  background: #fff;
}

.cookie-settings {
  width: min(560px, calc(100% - 2rem));
  padding: 0;
  color: #263b36;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 65px rgba(20, 48, 43, 0.28);
}

.cookie-settings::backdrop {
  background: rgba(18, 37, 34, 0.55);
}

.cookie-settings__inner {
  padding: 1.5rem;
}

.cookie-settings__title {
  margin: 0 0 0.5rem;
  color: #2a6056;
  font-family: Lora, serif;
  font-size: 1.5rem;
}

.cookie-settings__intro {
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid #dce6e3;
}

.cookie-category h3,
.cookie-category p {
  margin: 0;
}

.cookie-category p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-category__status {
  color: #2a6056;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.cookie-switch {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: #2a6056;
}

.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.tm-footer .cookie-settings-trigger-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.cookie-settings-trigger {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 639px) {
  .cookie-consent__actions,
  .cookie-settings__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-button {
    width: 100%;
  }
}

.ssg-error-page {
  padding: clamp(4rem, 12vw, 7rem) 1.5rem;
  text-align: center;
}

.ssg-error-page__code {
  color: #2a6056;
}

.ssg-error-page__link {
  color: #2a6056;
}

/* Contraste AA: #7e7e7e sobre blanco queda en 4.0:1 y el rosa de marca, por debajo de 3:1. */
.uk-navbar-nav > li > a,
.uk-subnav > * > :first-child {
  color: #5e5e5e;
}

.uk-text-meta,
.uk-text-meta > a {
  color: #7a5854;
}

h1 .uk-text-primary {
  color: #b84e46 !important;
}

.tm-header-mobile .uk-navbar-toggle {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.m-quotes {
  display: grid;
  gap: 1rem;
}

.m-quote {
  margin: 0;
  padding: 1.25rem 1.1rem;
  background: #f7f7fa;
  border-left: 3px solid #2a6056;
}

.m-quote p {
  margin: 0;
  color: #262626;
  font-size: 0.95rem;
  line-height: 1.55;
}

.m-quote footer {
  margin-top: 0.85rem;
  color: #7a5854;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Keyboard access to the main content */
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100000; padding: .75rem 1rem; background: #fff; color: #111; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); outline: 3px solid currentColor; }
