:root {
    --color-primario: #005b96;
    --color-secundario: #00a8e8;
    --color-acento: #f9a826;
    --color-fondo: #f5f7fb;
    --color-texto: #1f2933;
    --color-card: #ffffff;
    --sombra-suave: 0 10px 25px rgba(0, 0, 0, 0.06);
    --radio: 14px;
    --transicion: 0.25s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* CABECERA Y NAVEGACIÓN */
  
  header {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: white;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra-suave);
  }
  
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .brand-title {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-align: center;
  }
  
  .brand-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    text-align: center;
  }
  
  nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
  }
  
  .nav-links {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    transition: background var(--transicion), color var(--transicion), transform var(--transicion);
    font-weight: 500;
    opacity: 0.95;
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
  }
  
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.22);
    color: #0f172a;
  }
  
  .nav-cta {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: white;
    color: var(--color-primario);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
  }
  
  .nav-cta:hover {
    transform: translateY(-1px);
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  /* HERO / INICIO SOLO PARA INDEX */
  
  .hero {
    max-width: 1200px;
    margin: 1.5rem auto 1rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
    color: #102a43;
  }
  
  .hero-text p {
    font-size: 0.98rem;
    max-width: 600px;
    margin-bottom: 1rem;
  }
  
  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .badge {
    background: #e0f2fe;
    color: #075985;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .btn-primary,
  .btn-outline {
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion), color var(--transicion);
  }
  
  .btn-primary {
    background: var(--color-primario);
    color: white;
    box-shadow: var(--sombra-suave);
  }
  
  .btn-primary:hover {
    background: #00416b;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--color-primario);
    border: 1px solid rgba(15, 23, 42, 0.15);
  }
  
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.85);
  }
  
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.1rem;
    font-size: 0.85rem;
  }
  
  .hero-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #0b3a5c;
  }
  
  .hero-visual {
    background: radial-gradient(circle at top left, #e0f2fe, #eff6ff);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--sombra-suave);
    display: grid;
    gap: 1rem;
  }
  
  .hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
  }
  
  .hero-pill {
    background: white;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
  }
  
  .hero-pill span.icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--color-secundario);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    font-size: 0.8rem;
  }
  
  .hero-grid-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  }
  
  .hero-grid-card h4 {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    color: #0b3a5c;
  }
  
  .hero-grid-card p {
    font-size: 0.78rem;
  }
  
  /* CONTENEDOR PRINCIPAL */
  
  main {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem 2rem;
  }
  
  .section {
    margin-top: 2.5rem;
  }
  
  .section-header {
    margin-bottom: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  
  .section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #64748b;
    font-weight: 700;
  }
  
  .section-title {
    font-size: 1.3rem;
    color: #0f172a;
  }
  
  .section-description {
    font-size: 0.9rem;
    color: #4b5563;
    /*max-width: 800px;*/
  }
  
  /* TARJETAS Y GRID GENÉRICO */
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .card {
    background: var(--color-card);
    border-radius: var(--radio);
    padding: 1rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.86rem;
  }
  
    .card img{
      min-width: 100%;
      min-height: 100%;;
      border-radius: 10px 10px 0px 0px;
      height: auto;
      width: 100%;
    }

    .card span:first-of-type{
      font-size: 10px;
      color: #999;
      margin: 0px 0px 5px 0px;
    }
  
  .card h3 {
    font-size: 0.95rem;
    color: #111827;
  }
  
  .card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
  }
  
  .card-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .chip-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: white;
    cursor: pointer;
    transition: background var(--transicion), color var(--transicion), border var(--transicion), transform var(--transicion);
  }
  
  .chip-btn:hover {
    background: #e0f2fe;
    border-color: var(--color-primario);
    color: #0b3a5c;
    transform: translateY(-1px);
  }
  
  /* ACORDEONES */
  
  .accordion {
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: white;
  }
  
  .accordion-item + .accordion-item {
    border-top: 1px solid #e5e7eb;
  }
  
  .accordion-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f9fafb;
  }
  
  .accordion-header h3 {
    font-size: 0.92rem;
  }
  
  .accordion-header span.toggle {
    font-size: 1.1rem;
    color: #64748b;
    transition: transform var(--transicion);
  }
  
  .accordion-header.active span.toggle {
    transform: rotate(90deg);
  }
  
  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
  }
  
  .accordion-body-inner {
    padding: 0.6rem 0 0.8rem;
    font-size: 0.86rem;
    color: #4b5563;
  }
  
  .accordion-body-inner ul {
    margin-left: 1.1rem;
    margin-top: 0.25rem;
  }
  
  .accordion-body-inner li {
    margin-bottom: 0.2rem;
  }
  
  /* BLOQUES ESPECÍFICOS */
  
  .highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--color-primario);
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 0.9rem;
  }
  
  .two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: flex-start;
  }
  
  .list-pill {
    list-style: none;
  }
  
  .list-pill li {
    margin-bottom: 0.4rem;
    padding-left: 1.1rem;
    position: relative;
    font-size: 0.85rem;
  }
  
  .list-pill li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primario);
  }
  
  /* FORMULARIOS Y REPORTES */
  
  .form-card {
    background: white;
    border-radius: var(--radio);
    padding: 1rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.86rem;
  }
  
  .form-group {
    margin-bottom: 0.7rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }
  
  .form-group small {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.85rem;
    font-family: inherit;
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  .form-inline {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .form-inline label {
    font-weight: 500;
    margin-bottom: 0;
  }
  
  .form-inline input[type="radio"] {
    margin-right: 0.1rem;
  }
  
  .report-box {
    margin-top: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    font-size: 0.85rem;
    display: none;
  }
  
  .report-box strong {
    color: #166534;
  }
  
  /* CASOS DE ÉXITO */
  
  .case-card {
    background: white;
    border-radius: var(--radio);
    padding: 1rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.86rem;
    display: grid;
    gap: 0.3rem;
  }
  
  .case-chip {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
  }
  
  .case-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
  }
  
  .case-meta {
    font-size: 0.8rem;
    color: #6b7280;
  }
  
  .video-placeholder {
    border-radius: var(--radio);
    overflow: hidden;
    background: #0f172a;
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    min-height: 160px;
  }
  
  .video-placeholder small {
    opacity: 0.85;
    margin-top: 0.35rem;
    display: block;
    font-size: 0.78rem;
  }
  
  /* PIE DE PÁGINA */
  
  footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1.5rem;
    font-size: 0.8rem;
  }
  
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .footer-links a {
    opacity: 0.9;
  }
  .intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .intro-media {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  
  .video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    background: #000;
  }
  
  .video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .intro-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
  }
  
  .intro-image img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* ICONITO EN LOS TÍTULOS DE TARJETA (OPCIONAL) */
  
  .card-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  
  .card-title-icon span.icon-emoji {
    font-size: 1.1rem;
  }
  
  /* NOTICIAS Y LOGOS */
  
  .news-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  
  .news-logo-card {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: white;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    font-size: 0.8rem;
  }
  
  .news-logo-card img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: #f1f5f9;
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: minmax(0, 1fr);
    }
    .two-column {
      grid-template-columns: minmax(0, 1fr);
    }
    .intro-layout {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: inline-flex;
    }
  
    nav {
      flex-direction: column;
      align-items: flex-end;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background: rgba(15, 23, 42, 0.96);
      padding: 0.75rem;
      border-radius: 12px;
      position: absolute;
      right: 0;
      top: 3rem;
      min-width: 220px;
    }
  
    .nav-links a {
      background: transparent;
      padding: 0.4rem 0.5rem;
    }
  
    .nav-links.show {
      display: flex;
    }
  }
  

  
  /* ===== HERO DE NORMAS ===== */

.page-hero {
  border-radius: 24px;
  padding: 1.75rem 1.75rem 1.5rem;
  background: radial-gradient(circle at top left, #e0f2fe 0, #eef2ff 35%, #f9fafb 80%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  margin-bottom: 1.75rem;
}

.page-hero-main-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.page-hero-subtitle {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.9rem;
}

.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.badge-pill span.icon {
  font-size: 1rem;
}

.page-hero-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.page-hero-meta strong {
  color: #0f172a;
}

/* Bloque visual a la derecha del hero */

.page-hero-visual {
  justify-self: flex-end;
  text-align: right;
}

.norma-code-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.6rem 0.9rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.6);
  margin-bottom: 0.6rem;
}

.norma-code-bubble .norma-code {
  font-size: 1.3rem;
  font-weight: 700;
}

.norma-code-bubble .norma-tagline {
  font-size: 0.75rem;
  opacity: 0.9;
}

.norma-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.35rem 0.8rem;
  font-size: 0.75rem;
  color: #0f172a;
}

.norma-meta-item {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* ===== BOTÓN VOLVER A NORMATIVIDAD ===== */

.back-btn-wrapper {
  margin-bottom: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  font-size: 0.85rem;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.back-btn span.icon {
  font-size: 1rem;
}

.back-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

/* Responsive hero */

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .page-hero-visual {
    justify-self: flex-start;
    text-align: left;
  }
}


/* ===== TABLAS DESPLEGABLES NOM-035 ===== */

.accordion-table {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  padding: 0.6rem 0.9rem 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.accordion-table + .accordion-table {
  margin-top: 0.8rem;
}

.accordion-table summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.accordion-table summary::-webkit-details-marker {
  display: none;
}

.accordion-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.accordion-table-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #0f172a;
}

.accordion-table-tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.accordion-table-subtitle {
  font-size: 0.82rem;
  color: #64748b;
}

.accordion-table-icon {
  font-size: 1.2rem;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

details[open] .accordion-table-icon {
  transform: rotate(90deg);
}

.accordion-table-body {
  margin-top: 0.7rem;
}

/* Tabla */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.psico-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 540px;
}

.psico-table thead {
  background: #e5e7eb;
}

.psico-table th,
.psico-table td {
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.psico-table th {
  font-weight: 600;
  color: #111827;
}

.psico-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.psico-table .col-categoria {
  width: 13%;
  font-weight: 600;
}

.psico-table .col-dominio {
  width: 18%;
  font-weight: 500;
}

.psico-table .col-dimension {
  width: 22%;
  font-weight: 500;
}

.psico-table .col-descripcion {
  width: 47%;
}

/* Responsive */

@media (max-width: 700px) {
  .psico-table {
    font-size: 0.78rem;
    min-width: 480px;
  }
}