/* Clínica Pergamino — sitio público web.clinicapergamino.ar */
:root {
  --teal: #45c7b8;
  --teal-deep: #2a9d8f;
  --steel: #6b92b1;
  --steel-deep: #3d6a8a;
  --ink: #1f3342;
  --muted: #5a6f7c;
  --paper: #f2f6f8;
  --white: #ffffff;
  --line: rgba(61, 106, 138, 0.16);
  --shadow: 0 16px 40px rgba(31, 51, 66, 0.14);
  --shadow-btn: 0 8px 22px rgba(42, 157, 143, 0.35);
  --radius: 16px;
  --font-display: "Outfit", "Source Sans 3", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wp-shell { overflow-x: clip; }

/* —— Header —— */
.wp-top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.wp-top__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.wp-brand { display: flex; align-items: center; min-width: 0; }
.wp-brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.wp-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.05rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wp-nav a {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--ink);
  opacity: 0.88;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.wp-nav a:hover {
  opacity: 1;
  color: var(--steel-deep);
  border-bottom-color: var(--teal);
}

.wp-nav__accesos { position: relative; }

.wp-nav__accesos summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
  border: none;
  box-shadow: 0 6px 16px rgba(61, 106, 138, 0.28);
}

.wp-nav__accesos summary::-webkit-details-marker { display: none; }

.wp-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: grid;
  gap: 0.15rem;
}

.wp-nav__panel a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  opacity: 1;
  border-bottom: none;
  font-weight: 600;
}

.wp-nav__panel a:hover { background: rgba(69, 199, 184, 0.14); }

.wp-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* —— Buttons —— */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.wp-btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
}

.wp-btn:hover {
  transform: translateY(-2px);
}

.wp-btn:focus-visible {
  outline: 3px solid rgba(69, 199, 184, 0.55);
  outline-offset: 2px;
}

.wp-btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #062a28;
  box-shadow: var(--shadow-btn);
}

.wp-btn--primary:hover {
  box-shadow: 0 12px 28px rgba(42, 157, 143, 0.42);
}

.wp-btn--steel {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(61, 106, 138, 0.3);
}

.wp-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.wp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.wp-btn--outline {
  background: var(--white);
  border-color: var(--steel);
  color: var(--steel-deep);
}

.wp-btn--outline:hover {
  background: rgba(107, 146, 177, 0.1);
  box-shadow: 0 8px 20px rgba(61, 106, 138, 0.15);
}

/* —— Hero —— */
.wp-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  /* Fallback oscuro: si la foto/CSS en caché falla, el texto blanco sigue legible */
  background-color: #0f2330;
}

.wp-hero--photo { color: #fff; }

.wp-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 35%;
  background-color: #0f2330;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  animation: wp-hero-drift 22s var(--ease) infinite alternate;
  pointer-events: none;
}

.wp-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(12, 28, 38, 0.55);
  background-image:
    linear-gradient(105deg, rgba(12, 28, 38, 0.9) 0%, rgba(22, 55, 72, 0.75) 48%, rgba(20, 90, 85, 0.58) 100%),
    linear-gradient(to top, rgba(12, 28, 38, 0.88) 0%, rgba(12, 28, 38, 0.35) 55%);
  pointer-events: none;
}

.wp-hero--photo .wp-hero__headline,
.wp-hero--photo .wp-hero__lead {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

@keyframes wp-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

.wp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.25rem;
  color: #fff;
}

.wp-hero__logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
}

.wp-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 600;
  max-width: 28rem;
  margin: 0 0 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.wp-hero__lead {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.08rem;
}

.wp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.wp-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.75rem 1.25rem;
  color: var(--ink);
}

.wp-section--tight { padding-top: 2.25rem; }

.wp-section__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-deep);
  margin-bottom: 0.45rem;
}

.wp-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  line-height: 1.15;
  color: var(--ink);
}

.wp-section__lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.wp-prose,
.wp-prose h2,
.wp-prose p {
  color: var(--ink);
}

.wp-section--band {
  position: relative;
  max-width: none;
  padding: 0;
  margin: 2rem 0 0;
  background: #163038;
  color: var(--white);
  overflow: hidden;
}

.wp-section--band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--band-img);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.wp-section--band__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.wp-section--band .wp-section__eyebrow { color: var(--teal); }
.wp-section--band .wp-section__title { color: var(--white); }
.wp-section--band .wp-section__lead { color: rgba(255,255,255,0.85); }

/* —— Access —— */
.wp-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wp-access a {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 51, 66, 0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wp-access a:hover {
  transform: translateY(-4px);
  border-color: rgba(69, 199, 184, 0.55);
  box-shadow: var(--shadow);
}

.wp-access strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.wp-access span { color: var(--muted); font-size: 0.94rem; }

/* —— Search —— */
.wp-search {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.wp-search input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(31, 51, 66, 0.04);
}

.wp-search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(69, 199, 184, 0.25);
}

/* —— Photo cards —— */
.wp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.wp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(31, 51, 66, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.wp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.wp-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #d5e0e6;
}

.wp-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem 1.2rem;
}

.wp-card__body strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.wp-card__body span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* —— Specialty detail —— */
.wp-esp-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.wp-esp-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.wp-esp-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 28, 38, 0.9) 0%, rgba(22, 55, 72, 0.7) 55%, rgba(20, 90, 85, 0.5) 100%),
    linear-gradient(to top, rgba(12, 28, 38, 0.8), rgba(12, 28, 38, 0.2) 55%);
}

.wp-esp-hero__title,
.wp-esp-hero__lead {
  color: #fff;
}

.wp-esp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
}

.wp-esp-hero__crumb {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
  opacity: 0.95;
}

.wp-esp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wp-esp-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}

.wp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.wp-meta-pill {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 160px;
  box-shadow: 0 2px 10px rgba(31, 51, 66, 0.04);
}

.wp-meta-pill__label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-deep);
}

.wp-practica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.wp-practica {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(31, 51, 66, 0.03);
  border-left: 3px solid var(--teal);
}

.wp-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--paper) 70%, transparent);
  padding-bottom: 1rem;
}

/* —— News —— */
.wp-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.wp-news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 51, 66, 0.05);
  display: flex;
  flex-direction: column;
}

.wp-news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.wp-news-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.wp-news-card time {
  font-size: 0.8rem;
  color: var(--steel-deep);
  font-weight: 750;
}

.wp-news-card h3 {
  font-family: var(--font-display);
  margin: 0.4rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.wp-news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.wp-news-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 51, 66, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wp-news-tile:hover {
  transform: translateY(-3px);
  border-color: var(--steel);
  box-shadow: 0 10px 28px rgba(31, 51, 66, 0.1);
}
.wp-news-tile__media {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--steel-soft, #d7e3ec);
}
.wp-news-tile__media--empty {
  background:
    linear-gradient(135deg, #6b92b1 0%, #1f3342 100%);
}
.wp-news-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}
.wp-news-tile time {
  font-size: 0.78rem;
  color: var(--steel-deep);
  font-weight: 750;
  letter-spacing: 0.02em;
}
.wp-news-tile__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}
.wp-news-tile__blurb {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.wp-news-tile__more {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--steel-deep);
}

.wp-preview-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #92400e;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.wp-novedad-lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.wp-novedad-cover {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.wp-novedad-cover img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.wp-novedad-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.75rem;
}
.wp-novedad-gallery--footer {
  margin-top: 2rem;
}
.wp-novedad-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.wp-novedad-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.wp-novedad-gallery figcaption {
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.wp-novedad--nota .wp-prose--novedad {
  max-width: 38rem;
  margin-inline: auto;
}
.wp-prose--novedad img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.wp-prose--novedad figure {
  margin: 1.25rem 0;
}
.wp-prose--novedad figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.wp-prose--novedad blockquote {
  border-left: 3px solid var(--steel);
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--steel-deep);
}

/* —— Page hero / gallery —— */
.wp-page-hero {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  display: grid;
  align-items: end;
}

.wp-page-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 28, 38, 0.92) 0%, rgba(12, 28, 38, 0.55) 55%, rgba(12, 28, 38, 0.4) 100%);
}

.wp-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  color: #fff;
}

.wp-page-hero__inner .wp-section__eyebrow { color: var(--teal); }
.wp-page-hero__inner .wp-section__title { color: #fff; }

.wp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wp-gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(31, 51, 66, 0.06);
}

.wp-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.wp-gallery__item figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--steel-deep);
}

/* —— Prose / forms / footer —— */
.wp-prose { max-width: 42rem; }
.wp-prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
  font-size: 1.45rem;
}
.wp-prose p { color: var(--ink); }

.wp-form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

.wp-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.wp-input,
.wp-textarea,
.wp-select,
.wp-file {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: var(--white);
  min-height: 46px;
}

.wp-textarea { resize: vertical; min-height: 90px; }
.wp-error { color: #b42318; font-size: 0.85rem; font-weight: 600; }
.wp-success {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(69, 199, 184, 0.18);
  border: 1px solid rgba(42, 157, 143, 0.35);
  color: #0f4a45;
  font-weight: 650;
  margin-bottom: 1.25rem;
}

.wp-mvh {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.wp-mvh__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 16px rgba(31, 51, 66, 0.05);
  color: var(--ink);
}

.wp-mvh__card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  color: var(--steel-deep);
}

.wp-mvh__card p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  line-height: 1.6;
}

.wp-mvh__card p:last-child { margin-bottom: 0; }

.wp-contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .wp-contacto-grid { grid-template-columns: 1fr; }
}

/* —— Guías / instructivos pacientes —— */
.wp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.wp-breadcrumb a {
  color: var(--steel-deep);
  font-weight: 600;
}

.wp-breadcrumb a:hover { color: var(--teal-deep); }

.wp-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.wp-guide-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 200px;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(31, 51, 66, 0.06);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
  overflow: hidden;
}

.wp-guide-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--steel));
}

.wp-guide-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(69, 199, 184, 0.45);
  box-shadow: var(--shadow);
}

.wp-guide-tile--accent {
  background: linear-gradient(145deg, #1f3342 0%, #3d6a8a 100%);
  color: #fff;
  border-color: transparent;
}

.wp-guide-tile--accent::before {
  background: var(--teal);
}

.wp-guide-tile--accent .wp-guide-tile__blurb,
.wp-guide-tile--accent .wp-guide-tile__more {
  color: rgba(255, 255, 255, 0.82);
}

.wp-guide-tile--accent .wp-guide-tile__num {
  color: var(--teal);
}

.wp-guide-tile__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(69, 199, 184, 0.14);
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
}

.wp-guide-tile--accent .wp-guide-tile__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--teal);
}

.wp-guide-tile__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wp-guide-tile__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.wp-guide-tile__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}

.wp-guide-tile__blurb {
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--muted);
}

.wp-guide-tile__more {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
}

.wp-guide-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(69, 199, 184, 0.12), rgba(107, 146, 177, 0.16));
  border: 1px solid var(--line);
  color: var(--ink);
}

.wp-guide-cta-bar strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.wp-guide-cta-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.wp-guide-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(31, 51, 66, 0.05);
}

.wp-guide-hero__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--teal), var(--steel-deep));
  color: #fff;
}

.wp-guide-hero__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}

.wp-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.wp-step__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
  min-width: 2.2rem;
  color: var(--teal-deep);
}

.wp-step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.wp-step__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.wp-tips {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.wp-tip {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(107, 146, 177, 0.1);
}

.wp-tip strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--steel-deep);
}

.wp-tip p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.wp-tip--warn {
  background: rgba(224, 122, 95, 0.12);
  border-color: rgba(224, 122, 95, 0.35);
}

.wp-tip--warn strong { color: #c45c42; }

.wp-guide-grid .wp-guide-tile.wp-reveal,
.wp-steps .wp-step.wp-reveal {
  opacity: 1;
  transform: translateY(12px);
}

.wp-guide-grid .wp-guide-tile.wp-reveal.is-in,
.wp-steps .wp-step.wp-reveal.is-in {
  transform: none;
}

@media (max-width: 640px) {
  .wp-guide-hero { grid-template-columns: 1fr; }
  .wp-guide-cta-bar { align-items: stretch; }
}

.wp-derechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.wp-derecho {
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  color: #fff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 10px 28px rgba(31, 51, 66, 0.14);
}

.wp-derecho__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  opacity: 0.9;
  letter-spacing: 0.04em;
}

.wp-derecho__icon {
  width: 36px;
  height: 36px;
  opacity: 0.95;
}

.wp-derecho__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wp-derecho__text {
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
}

.wp-derecho--0 { background: linear-gradient(145deg, #45c7b8, #2a9d8f); }
.wp-derecho--1 { background: linear-gradient(145deg, #6b92b1, #3d6a8a); }
.wp-derecho--2 { background: linear-gradient(145deg, #e07a5f, #c45c42); }
.wp-derecho--3 { background: linear-gradient(145deg, #f2cc8f, #d4a373); color: #1f3342; }
.wp-derecho--4 { background: linear-gradient(145deg, #81b29a, #3d7a62); }
.wp-derecho--3 .wp-derecho__icon { color: #1f3342; }

.wp-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #132832;
  color: rgba(255, 255, 255, 0.88);
}

.wp-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.75rem;
}

.wp-footer__logo {
  width: 170px;
  height: auto;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.wp-footer h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal);
}

.wp-footer a { color: rgba(255, 255, 255, 0.88); }
.wp-footer a:hover { color: var(--teal); }
.wp-footer p,
.wp-footer li { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.wp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }

.wp-footer__copy {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.wp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.wp-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Derechos: siempre visibles si falla el JS; el reveal solo suma movimiento */
.wp-derechos-grid .wp-derecho.wp-reveal {
  opacity: 1;
  transform: translateY(14px);
}

.wp-derechos-grid .wp-derecho.wp-reveal.is-in {
  transform: none;
}

@media (max-width: 860px) {
  .wp-menu-btn { display: inline-flex; }
  .wp-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .wp-nav.is-open { display: flex; }
  .wp-top__inner { flex-wrap: wrap; }
  .wp-brand__logo { height: 44px; }
  .wp-access { grid-template-columns: 1fr; }
  .wp-footer__inner { grid-template-columns: 1fr; }
  .wp-nav__accesos .wp-nav__panel {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
  }
  .wp-esp-hero { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-hero__photo { animation: none; }
  .wp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wp-btn:hover,
  .wp-access a:hover,
  .wp-card:hover { transform: none; }
}
