body {
  background-color: #fff;
}

main {
  background-color: #fff;
}

.main-content.container-fluid {
  display: flex;
  align-items: flex-start;
  gap: 28px;

  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 50px 40px;

  box-sizing: border-box;
  background: var(--color-white);
}

.main-content.container-fluid>.main-content {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: var(--color-white);
}

.main-content.container-fluid>.sidebar-right {
  flex: 0 0 320px;
  width: 320px;
}

@media (max-width: 1199.98px) {
  .main-content.container-fluid {
    padding: 55px 36px 36px;

    gap: 24px;
  }
}

@media (max-width: 991.98px) {
  .main-content.container-fluid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 53px 24px 30px;
  }

  .main-content.container-fluid>.main-content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .main-content.container-fluid>.sidebar-right {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .main-content.container-fluid {
    padding: 42px 18px 24px;
  }
}

@media (max-width: 480px) {
  .main-content.container-fluid {
    padding: 35px 14px 20px;
  }
}

/*ASIDE*/
.main-content.container-fluid {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.main-content.container-fluid>.main-content {
  flex: 1 1 0;
  min-width: 0;
}

.sidebar-right {
  flex: 0 1 300px;
  width: 100%;
  max-width: 300px;
  min-width: 260px;
  box-sizing: border-box;
  align-self: flex-start;

  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;

  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

.sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-title {
  position: relative;
  margin: 0;
  padding: 16px 22px 14px 40px;
  box-sizing: border-box;

  background: linear-gradient(to right, rgba(198, 40, 40, 0.04), transparent 78%);
  color: var(--color-dark);

  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;

  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-title::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: var(--color-primary);
}

.sidebar-title::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -1px;
  width: 74px;
  height: 2px;
  background: var(--color-primary);
}

.sidebar-list+.sidebar-title {
  margin-top: 22px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  background: var(--color-white);
}

.sidebar-list li {
  margin: 0;
}

.sidebar-list li+li {
  border-top: 1px solid var(--color-border);
}

.sidebar-list a {
  position: relative;
  display: block;
  padding: 16px 22px 16px 40px;
  box-sizing: border-box;

  text-decoration: none;
  color: var(--color-text);
  background: var(--color-white);

  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;

  transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.sidebar-list a::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.9;
}

.sidebar-list a:hover {
  background: var(--color-light);
  color: var(--color-primary);
  padding-left: 44px;
}

@media (max-width: 991.98px) {
  .main-content.container-fluid {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .main-content.container-fluid > .main-content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    order: 1;
  }

  .sidebar-right {
    display: block !important;
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 100%;

    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-top: 24px;
  }

  .sidebar-title {
    padding: 16px 20px 14px 38px;
    font-size: 0.95rem;
  }

  .sidebar-title::before {
    left: 20px;
  }

  .sidebar-title::after {
    left: 20px;
    width: 70px;
  }

  .sidebar-list a {
    padding: 14px 20px 14px 38px;
    font-size: 0.95rem;
  }

  .sidebar-list a::before {
    left: 20px;
  }
}

@media (max-width: 767.98px) {
  .main-content.container-fluid {
    gap: 20px;
  }

  .sidebar-right {
    margin-top: 20px;
  }

  .sidebar-title {
    padding: 14px 18px 12px 34px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .sidebar-title::before {
    left: 18px;
    height: 20px;
  }

  .sidebar-title::after {
    left: 18px;
    width: 60px;
  }

  .sidebar-list {
    padding-top: 6px;
  }

  .sidebar-list a {
    padding: 13px 18px 13px 34px;
    font-size: 0.93rem;
    line-height: 1.4;
  }

  .sidebar-list a::before {
    left: 18px;
    width: 6px;
    height: 6px;
  }

  .sidebar-list a:hover {
    padding-left: 38px;
  }
}

@media (max-width: 575.98px) {
  .main-content.container-fluid {
    gap: 16px;
  }

  .sidebar-right {
    margin-top: 16px;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }

  .sidebar-title {
    padding: 13px 16px 11px 30px;
    font-size: 0.88rem;
  }

  .sidebar-title::before {
    left: 16px;
    width: 4px;
    height: 18px;
  }

  .sidebar-title::after {
    left: 16px;
    width: 52px;
  }

  .sidebar-list a {
    padding: 12px 16px 12px 30px;
    font-size: 0.9rem;
  }

  .sidebar-list a::before {
    left: 16px;
    width: 5px;
    height: 5px;
  }

  .sidebar-list a:hover {
    padding-left: 34px;
  }
}

/*BIENVENIDOS*/
.content-contenido {
  padding: var(--section-padding-y-desktop) 0;
  background: var(--color-white);
}

.content-contenido .section-content {
  background: var(--color-white);
}

.presentacion-editorial {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: 26px 28px;
}

.presentacion-editorial__content {
  display: flow-root;
  background: var(--color-white);
}

.presentacion-editorial__figure {
  float: left;
  width: 320px;
  margin: 4px 30px 18px 0;
}

.presentacion-editorial__image-wrap {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 12px;
}

.presentacion-editorial__image-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 78px;
  height: 3px;
  background: var(--color-primary);
}

.presentacion-editorial__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-light);
}

.presentacion-editorial__text {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.9;
  background: var(--color-white);
}

.presentacion-editorial__text>*:first-child {
  margin-top: 0 !important;
}

.presentacion-editorial__text>*:last-child {
  margin-bottom: 0 !important;
}

.presentacion-editorial__text p {
  margin: 0 0 18px;
  color: var(--color-text);
}

.presentacion-editorial__text strong,
.presentacion-editorial__text b {
  color: var(--color-dark);
  font-weight: 700;
}

.presentacion-editorial__text h1,
.presentacion-editorial__text h2,
.presentacion-editorial__text h3,
.presentacion-editorial__text h4,
.presentacion-editorial__text h5,
.presentacion-editorial__text h6 {
  margin: 0 0 14px;
  color: var(--color-dark);
  line-height: 1.35;
  font-weight: 700;
}

.presentacion-editorial__text ul,
.presentacion-editorial__text ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.presentacion-editorial__text li {
  margin-bottom: 8px;
}

.presentacion-editorial__text a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.presentacion-editorial__text a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.presentacion-editorial__text img,
.presentacion-editorial__text iframe,
.presentacion-editorial__text table,
.presentacion-editorial__text video {
  max-width: 100%;
}

@media (max-width: 992px) {
  .content-contenido {
    padding: var(--section-padding-y-tablet) 0;
  }

  .presentacion-editorial {
    padding: 22px;
  }

  .presentacion-editorial__figure {
    width: 280px;
    margin: 4px 24px 16px 0;
  }

  .presentacion-editorial__text {
    line-height: 1.82;
  }
}

@media (max-width: 768px) {
  .content-contenido {
    padding: var(--section-padding-y-mobile) 0;
  }

  .presentacion-editorial {
    padding: 18px;
  }

  .presentacion-editorial__figure {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px;
  }

  .presentacion-editorial__text {
    font-size: 0.97rem;
    line-height: 1.78;
  }
}

@media (max-width: 480px) {
  .content-contenido {
    padding: var(--section-padding-y-mobile-sm) 0;
  }

  .presentacion-editorial {
    padding: 14px;
  }

  .presentacion-editorial__figure {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .presentacion-editorial__image-wrap {
    padding: 9px;
  }

  .presentacion-editorial__text {
    font-size: 0.95rem;
    line-height: 1.72;
  }
}

/*
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0.1rem 3rem 0.2rem rgba(186, 51, 51, 0.15) !important;
}

.card:hover {
    transform: translateY(-3px);
}

#laciudad {
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
}

#contenido{
    padding: 20px;
    background: white;
}


.presentacion-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    overflow: hidden;
}

.imagen-float {
    float: left;
    width: 350px;
    max-width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin-right: 30px;
    margin-bottom: 20px;
}


.texto-presentacion {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

@media (max-width: 992px) {

    .imagen-float {
        float: none;
        display: block;
        width: 100%;
        height: 350px;
        margin: 0 auto 20px auto;
    }

    .presentacion-card {
        padding: 25px;
    }
}



.historia-bg-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}


.historia-overlay {
    background: rgba(255, 255, 255, 0.85);
    padding: 50px;
    border-radius: 15px;
}


.historia-overlay h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}
.texto-historia {
    line-height: 1.8;
    text-align: justify;
    color: #222;
}


@media (max-width: 992px) {
    .historia-overlay {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .historia-overlay {
        padding: 20px;
    }
}

.tarjetaMVO{
    box-shadow: 0 2px 10px rgba(171, 42, 62, 0.266); 
    border: none;
    border-radius: 20px;
	text-align: justify;
}


.ContenedorTarjetasMunicipalidad {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}


.tarjeta-muni {
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.tarjeta-muni:hover {
    transform: translateY(-6px);
}

.imagen-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.contenido-card {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.titulo-card {
    text-decoration: none;
    color: #000;
}

.titulo-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.texto-card {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    flex-grow: 1;
}

/* Responsive ajustes 

@media (max-width: 768px) {
    .imagen-card img {
        height: 220px;
    }
}
*/