:root {
  --bg: #ece7de;
  --surface: #ffffff;
  --surface-soft: #fbf7ee;
  --text: #1f2933;
  --muted: #667085;
  --border: rgba(31, 41, 51, 0.12);
  --gold: #c79a3b;
  --gold-dark: #9b7425;
  --blue: #1d4ed8;
  --green: #047857;
  --shadow: 0 22px 60px rgba(31, 41, 51, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199, 154, 59, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 32rem),
    linear-gradient(180deg, #f0ece4 0%, #e9e5dc 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   HEADER GENERAL
   ========================================================= */

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1f2933, #3f4b5a);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.22);
}

.logo-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.header-nav,
.header-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

/* =========================================================
   HOME
   ========================================================= */

.home-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 48px;
}

.home-hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  padding: 56px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
    linear-gradient(135deg, rgba(199,154,59,0.18), rgba(29,78,216,0.12));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.18);
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.14);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: #17202a;
}

.home-hero-desc {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1f2933, #3f4b5a);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.22);
}

.hero-btn.secondary {
  color: #1f2933;
  background: #fff;
  border: 1px solid var(--border);
}

.hero-panel {
  position: relative;
  z-index: 2;
  background: #1f2933;
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(31, 41, 51, 0.26);
}

.hero-panel-top {
  display: flex;
  gap: 8px;
  padding-bottom: 20px;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.hero-panel-body {
  display: grid;
  gap: 14px;
}

.mini-stat {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.mini-stat-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.64);
  font-size: 0.85rem;
}

.mini-stat strong {
  font-size: 1.35rem;
}

.home-body {
  padding-top: 58px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.section-heading h2 {
  margin: 0;
  color: #17202a;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-heading.compact {
  margin-top: 66px;
}

.org-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.org-big-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(31,41,51,0.08);
  box-shadow:
    0 20px 45px rgba(31, 41, 51, 0.11),
    0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.org-big-card::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
}

.org-big-card.ss::after {
  background: rgba(4, 120, 87, 0.1);
}

.org-big-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(31, 41, 51, 0.16),
    0 1px 0 rgba(255,255,255,0.95) inset;
  border-color: rgba(199, 154, 59, 0.34);
}

.org-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.org-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-size: 2.1rem;
}

.org-big-card-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.14);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.org-big-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.org-big-card-body h3 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.org-big-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.sub-tag {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
}

.org-big-card-btn {
  margin-top: auto;
  padding-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17202a;
  font-weight: 900;
}

.org-big-card-btn span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #17202a;
  color: #fff;
}

.section-block {
  margin-top: 18px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 245px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31,41,51,0.08);
  box-shadow:
    0 16px 36px rgba(31, 41, 51, 0.08),
    0 1px 0 rgba(255,255,255,0.9) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(31, 41, 51, 0.12),
    0 1px 0 rgba(255,255,255,0.95) inset;
}

.fc-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-size: 1.6rem;
}

.feature-card h4 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.96rem;
}

/* =========================================================
   HERO INTERIOR
   ========================================================= */

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 28px;
}

.page-hero-inner {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(199,154,59,0.2), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.84));
  border: 1px solid rgba(31,41,51,0.08);
  box-shadow:
    0 22px 60px rgba(31, 41, 51, 0.12),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

.page-hero.ss .page-hero-inner {
  background:
    radial-gradient(circle at top left, rgba(4,120,87,0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(236,253,245,0.8));
}

.page-hero-inner::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  pointer-events: none;
}

.page-hero.ss .page-hero-inner::after {
  background: rgba(4, 120, 87, 0.1);
}

.page-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.1);
  color: #17202a;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.11);
}

.page-back span {
  font-size: 1.1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #17202a;
  font-weight: 700;
}

.breadcrumbs .current {
  color: var(--gold-dark);
  font-weight: 900;
}

.page-hero.ss .breadcrumbs .current {
  color: var(--green);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: end;
}

.page-hero-main {
  min-width: 0;
}

.page-hero-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.14);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero.ss .page-hero-kicker {
  background: rgba(4, 120, 87, 0.12);
  color: var(--green);
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #17202a;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.page-hero-desc {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-hero-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(31,41,51,0.08);
  box-shadow:
    0 16px 36px rgba(31, 41, 51, 0.09),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

.page-hero-card-label {
  display: block;
  margin-bottom: 14px;
  color: #17202a;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.page-hero-card-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 750;
}

/* =========================================================
   PÁGINAS DE ORGANISMO
   ========================================================= */

.org-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

.org-intro {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.org-intro h2 {
  margin: 0;
  color: #17202a;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.org-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.section-kicker.ss {
  color: var(--green);
}

.org-body {
  display: grid;
  gap: 44px;
}

.corps-block {
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow:
    0 18px 40px rgba(31, 41, 51, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
}

.corps-block.ss {
  background:
    linear-gradient(180deg, rgba(240, 252, 247, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(4, 120, 87, 0.10);
  box-shadow:
    0 18px 40px rgba(31, 41, 51, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
}

.corps-header {
  margin-bottom: 26px;
}

.corps-heading {
  display: flex;
  gap: 18px;
  align-items: center;
}

.corps-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(199, 154, 59, 0.13);
  font-size: 2rem;
}

.corps-icon.ss {
  background: rgba(4, 120, 87, 0.12);
}

.corps-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.14);
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.corps-badge.ss {
  background: rgba(4, 120, 87, 0.12);
  color: var(--green);
}

.corps-name {
  margin: 0;
  color: #17202a;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.corps-desc {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ph-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.10);
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(31, 41, 51, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.ph-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(199,154,59,0.65), rgba(199,154,59,0.12));
  z-index: 2;
}

.ph-card.ss::before {
  background: linear-gradient(90deg, rgba(4,120,87,0.65), rgba(4,120,87,0.12));
}

.ph-card::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  pointer-events: none;
}

.ph-card.ss::after {
  background: rgba(4, 120, 87, 0.08);
}

.ph-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 48px rgba(31, 41, 51, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  border-color: rgba(199, 154, 59, 0.38);
}

.ph-card.ss:hover {
  border-color: rgba(4, 120, 87, 0.34);
}

.ph-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.ph-card-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-size: 2rem;
}

.ph-card-icon.ss {
  background: #ecfdf5;
}

.card-yr-badge {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(199, 154, 59, 0.14);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.card-yr-badge.ss {
  background: rgba(4, 120, 87, 0.12);
  color: var(--green);
}

.ph-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-year {
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-year.ss {
  color: var(--green);
}

.card-title {
  margin: 0 0 10px;
  color: #17202a;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 750;
}

.card-btn {
  margin-top: auto;
  padding-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #17202a;
  font-weight: 900;
}

.card-btn.ss {
  color: #064e3b;
}

.card-btn-arr {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #17202a;
  color: #fff;
  transition: transform 0.2s ease;
}

.card-btn.ss .card-btn-arr {
  background: #047857;
}

.ph-card:hover .card-btn-arr {
  transform: translateX(3px);
}

/* =========================================================
   PÁGINA DE CONVOCATORIA
   ========================================================= */

.conv-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.conv-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}

.conv-top-main {
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(250,247,241,0.96), rgba(255,255,255,0.98));
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow:
    0 18px 40px rgba(31, 41, 51, 0.08),
    0 2px 0 rgba(255,255,255,0.75) inset;
}

.page-hero.ss ~ .conv-page .conv-top-main {
  background:
    linear-gradient(180deg, rgba(240,252,247,0.96), rgba(255,255,255,0.98));
  border-color: rgba(4, 120, 87, 0.10);
}

.conv-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.page-hero.ss ~ .conv-page .conv-kicker {
  color: var(--green);
}

.conv-top h2 {
  margin: 0;
  color: #17202a;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.conv-top p {
  max-width: 740px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.conv-switch {
  padding: 24px;
  border-radius: 30px;
  background: #17202a;
  color: #fff;
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.page-hero.ss ~ .conv-page .conv-switch {
  background: #064e3b;
}

.conv-switch span {
  color: rgba(255,255,255,0.62);
  font-size: 0.86rem;
  font-weight: 700;
}

.conv-switch strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.conv-switch a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease;
}

.conv-switch a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}

.conv-switch a span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #17202a;
}

.conv-section {
  margin-top: 28px;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(250,247,241,0.96), rgba(255,255,255,0.98));
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow:
    0 18px 40px rgba(31, 41, 51, 0.08),
    0 2px 0 rgba(255,255,255,0.75) inset;
}

.page-hero.ss ~ .conv-page .conv-section {
  background:
    linear-gradient(180deg, rgba(240,252,247,0.96), rgba(255,255,255,0.98));
  border-color: rgba(4, 120, 87, 0.10);
}

.conv-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.conv-section-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(199,154,59,0.13);
  font-size: 1.8rem;
}

.page-hero.ss ~ .conv-page .conv-section-icon {
  background: rgba(4,120,87,0.12);
}

.conv-section-title p {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.page-hero.ss ~ .conv-page .conv-section-title p {
  color: var(--green);
}

.conv-section-title h3 {
  margin: 0;
  color: #17202a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}

.conv-resource-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.10);
  box-shadow:
    0 10px 24px rgba(31, 41, 51, 0.06),
    0 1px 0 rgba(255,255,255,0.9) inset;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.conv-resource-card::before,
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(199,154,59,0.65), rgba(199,154,59,0.12));
}

.page-hero.ss ~ .conv-page .conv-resource-card::before,
.page-hero.ss ~ .conv-page .tool-card::before {
  background: linear-gradient(90deg, rgba(4,120,87,0.65), rgba(4,120,87,0.12));
}

.resource-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(199,154,59,0.14);
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-hero.ss ~ .conv-page .resource-label {
  background: rgba(4,120,87,0.12);
  color: var(--green);
}

.conv-resource-main h4,
.tool-card h4 {
  margin: 0 0 10px;
  color: #17202a;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.conv-resource-main p,
.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.conv-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conv-actions {
  justify-content: flex-end;
}

.tool-actions {
  margin-top: auto;
  justify-content: flex-start;
}

.conv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.conv-btn:hover {
  transform: translateY(-2px);
}

.conv-btn.primary {
  color: #fff;
  background: #17202a;
  box-shadow: 0 12px 24px rgba(31,41,51,0.16);
}

.page-hero.ss ~ .conv-page .conv-btn.primary {
  background: #047857;
}

.conv-btn.secondary {
  color: #17202a;
  background: #f3f4f6;
  border: 1px solid rgba(31,41,51,0.08);
}

.conv-btn.disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background: #f3f4f6;
  border: 1px solid rgba(31,41,51,0.06);
  box-shadow: none;
}

.conv-btn.disabled:hover {
  transform: none;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.10);
  box-shadow:
    0 10px 24px rgba(31, 41, 51, 0.06),
    0 1px 0 rgba(255,255,255,0.9) inset;
  display: flex;
  flex-direction: column;
}

.tool-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-size: 1.8rem;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tool-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 800;
}

.offline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.offline-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(31,41,51,0.10);
  box-shadow: 0 10px 24px rgba(31,41,51,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(31,41,51,0.11);
}

.offline-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.offline-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.offline-card strong {
  display: block;
  color: #17202a;
  font-size: 1.15rem;
}

.offline-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

/* =========================================================
   MODAL YOUTUBE
   ========================================================= */

.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.84);
}

.yt-modal.is-open {
  display: flex;
}

.yt-modal-panel {
  position: relative;
  width: min(920px, 96vw);
}

.yt-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.yt-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.yt-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   COMPATIBILIDAD CON CLASES ANTIGUAS
   ========================================================= */

.org-hero,
.inner-hero {
  display: block;
}

.ph-card-img,
.card-pat,
.card-glow,
.card-icon,
.corps-line {
  display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 44px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(31,41,51,0.08);
  box-shadow:
    0 12px 28px rgba(31,41,51,0.06),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-name {
  color: #17202a;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31,41,51,0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  color: #17202a;
  box-shadow: 0 10px 22px rgba(31,41,51,0.08);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 920px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .org-cards-grid {
    grid-template-columns: 1fr;
  }

  .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-hero-card {
    max-width: 520px;
  }

  .org-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .conv-top {
    grid-template-columns: 1fr;
  }

  .conv-switch {
    min-height: 180px;
  }

  .conv-resource-card {
    grid-template-columns: 1fr;
  }

  .conv-actions {
    justify-content: flex-start;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .offline-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px 14px;
  }

  .header-tagline,
  .header-nav {
    text-align: left;
  }

  .home-page {
    padding-inline: 14px;
  }

  .home-hero {
    padding: 28px;
    border-radius: 26px;
  }

  .home-hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .org-big-card {
    min-height: auto;
  }

  .page-hero {
    padding-inline: 14px;
  }

  .page-hero-inner {
    padding: 22px;
    border-radius: 26px;
  }

  .page-hero-nav {
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-bottom: 32px;
  }

  .breadcrumbs {
    justify-content: flex-start;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .page-hero-card-grid {
    grid-template-columns: 1fr;
  }

  .org-page,
  .conv-page {
    padding: 28px 14px 48px;
  }

  .corps-block,
  .conv-section,
  .conv-top-main {
    padding: 22px;
    border-radius: 24px;
  }

  .corps-heading {
    align-items: flex-start;
  }

  .corps-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 18px;
    font-size: 1.65rem;
  }

  .cards-grid {
    gap: 16px;
  }

  .ph-card,
  .tool-card,
  .conv-resource-card,
  .offline-card {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .ph-card::before,
  .tool-card::before,
  .conv-resource-card::before {
    left: 20px;
    right: 20px;
  }

  .card-pills {
    gap: 7px;
  }

  .pill {
    font-size: 0.75rem;
  }

  .conv-section-title {
    align-items: flex-start;
  }

  .conv-section-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 18px;
    font-size: 1.55rem;
  }

  .conv-btn {
    width: 100%;
  }

  .tool-actions,
  .conv-actions {
    width: 100%;
  }

  .site-footer {
    padding: 28px 14px 36px;
  }

  .site-footer-inner {
    padding: 20px;
    border-radius: 22px;
    gap: 18px;
  }

  .footer-brand {
    display: block;
    font-size: 0.9rem;
  }

  .footer-brand span {
    display: inline;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .footer-links a {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    white-space: normal;
    text-align: center;
  }
}