/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --brand-primary: #124972;
  --brand-surface: #d8e1e8;
  --brand-accent: #b9daf6;
  --page-bg: #f6f8fb;
  --card-bg: #e7f2fb;
  --warn-bg: #f7efc8;
  --text-muted: #6b7280;
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.08);

  /* RPROV */
  --azul-osfa: #124972;
  --celeste-osfa: #00a6cf;
  --osfa-celeste-rprov: #84a9c4;
  --osfa-blanco: #ffffff;
  --gris-claro: #f5f7fa;
  --borde: #e0e4e8;
  --texto-secundario: #6c757d;
  --gradient-celeste-osfa: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(182, 215, 241, 0.5) 100%
  );
}

/* ============================================================
   2. BASE / RESET / TYPOGRAPHY
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    "Archivo",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  color: var(--brand-primary);
  background: var(--page-bg);
}

.container {
  max-width: 1200px;
}

section {
  min-height: 80.2vh;
  padding-bottom: 25px;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: transform 0.2s ease;
}
a:hover {
  transform: scale(1.05);
}

p {
  font-size: 1rem;
  margin: 0;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  padding-top: 25px;
}

li {
  vertical-align: bottom;
  list-style: none;
}

.bi {
  color: var(--brand-primary);
}

.fa,
.fas {
  font-weight: 900;
  font-size: 1rem;
}

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.logo {
  display: block;
  width: 145px;
  height: 40px;
  font-size: 0;
  background-image: url(../img/osfa.svg);
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}

.site-header .topbar {
  background: var(--warn-bg);
  padding: 10px 0;
  border-bottom: 3px solid rgba(157, 157, 156, 0.8);
}
.site-header .navbar {
  --bs-navbar-padding-y: 0;
}
.site-header .navbar-brand {
  margin-right: 28px;
}
.site-header .navbar-toggler {
  border: 0;
  padding: 0.25rem;
}
.site-header .navbar-toggler:focus {
  box-shadow: none;
}
.site-header .navbar-toggler-icon {
  width: 24px;
  height: 18px;
  background-image: url(../img/iconos/header/desplegar-menu.svg);
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}
.site-header .dropdown-toggle::after {
  display: none;
}

.nav-link {
  color: var(--brand-primary);
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 14px !important;
  line-height: 1.1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.nav-link:focus,
.nav-link:hover {
  color: var(--brand-primary);
  background: rgba(18, 73, 114, 0.1);
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--brand-primary);
  background: var(--brand-accent);
}
.ingresar {
  font-weight: bolder;
}
.dropdown-menu {
  --bs-dropdown-padding-x: 0.7rem !important;
  --bs-dropdown-padding-y: 0.7rem !important;
  --bs-dropdown-link-active-color: var(--brand-primary);
  --bs-dropdown-link-active-bg: var(--brand-accent);
  --bs-dropdown-link-hover-color: var(--brand-primary);
  --bs-dropdown-link-hover-bg: rgba(18, 73, 114, 0.08);
  z-index: 900;
  top: 45px;
  left: -5px;
  background-color: #fff;
  padding: 10px 12px;
  border-top: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.dropdown-item {
  color: var(--brand-primary);
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(18, 73, 114, 0.12);
}
.dropdown-item:hover {
  color: var(--brand-primary);
}
li:last-child .dropdown-item {
  border-bottom: 0;
}

/* Legacy header styles */
header .superior {
  background: var(--brand-surface);
  border-bottom: 0;
}
header h2 {
  font-size: 22px;
  color: rgba(18, 73, 114, 0.45);
  font-weight: 700;
  letter-spacing: 0.2px;
}
header .redes {
  font-size: 0;
  display: flex;
  align-items: center;
}
header .redes a {
  font-size: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
  transition: transform 0.2s ease;
  width: 25px;
  height: 25px;
}
header .redes li {
  margin: 0 3px;
}
header .redes a:hover {
  transform: scale(1.2);
}
header .redes .hcorreo {
  background-image: url(../img/iconos/header/mail.svg);
}
header .redes .hinstagram {
  background-image: url(../img/iconos/header/instagram.svg);
}
header .redes .hfacebook {
  background-image: url(../img/iconos/header/facebook.svg);
}
header .redes .htwitter {
  background-image: url(../img/iconos/header/twitter.svg);
}
header .redes .hyoutube {
  background-image: url(../img/iconos/header/youtube.svg);
}

.menu-principal {
  background: var(--warn-bg);
  padding: 6px 0 10px;
  border-bottom: 3px solid rgba(157, 157, 156, 0.8);
}
.mail-tel {
  text-align: right;
  padding-top: 6px;
}
.mail-tel a {
  color: var(--brand-primary);
  font-size: 1em;
  font-weight: 400;
}

/* ============================================================
   4. FOOTER
   ============================================================ */
.main-footer {
  margin-left: 0;
}

.footer-osfa {
  background: linear-gradient(135deg, #1c2b36, #223845);
  color: #cfe3f1;
}

footer .redes {
  display: flex;
  gap: 12px;
}
footer .redes a {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  width: 35px;
  height: 35px;
  background-color: #0c314c;
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
footer .redes a:hover {
  transform: scale(1.1);
  background-color: #1a4a6b;
}

footer .btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70% !important;
  height: 55px;
  background-color: #b6d7f1;
  color: #124972;
  font-weight: 700;
  font-size: 20px;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
footer .btn-footer:hover {
  background-color: #124972;
  color: #fff;
  transform: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
footer .btn-footer .content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
footer .btn-footer .text {
  transition: transform 0.3s ease;
}
footer .btn-footer .icon {
  display: inline-flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
footer .btn-footer .icon img {
  width: 20px;
  margin-left: 8px;
}
footer .btn-footer:hover .icon {
  width: 28px;
  opacity: 1;
  scale: 1.5;
}
footer .btn-footer:hover .text {
  transform: translateX(-11px);
}

.footer-title {
  color: #9fc3de;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 24px;
}
.footer-list,
.footer-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li,
.footer-sublist li {
  margin-bottom: 6px;
}
.footer-list a {
  color: #e9f3fb;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.footer-list a:hover {
  color: #fff;
  transform: none;
}
.footer-sublist a {
  color: #e9f3fb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}

footer .accordion-button {
  background: transparent;
  color: #e9f3fb;
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
}
footer .accordion-button:not(.collapsed) {
  background: transparent;
  color: #fff;
}
footer .accordion-button::after {
  filter: invert(1);
  margin-left: 8px !important;
}
footer .accordion-item {
  background: transparent;
  border: none;
}
.footer-list .accordion {
  margin: 0;
}
.footer-list .accordion-button {
  margin-bottom: 6px;
}
.footer-osfa .accordion-flush > .accordion-item {
  border: 0 !important;
}
.footer-osfa .accordion-header {
  margin-top: -20px;
}
.footer-osfa .accordion-button:focus {
  box-shadow: none !important;
}
.footer-osfa .accordion-button,
.footer-osfa .accordion-button.collapsed,
.footer-osfa .accordion-flush .accordion-button,
.footer-osfa .accordion-flush .accordion-button.collapsed {
  border-bottom: 0 !important;
}
.footer-osfa .accordion-button::after {
  margin-left: 8px !important;
  margin-right: 0 !important;
  opacity: 0.9;
}

/* ============================================================
   5. PAGE: INICIO (HOME)
   ============================================================ */
.page-kicker {
  color: #fef3ce;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 6px 0 14px;
}
.page-kicker span {
  background: #124972;
  padding: 10px 15px;
  border-radius: 13px;
  text-transform: uppercase;
}

.page-title {
  color: var(--brand-primary);
  font-size: 1.875rem;
  font-weight: 750;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.page-lead {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 22px auto 0;
}
.page-mail {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 700;
}

.barra-titulo {
  margin-top: 26px;
  padding: 10px 0 6px;
  background: transparent;
}
.barra-titulo .container h2 {
  font-size: 1.875rem;
  color: var(--brand-primary);
  font-weight: 750;
  letter-spacing: -0.4px;
}

.importante {
  margin: 22px 0;
  background: var(--warn-bg);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--brand-primary);
}

/* Novedades */
.novedad-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  display: block;
}
.fecha {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.titulo {
  font-size: 1.375rem;
  margin-bottom: 10px;
  font-weight: 750;
  color: var(--brand-primary);
}
.info,
.info1 {
  background-color: var(--card-bg);
  color: var(--brand-primary);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.info {
  flex-basis: 50%;
}

.texto {
  font-size: 1rem;
  line-height: 1.6;
}
.acciones-nota {
  margin-top: 1.25rem;
}
.btn-leer-mas {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-leer-mas:hover {
  opacity: 0.85;
}
.nota-link {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline !important;
}
.nota-list {
  padding-left: 1.25rem;
}
.nota-list li {
  list-style: disc;
}

.foto img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

/* Legacy home elements */
.barraseparadora {
  font-size: 40px;
  margin-top: -6px;
  color: #9d9d9c;
  font-weight: 300;
  display: block;
}
.espacios {
  padding-left: 15px;
  display: block;
}
.h2nuevo {
  display: block;
}
.h2viejo {
  display: none;
}
.contacto {
  padding-top: 25px;
}

/* ============================================================
   6. PAGE: ACTOS CONTRACTUALES
   ============================================================ */
.actosContrac {
  padding-top: 25px;
}
.licitaciones-ul li {
  padding-bottom: 2px !important;
}

.open-dropdown {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.open-dropdown .circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.22s ease;
}
.open-dropdown .circle-arrow i {
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.22s ease;
  color: var(--osfa-blanco);
}
.open-dropdown.is-open .circle-arrow {
  background: #a8d0e6;
}
.open-dropdown.is-open .circle-arrow i {
  transform: rotate(90deg);
  color: var(--azul-osfa);
}

.file-dropdown {
  margin: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#pageActos ul.dropdown {
  list-style: none;
  padding-left: 18px;
  margin: 3px 0 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height 0.32s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
#pageActos ul.dropdown.is-open {
  max-height: 2400px;
  opacity: 1;
  transform: translateY(0);
}
#pageActos ul.dropdown.is-open > li {
  animation: actosItemIn 0.18s ease both;
}
@keyframes actosItemIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pageActos .i {
  font-size: none;
  color: var(--brand-primary);
}
#pageActos .bi.bi-filetype-pdf,
#pageActos .bi.bi-filetype-csv {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
  margin-right: 8px;
}

/* ============================================================
   7. PAGE: ÓRDENES DE COMPRA
   ============================================================ */

.ordencompra .oc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.ordencompra .oc-card:hover {
  transform: none;
}
.ordencompra .oc-card .bi {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}
.ordencompra .oc-meta {
  min-width: 0;
}
.ordencompra .nombre-archivo {
  font-size: 16px;
  line-height: 1.15;
  margin: 0 0 4px;
}
.ordencompra .tipo {
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.ordencompra .accordion-button {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.ordencompra .accordion-button::after {
  transition: transform 0.25s ease;
}
.ordencompra .accordion-collapse.show .caja {
  animation: ocCardIn 0.22s ease both;
}
@keyframes ocCardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ordencompra .accordion-flush > .accordion-item {
  border: 0 !important;
}
.ordencompra .accordion-item {
  background: transparent;
  margin-top: 18px;
}
.ordencompra .accordion-header {
  border: 0 !important;
}
.ordencompra .accordion-button {
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 0;
  color: var(--brand-primary);
  font-weight: 800;
}
.ordencompra .accordion-button::after {
  display: none;
}
.ordencompra .accordion-button .oc-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  flex-shrink: 0;
  margin-right: 10px;
  transition: background 0.22s ease;
}
.ordencompra .accordion-button .oc-circle-arrow i {
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.22s ease;
  color: #fff;
}
.ordencompra .accordion-button:not(.collapsed) .oc-circle-arrow {
  background: #a8d0e6;
}
.ordencompra .accordion-button:not(.collapsed) .oc-circle-arrow i {
  transform: rotate(90deg);
  color: var(--brand-primary);
}
.ordencompra .accordion-button:not(.collapsed) {
  color: var(--brand-primary);
  background: transparent;
  box-shadow: none;
}
.ordencompra .accordion-button:focus {
  box-shadow: none;
}
.ordencompra .accordion-body {
  padding-top: 14px;
}

.anio {
  font-size: 17px;
  font-weight: 700;
  padding: 6px 8px;
  margin: 15px 0;
  border: 2px solid rgba(18, 73, 114, 0.25);
  border-left: 0;
  border-right: 0;
}
.caja {
  padding: 2.2px;
}
.nombre-archivo {
  color: var(--brand-primary);
  font-size: 16px;
  font-weight: 500;
  padding-top: 2px;
}
.tipo {
  color: var(--text-muted) !important;
  padding: 3px !important;
}

/* ============================================================
   8. PAGE: NORMATIVA
   ============================================================ */
.normativaVigencia {
  font-size: 1.125rem;
  font-weight: 500;
}

.normativa-cards .normativa > .row {
  --bs-gutter-x: 0;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.normativa-cards .normativa > .row > [class^="col-"] {
  padding-left: 0;
  padding-right: 0;
}
.normativa-cards .normativa > .row > .col-1 {
  flex: 0 0 auto;
  width: auto;
}
.normativa-cards .normativa > .row > .col-11 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.normativa-cards .normativa > .row a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.normativa-cards .normativa > .row a .badge {
  display: inline-flex;
  margin-top: 6px;
}
.normativa-cards .bi.bi-filetype-pdf,
.normativa-cards .bi.bi-filetype-csv,
.normativa-cards .bi.bi-filetype-zip {
  font-size: 2rem;
  width: auto;
  height: auto;
}
.normativa-cards .bi.bi-file-earmark {
  font-size: 2.5rem;
  width: auto;
  height: auto;
}

.container .row > .normativa > .row {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
}
.container .row > .normativa > .row a {
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.container .row > .normativa > .row a .badge {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 300;
}
.container .row > .normativa > .row > .col-1,
.container .row > .normativa > .row > .col-11 {
  padding-left: 0;
  padding-right: 0;
}
.container .row > .normativa > .row > .col-1 {
  flex: 0 0 auto;
  width: auto;
  margin-top: 2px;
}
.container .row > .normativa > .row > .col-11 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.container .row > .normativa > .row .bi.bi-filetype-pdf,
.container .row > .normativa > .row .bi.bi-file-zip,
.container .row > .normativa > .row .bi.bi-filetype-csv {
  width: 32px;
  height: 32px;
}
.container .row > .normativa > .row .bi.bi-file-earmark {
  font-size: 1.6rem;
}

/* File type icons (global) */
.bi.bi-filetype-pdf,
.bi.bi-filetype-csv {
  width: 42px;
  height: 42px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
}
.bi.bi-filetype-pdf::before,
.bi.bi-filetype-csv::before {
  content: "";
}
.bi.bi-filetype-pdf {
  background-image: url(../img/iconos/archivos/pdf.svg);
}
.bi.bi-filetype-csv {
  background-image: url(../img/iconos/archivos/csv.svg);
}

/* ============================================================
    9. PAGE: CONTACTO
    ============================================================ */
.contac {
  padding-bottom: 2em;
}
.text-info {
  color: var(--brand-primary) !important;
}
.i {
  font-size: 34px;
  color: var(--brand-primary);
}

#Contacto {
  min-height: auto;
}

.contacto-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.contacto-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

/* ============================================================
   10. RPROV - INSCRIPCIÓN AL REGISTRO DE PROVEEDORES
   ============================================================ */

/* Landing page */
.rprov-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}
.rprov-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #e8f4f8;
  border-radius: 20px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--azul-osfa);
  box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  min-height: 130px;
}
.rprov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  background: #dceef5;
}
.rprov-icono {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rprov-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rprov-content {
  flex: 1;
  min-width: 0;
}
.rprov-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--azul-osfa);
  margin: 0;
  line-height: 1.3;
  padding-top: 0;
}

.rprov-landing-header {
  margin-bottom: 0.5rem;
}
.rprov-landing-header h2 {
  color: var(--azul-osfa);
  font-weight: 800;
  font-size: 2rem;
  margin: 0;
}
.rprov-landing-intro {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--texto-secundario);
}
.breadcrumb a {
  color: var(--celeste-osfa);
}
.breadcrumb .active {
  color: var(--texto-secundario);
}

/* Layout */
.Rprov-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.Rprov-content-wrap {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
.rprov-sidebar {
  position: sticky;
  top: 1rem;
  background-color: var(--osfa-blanco);
  border-radius: 16px;
  box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.1);
  width: 64px;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.rprov-sidebar:hover {
  width: 300px;
}
.sidebar-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.sidebar-menu li {
  position: relative;
  margin: 4px 6px;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--azul-osfa);
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.rprov-sidebar:hover .sidebar-menu li a {
  padding: 12px;
}
.sidebarRprov {
  display: block;
  clip-path: inset(0 100% 0 0);
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.25;
  opacity: 0;
  transition:
    clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  transition-delay: 0s, 0.15s;
}
.rprov-sidebar:hover .sidebarRprov {
  clip-path: inset(0 0% 0 0);
  white-space: normal;
  opacity: 1;
  transition-delay: 0.15s, 0s;
}
.sidebar-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-celeste-osfa);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  z-index: -1;
}
.sidebar-menu li:hover a::before {
  opacity: 1;
  transform: translateX(0);
}
.sidebar-menu li:hover a {
  color: var(--azul-osfa);
  transform: translateX(4px);
}
.sidebar-menu li.active a {
  background: var(--gradient-celeste-osfa);
  color: var(--azul-osfa);
  font-weight: 600;
}
.sidebar-menu li.active a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--azul-osfa);
  border-radius: 0 3px 3px 0;
}
.iconoSidebar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}
.iconoSidebar[src] {
  object-fit: contain;
  width: 24px;
  height: 24px;
}

/* Sidebar toggle */
.sidebar-toggle-btn {
  display: none;
  width: auto;
  height: 42px;
  background: var(--osfa-blanco);
  border: 1px solid var(--celeste-osfa);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 20px;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-osfa);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(18, 73, 114, 0.08);
}
.sidebar-toggle-btn:hover {
  background: var(--celeste-osfa);
  color: var(--osfa-blanco);
}
.sidebar-toggle-btn .toggle-chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.sidebar-toggle-btn.active .toggle-chevron {
  transform: rotate(180deg);
}
.sidebar-toggle-btn.active {
  background: var(--azul-osfa);
  color: var(--osfa-blanco);
  border-color: var(--azul-osfa);
}

/* Form card */
.Rprov-form-card {
  background: var(--osfa-blanco);
  border: 2px solid var(--osfa-celeste-rprov);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(18, 73, 114, 0.12);
  margin: 0 auto;
}
.Rprov-form-header {
  margin-bottom: 1.5rem;
}
.Rprov-form-header h2 {
  color: var(--azul-osfa);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}
.Rprov-texto-intro {
  margin-bottom: 1.5rem;
}
.Rprov-texto-intro p {
  margin-bottom: 0.75rem;
}
.Rprov-listado-documentacion {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.Rprov-listado-documentacion li {
  list-style: disc;
  margin-bottom: 0.35rem;
  color: var(--brand-primary);
}
.Rprov-listado-documentacion a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}
.Rprov-listado-documentacion a:hover {
  opacity: 0.7;
  transform: none;
}

/* Acordeón de documentación adicional */
.Rprov-acordeon-wrapper {
  margin-bottom: 1.5rem;
}
.Rprov-acordeon-titulo {
  background: var(--gris-claro);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  width: 100%;
  text-align: left;
  color: var(--azul-osfa);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}
.Rprov-acordeon-titulo:hover {
  background: var(--osfa-celeste-rprov);
  color: var(--osfa-blanco);
}
.Rprov-acordeon-titulo i {
  transition: transform 0.25s ease;
}
.Rprov-acordeon-titulo[aria-expanded="true"] i {
  transform: rotate(90deg);
}
.Rprov-acordeon-contenido {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--gris-claro);
  border-radius: 12px;
}
.Rprov-acordeon-contenido p {
  margin-bottom: 0.75rem;
  color: var(--azul-osfa);
}
.Rprov-subtitulo-formulario {
  color: var(--azul-osfa);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Form elements */
.form-section {
  margin-bottom: 1.5rem;
}
.section-header {
  background: var(--osfa-celeste-rprov);
  color: var(--osfa-blanco);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 15px;
  margin-bottom: 0.75rem;
  display: inline-block;
  width: 100%;
}
.form-label {
  color: var(--azul-osfa);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  display: block;
}
.form-control-rounded,
.form-select.form-control-rounded {
  border: 2px solid var(--osfa-celeste-rprov);
  border-radius: 15px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
  background: #fff;
}
.form-control-rounded:focus,
.form-select.form-control-rounded:focus {
  border-color: var(--celeste-osfa);
  box-shadow: 0 0 0 3px rgba(0, 166, 207, 0.15);
  outline: none;
}
select.form-control-rounded {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2384a9c4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* File upload */
.file-upload-area {
  border: 2px solid var(--osfa-celeste-rprov);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(0, 166, 207, 0.02);
}
.file-upload-area:hover,
.file-upload-area.dragover {
  background: rgba(0, 166, 207, 0.08);
  border-color: var(--celeste-osfa);
}
.file-upload-icon {
  font-size: 2.5rem;
  color: var(--osfa-celeste-rprov);
  margin-bottom: 0.5rem;
}
.file-upload-text {
  color: var(--osfa-celeste-rprov);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.file-upload-hint {
  color: var(--texto-secundario);
  font-size: 0.8rem;
  margin: 0;
}
.file-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.file-item {
  background: rgba(0, 166, 207, 0.08);
  border: 1px solid var(--celeste-osfa);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--azul-osfa);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  word-break: break-word;
}
.file-remove {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #c0392b;
  font-weight: 700;
  margin-left: 0.25rem;
  padding: 0;
  line-height: 1;
}
.file-upload-error {
  color: #842029;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

.form-required-note {
  font-size: 0.8rem;
  color: var(--texto-secundario);
  margin-bottom: 1rem;
}

.btn-enviar {
  background: var(--azul-osfa);
  color: var(--osfa-blanco);
  border: none;
  border-radius: 15px;
  padding: 0.5rem 5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-enviar:hover {
  background: #0e3a5c;
  transform: translateY(-2px);
  color: var(--osfa-blanco);
}
.btn-enviar:disabled,
.btn-enviar.is-loading {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}
.btn-enviar-loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--osfa-blanco);
  border-radius: 50%;
  vertical-align: -0.15rem;
  animation: rprov-spin 0.7s linear infinite;
}
.btn-enviar-loading-text {
  margin-left: 0.35rem;
}
@keyframes rprov-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-submit {
  text-align: center;
}

/* Alerts */
.alert-rprov {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.alert-rprov-exito {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}
.alert-rprov-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Grid helpers */
.row-rprov {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}
.col-md-6-rprov {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.75rem;
}
.col-md-12-rprov {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.75rem;
}
.g-3-rprov > * {
  margin-top: 1rem;
}

/* ============================================================
   11. UTILITIES & COMPONENTS
   ============================================================ */
.badge {
  color: var(--brand-primary);
  background: none;
  border: 1px solid var(--brand-primary);
}

/* Global accordion overrides */
.accordion-item {
  border: 0;
  margin-top: 25px;
}
.accordion-header {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  border-left: 0;
  border-right: 0;
}
.accordion-button {
  padding: 6px 8px;
}
.accordion-button:not(.collapsed) {
  color: var(--brand-primary);
  background-color: transparent;
  box-shadow: 0;
}

/* Error 404 */
.error-body {
  text-align: center;
  padding: 40px 0 60px;
}
.error-icon {
  font-size: 5rem;
  color: rgba(18, 73, 114, 0.25);
  margin-bottom: 20px;
}
.error-message {
  font-size: 1.15rem;
  color: var(--brand-primary);
  font-weight: 500;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */

/* Tablet (≤992px) */
@media (max-width: 992px) {
  .footer-col {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    margin-top: 16px;
  }

  .site-header .topbar {
    background: var(--warn-bg);
  }
  .nav-link {
    color: var(--brand-primary);
    text-align: center;
    margin: 0;
    padding: 15px 0;
    border-bottom: 0;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link.show {
    color: var(--brand-primary);
    text-align: center;
    margin: 0;
    padding: 15px 0;
    border-bottom: 0;
  }
  .site-header .navbar-toggler-icon {
    width: 24px;
    height: 18px;
  }
  .dropdown-menu {
    --bs-dropdown-padding-x: 0.7rem !important;
    --bs-dropdown-padding-y: 0.7rem !important;
    --bs-dropdown-link-active-color: var(--brand-primary);
    --bs-dropdown-link-active-bg: var(--brand-accent);
    --bs-dropdown-link-hover-color: var(--brand-primary);
    --bs-dropdown-link-hover-bg: rgba(18, 73, 114, 0.08);
    z-index: 900;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
  }
  .dropdown-item {
    color: var(--brand-primary);
    margin-bottom: 0;
    text-align: center;
    border-bottom: 0;
  }
  li:last-child .dropdown-item {
    border-bottom: 0;
  }
  .actosContrac {
    padding-top: 25px;
  }
  .fa,
  .fas {
    font-weight: 900;
    font-size: 1rem;
  }

  /* RPROV responsive */
  .sidebar-toggle-btn {
    display: flex;
  }
  .Rprov-layout {
    flex-direction: column;
  }
  .rprov-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    max-height: 0;
    transition:
      max-height 0.4s ease,
      box-shadow 0.3s ease;
    box-shadow: none;
  }
  .rprov-sidebar.sidebar-open {
    max-height: 600px;
    box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.1);
  }
  .sidebar-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .sidebar-menu li {
    margin: 0;
  }
  .sidebar-menu li a {
    display: flex;
    padding: 8px 14px;
    border-radius: 999px;
    justify-content: center;
    gap: 8px;
    background: var(--gris-claro);
    border: 1px solid var(--borde);
    height: auto;
    min-height: 44px;
  }
  .sidebar-menu li a::before {
    display: none;
  }
  .sidebar-menu li:hover a {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 73, 114, 0.15);
    border-color: var(--celeste-osfa);
  }
  .sidebar-menu li.active a {
    background: var(--osfa-blanco);
    color: var(--azul-osfa);
    border-color: var(--azul-osfa);
  }
  .sidebar-menu li.active a::after {
    display: none;
  }
  .iconoSidebar {
    width: 20px;
    height: 20px;
  }
  .iconoSidebar[src] {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .sidebarRprov {
    opacity: 1;
    clip-path: none;
    font-size: 0.75rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .barraseparadora {
    display: none;
  }
  .espacios {
    display: none;
  }
  .h2nuevo {
    display: none;
  }
  .h2viejo {
    display: block;
  }
  .logoiosfa {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
    padding-bottom: 15px;
    padding-top: 15px;
  }
  .header-provedores {
    text-align: center;
  }
  .header h2 {
    font-size: 30px;
  }

  .footer-title {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
  }

  .rprov-landing-grid {
    grid-template-columns: 1fr;
  }
  .rprov-card {
    padding: 1.5rem 1rem;
  }
  .rprov-card-icon {
    width: 64px;
    height: 64px;
  }
}

/* Small mobile (≤576px) */
@media (max-width: 576px) {
  .Rprov-form-card {
    padding: 1.25rem;
  }
  .col-md-6-rprov {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .btn-enviar {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
  .sidebar-menu {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebarRprov {
    font-size: 0.7rem;
  }
}
