/* =========================================================
   CEDECO — Entidad de Certificación y Evaluación
   Hoja de estilos compartida
   ========================================================= */
.logo-navbar {
  height: 42px;
  width: auto;
}

:root {
  --maroon-900: #4a0f22;
  --maroon-800: #5c1329;
  --maroon-700: #7a1a34;
  --maroon-600: #8f1f3d;
  --maroon-100: #f7e9ee;
  --maroon-50: #fbf3f5;
  --gray-900: #2c2c2e;
  --gray-700: #54565a;
  --gray-500: #8a8c8f;
  --gray-300: #d9d7d8;
  --gray-100: #f4f3f3;
  --white: #ffffff;
  --gold: #c99a3c;
  --teal: #3f6b70;
  --navy: #2b2e63;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 15, 34, .10);
  --shadow-sm: 0 4px 14px rgba(44, 44, 46, .08);
  --maxw: 1180px;
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--maroon-800);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--gray-700);
}

a {
  color: var(--maroon-700);
  text-decoration: none;
}

a:hover {
  color: var(--maroon-900);
}

ul {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .7em;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-alt {
  background: var(--maroon-50);
}

.section-dark {
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, .85);
}

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

.lede {
  font-size: 1.1rem;
  max-width: 760px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

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

.btn-primary {
  background: var(--white);
  color: var(--maroon-800);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--maroon-100);
  color: var(--maroon-900);
}

.section:not(.section-dark) .btn-primary {
  background: var(--maroon-700);
  color: var(--white);
}

.section:not(.section-dark) .btn-primary:hover {
  background: var(--maroon-900);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(255, 255, 255, .7);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.section:not(.section-dark) .btn-outline {
  border-color: var(--maroon-700);
  color: var(--maroon-700);
}

.section:not(.section-dark) .btn-outline:hover {
  background: var(--maroon-700);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--maroon-800);
  font-size: 1.25rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.brand-text small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--gray-900);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon-700);
  border-color: var(--gold);
}

.nav-cta {
  background: var(--maroon-700);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  border: none !important;
}

.nav-cta:hover {
  background: var(--maroon-900);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--maroon-800);
  border-radius: 2px;
}

@media(max-width:900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-300);
    transition: max-height .25s ease;
  }

  .nav-links.open {
    max-height: 520px;
  }

  .nav-links li {
    border-top: 1px solid var(--gray-100);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
  }

  .nav-cta {
    border-radius: 0;
    margin: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 154, 60, .18), transparent 45%),
    linear-gradient(135deg, var(--maroon-900) 0%, var(--maroon-700) 55%, var(--maroon-600) 100%);
  color: var(--white);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .4;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  max-width: 820px;
}

.hero p.lede {
  color: rgba(255, 255, 255, .88);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.page-hero {
  background: linear-gradient(135deg, var(--maroon-900), var(--maroon-700));
  color: var(--white);
  padding: 64px 0 56px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .3em;
}

.page-hero p {
  color: rgba(255, 255, 255, .85);
  max-width: 700px;
  margin: 0;
}

.breadcrumb {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media(max-width:940px) {

  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:640px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.card h3 {
  margin-bottom: .5em;
}

.card ul {
  margin-top: .8em;
}

.card ul li {
  margin-bottom: .5em;
  padding-left: 1.3em;
  position: relative;
  color: var(--gray-700);
  font-size: .95rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-100);
  color: var(--maroon-700);
  font-size: 1.4rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.stat {
  flex: 1 1 160px;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--gray-100);
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--maroon-700);
  font-weight: 800;
}

.stat span {
  font-size: .82rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Value cards with color accents ---------- */
.accent-card {
  border-top: 4px solid var(--maroon-700);
}

.accent-card.teal {
  border-top-color: var(--teal);
}

.accent-card.navy {
  border-top-color: var(--navy);
}

.accent-card.gold {
  border-top-color: var(--gold);
}

/* ---------- Timeline / process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

@media(max-width:940px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: .95rem;
}

.step p {
  font-size: .88rem;
  margin: 0;
  color: var(--gray-700);
}

.stage {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.stage-tag {
  background: var(--maroon-700);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.stage ul {
  list-style: none;
}

.stage ul li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: .55em;
  color: var(--gray-700);
  font-size: .95rem;
}

.stage ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--maroon-700);
  font-weight: 700;
}

/* ---------- Tables ---------- */
.table-wrap {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

thead th {
  background: var(--maroon-700);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

tbody td {
  padding: 12px 18px;
  font-size: .92rem;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-100);
}

tbody tr:nth-child(even) {
  background: var(--gray-100);
}

tbody tr:hover {
  background: var(--maroon-50);
}

td.code {
  font-weight: 700;
  color: var(--maroon-800);
  white-space: nowrap;
}

td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

td.center {
  text-align: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.filter-bar input[type="search"] {
  flex: 1 1 260px;
  padding: 13px 18px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: .95rem;
  font-family: inherit;
}

.filter-bar input[type="search"]:focus {
  outline: 2px solid var(--maroon-700);
  outline-offset: 1px;
}

.result-count {
  font-size: .85rem;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ---------- Directorio / org chart ---------- */
.org-lead {
  max-width: 520px;
  margin: 0 auto 30px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.org-lead .stage-tag {
  background: var(--maroon-900);
}

/* ---------- Quote block ---------- */
.quote-block {
  text-align: center;
  padding: 50px 24px;
  border-left: 4px solid var(--gold);
  background: var(--maroon-50);
  border-radius: var(--radius);
}

.quote-block p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--maroon-800);
  font-weight: 600;
  margin-bottom: .4em;
}

.quote-block span {
  font-size: .9rem;
  color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-300);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .icon-badge {
  margin-bottom: 0;
}

.contact-item h4 {
  margin: 0 0 .2em;
  color: var(--maroon-800);
}

.contact-item p {
  margin: 0;
}

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* ---------- Aliados ---------- */
.ally-group {
  margin-bottom: 30px;
}

.ally-group h3 {
  display: inline-block;
  background: var(--maroon-700);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .95rem;
  margin-bottom: 16px;
}

.ally-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ally-chip {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .86rem;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.ally-chip strong {
  color: var(--maroon-800);
  display: block;
  font-size: .9rem;
}

.ally-chip small {
  color: var(--gray-500);
}

/* ---------- Tabs ---------- */
.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--maroon-700);
  background: var(--white);
  color: var(--maroon-700);
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--maroon-700);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade .3s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  color: var(--white);
  border-radius: 24px;
  padding: 52px;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

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

@media(max-width:520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1em;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, .7);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links li {
  margin-bottom: .6em;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--gold), #a67a24);
}

.note {
  font-size: .85rem;
  color: var(--gray-500);
  font-style: italic;
}

.pill {
  display: inline-block;
  background: var(--maroon-100);
  color: var(--maroon-800);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}


/* convenios */
.convenio-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: .3s;
  height: 100%;
}

.convenio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.convenio-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.convenio-body {
  padding: 2rem;
  text-align: center;
}

.convenio-body h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
}

.convenio-body p {
  color: #6c757d;
  margin: 0;
}

.convenio-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.convenio-logo {
  max-width: 170px;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
  margin-right: 15px;
}

/* mapa */
.mapa-wrapper {
  background: #fff;
  padding: 1rem;
  min-height: 420px;
}

.panel-info {
  background: #ffffff;
  padding: 1.5rem;
}

.tooltip {
  position: absolute;
  background: #1a202c;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: none;
  z-index: 9999;
}

.lista-centros .centro-item {
  padding: 10px 12px;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 6px;
  margin-bottom: 6px;
}

.lista-centros .centro-item:hover {
  background: #f1f5f9;
  border-left-color: #e63946;
}

.lista-centros .centro-item.activo {
  background: #edf2f7;
  border-left-color: #1d3557;
}

.estado-activo {
  fill: #457b9d !important;
}

.punto-centro {
  fill: #e63946;
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.punto-centro:hover {
  transform: scale(1.4);
}

.logo-OC{
  width: 155px;
}