:root {
  --dbr-header-height: 5.25rem;
  --dbr-border: rgba(16, 42, 67, 0.12);
  --dbr-shadow: 0 18px 55px rgba(16, 42, 67, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--wp--preset--color--gold);
  outline-offset: 3px;
}

.derechos-skip-link {
  position: fixed;
  z-index: 99999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.derechos-skip-link:focus {
  transform: translateY(0);
}

.derechos-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--dbr-border);
  background: rgba(252, 252, 250, 0.94);
  backdrop-filter: blur(18px);
}

.admin-bar .derechos-site-header {
  top: 32px;
}

.derechos-brand-mark {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.derechos-eyebrow {
  margin-bottom: 0.7rem;
  color: var(--wp--preset--color--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.derechos-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.derechos-hero::before,
.derechos-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(1px);
  opacity: 0.9;
}

.derechos-hero::before {
  top: -8rem;
  right: -8rem;
  width: 21rem;
  height: 21rem;
  background: rgba(21, 94, 117, 0.1);
}

.derechos-hero::after {
  bottom: -11rem;
  left: -9rem;
  width: 25rem;
  height: 25rem;
  background: rgba(184, 137, 58, 0.1);
}

.derechos-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--dbr-shadow);
}

.derechos-hero-card::after {
  position: absolute;
  right: -2.8rem;
  bottom: -3.8rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.derechos-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.derechos-card {
  height: 100%;
  border: 1px solid var(--dbr-border);
  background: var(--wp--preset--color--white);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.derechos-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 117, 0.26);
  box-shadow: var(--dbr-shadow);
}

.derechos-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--petroleum);
  font-size: 1.25rem;
  font-weight: 800;
}

.derechos-step-number {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  font-weight: 800;
}

.derechos-language-chip {
  min-width: 5.5rem;
  border: 1px solid var(--dbr-border);
  border-radius: 999px;
  background: var(--wp--preset--color--white);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
}

.derechos-notice {
  border-left: 4px solid var(--wp--preset--color--gold);
}

.derechos-faq details {
  border-bottom: 1px solid var(--dbr-border);
}

.derechos-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.derechos-faq summary::-webkit-details-marker {
  display: none;
}

.derechos-faq summary::after {
  float: right;
  content: "+";
  color: var(--wp--preset--color--petroleum);
  font-size: 1.4rem;
  line-height: 1;
}

.derechos-faq details[open] summary::after {
  content: "−";
}

.derechos-footer a {
  color: inherit;
}

.wp-block-button__link {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.18);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--petroleum);
}

.wp-block-post-template.is-layout-grid > li {
  min-width: 0;
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.25rem;
  background: var(--wp--preset--color--paper);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: stretch;
  gap: 1rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  width: 100%;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dbr-border);
  font-size: 1.1rem;
}

@media (max-width: 781px) {
  :root {
    --dbr-header-height: 4.5rem;
  }

  .admin-bar .derechos-site-header {
    top: 46px;
  }

  .derechos-mobile-stack {
    gap: 1.25rem !important;
  }

  .derechos-mobile-center {
    text-align: center;
  }

  .derechos-mobile-center .wp-block-buttons {
    justify-content: center;
  }

  .derechos-hero .wp-block-heading {
    max-width: 14ch;
  }

  .derechos-hero-card {
    margin-top: 0.5rem;
  }

  .derechos-card:hover,
  .wp-block-button__link:hover {
    transform: none;
  }
}

@media (max-width: 360px) {
  body {
    --wp--preset--spacing--60: 2.4rem;
    --wp--preset--spacing--70: 3.25rem;
  }

  .derechos-brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .wp-block-site-title {
    font-size: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .derechos-site-header,
  .derechos-footer,
  .wp-block-buttons,
  .derechos-skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
