/* =========================================================
   Colegio Santa Maria de Los Angeles - Diseno 2026
   Este archivo moderniza la capa visual sin modificar BD.
   Importante: las imagenes quedan SIN bordes redondeados.
   ========================================================= */
:root {
  --sm-red: #EF4B1B;
  --sm-red-dark: #c93612;
  --sm-blue: #0f4c81;
  --sm-blue-dark: #12304a;
  --sm-ink: #172033;
  --sm-muted: #657085;
  --sm-line: #dfe6ef;
  --sm-soft: #f4f7fb;
  --sm-white: #ffffff;
  --sm-gold: #EF4B1B;
  --sm-shadow: 0 20px 50px rgba(15, 31, 54, .10);
  --sm-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f8fb !important;
  color: var(--sm-ink) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
a:hover, a:focus { text-decoration: none !important; }
img,
.thumbnail,
.img-thumbnail,
.img-circle,
.gallery-thumb img,
.post-thumb img,
.sm-media-card img,
.sm-quick-card img,
.sm-photo-card img,
.sm-hero-media img,
.sm-director-photo,
.img-appoderado {
  border-radius: 0 !important;
}
img { max-width: 100%; height: auto; }
#wrapper { overflow: visible !important; background: transparent !important; }
#preloader { display: none !important; }
.scrollToTop { display: none !important; }

/* ---------- Header nuevo ---------- */
.sm-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(23, 32, 51, .08);
  box-shadow: 0 10px 35px rgba(16, 30, 54, .08);
  backdrop-filter: blur(14px);
}
.sm-top-strip {
  background: linear-gradient(90deg, var(--sm-blue-dark), var(--sm-blue));
  color: #fff;
  font-size: 13px;
  letter-spacing: .01em;
}
.sm-top-strip__inner,
.sm-nav-shell,
.sm-home-section,
.sm-footer__inner,
.sm-page-band__inner {
  width: min(var(--sm-max), calc(100% - 32px));
  margin: 0 auto;
}
.sm-top-strip__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sm-top-strip__item { display: inline-flex; align-items: center; gap: 8px; opacity: .98; }
.sm-top-strip__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.sm-socials { display: inline-flex; gap: 8px; align-items: center; }
.sm-socials a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.sm-socials a:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); text-decoration: none !important; }
.sm-nav-shell {
  width: min(1560px, calc(100% - 24px));
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.sm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  text-decoration: none !important;
}
.sm-brand__mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.sm-brand__text { line-height: 1.05; }
.sm-brand__name {
  display: block;
  color: var(--sm-blue-dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-transform: uppercase;
}
.sm-brand__city {
  display: block;
  color: var(--sm-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.sm-nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border: 1px solid var(--sm-line);
  background: var(--sm-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.sm-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--sm-blue-dark);
  display: block;
}
.sm-main-nav {
  justify-self: center;
  width: 100%;
}
.sm-nav-list,
.sm-submenu { list-style: none; margin: 0; padding: 0; }
.sm-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.sm-nav-list > li { position: relative; flex: 0 0 auto; }
.sm-menu-link,
.sm-submenu-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.sm-menu-link,
.sm-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--sm-blue-dark);
  font-size: 14.6px;
  font-weight: 850;
  letter-spacing: .018em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 3px solid transparent;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.sm-nav-list > li:hover > .sm-menu-link,
.sm-nav-list > li:hover > a,
.sm-nav-list > li.active > a,
.sm-nav-list > li.active > .sm-menu-link {
  color: var(--sm-red);
  border-bottom-color: var(--sm-red);
  background: rgba(239,75,27,.08);
}
.sm-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: var(--sm-white);
  border: 1px solid rgba(18,48,74,.10);
  box-shadow: var(--sm-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
  padding: 10px;
  z-index: 1001;
}
.sm-has-submenu:hover > .sm-submenu,
.sm-has-submenu.sm-open > .sm-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sm-submenu .sm-submenu {
  top: 0;
  left: 100%;
  margin-left: 10px;
}
.sm-submenu a,
.sm-submenu .sm-menu-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--sm-ink);
  font-size: 13px;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
  border-left: 3px solid transparent;
}
.sm-submenu a:hover,
.sm-submenu .sm-menu-link:hover {
  color: var(--sm-red);
  background: var(--sm-soft);
  border-left-color: var(--sm-red);
}
.sm-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--sm-red);
  color: #fff !important;
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .025em;
  text-transform: uppercase;
  border: 2px solid var(--sm-red);
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}
.sm-nav-cta:hover { background: #fff; color: var(--sm-red) !important; text-decoration: none !important; }

/* ---------- Home desde cero ---------- */
.sm-home-main { background: #f6f8fb; }
.sm-hero {
  width: min(1340px, calc(100% - 32px));
  margin: 24px auto 0;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr);
  gap: 22px;
}
.sm-hero-copy {
  background-color: var(--sm-blue-dark);
  background-image:
    linear-gradient(90deg, rgba(18,48,74,.78), rgba(18,48,74,.58)),
    url("../images/colegio-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(30px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.sm-hero-copy:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 48, 74, .08);
  pointer-events: none;
}
.sm-hero-copy > * { position: relative; }
.sm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffe2e6;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.sm-eyebrow:before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--sm-gold);
}
.sm-hero h1 {
  margin: 28px 0 18px;
  color: #fff !important;
  font-size: clamp(38px, 5vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 900;
}
.sm-hero-lead {
  max-width: 620px;
  color: rgba(255,255,255,.86);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
}
.sm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
  border: 2px solid transparent;
  text-decoration: none !important;
}
.sm-btn--light { background: #fff; color: var(--sm-blue-dark) !important; }
.sm-btn--outline { border-color: rgba(255,255,255,.45); color: #fff !important; }
.sm-btn--red { background: var(--sm-red); color: #fff !important; }
.sm-btn:hover { transform: translateY(-1px); }
.sm-btn--hoverline:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.sm-hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.sm-fact {
  border: 1px solid rgba(255,255,255,.18);
  padding: 16px;
  background: rgba(255,255,255,.07);
}
.sm-fact strong { display: block; font-size: 22px; line-height: 1; color: #fff; }
.sm-fact span { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.76); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.sm-hero-feature {
  background: #fff;
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow: var(--sm-shadow);
  min-height: 610px;
}
.sm-hero-media { position: relative; min-height: 440px; overflow: hidden; background: #dbe5f0; }
.sm-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-hero-label {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--sm-red);
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sm-hero-feature__body { padding: 28px 30px 32px; border-left: 8px solid var(--sm-gold); }
.sm-hero-feature__date { color: var(--sm-red); font-weight: 850; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sm-hero-feature__title {
  margin: 8px 0 18px;
  color: var(--sm-blue-dark);
  font-size: clamp(24px, 2.05vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-hero-feature__link { color: var(--sm-red) !important; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.sm-hero-feature__link, .sm-media-card__more { text-decoration: none !important; }
.sm-hero-feature__link:hover, .sm-media-card__more:hover { text-decoration: underline !important; text-underline-offset: 4px; }

.sm-news-slider {
  position: relative;
  overflow: hidden;
}
.sm-news-slider__track {
  position: relative;
  min-height: 610px;
}
.sm-news-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  background: #fff;
}
.sm-news-slide--active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}
.sm-news-slider__arrow {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(8, 31, 53, .82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sm-news-slider__arrow:hover { background: var(--sm-red); }
.sm-news-slider__arrow--prev { left: 18px; }
.sm-news-slider__arrow--next { right: 18px; }
.sm-news-slider__dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.sm-news-slider__dots button {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  background: rgba(255,255,255,.25);
  padding: 0;
  cursor: pointer;
}
.sm-news-slider__dots button.is-active {
  background: var(--sm-gold);
  border-color: var(--sm-gold);
}

.sm-home-section { padding: 72px 0; }
.sm-section-kicker { color: var(--sm-red); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 10px; }
.sm-section-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-end; margin-bottom: 30px; }
.sm-section-title { margin: 0; color: var(--sm-blue-dark); font-size: clamp(29px, 4vw, 48px); line-height: 1.03; font-weight: 900; letter-spacing: -.04em; }
.sm-section-text { max-width: 560px; color: var(--sm-muted); margin: 0; }
.sm-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sm-quick-card {
  background: #fff;
  text-decoration: none !important;
  border: 1px solid rgba(18,48,74,.10);
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
  display: grid;
  grid-template-rows: 170px 1fr;
  min-height: 270px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sm-quick-card:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow); }
.sm-quick-card img { width: 100%; height: 170px; object-fit: contain; display: block; background: #fff; padding: 10px; }
.sm-quick-card__body { padding: 20px; border-top: 5px solid var(--sm-red); }
.sm-quick-card__body h3 {
  margin: 0 0 8px;
  color: var(--sm-blue-dark);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sm-quick-card__body p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none !important;
}
.sm-app-band {
  width: min(1340px, calc(100% - 32px));
  margin: 10px auto 0;
  background: linear-gradient(135deg, var(--sm-blue-dark), #0d6093);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  color: #fff;
}
.sm-app-copy { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.sm-app-copy h2 { margin: 0 0 14px; color: #fff !important; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; font-weight: 900; letter-spacing: -.04em; }
.sm-app-copy p { color: rgba(255,255,255,.82); font-size: 18px; margin: 0 0 24px; }
.sm-app-logo { background: #fff; padding: 18px; margin-bottom: 20px; width: min(100%, 520px); }
.sm-app-logo img { width: 100%; display: block; }
.sm-app-video { min-height: 390px; background: #111; }
.sm-app-video iframe,
.sm-video-card iframe { width: 100%; height: 100%; min-height: 390px; display: block; border: 0; }
.sm-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.sm-director-photo { width: 100%; min-height: 420px; object-fit: cover; display: block; box-shadow: var(--sm-shadow); }
.sm-letter { background: #fff; padding: clamp(28px, 4vw, 48px); border-top: 8px solid var(--sm-red); box-shadow: var(--sm-shadow); }
.sm-letter h2 { margin: 0 0 6px; color: var(--sm-blue-dark); font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; }
.sm-letter h3 { margin: 0 0 22px; color: var(--sm-red); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.sm-letter p { color: #344055; margin: 0 0 16px; }
.sm-signature { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--sm-line); font-weight: 850; color: var(--sm-blue-dark); }
.sm-news-area { background: #fff; border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); }
.sm-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sm-media-card {
  background: #fff;
  border: 1px solid rgba(18,48,74,.10);
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.sm-media-card__image { display: block; height: 220px; overflow: hidden; background: #dbe5f0; }
.sm-media-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .24s ease; }
.sm-media-card:hover .sm-media-card__image img { transform: scale(1.04); }
.sm-media-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; border-top: 5px solid var(--sm-blue); }
.sm-media-card__date { color: var(--sm-red); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; }
.sm-media-card h3 { margin: 0 0 18px; color: var(--sm-blue-dark); font-size: 21px; line-height: 1.16; font-weight: 900; }
.sm-media-card__more { margin-top: auto; color: var(--sm-red) !important; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.sm-empty { background: #fff; border: 1px dashed var(--sm-line); padding: 24px; color: var(--sm-muted); }

/* ---------- Paginas interiores heredadas con look nuevo ---------- */
.main-content {
  background: #f6f8fb !important;
  padding-top: 0 !important;
}
.main-content > section:first-child,
.main-content section#blog {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}
.container.mt-30,
.container.pt-30,
section .container {
  max-width: var(--sm-max);
}
h1, h2, h3, h4, h5, h6 { font-family: inherit !important; }
.text-theme-color-sky,
.text-theme-color-blue { color: var(--sm-blue-dark) !important; }
.text-theme-color-naranjo,
.text-theme-color-red { color: var(--sm-red) !important; }
.bg-theme-color-red { background: var(--sm-red) !important; }
.bg-theme-color-sky { background: var(--sm-blue) !important; }
.bg-lighter, .bg-lightest { background: #fff !important; }
.blog-posts,
article.post,
.post.clearfix,
.section-content .post,
#blog .post,
.ca-menu li,
.panel,
.well {
  border-radius: 0 !important;
}
article.post,
.post.clearfix,
.blog-posts > .col-md-12,
section .container > .row > [class*="col-"] > .blog-posts,
.bg-lighter {
  background: #fff !important;
  border: 1px solid rgba(18,48,74,.10) !important;
  box-shadow: 0 14px 34px rgba(15,31,54,.06) !important;
}
.blog-posts > .col-md-12,
article.post { padding: 28px !important; }
.main-content h2.font-30,
.main-content .section-title h2 {
  color: var(--sm-blue-dark) !important;
  font-size: clamp(30px, 4vw, 46px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  margin-bottom: 26px !important;
}
.line-bottom:after,
.line-bottom-center:after { background: var(--sm-red) !important; }
.btn,
.button,
input[type="submit"] {
  border-radius: 0 !important;
  font-weight: 850 !important;
}
.btn-danger,
.btn-colored,
.btn-theme-color-blue,
.btn-theme-color-red {
  background: var(--sm-red) !important;
  border-color: var(--sm-red) !important;
  color: #fff !important;
}
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  border-radius: 0 !important;
  border: 1px solid var(--sm-line) !important;
  box-shadow: none !important;
}
.entry-content {
  background: #fff !important;
  border-top: 5px solid var(--sm-blue);
}
.entry-title a,
.event-content a { color: var(--sm-blue-dark) !important; }
.entry-date { background: var(--sm-red) !important; }
.gallery-isotope img,
.gallery-item img,
.post-thumb img,
.thumb img {
  border-radius: 0 !important;
  width: 100%;
  object-fit: cover;
}
.gallery-block {
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: 0 14px 34px rgba(15,31,54,.08);
}
.gallery-thumb { border-radius: 0 !important; }
.overlay-shade { border-radius: 0 !important; }
iframe { max-width: 100%; }

/* ---------- Footer nuevo ---------- */
.sm-site-footer {
  background: #081f35;
  color: rgba(255,255,255,.78);
  padding: 64px 0 0;
}
.sm-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 36px;
}
.sm-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.sm-footer-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 0 !important;
}
.sm-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sm-footer-brand span {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: .04em;
}
.sm-footer-slogan {
  margin: 0;
  max-width: 420px;
}
.sm-footer-title { color: #fff; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; }
.sm-footer-list { list-style: none; margin: 0; padding: 0; }
.sm-footer-list li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.sm-footer-list i { color: var(--sm-gold); width: 18px; margin-top: 4px; }
.sm-footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-footer-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
}
.sm-footer-socials a:hover { background: var(--sm-red); border-color: var(--sm-red); text-decoration: none !important; }
.sm-footer-bottom {
  margin-top: 52px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.62);
}
.sm-footer-bottom__inner {
  width: min(var(--sm-max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1320px) and (min-width: 1101px) {
  .sm-nav-shell { width: min(100%, calc(100% - 18px)); gap: 8px; }
  .sm-brand { min-width: 198px; gap: 8px; }
  .sm-brand__mark { width: 58px; height: 58px; }
  .sm-brand__name { font-size: 17px; }
  .sm-menu-link,
  .sm-nav-list > li > a { font-size: 13.8px; padding: 0 5px; letter-spacing: .012em; }
  .sm-nav-cta { font-size: 13.8px; padding: 0 11px; }
}

@media (max-width: 1100px) {
  .sm-nav-shell { grid-template-columns: auto auto; }
  .sm-nav-toggle { display: flex; justify-self: end; }
  .sm-main-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    border-top: 1px solid var(--sm-line);
    padding: 14px 0 18px;
  }
  .sm-site-header.sm-menu-open .sm-main-nav { display: block; }
  .sm-nav-list { display: block; }
  .sm-nav-list > li { border-bottom: 1px solid var(--sm-line); }
  .sm-menu-link, .sm-nav-list > li > a { width: 100%; justify-content: space-between; padding: 12px 4px; min-height: 46px; white-space: normal; font-size: 13px; }
  .sm-submenu, .sm-submenu .sm-submenu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 18px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    margin: 0;
  }
  .sm-has-submenu.sm-open > .sm-submenu { display: block; }
  .sm-nav-cta { display: none; }
  .sm-hero { grid-template-columns: 1fr; }
  .sm-hero-feature, .sm-hero { min-height: auto; }
  .sm-news-slider__track { min-height: 610px; }
}
@media (max-width: 900px) {
  .sm-top-strip__inner, .sm-section-head, .sm-footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .sm-top-strip__inner { padding: 8px 0; }
  .sm-quick-grid, .sm-card-grid, .sm-footer__grid, .sm-app-band, .sm-split { grid-template-columns: 1fr; }
  .sm-app-video iframe, .sm-video-card iframe { min-height: 260px; }
}
@media (max-width: 580px) {
  .sm-brand { min-width: 0; }
  .sm-brand__mark { width: 58px; height: 58px; }
  .sm-brand__name { font-size: 16px; white-space: normal; }
  .sm-hero { width: 100%; margin-top: 0; }
  .sm-hero-copy { padding: 28px 20px; }
  .sm-hero-media { min-height: 280px; }
  .sm-news-slider__track { min-height: 510px; }
  .sm-news-slider__arrow { top: 32%; width: 38px; height: 38px; }
  .sm-home-section { padding: 48px 0; }
  .sm-quick-card { grid-template-rows: 150px 1fr; }
  .sm-quick-card img { height: 150px; object-fit: contain; }
}

/* =========================================================
   Plantilla unificada para paginas interiores
   Aplica a todas las paginas que usan .main-content.
   No afecta el index porque el index usa .sm-home-main.
   ========================================================= */
.main-content {
  background:
    radial-gradient(circle at top left, rgba(239, 75, 27, .07), transparent 32%),
    linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%) !important;
  padding: 42px 0 72px !important;
  min-height: 560px;
}

.main-content > section {
  width: min(var(--sm-max), calc(100% - 32px));
  margin: 0 auto 34px !important;
  padding: clamp(28px, 4vw, 54px) !important;
  background: #fff !important;
  border: 1px solid rgba(18, 48, 74, .10) !important;
  box-shadow: 0 18px 48px rgba(15, 31, 54, .08) !important;
  position: relative;
  overflow: hidden;
}

.main-content > section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--sm-red);
}

.main-content > section > .container,
.main-content > section .container {
  width: 100% !important;
  max-width: 1120px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.main-content > section > div:last-child img[src*="images/bg/f2.png"],
.main-content img[src*="images/bg/f2.png"] {
  display: none !important;
}

.main-content h1,
.main-content h2.text-theme-color-sky,
.main-content h2.font-30,
.main-content .section-title h2 {
  color: var(--sm-blue-dark) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(30px, 3.3vw, 46px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  margin: 0 0 28px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--sm-line) !important;
  position: relative;
}

.main-content h1:after,
.main-content h2.text-theme-color-sky:after,
.main-content h2.font-30:after,
.main-content .section-title h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 4px;
  background: var(--sm-red);
}

.main-content h3,
.main-content h4,
.main-content h5 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  color: var(--sm-blue-dark) !important;
  font-weight: 850 !important;
  letter-spacing: -.015em;
}

.main-content h4.text-theme-color-sky {
  font-size: 24px !important;
  margin: 10px 0 14px !important;
}

.main-content p,
.main-content li {
  color: var(--sm-ink) !important;
  font-size: 16px !important;
  line-height: 1.78 !important;
}

.main-content a {
  color: var(--sm-red);
  text-decoration: none !important;
}

.main-content a:hover {
  color: var(--sm-red-dark);
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.main-content img,
.main-content .img-responsive,
.main-content .img-fullwidth,
.main-content .post-thumb img,
.main-content .team-thumb img {
  border-radius: 0 !important;
}

.main-content .section-content,
.main-content .blog-posts,
.main-content article.post,
.main-content .post,
.main-content .bg-lighter,
.main-content .bg-white {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.main-content article.post,
.main-content .post {
  margin-bottom: 28px !important;
}

.main-content hr {
  border-top: 1px solid var(--sm-line) !important;
  margin: 20px 0 30px !important;
}

.main-content .row {
  margin-left: -14px !important;
  margin-right: -14px !important;
}

.main-content [class*="col-"] {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Bloques de texto e imagen para paginas institucionales */
.main-content .video-popup,
.main-content .post-thumb,
.main-content .entry-header {
  background: #fff !important;
}

.main-content .video-popup img,
.main-content .post-thumb img,
.main-content .entry-header img {
  width: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(18, 48, 74, .10);
}

.main-content .list-dashed,
.main-content .mb-50,
.main-content .pb-30,
.main-content .pt-30,
.main-content .mt-30 {
  border: 0 !important;
}

/* Galerias antiguas convertidas a grilla limpia */
.main-content .gallery-isotope {
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 34px;
}

.main-content .gallery-isotope .gallery-item,
.main-content .gallery-isotope .gallery-item.wide {
  position: static !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

.main-content .gallery-isotope .gallery-item img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

/* Noticias y galeria */
.main-content #blog .section-title,
.main-content .section-title {
  margin-bottom: 26px !important;
}

.main-content form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: var(--sm-soft);
  border: 1px solid var(--sm-line);
  margin-bottom: 30px;
  color: var(--sm-ink);
  font-weight: 750;
}

.main-content input[type="text"],
.main-content select,
.main-content textarea {
  min-height: 42px;
  border: 1px solid var(--sm-line) !important;
  background: #fff !important;
  color: var(--sm-ink) !important;
  padding: 8px 12px !important;
  outline: none;
}

.main-content input[type="submit"],
.main-content .btn,
.main-content .btn-danger {
  min-height: 42px;
  padding: 8px 18px !important;
  background: var(--sm-red) !important;
  border: 2px solid var(--sm-red) !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 0 !important;
}

.main-content input[type="submit"]:hover,
.main-content .btn:hover,
.main-content .btn-danger:hover {
  background: #fff !important;
  color: var(--sm-red) !important;
}

.main-content .news .post,
.main-content #content_galeria .post,
.main-content .col-md-4 .post {
  background: #fff !important;
  border: 1px solid rgba(18,48,74,.10) !important;
  box-shadow: 0 14px 34px rgba(15,31,54,.06) !important;
  height: 100%;
  overflow: hidden;
}

.main-content .noti-post,
.main-content .foto-post,
.main-content .post-thumb.thumb {
  border: 0 !important;
}

.main-content .noti-post img,
.main-content .foto-post img,
.main-content .post-thumb.thumb img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  border: 0 !important;
}

.main-content .entry-content {
  padding: 18px !important;
  background: #fff !important;
}

.main-content .entry-meta {
  height: auto !important;
  display: block !important;
}

.main-content .entry-date,
.main-content .bg-theme-color-red {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  background: var(--sm-red) !important;
  color: #fff !important;
  padding: 6px 10px !important;
  margin-bottom: 12px;
}

.main-content .entry-date ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-content .entry-date li,
.main-content .entry-date .text-white {
  color: #fff !important;
  border: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.main-content .entry-title,
.main-content .entry-title a {
  color: var(--sm-blue-dark) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

/* Equipos / autoridades / funcionarios */
.main-content .team-members {
  display: block;
}

.main-content .team-member {
  background: #fff;
  border: 1px solid rgba(18,48,74,.10);
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
  margin-bottom: 28px;
  overflow: hidden;
}

.main-content .team-thumb img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  margin-top: 0 !important;
  border: 0 !important;
}

.main-content .team-details,
.main-content .bg-theme-color-sky {
  background: var(--sm-blue-dark) !important;
  padding: 18px 14px !important;
}

.main-content .team-details h3,
.main-content .team-details p,
.main-content .team-details .text-white,
.main-content .member-biography h3,
.main-content .member-biography p {
  color: #fff !important;
}

.main-content .team-details h3,
.main-content .member-biography h3 {
  font-size: 17px !important;
  line-height: 1.25 !important;
  margin: 0 0 6px !important;
}

.main-content .team-details p,
.main-content .member-biography p {
  font-size: 14px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* Tablas, documentos e iframes */
.main-content table {
  width: 100% !important;
  background: #fff;
  border-collapse: collapse;
  border: 1px solid var(--sm-line);
}

.main-content table th,
.main-content table td {
  border: 1px solid var(--sm-line) !important;
  padding: 10px 12px !important;
  color: var(--sm-ink) !important;
}

.main-content iframe {
  max-width: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .main-content {
    padding: 24px 0 48px !important;
  }

  .main-content > section {
    width: min(100% - 24px, var(--sm-max));
    padding: 26px 18px !important;
  }

  .main-content form {
    justify-content: flex-start;
  }

  .main-content input[type="text"],
  .main-content select,
  .main-content input[type="submit"] {
    width: 100%;
  }

  .main-content .team-thumb img,
  .main-content .noti-post img,
  .main-content .foto-post img,
  .main-content .post-thumb.thumb img {
    height: auto !important;
  }
}

/* Ajuste específico para Historia: evita caja doble y mejora espaciado */
.main-content.sm-inner-page {
  padding: 46px 0 76px !important;
}

.main-content.sm-inner-page > .sm-inner-card {
  width: min(var(--sm-max), calc(100% - 32px));
  margin: 0 auto !important;
  padding: clamp(34px, 4vw, 60px) !important;
}

.sm-inner-header {
  margin-bottom: 34px;
}

.sm-inner-header .sm-section-kicker {
  margin-bottom: 8px;
}

.sm-inner-header h1 {
  margin: 0 !important;
  padding: 0 0 20px !important;
}

.sm-history-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0 0 38px;
}

.sm-history-gallery a {
  display: block;
  border: 1px solid rgba(18, 48, 74, .10);
  background: #fff;
  overflow: hidden;
  text-decoration: none !important;
}

.sm-history-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform .22s ease;
}

.sm-history-gallery a:hover img {
  transform: scale(1.025);
}

.sm-history-content {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.sm-founder-card {
  border: 1px solid rgba(18, 48, 74, .10);
  background: #f8fafc;
  padding: 20px;
  text-align: center;
}

.sm-founder-card img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 0 !important;
}

.sm-founder-card h2 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--sm-blue-dark) !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  letter-spacing: -.03em !important;
}

.sm-founder-card h2:after {
  display: none !important;
}

.sm-founder-card p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-style: italic;
}

.sm-history-text p {
  margin: 0 0 18px !important;
  color: var(--sm-ink) !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
}

.sm-history-text p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 800px) {
  .sm-history-content {
    grid-template-columns: 1fr;
  }

  .sm-founder-card {
    max-width: 380px;
  }
}


/* Corrección historia: modal de galería y logos rotativos bajo Norma Lühr Fernández */
.sm-history-gallery a {
  cursor: zoom-in;
}

.sm-founder-rotating-logo {
  margin-top: 22px;
  text-align: center;
}

.sm-founder-rotating-logo img {
  width: min(80%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 0.65rem crimson);
  border-radius: 0 !important;
}

.sm-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 31, 53, .88);
}

.sm-lightbox-modal.is-open {
  display: flex;
}

.sm-lightbox-modal__dialog {
  width: min(1100px, 100%);
  max-height: 92vh;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sm-lightbox-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sm-line);
}

.sm-lightbox-modal__title {
  margin: 0;
  color: var(--sm-blue-dark);
  font-size: 16px;
  font-weight: 900;
}

.sm-lightbox-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--sm-red);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sm-lightbox-modal__image-wrap {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.sm-lightbox-modal__image {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 0 !important;
}

.sm-lightbox-modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 18px;
}

.sm-lightbox-modal__nav button {
  border: 0;
  background: var(--sm-blue-dark);
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.sm-lightbox-modal__nav button:hover {
  background: var(--sm-red);
}

@media (max-width: 580px) {
  .sm-lightbox-modal { padding: 12px; }
  .sm-lightbox-modal__image { max-height: 64vh; }
}


/* Página Misión y Visión: diseño unificado con páginas interiores */
.sm-myv-intro {
  max-width: 820px;
  margin: -8px 0 34px;
}

.sm-myv-intro p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-myv-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid var(--sm-line);
}

.sm-myv-block:first-of-type {
  border-top: 0;
}

.sm-myv-block--vision {
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
}

.sm-myv-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sm-red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.sm-myv-label:before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--sm-red);
}

.sm-myv-text h2 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--sm-blue-dark) !important;
  font-size: clamp(26px, 3vw, 40px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
}

.sm-myv-text h2:after {
  display: none !important;
}

.sm-myv-text p {
  margin: 0 !important;
  color: var(--sm-ink) !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
}

.sm-myv-image {
  margin: 0 !important;
  border: 1px solid rgba(18, 48, 74, .10);
  background: #f8fafc;
  padding: 24px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-myv-image img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  border-radius: 0 !important;
}

@media (max-width: 800px) {
  .sm-myv-block,
  .sm-myv-block--vision {
    grid-template-columns: 1fr;
  }

  .sm-myv-block--vision .sm-myv-image {
    order: 2;
  }

  .sm-myv-block--vision .sm-myv-text {
    order: 1;
  }
}


/* Página Organigrama: diseño unificado con páginas interiores */
.sm-organigrama-intro {
  max-width: 840px;
  margin: -8px 0 34px;
}

.sm-organigrama-intro p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-organigrama-frame {
  margin: 0 !important;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(18, 48, 74, .10);
  background: #f8fafc;
}

.sm-organigrama-frame a {
  display: block;
  cursor: zoom-in;
  text-decoration: none !important;
}

.sm-organigrama-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0 !important;
  background: #fff;
}

.sm-organigrama-frame figcaption {
  margin-top: 16px;
  color: var(--sm-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}


/* Página Funcionarios: diseño unificado y scroll normal */
html {
  scroll-behavior: auto !important;
}

.sm-staff-intro {
  max-width: 860px;
  margin: -8px 0 34px;
}

.sm-staff-intro p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-staff-section {
  padding: clamp(26px, 4vw, 42px) 0;
  border-top: 1px solid var(--sm-line);
}

.sm-staff-section:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.sm-staff-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sm-staff-section__head h2 {
  margin: 0 !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  color: var(--sm-blue-dark) !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  position: relative;
}

.sm-staff-section__head h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--sm-red);
}

.sm-staff-section__head span {
  color: var(--sm-muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sm-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.sm-staff-card {
  border: 1px solid rgba(18, 48, 74, .10);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,31,54,.055);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sm-staff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,75,27,.35);
  box-shadow: 0 18px 42px rgba(15,31,54,.10);
}

.sm-staff-card__photo {
  background: #f3f6fa;
  border-bottom: 4px solid var(--sm-red);
}

.sm-staff-card__photo img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 !important;
}

.sm-staff-card__body {
  padding: 14px 12px 16px;
  text-align: center;
}

.sm-staff-card__body h3 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--sm-blue-dark) !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

.sm-staff-card__body h3:after {
  display: none !important;
}

.sm-staff-card__body p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

@media (max-width: 700px) {
  .sm-staff-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sm-staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
  }

  .sm-staff-card__photo img {
    height: 180px;
  }
}


/* Página Infraestructura: diseño unificado con páginas interiores */
.sm-infra-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  margin: -8px 0 34px;
}

.sm-infra-intro p {
  margin: 0 0 14px !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-infra-intro p:last-child {
  margin-bottom: 0 !important;
}

.sm-infra-summary {
  background: var(--sm-blue-dark);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 6px solid var(--sm-red);
}

.sm-infra-summary strong {
  display: block;
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}

.sm-infra-summary span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.82);
}

.sm-infra-table-wrap {
  border: 1px solid rgba(18, 48, 74, .10);
  background: #fff;
  overflow-x: auto;
}

.sm-infra-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.sm-infra-table th {
  background: var(--sm-blue-dark);
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sm-infra-table th:last-child {
  width: 150px;
  text-align: center;
}

.sm-infra-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--sm-line);
  color: var(--sm-ink);
  font-size: 16px;
  line-height: 1.45;
}

.sm-infra-table td:last-child {
  text-align: center;
  font-weight: 900;
  color: var(--sm-red);
  font-size: 18px;
}

.sm-infra-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.sm-infra-table tbody tr:hover {
  background: rgba(239, 75, 27, .06);
}

@media (max-width: 760px) {
  .sm-infra-intro {
    grid-template-columns: 1fr;
  }

  .sm-infra-summary {
    max-width: 320px;
  }
}


/* Páginas del menú Servicios: descripción izquierda + imagen derecha */
.sm-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.sm-service-copy {
  border-left: 6px solid var(--sm-red);
  padding: clamp(18px, 3vw, 28px);
  background: #f8fafc;
}

.sm-service-copy p {
  margin: 0 0 18px !important;
  color: var(--sm-ink) !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
}

.sm-service-copy p:last-child {
  margin-bottom: 0 !important;
}

.sm-service-image {
  margin: 0 !important;
  padding: 18px;
  border: 1px solid rgba(18, 48, 74, .10);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
}

.sm-service-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  border-radius: 0 !important;
}

@media (max-width: 850px) {
  .sm-service-layout {
    grid-template-columns: 1fr;
  }

  .sm-service-image {
    order: 2;
  }

  .sm-service-copy {
    order: 1;
  }
}


/* Páginas de documentos y circulares: diseño unificado */
.sm-documents-intro {
  max-width: 860px;
  margin: -8px 0 34px;
}

.sm-documents-intro p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-documents-table-wrap {
  border: 1px solid rgba(18, 48, 74, .10);
  background: #fff;
  overflow-x: auto;
}

.sm-documents-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.sm-documents-table th {
  background: var(--sm-blue-dark);
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sm-documents-table th:last-child {
  width: 230px;
  text-align: center;
}

.sm-documents-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--sm-line);
  color: var(--sm-ink);
  font-size: 16px;
  line-height: 1.45;
}

.sm-documents-table td:last-child {
  text-align: center;
  color: var(--sm-muted);
  font-weight: 850;
}

.sm-documents-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.sm-documents-table tbody tr:hover {
  background: rgba(239, 75, 27, .06);
}

.sm-documents-table a {
  color: var(--sm-blue-dark);
  font-weight: 900;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.sm-documents-table a:hover {
  color: var(--sm-red);
  border-bottom-color: var(--sm-red);
}

.sm-documents-empty {
  text-align: center !important;
  color: var(--sm-muted) !important;
  font-weight: 800 !important;
  padding: 28px 18px !important;
}


/* Corrección contraste tabla circulares/documentos */
.sm-documents-table thead th,
.sm-documents-table thead th *,
.sm-documents-table th,
.sm-documents-table th * {
  color: #ffffff !important;
}

.sm-documents-table thead th {
  background: var(--sm-blue-dark) !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

.sm-documents-table td a {
  color: var(--sm-blue-dark) !important;
}

.sm-documents-table td a:hover {
  color: var(--sm-red) !important;
}


/* Ajuste visual: texto más fino en tablas de documentos */
.sm-documents-table th {
  font-weight: 700 !important;
  letter-spacing: .14em !important;
}

.sm-documents-table td {
  font-weight: 400 !important;
}

.sm-documents-table td a {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.sm-documents-table td:last-child {
  font-weight: 600 !important;
  letter-spacing: .02em !important;
}


/* Página Noticias: grilla ordenada y diseño estandarizado */
.sm-news-list-intro {
  max-width: 860px;
  margin: -8px 0 28px;
}

.sm-news-list-intro p {
  margin: 0 !important;
  color: var(--sm-muted) !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.sm-news-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 34px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid rgba(18,48,74,.10);
}

.sm-news-filter label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.sm-news-filter span {
  color: var(--sm-blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sm-news-filter input,
.sm-news-filter select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(18,48,74,.18);
  background: #fff;
  color: var(--sm-ink);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.sm-news-filter input:focus,
.sm-news-filter select:focus {
  border-color: var(--sm-red);
}

.sm-news-filter button {
  height: 44px;
  border: 0;
  background: var(--sm-red);
  color: #fff;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
}

.sm-news-filter button:hover {
  filter: brightness(.96);
}

.sm-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.sm-news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(18,48,74,.10);
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sm-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,75,27,.35);
  box-shadow: 0 20px 46px rgba(15,31,54,.11);
}

.sm-news-card__image {
  display: block;
  background: #eef2f6;
  text-decoration: none !important;
  border-bottom: 4px solid var(--sm-red);
}

.sm-news-card__image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
}

.sm-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.sm-news-card__body time {
  align-self: flex-start;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: var(--sm-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.sm-news-card__body h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 19px !important;
  line-height: 1.28 !important;
  letter-spacing: -.02em !important;
  font-weight: 800 !important;
}

.sm-news-card__body h2:after {
  display: none !important;
}

.sm-news-card__body h2 a {
  color: var(--sm-blue-dark) !important;
  text-decoration: none !important;
}

.sm-news-card__body h2 a:hover {
  color: var(--sm-red) !important;
}

.sm-news-empty {
  grid-column: 1 / -1;
  padding: 30px;
  background: #f8fafc;
  border: 1px solid rgba(18,48,74,.10);
  color: var(--sm-muted);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 760px) {
  .sm-news-filter {
    grid-template-columns: 1fr;
  }

  .sm-news-grid {
    grid-template-columns: 1fr;
  }
}


/* Noticias: botón Ver más con carga progresiva */
.sm-news-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.sm-news-more {
  min-height: 46px;
  border: 0;
  background: var(--sm-red);
  color: #fff;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.sm-news-more:hover {
  filter: brightness(.96);
}

.sm-news-more:disabled {
  opacity: .65;
  cursor: wait;
}

.sm-news-loading {
  color: var(--sm-muted);
  font-size: 14px;
  font-weight: 700;
}


/* Noticias: filtros extendidos y pantalla de carga */
.sm-news-filter--extended {
  grid-template-columns: minmax(230px, 1fr) 130px 170px 210px auto;
}

.sm-news-results-info {
  margin: -12px 0 26px;
  color: var(--sm-muted);
  font-size: 14px;
  font-weight: 700;
}

.sm-page-loading {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 31, 53, .78);
  padding: 20px;
}

.sm-page-loading.is-visible {
  display: flex;
}

.sm-page-loading__box {
  min-width: min(360px, 100%);
  background: #fff;
  color: var(--sm-blue-dark);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  border-top: 6px solid var(--sm-red);
}

.sm-page-loading__spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 5px solid rgba(18,48,74,.14);
  border-top-color: var(--sm-red);
  border-radius: 50%;
  animation: smSpin .8s linear infinite;
}

.sm-page-loading__box strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.sm-page-loading__box span {
  display: block;
  color: var(--sm-muted);
  font-size: 14px;
}

@keyframes smSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .sm-news-filter--extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-news-filter--extended button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .sm-news-filter--extended {
    grid-template-columns: 1fr;
  }
}


/* Corrección alineación botón Buscar en filtros de Noticias */
.sm-news-filter {
  align-items: end !important;
}

.sm-news-filter button {
  align-self: end !important;
  margin-top: 0 !important;
  transform: translateY(0) !important;
}

.sm-news-filter--extended button {
  height: 44px !important;
  margin-bottom: 0 !important;
}

@media (min-width: 1051px) {
  .sm-news-filter--extended {
    align-items: end !important;
  }

  .sm-news-filter--extended button {
    align-self: end !important;
  }
}


/* Galería de Fotos: filtros, grilla ordenada y carga progresiva */
.sm-gallery-filter {
  grid-template-columns: minmax(230px, 1fr) 140px 180px auto;
  align-items: end !important;
}

.sm-gallery-filter button {
  align-self: end !important;
  height: 44px !important;
  margin-bottom: 0 !important;
}

.sm-gallery-card .sm-news-card__image img {
  height: 220px;
}

.sm-gallery-page .sm-news-card__body h2 {
  font-size: 18px !important;
}

@media (max-width: 900px) {
  .sm-gallery-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-gallery-filter button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .sm-gallery-filter {
    grid-template-columns: 1fr;
  }
}


/* Página detalle de noticia: imagen izquierda y texto derecha */
.sm-article-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.sm-article-image {
  margin: 0 !important;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(18, 48, 74, .10);
  box-shadow: 0 14px 34px rgba(15,31,54,.06);
  position: sticky;
  top: 92px;
}

.sm-article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 0 !important;
}

.sm-article-content {
  min-width: 0;
}

.sm-article-date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-bottom: 18px;
  background: var(--sm-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.sm-article-text {
  color: var(--sm-ink);
  font-size: 17px;
  line-height: 1.82;
}

.sm-article-text p {
  margin: 0 0 18px !important;
  color: var(--sm-ink) !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
}

.sm-article-text img {
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
}

.sm-article-text a {
  color: var(--sm-red);
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(239,75,27,.35);
}

.sm-article-text a:hover {
  border-bottom-color: var(--sm-red);
}

.sm-related-gallery {
  margin-top: 34px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid rgba(18, 48, 74, .10);
  border-left: 6px solid var(--sm-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sm-related-gallery span {
  display: block;
  color: var(--sm-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

.sm-related-gallery strong {
  display: block;
  color: var(--sm-blue-dark);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.sm-related-gallery a {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--sm-red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sm-related-gallery a:hover {
  filter: brightness(.96);
}

@media (max-width: 900px) {
  .sm-article-layout {
    grid-template-columns: 1fr;
  }

  .sm-article-image {
    position: static;
  }

  .sm-related-gallery {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Noticia: visor modal para imágenes, documentos y videos del contenido */
.sm-media-open-main {
  cursor: zoom-in;
}

.sm-article-clickable-media {
  cursor: zoom-in;
  transition: opacity .18s ease, transform .18s ease;
}

.sm-article-clickable-media:hover,
.sm-media-open-main:hover img {
  opacity: .92;
}

.sm-article-media-link,
.sm-article-document-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sm-article-document-link:before {
  content: "\f1c1";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.sm-media-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 31, 53, .88);
}

.sm-media-modal.is-visible {
  display: flex;
}

.sm-media-modal__dialog {
  width: min(1180px, 100%);
  max-height: 94vh;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.sm-media-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sm-line);
}

.sm-media-modal__bar h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--sm-blue-dark) !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

.sm-media-modal__bar h2:after {
  display: none !important;
}

.sm-media-modal__bar button {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--sm-red);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.sm-media-modal__body {
  min-height: 220px;
  padding: 18px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.sm-media-modal__image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0 !important;
  background: #fff;
}

.sm-media-modal__document {
  width: 100%;
  height: 76vh;
  border: 0;
  background: #fff;
}

.sm-media-modal__video {
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.sm-media-modal__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sm-media-modal__fallback {
  position: absolute;
  left: -9999px;
}

@media (max-width: 680px) {
  .sm-media-modal {
    padding: 10px;
  }

  .sm-media-modal__document {
    height: 70vh;
  }

  .sm-media-modal__bar h2 {
    font-size: 14px !important;
  }
}


/* Index: saludo institucional con mascota y columnas de igual altura */
.sm-split {
  align-items: stretch !important;
}

.sm-director-photo {
  height: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  padding: clamp(24px, 4vw, 44px) !important;
  border-top: 8px solid var(--sm-red) !important;
  box-shadow: var(--sm-shadow) !important;
}

.sm-letter {
  height: 100% !important;
}

@media (max-width: 760px) {
  .sm-director-photo {
    height: auto !important;
    min-height: 0 !important;
    max-height: 440px !important;
  }
}


/* Corrección final: la imagen del saludo institucional cubre todo el bloque */
.sm-split {
  align-items: stretch !important;
}

.sm-split > .sm-director-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  background: transparent !important;
  border-top: 8px solid var(--sm-red) !important;
  box-shadow: var(--sm-shadow) !important;
}

.sm-split > .sm-letter {
  height: 100% !important;
}

@media (max-width: 760px) {
  .sm-split > .sm-director-photo {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
  }
}


/* =========================================================
   Corrección global controlada de escala y ancho
   Objetivo: evitar que el sitio se vea gigante en escritorio,
   eliminar el scroll horizontal y mantener el diseño estable.
   ========================================================= */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Contenedores: usar viewport real para que un menú ancho no agrande el body */
.sm-top-strip__inner,
.sm-footer__inner,
.sm-page-band__inner {
  width: min(1180px, calc(100vw - 32px)) !important;
}

/* Header: centrado y proporcionado, sin forzar ancho excesivo */
.sm-nav-shell {
  width: min(1500px, calc(100vw - 32px)) !important;
  min-height: 76px !important;
  grid-template-columns: minmax(360px, auto) minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

.sm-brand {
  min-width: 0 !important;
  max-width: 470px !important;
  gap: 10px !important;
}

.sm-brand__mark {
  width: 58px !important;
  height: 58px !important;
}

.sm-brand__name {
  font-size: 17px !important;
  letter-spacing: -.015em !important;
  line-height: 1.1 !important;
}

.sm-main-nav {
  min-width: 0 !important;
  overflow: visible !important;
}

.sm-nav-list {
  min-width: 0 !important;
}

.sm-menu-link,
.sm-nav-list > li > a {
  min-height: 42px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  font-size: 14px !important;
  letter-spacing: .014em !important;
}

.sm-nav-cta {
  min-height: 42px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 14px !important;
}

/* Index: portada y noticia destacada con ancho similar a la referencia */
.sm-hero {
  width: min(1292px, calc(100vw - 48px)) !important;
  margin: 24px auto 0 !important;
  min-height: 560px !important;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr) !important;
  gap: 22px !important;
}

.sm-hero-copy,
.sm-hero-feature {
  min-height: 560px !important;
}

.sm-hero-copy {
  padding: clamp(32px, 3vw, 48px) !important;
}

.sm-hero h1 {
  font-size: clamp(42px, 4.2vw, 66px) !important;
  line-height: 1 !important;
  margin: 22px 0 16px !important;
}

.sm-hero-lead {
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 1.48 !important;
}

.sm-hero-actions {
  margin-top: 28px !important;
}

.sm-btn {
  min-height: 46px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-size: 12.5px !important;
}

.sm-news-slider__track {
  min-height: 560px !important;
}

.sm-news-slide {
  grid-template-rows: 340px auto !important;
}

.sm-hero-media {
  min-height: 340px !important;
  height: 340px !important;
}

.sm-hero-feature__body {
  padding: 26px 30px 30px !important;
}

.sm-hero-feature__title {
  font-size: clamp(24px, 2.35vw, 34px) !important;
  line-height: 1.08 !important;
  margin: 8px 0 16px !important;
}

.sm-news-slider__arrow {
  width: 42px !important;
  height: 42px !important;
}

.sm-news-slider__arrow--prev { left: 18px !important; }
.sm-news-slider__arrow--next { right: 18px !important; }

/* Secciones del inicio */
.sm-home-section {
  width: min(1180px, calc(100vw - 48px)) !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.sm-section-title {
  font-size: clamp(28px, 3.2vw, 42px) !important;
}

.sm-section-head {
  margin-bottom: 26px !important;
}

.sm-quick-grid,
.sm-card-grid {
  gap: 16px !important;
}

/* Saludo institucional: tamaño consistente y foto cubriendo bloque */
.sm-split {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.sm-split > .sm-director-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  background: transparent !important;
  border-top: 8px solid var(--sm-red) !important;
  box-shadow: var(--sm-shadow) !important;
}

.sm-letter {
  padding: clamp(34px, 4vw, 56px) !important;
}

/* Páginas interiores: menos anchas y con menos aire */
.main-content.sm-inner-page {
  padding-top: 34px !important;
  padding-bottom: 58px !important;
}

.main-content.sm-inner-page > .sm-inner-card {
  width: min(1080px, calc(100vw - 48px)) !important;
  padding: clamp(28px, 3vw, 46px) !important;
}

.sm-inner-header {
  margin-bottom: 28px !important;
}

.sm-inner-header h1 {
  font-size: clamp(32px, 3.4vw, 48px) !important;
  line-height: 1.05 !important;
  padding-bottom: 16px !important;
}

.sm-section-kicker {
  font-size: 12px !important;
  letter-spacing: .18em !important;
}

.main-content.sm-inner-page p,
.sm-history-text p,
.sm-service-copy p,
.sm-article-text,
.sm-article-text p,
.sm-news-list-intro p,
.sm-documents-intro p,
.sm-myv-intro p,
.sm-organigrama-intro p,
.sm-infra-intro p {
  font-size: 16px !important;
  line-height: 1.72 !important;
}

/* Noticias, galerías y tarjetas */
.sm-news-grid {
  gap: 20px !important;
}

.sm-news-card__image img {
  height: 190px !important;
}

.sm-news-card__body {
  padding: 16px 16px 18px !important;
}

.sm-news-card__body h2 {
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.sm-gallery-card .sm-news-card__image img {
  height: 200px !important;
}

/* Servicios y noticia detalle */
.sm-service-layout,
.sm-article-layout {
  gap: clamp(22px, 3vw, 40px) !important;
}

.sm-service-image,
.sm-article-image {
  padding: 14px !important;
}

.sm-service-image img {
  max-height: 380px !important;
}

.sm-article-image img {
  max-height: 500px !important;
}

/* Tablas */
.sm-documents-table th,
.sm-documents-table td {
  padding: 14px 16px !important;
}

/* Escritorios medianos: mantener menú dentro del viewport */
@media (max-width: 1450px) and (min-width: 1101px) {
  .sm-nav-shell {
    width: min(1280px, calc(100vw - 24px)) !important;
    grid-template-columns: minmax(300px, auto) minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .sm-brand {
    max-width: 390px !important;
  }

  .sm-brand__mark {
    width: 52px !important;
    height: 52px !important;
  }

  .sm-brand__name {
    font-size: 15.5px !important;
  }

  .sm-menu-link,
  .sm-nav-list > li > a {
    font-size: 12.8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    letter-spacing: .006em !important;
  }

  .sm-nav-cta {
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 13px !important;
  }

  .sm-hero {
    width: min(1180px, calc(100vw - 42px)) !important;
    min-height: 520px !important;
  }

  .sm-hero-copy,
  .sm-hero-feature,
  .sm-news-slider__track {
    min-height: 520px !important;
  }

  .sm-news-slide {
    grid-template-rows: 315px auto !important;
  }

  .sm-hero-media {
    min-height: 315px !important;
    height: 315px !important;
  }

  .sm-hero h1 {
    font-size: clamp(40px, 4vw, 58px) !important;
  }
}

@media (max-width: 1100px) {
  .sm-nav-shell {
    width: min(100vw - 24px, 1180px) !important;
  }

  .sm-hero {
    width: min(100vw - 24px, 760px) !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .sm-hero-copy,
  .sm-hero-feature,
  .sm-news-slider__track {
    min-height: 480px !important;
  }

  .sm-news-slide {
    grid-template-rows: 300px auto !important;
  }

  .sm-hero-media {
    min-height: 300px !important;
    height: 300px !important;
  }
}

@media (max-width: 760px) {
  .sm-home-section,
  .sm-split,
  .main-content.sm-inner-page > .sm-inner-card {
    width: min(100vw - 24px, 1080px) !important;
  }

  .main-content.sm-inner-page > .sm-inner-card {
    padding: 24px !important;
  }

  .sm-inner-header h1 {
    font-size: clamp(30px, 8vw, 40px) !important;
  }

  .sm-split > .sm-director-photo {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }
}

/* =========================================================
   Ajuste de escala v2 - más compacto y centrado
   ========================================================= */
html, body {
  overflow-x: hidden !important;
}

/* Header más bajo, sin deformar el menú */
.sm-top-strip__inner {
  min-height: 28px !important;
  font-size: 12.5px !important;
}

.sm-nav-shell {
  max-width: 1280px !important;
  width: calc(100% - 44px) !important;
  min-height: 68px !important;
  gap: 10px !important;
}

.sm-brand {
  min-width: 260px !important;
  gap: 10px !important;
}

.sm-brand__mark {
  width: 52px !important;
  height: 52px !important;
}

.sm-brand__name {
  font-size: 15.5px !important;
  letter-spacing: .01em !important;
}

.sm-menu-link,
.sm-nav-list > li > a {
  min-height: 40px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  font-size: 13.2px !important;
  letter-spacing: .01em !important;
}

.sm-nav-cta {
  min-height: 42px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-size: 13.5px !important;
}

/* Portada del inicio más contenida */
.sm-home-main .sm-hero {
  max-width: 1280px !important;
  width: calc(100% - 48px) !important;
  margin-top: 18px !important;
  min-height: 500px !important;
  gap: 20px !important;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr) !important;
}

.sm-home-main .sm-hero-copy,
.sm-home-main .sm-hero-feature {
  min-height: 500px !important;
  height: 500px !important;
}

.sm-home-main .sm-hero-copy {
  padding: 36px 40px !important;
}

.sm-home-main .sm-hero h1 {
  font-size: clamp(38px, 3.6vw, 58px) !important;
  line-height: 1 !important;
  margin: 20px 0 14px !important;
}

.sm-home-main .sm-hero-lead {
  font-size: clamp(16px, 1.15vw, 18.5px) !important;
  line-height: 1.45 !important;
}

.sm-home-main .sm-hero-actions {
  margin-top: 24px !important;
}

.sm-home-main .sm-btn {
  min-height: 42px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 12px !important;
}

.sm-home-main .sm-news-slider__track {
  min-height: 500px !important;
  height: 500px !important;
}

.sm-home-main .sm-news-slide {
  grid-template-rows: 300px 200px !important;
  min-height: 500px !important;
  height: 500px !important;
}

.sm-home-main .sm-hero-media {
  min-height: 300px !important;
  height: 300px !important;
}

.sm-home-main .sm-hero-feature__body {
  padding: 22px 28px 24px !important;
}

.sm-home-main .sm-hero-feature__date {
  font-size: 12px !important;
  margin-bottom: 6px !important;
}

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(22px, 2.1vw, 30px) !important;
  line-height: 1.1 !important;
  margin: 6px 0 12px !important;
}

.sm-home-main .sm-hero-feature__link {
  font-size: 12px !important;
}

.sm-home-main .sm-news-slider__arrow {
  width: 38px !important;
  height: 38px !important;
  top: 37% !important;
}

.sm-home-main .sm-news-slider__arrow--prev { left: 16px !important; }
.sm-home-main .sm-news-slider__arrow--next { right: 16px !important; }

/* Secciones generales un poco más compactas */
.sm-home-section,
.sm-news-area .sm-home-section {
  max-width: 1180px !important;
  width: calc(100% - 48px) !important;
  padding-top: 46px !important;
  padding-bottom: 46px !important;
}

.sm-section-head {
  margin-bottom: 24px !important;
}

.sm-section-title {
  font-size: clamp(26px, 3vw, 38px) !important;
}

/* Saludo institucional */
.sm-split {
  max-width: 1180px !important;
  width: calc(100% - 48px) !important;
  gap: 26px !important;
}

.sm-letter {
  padding: clamp(30px, 3.4vw, 48px) !important;
}

.sm-letter h2 {
  font-size: clamp(32px, 3.4vw, 48px) !important;
}

.sm-letter p {
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* Interiores: menor escala sin tocar la estructura */
.main-content.sm-inner-page {
  padding-top: 30px !important;
  padding-bottom: 52px !important;
}

.main-content.sm-inner-page > .sm-inner-card {
  max-width: 1060px !important;
  width: calc(100% - 48px) !important;
  padding: clamp(26px, 2.8vw, 42px) !important;
}

.sm-inner-header h1 {
  font-size: clamp(30px, 3.2vw, 44px) !important;
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .sm-nav-shell {
    max-width: 1180px !important;
    width: calc(100% - 28px) !important;
  }

  .sm-brand {
    min-width: 230px !important;
  }

  .sm-brand__mark {
    width: 48px !important;
    height: 48px !important;
  }

  .sm-brand__name {
    font-size: 14.2px !important;
  }

  .sm-menu-link,
  .sm-nav-list > li > a {
    font-size: 12px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .sm-nav-cta {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 12.5px !important;
  }

  .sm-home-main .sm-hero {
    max-width: 1160px !important;
    min-height: 460px !important;
  }

  .sm-home-main .sm-hero-copy,
  .sm-home-main .sm-hero-feature,
  .sm-home-main .sm-news-slider__track,
  .sm-home-main .sm-news-slide {
    min-height: 460px !important;
    height: 460px !important;
  }

  .sm-home-main .sm-news-slide {
    grid-template-rows: 275px 185px !important;
  }

  .sm-home-main .sm-hero-media {
    min-height: 275px !important;
    height: 275px !important;
  }

  .sm-home-main .sm-hero h1 {
    font-size: clamp(36px, 3.7vw, 52px) !important;
  }

  .sm-home-main .sm-hero-copy {
    padding: 32px 36px !important;
  }
}


/* =========================================================
   Ajuste fino para igualar referencia visual del usuario
   ========================================================= */
.sm-nav-shell {
  max-width: 1440px !important;
  width: calc(100% - 24px) !important;
  min-height: 74px !important;
}

.sm-brand {
  gap: 10px !important;
  min-width: 280px !important;
}

.sm-brand__mark {
  width: 52px !important;
  height: 52px !important;
}

.sm-brand__name {
  font-size: 16px !important;
}

.sm-menu-link,
.sm-nav-list > li > a {
  min-height: 42px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  font-size: 13.4px !important;
}

.sm-nav-cta {
  min-height: 40px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 13px !important;
}

.sm-home-main .sm-hero {
  max-width: 1240px !important;
  width: calc(100% - 56px) !important;
  margin-top: 14px !important;
  min-height: 450px !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr) !important;
}

.sm-home-main .sm-hero-copy,
.sm-home-main .sm-hero-feature {
  min-height: 450px !important;
  height: 450px !important;
}

.sm-home-main .sm-hero-copy {
  padding: 30px 34px !important;
}

.sm-home-main .sm-hero h1 {
  font-size: clamp(34px, 3.2vw, 52px) !important;
  line-height: .98 !important;
  margin: 14px 0 12px !important;
}

.sm-home-main .sm-hero-lead {
  font-size: clamp(15px, 1.05vw, 17.5px) !important;
  line-height: 1.45 !important;
  max-width: 510px !important;
}

.sm-home-main .sm-hero-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

.sm-home-main .sm-btn {
  min-height: 40px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  font-size: 11.5px !important;
}

.sm-home-main .sm-news-slider__track {
  min-height: 450px !important;
  height: 450px !important;
}

.sm-home-main .sm-news-slide {
  grid-template-rows: 270px 180px !important;
  min-height: 450px !important;
  height: 450px !important;
}

.sm-home-main .sm-hero-media {
  min-height: 270px !important;
  height: 270px !important;
}

.sm-home-main .sm-hero-feature__body {
  padding: 18px 24px 22px !important;
}

.sm-home-main .sm-hero-feature__date {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(18px, 1.9vw, 27px) !important;
  line-height: 1.08 !important;
  margin: 4px 0 10px !important;
}

.sm-home-main .sm-hero-feature__link {
  font-size: 11.5px !important;
}

.sm-home-main .sm-news-slider__arrow {
  width: 34px !important;
  height: 34px !important;
  top: 40% !important;
}

.sm-home-main .sm-news-slider__arrow--prev { left: 14px !important; }
.sm-home-main .sm-news-slider__arrow--next { right: 14px !important; }

.sm-home-section,
.sm-news-area .sm-home-section {
  max-width: 1120px !important;
  width: calc(100% - 56px) !important;
  padding-top: 40px !important;
  padding-bottom: 42px !important;
}

.sm-section-kicker {
  font-size: 12px !important;
}

.sm-section-title {
  font-size: clamp(24px, 2.8vw, 36px) !important;
}

.sm-split {
  max-width: 1120px !important;
  width: calc(100% - 56px) !important;
  gap: 22px !important;
}

.sm-letter {
  padding: clamp(26px, 3vw, 40px) !important;
}

.sm-letter h2 {
  font-size: clamp(28px, 3vw, 42px) !important;
}

.main-content.sm-inner-page > .sm-inner-card {
  max-width: 1020px !important;
  width: calc(100% - 56px) !important;
  padding: clamp(24px, 2.6vw, 38px) !important;
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .sm-nav-shell {
    max-width: 1320px !important;
  }

  .sm-home-main .sm-hero {
    max-width: 1160px !important;
    width: calc(100% - 42px) !important;
    min-height: 420px !important;
  }

  .sm-home-main .sm-hero-copy,
  .sm-home-main .sm-hero-feature,
  .sm-home-main .sm-news-slider__track,
  .sm-home-main .sm-news-slide {
    min-height: 420px !important;
    height: 420px !important;
  }

  .sm-home-main .sm-news-slide {
    grid-template-rows: 250px 170px !important;
  }

  .sm-home-main .sm-hero-media {
    min-height: 250px !important;
    height: 250px !important;
  }

  .sm-home-main .sm-hero h1 {
    font-size: clamp(32px, 3.3vw, 46px) !important;
  }
}


/* =========================================================
   CORRECCIÓN FINAL REAL DE ANCHO GLOBAL
   Objetivo:
   - Evitar que el sitio se estire de lado a lado en monitores grandes.
   - Centrar index, páginas interiores, footer, tablas, noticias y galerías.
   - Mantener menú funcional sin deformarlo.
   ========================================================= */

:root {
  --sm-max: 1180px !important;
  --sm-wide: 1260px !important;
  --sm-page-gutter: 32px !important;
}

/* Evita scroll horizontal accidental */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Header: la barra superior y el menú también se centran,
   pero el fondo azul/blanco sigue ocupando todo el ancho. */
.sm-top-strip__inner,
.sm-nav-shell {
  width: min(var(--sm-wide), calc(100% - var(--sm-page-gutter))) !important;
  max-width: var(--sm-wide) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sm-nav-shell {
  min-height: 72px !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 14px !important;
}

.sm-brand {
  min-width: 0 !important;
}

.sm-brand__mark {
  width: 52px !important;
  height: 52px !important;
}

.sm-brand__name {
  font-size: 16px !important;
  letter-spacing: .01em !important;
}

.sm-menu-link,
.sm-nav-list > li > a {
  min-height: 42px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  font-size: 13px !important;
}

.sm-nav-cta {
  min-height: 40px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  font-size: 13px !important;
}

/* INDEX: bloque principal centrado y con ancho parecido a la referencia */
.sm-home-main .sm-hero {
  width: min(var(--sm-wide), calc(100% - var(--sm-page-gutter))) !important;
  max-width: var(--sm-wide) !important;
  margin: 22px auto 0 !important;
  min-height: 420px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  gap: 20px !important;
}

.sm-home-main .sm-hero-copy,
.sm-home-main .sm-hero-feature,
.sm-home-main .sm-news-slider__track,
.sm-home-main .sm-news-slide {
  min-height: 420px !important;
  height: 420px !important;
}

.sm-home-main .sm-hero-copy {
  padding: 30px 34px !important;
}

.sm-home-main .sm-hero h1 {
  font-size: clamp(34px, 3.1vw, 50px) !important;
  line-height: 1 !important;
  margin: 12px 0 12px !important;
  max-width: 560px !important;
}

.sm-home-main .sm-hero-lead {
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.45 !important;
  max-width: 560px !important;
}

.sm-home-main .sm-hero-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

.sm-home-main .sm-btn {
  min-height: 40px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 11.5px !important;
}

.sm-home-main .sm-news-slide {
  grid-template-rows: 250px 170px !important;
}

.sm-home-main .sm-hero-media {
  min-height: 250px !important;
  height: 250px !important;
}

.sm-home-main .sm-hero-feature__body {
  padding: 18px 24px 22px !important;
}

.sm-home-main .sm-hero-feature__date {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(20px, 1.8vw, 28px) !important;
  line-height: 1.08 !important;
  margin: 4px 0 10px !important;
}

.sm-home-main .sm-hero-feature__link {
  font-size: 11.5px !important;
}

.sm-home-main .sm-news-slider__arrow {
  width: 34px !important;
  height: 34px !important;
  top: 39% !important;
}

.sm-home-main .sm-news-slider__arrow--prev {
  left: 14px !important;
}

.sm-home-main .sm-news-slider__arrow--next {
  right: 14px !important;
}

/* INDEX: todas las secciones con el mismo ancho máximo */
.sm-home-section,
.sm-news-area .sm-home-section,
.sm-app-band,
.sm-split,
.sm-footer__inner,
.sm-footer-bottom__inner {
  width: min(var(--sm-max), calc(100% - var(--sm-page-gutter))) !important;
  max-width: var(--sm-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sm-home-section,
.sm-news-area .sm-home-section {
  padding-top: 42px !important;
  padding-bottom: 46px !important;
}

.sm-section-head {
  margin-bottom: 24px !important;
}

.sm-section-title {
  font-size: clamp(26px, 2.7vw, 38px) !important;
}

/* Saludo institucional */
.sm-split {
  gap: 24px !important;
  align-items: stretch !important;
}

.sm-split > .sm-director-photo {
  height: 100% !important;
  min-height: 420px !important;
  object-fit: cover !important;
}

.sm-letter {
  padding: clamp(28px, 3vw, 42px) !important;
}

.sm-letter h2 {
  font-size: clamp(30px, 3vw, 44px) !important;
}

.sm-letter p {
  font-size: 16px !important;
  line-height: 1.68 !important;
}

/* PÁGINAS INTERIORES:
   La causa del problema global era que varias secciones usaban calc(100% - 32px).
   Aquí se fuerza un ancho máximo centrado para todas. */
.main-content,
.main-content.sm-inner-page {
  padding-top: 34px !important;
  padding-bottom: 56px !important;
}

.main-content > section,
.main-content.sm-inner-page > .sm-inner-card,
.main-content section#blog,
.main-content > .container,
.main-content .container {
  width: min(var(--sm-max), calc(100% - var(--sm-page-gutter))) !important;
  max-width: var(--sm-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.main-content > section,
.main-content.sm-inner-page > .sm-inner-card {
  padding: clamp(26px, 3vw, 42px) !important;
}

.main-content > section .container,
.main-content section#blog .container,
.main-content.sm-inner-page .container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Encabezados interiores */
.sm-inner-header h1,
.main-content h1,
.main-content h2.font-30,
.main-content .section-title h2 {
  font-size: clamp(30px, 3.1vw, 44px) !important;
  line-height: 1.06 !important;
}

.sm-section-kicker {
  font-size: 12px !important;
}

/* Noticias, galería y tarjetas */
.sm-news-grid,
.sm-card-grid,
.sm-quick-grid {
  width: 100% !important;
}

.sm-news-card__image img {
  height: 190px !important;
}

.sm-media-card__image {
  height: 200px !important;
}

.sm-news-card__body,
.sm-media-card__body {
  padding: 16px !important;
}

.sm-news-card__body h2,
.sm-media-card h3 {
  font-size: 18px !important;
  line-height: 1.22 !important;
}

/* Formularios y tablas interiores */
.sm-news-filter,
.main-content form {
  max-width: 100% !important;
}

.sm-documents-table-wrap,
.sm-infra-table,
.sm-documents-table {
  width: 100% !important;
}

/* Footer centrado */
.sm-site-footer {
  padding-top: 46px !important;
}

.sm-footer-bottom {
  margin-top: 38px !important;
}

/* En pantallas medianas se mantiene centrado sin romper el menú */
@media (max-width: 1300px) and (min-width: 1101px) {
  :root {
    --sm-wide: 1180px !important;
    --sm-max: 1120px !important;
    --sm-page-gutter: 28px !important;
  }

  .sm-brand__mark {
    width: 48px !important;
    height: 48px !important;
  }

  .sm-brand__name {
    font-size: 14.5px !important;
  }

  .sm-menu-link,
  .sm-nav-list > li > a {
    font-size: 12px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .sm-nav-cta {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .sm-home-main .sm-hero {
    min-height: 400px !important;
  }

  .sm-home-main .sm-hero-copy,
  .sm-home-main .sm-hero-feature,
  .sm-home-main .sm-news-slider__track,
  .sm-home-main .sm-news-slide {
    min-height: 400px !important;
    height: 400px !important;
  }

  .sm-home-main .sm-news-slide {
    grid-template-rows: 235px 165px !important;
  }

  .sm-home-main .sm-hero-media {
    min-height: 235px !important;
    height: 235px !important;
  }

  .sm-home-main .sm-hero h1 {
    font-size: clamp(32px, 3vw, 44px) !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  :root {
    --sm-page-gutter: 24px !important;
  }

  .sm-home-main .sm-hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .sm-home-main .sm-hero-copy,
  .sm-home-main .sm-hero-feature,
  .sm-home-main .sm-news-slider__track,
  .sm-home-main .sm-news-slide {
    height: auto !important;
    min-height: 420px !important;
  }

  .sm-home-main .sm-news-slide {
    grid-template-rows: 250px auto !important;
  }
}

@media (max-width: 760px) {
  :root {
    --sm-page-gutter: 20px !important;
  }

  .sm-brand__mark {
    width: 48px !important;
    height: 48px !important;
  }

  .sm-home-main .sm-hero {
    margin-top: 0 !important;
  }

  .sm-home-main .sm-hero-copy {
    padding: 26px 22px !important;
  }

  .sm-home-main .sm-hero h1 {
    font-size: clamp(34px, 11vw, 46px) !important;
  }

  .main-content > section,
  .main-content.sm-inner-page > .sm-inner-card {
    padding: 24px !important;
  }
}


/* =========================================================
   AJUSTE HERO TEXTO CENTRADO Y TITULO SLIDER COMPLETO
   ========================================================= */

/* Centra verticalmente el texto del bloque izquierdo del index */
.sm-home-main .sm-hero-copy {
  justify-content: center !important;
  align-items: flex-start !important;
}

.sm-home-main .sm-hero-copy > div {
  width: 100% !important;
  max-width: 620px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.sm-home-main .sm-hero h1 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.sm-home-main .sm-hero-lead {
  margin-bottom: 0 !important;
}

.sm-home-main .sm-hero-actions {
  margin-top: 22px !important;
}

/* Slider: permite títulos largos sin puntos suspensivos ni cortes */
.sm-home-main .sm-news-slide {
  grid-template-rows: 245px 1fr !important;
}

.sm-home-main .sm-hero-media {
  min-height: 245px !important;
  height: 245px !important;
}

.sm-home-main .sm-hero-feature__body {
  min-height: 175px !important;
  padding: 20px 24px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.sm-home-main .sm-hero-feature__date {
  flex: 0 0 auto !important;
  line-height: 1.25 !important;
}

.sm-home-main .sm-hero-feature__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  max-width: 100% !important;
  font-size: clamp(20px, 1.65vw, 27px) !important;
  line-height: 1.17 !important;
  margin: 6px 0 14px !important;
  padding-bottom: 4px !important;
}

.sm-home-main .sm-hero-feature__link {
  margin-top: auto !important;
  padding-top: 2px !important;
  line-height: 1.3 !important;
}

@media (min-width: 1600px) {
  .sm-home-main .sm-hero-feature__title {
    font-size: 26px !important;
  }
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-news-slide {
    grid-template-rows: 235px 1fr !important;
  }

  .sm-home-main .sm-hero-media {
    min-height: 235px !important;
    height: 235px !important;
  }

  .sm-home-main .sm-hero-feature__body {
    min-height: 165px !important;
    padding: 18px 22px 28px !important;
  }

  .sm-home-main .sm-hero-feature__title {
    font-size: clamp(18px, 1.6vw, 24px) !important;
    line-height: 1.18 !important;
  }
}


/* =========================================================
   AJUSTE AUTOMATICO TITULO SLIDER SEGUN LONGITUD
   ========================================================= */

.sm-home-main .sm-hero-feature__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  padding-bottom: 6px !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-sm {
  font-size: 28px !important;
  line-height: 1.14 !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-md {
  font-size: 25px !important;
  line-height: 1.15 !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-lg {
  font-size: 22px !important;
  line-height: 1.18 !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-xl {
  font-size: 19.5px !important;
  line-height: 1.22 !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-xxl {
  font-size: 17.5px !important;
  line-height: 1.25 !important;
}

@media (min-width: 1600px) {
  .sm-home-main .sm-hero-feature__title.sm-title-sm { font-size: 30px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-md { font-size: 27px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-lg { font-size: 24px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-xl { font-size: 21px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-xxl { font-size: 18.5px !important; }
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero-feature__title.sm-title-sm { font-size: 25px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-md { font-size: 23px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-lg { font-size: 20.5px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-xl { font-size: 18.5px !important; }
  .sm-home-main .sm-hero-feature__title.sm-title-xxl { font-size: 16.5px !important; }
}

@media (max-width: 760px) {
  .sm-home-main .sm-hero-feature__title.sm-title-sm,
  .sm-home-main .sm-hero-feature__title.sm-title-md {
    font-size: 23px !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-lg,
  .sm-home-main .sm-hero-feature__title.sm-title-xl,
  .sm-home-main .sm-hero-feature__title.sm-title-xxl {
    font-size: 20px !important;
  }
}


/* =========================================================
   INDEX: textos de sección ocultos y firma de Pelusín
   ========================================================= */

.sm-home-section .sm-section-head:empty,
.sm-news-area .sm-section-head:empty {
  display: none !important;
}

.sm-home-section .sm-section-head {
  margin-bottom: 18px !important;
}

.sm-home-section .sm-section-head > div:empty {
  display: none !important;
}

.sm-signature span {
  color: var(--sm-muted) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}


/* =========================================================
   Firma Pelusín: nombre más grande que el cargo
   ========================================================= */

.sm-signature {
  font-size: 24px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  color: var(--sm-blue-dark) !important;
}

.sm-signature span {
  display: inline-block !important;
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  color: var(--sm-muted) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

@media (max-width: 760px) {
  .sm-signature {
    font-size: 21px !important;
  }

  .sm-signature span {
    font-size: 12px !important;
  }
}


/* =========================================================
   Menú: sección activa según página actual
   ========================================================= */

.sm-nav-list > li.active > .sm-menu-link,
.sm-nav-list > li.active > a {
  color: var(--sm-red) !important;
  border-bottom-color: var(--sm-red) !important;
  background: rgba(239,75,27,.08) !important;
}


/* =========================================================
   Index: saludo institucional después del slider
   ========================================================= */

.sm-home-main .sm-hero + .sm-home-section {
  padding-top: 42px !important;
}

.sm-home-main .sm-hero + .sm-home-section .sm-split {
  margin-top: 0 !important;
}


/* =========================================================
   Index: todos los bloques principales con el mismo ancho
   ========================================================= */

:root {
  --sm-index-width: 1260px !important;
}

/* Mismo ancho exterior para hero, saludo, accesos, appoderado, noticias y galería */
.sm-home-main > .sm-hero,
.sm-home-main > .sm-home-section,
.sm-home-main > .sm-app-band,
.sm-news-area > .sm-home-section {
  width: min(var(--sm-index-width), calc(100% - var(--sm-page-gutter))) !important;
  max-width: var(--sm-index-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Los elementos internos ya no reducen el ancho del bloque */
.sm-home-main .sm-split,
.sm-home-main .sm-quick-grid,
.sm-home-main .sm-card-grid,
.sm-home-main .sm-photo-grid,
.sm-home-main .sm-section-head {
  width: 100% !important;
  max-width: 100% !important;
}

/* El saludo queda alineado con el hero y los accesos */
.sm-home-main .sm-split {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* El bloque Appoderado no queda más ancho ni más angosto que el resto */
.sm-home-main .sm-app-band {
  margin-top: 10px !important;
}

/* En pantallas medianas se mantiene el mismo criterio sin desbordar */
@media (max-width: 1300px) and (min-width: 1101px) {
  :root {
    --sm-index-width: 1180px !important;
  }
}

/* En móvil se conserva el ancho responsive normal */
@media (max-width: 1100px) {
  .sm-home-main > .sm-hero,
  .sm-home-main > .sm-home-section,
  .sm-home-main > .sm-app-band,
  .sm-news-area > .sm-home-section {
    width: min(100% - var(--sm-page-gutter), 100%) !important;
  }
}


/* =========================================================
   Slider del index preparado para imagenes 16:9
   ========================================================= */

/* El hero deja de depender de alturas fijas para que el slider 16:9 mande la proporción */
.sm-home-main .sm-hero {
  align-items: stretch !important;
  min-height: 0 !important;
  height: auto !important;
}

/* El bloque izquierdo se estira a la misma altura del slider y mantiene el texto centrado */
.sm-home-main .sm-hero-copy {
  height: auto !important;
  min-height: 100% !important;
  justify-content: center !important;
}

/* El slider ahora calcula su altura desde la imagen activa, no desde una altura fija */
.sm-home-main .sm-hero-feature,
.sm-home-main .sm-news-slider,
.sm-home-main .sm-news-slider__track {
  height: auto !important;
  min-height: 0 !important;
}

.sm-home-main .sm-hero-feature {
  display: block !important;
}

/* Se desactiva el posicionamiento absoluto de las diapositivas para que la imagen 16:9 defina el alto real */
.sm-home-main .sm-news-slide {
  position: static !important;
  inset: auto !important;
  display: none !important;
  grid-template-rows: auto auto !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

.sm-home-main .sm-news-slide.sm-news-slide--active {
  display: grid !important;
}

/* Imagen principal del slider en formato 16:9 */
.sm-home-main .sm-hero-media {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
}

.sm-home-main .sm-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Espacio cómodo para títulos largos bajo imágenes 16:9 */
.sm-home-main .sm-hero-feature__body {
  min-height: 168px !important;
  padding: 20px 24px 30px !important;
  display: flex !important;
  flex-direction: column !important;
}

.sm-home-main .sm-hero-feature__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding-bottom: 6px !important;
}

.sm-home-main .sm-hero-feature__link {
  margin-top: auto !important;
}

/* Flechas centradas sobre la imagen 16:9 */
.sm-home-main .sm-news-slider__arrow {
  top: 34% !important;
}

/* En pantallas medianas se mantiene la misma lógica 16:9 */
@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero-copy,
  .sm-home-main .sm-hero-feature,
  .sm-home-main .sm-news-slider__track,
  .sm-home-main .sm-news-slide {
    height: auto !important;
    min-height: 0 !important;
  }

  .sm-home-main .sm-hero-feature__body {
    min-height: 155px !important;
    padding: 18px 22px 28px !important;
  }
}

@media (max-width: 1100px) {
  .sm-home-main .sm-hero-copy {
    min-height: 360px !important;
  }

  .sm-home-main .sm-news-slider__arrow {
    top: 32% !important;
  }
}


/* =========================================================
   PRUEBA: slider del index en formato vertical 9:16
   ========================================================= */

/* El bloque principal se adapta para que el slider vertical no quede gigante */
.sm-home-main .sm-hero {
  align-items: stretch !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr) !important;
  gap: 22px !important;
}

/* El bloque izquierdo acompaña la altura del slider vertical */
.sm-home-main .sm-hero-copy {
  min-height: 620px !important;
  height: auto !important;
  justify-content: center !important;
}

/* Slider vertical */
.sm-home-main .sm-hero-feature,
.sm-home-main .sm-news-slider,
.sm-home-main .sm-news-slider__track {
  height: auto !important;
  min-height: 0 !important;
}

.sm-home-main .sm-hero-feature {
  display: block !important;
  max-width: 460px !important;
  width: 100% !important;
  justify-self: stretch !important;
}

/* Solo se muestra la diapositiva activa, permitiendo que su contenido defina el alto */
.sm-home-main .sm-news-slide {
  position: static !important;
  inset: auto !important;
  display: none !important;
  grid-template-rows: auto auto !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  background: #fff !important;
}

.sm-home-main .sm-news-slide.sm-news-slide--active {
  display: grid !important;
}

/* Imagen en 9:16 */
.sm-home-main .sm-hero-media {
  aspect-ratio: 9 / 16 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
}

.sm-home-main .sm-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Texto inferior más compacto para no alargar demasiado el bloque */
.sm-home-main .sm-hero-feature__body {
  min-height: 150px !important;
  padding: 18px 22px 26px !important;
  display: flex !important;
  flex-direction: column !important;
}

.sm-home-main .sm-hero-feature__date {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.sm-home-main .sm-hero-feature__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: clamp(18px, 1.45vw, 25px) !important;
  line-height: 1.16 !important;
  margin: 6px 0 12px !important;
  padding-bottom: 4px !important;
}

.sm-home-main .sm-hero-feature__link {
  margin-top: auto !important;
  font-size: 11.5px !important;
}

/* Flechas centradas sobre la imagen vertical */
.sm-home-main .sm-news-slider__arrow {
  top: 43% !important;
  width: 36px !important;
  height: 36px !important;
}

.sm-home-main .sm-news-slider__arrow--prev {
  left: 14px !important;
}

.sm-home-main .sm-news-slider__arrow--next {
  right: 14px !important;
}

/* En pantallas medianas el slider se reduce un poco */
@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .68fr) !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 560px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 410px !important;
  }

  .sm-home-main .sm-hero-feature__title {
    font-size: clamp(17px, 1.35vw, 22px) !important;
  }
}

/* En tablet y móvil vuelve a una columna vertical normal */
@media (max-width: 1100px) {
  .sm-home-main .sm-hero {
    grid-template-columns: 1fr !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 360px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 560px) {
  .sm-home-main .sm-hero-feature {
    max-width: 100% !important;
  }
}


/* =========================================================
   PRUEBA 9:16 - texto del bloque colegio más grande y centrado
   ========================================================= */

.sm-home-main .sm-hero-copy {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: clamp(34px, 4.5vw, 70px) !important;
}

.sm-home-main .sm-hero-copy > div {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sm-home-main .sm-hero h1 {
  max-width: 760px !important;
  margin: 0 auto 18px !important;
  font-size: clamp(48px, 4.8vw, 82px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
}

.sm-home-main .sm-hero-lead {
  max-width: 720px !important;
  margin: 0 auto !important;
  font-size: clamp(18px, 1.45vw, 24px) !important;
  line-height: 1.45 !important;
}

.sm-home-main .sm-hero-actions {
  justify-content: center !important;
  margin-top: 28px !important;
  gap: 14px !important;
}

.sm-home-main .sm-btn {
  min-height: 48px !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
  font-size: 13px !important;
}

/* En pantallas medianas se mantiene grande, pero sin romper el bloque */
@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero h1 {
    font-size: clamp(42px, 4.2vw, 64px) !important;
  }

  .sm-home-main .sm-hero-lead {
    font-size: clamp(17px, 1.35vw, 21px) !important;
  }
}

/* En móvil no se exagera el tamaño */
@media (max-width: 760px) {
  .sm-home-main .sm-hero-copy {
    padding: 32px 24px !important;
  }

  .sm-home-main .sm-hero h1 {
    font-size: clamp(38px, 11vw, 52px) !important;
  }

  .sm-home-main .sm-hero-lead {
    font-size: 16px !important;
  }

  .sm-home-main .sm-hero-actions {
    flex-direction: column !important;
    align-items: center !important;
  }

  .sm-home-main .sm-btn {
    width: min(100%, 280px) !important;
  }
}


/* =========================================================
   PRUEBA 9:16 - titulo del slider un poco mas pequeño
   ========================================================= */

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(16px, 1.25vw, 22px) !important;
  line-height: 1.18 !important;
  margin: 5px 0 10px !important;
  padding-bottom: 5px !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-sm {
  font-size: 22px !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-md {
  font-size: 20px !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-lg {
  font-size: 18px !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-xl {
  font-size: 16.5px !important;
  line-height: 1.22 !important;
}

.sm-home-main .sm-hero-feature__title.sm-title-xxl {
  font-size: 15px !important;
  line-height: 1.24 !important;
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero-feature__title {
    font-size: clamp(15px, 1.2vw, 20px) !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-sm {
    font-size: 20px !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-md {
    font-size: 18.5px !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-lg {
    font-size: 17px !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-xl {
    font-size: 15.5px !important;
  }

  .sm-home-main .sm-hero-feature__title.sm-title-xxl {
    font-size: 14.5px !important;
  }
}


/* =========================================================
   Indicadores del slider con borde naranjo
   ========================================================= */

.sm-home-main .sm-news-slider__dots button {
  width: 13px !important;
  height: 13px !important;
  border: 2px solid var(--sm-red) !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
}

.sm-home-main .sm-news-slider__dots button.is-active {
  background: var(--sm-red) !important;
  border-color: var(--sm-red) !important;
}

.sm-home-main .sm-news-slider__dots button:hover {
  background: var(--sm-red) !important;
  border-color: var(--sm-red) !important;
}


/* =========================================================
   PRUEBA: slider del index en formato 3:4
   ========================================================= */

/* Ajuste general: el slider queda vertical, pero menos alto que 9:16 */
.sm-home-main .sm-hero {
  align-items: stretch !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr) !important;
  gap: 24px !important;
}

/* El bloque del colegio acompaña mejor la altura 3:4 */
.sm-home-main .sm-hero-copy {
  min-height: 560px !important;
  height: auto !important;
  justify-content: center !important;
}

/* Slider en proporción 3:4 */
.sm-home-main .sm-hero-feature {
  max-width: 500px !important;
  width: 100% !important;
  justify-self: stretch !important;
}

.sm-home-main .sm-hero-media {
  aspect-ratio: 3 / 4 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
}

.sm-home-main .sm-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Texto inferior del slider ajustado al nuevo alto */
.sm-home-main .sm-hero-feature__body {
  min-height: 145px !important;
  padding: 18px 22px 26px !important;
}

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(16px, 1.2vw, 21px) !important;
  line-height: 1.18 !important;
}

/* Flechas centradas sobre la imagen 3:4 */
.sm-home-main .sm-news-slider__arrow {
  top: 40% !important;
}

/* Pantallas medianas */
@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .68fr) !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 510px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 440px !important;
  }

  .sm-home-main .sm-hero-feature__title {
    font-size: clamp(15px, 1.15vw, 19px) !important;
  }
}

/* Tablet y móvil */
@media (max-width: 1100px) {
  .sm-home-main .sm-hero {
    grid-template-columns: 1fr !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 360px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .sm-home-main .sm-news-slider__arrow {
    top: 39% !important;
  }
}

@media (max-width: 560px) {
  .sm-home-main .sm-hero-feature {
    max-width: 100% !important;
  }
}


/* =========================================================
   Slider del index en formato 4:5
   ========================================================= */

/* Ajuste general: 4:5 es vertical, pero más ancho y menos alto que 3:4 */
.sm-home-main .sm-hero {
  align-items: stretch !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, .76fr) !important;
  gap: 24px !important;
}

/* El bloque del colegio acompaña la altura del slider 4:5 */
.sm-home-main .sm-hero-copy {
  min-height: 530px !important;
  height: auto !important;
  justify-content: center !important;
}

/* Slider en proporción 4:5 */
.sm-home-main .sm-hero-feature {
  max-width: 520px !important;
  width: 100% !important;
  justify-self: stretch !important;
}

.sm-home-main .sm-hero-media {
  aspect-ratio: 4 / 5 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
}

.sm-home-main .sm-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Texto inferior del slider ajustado al nuevo formato */
.sm-home-main .sm-hero-feature__body {
  min-height: 140px !important;
  padding: 17px 22px 25px !important;
}

.sm-home-main .sm-hero-feature__title {
  font-size: clamp(16px, 1.16vw, 20px) !important;
  line-height: 1.18 !important;
}

/* Flechas centradas sobre la imagen 4:5 */
.sm-home-main .sm-news-slider__arrow {
  top: 39% !important;
}

/* Pantallas medianas */
@media (max-width: 1300px) and (min-width: 1101px) {
  .sm-home-main .sm-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .70fr) !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 490px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 460px !important;
  }

  .sm-home-main .sm-hero-feature__title {
    font-size: clamp(15px, 1.1vw, 18.5px) !important;
  }
}

/* Tablet y móvil */
@media (max-width: 1100px) {
  .sm-home-main .sm-hero {
    grid-template-columns: 1fr !important;
  }

  .sm-home-main .sm-hero-copy {
    min-height: 360px !important;
  }

  .sm-home-main .sm-hero-feature {
    max-width: 460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .sm-home-main .sm-news-slider__arrow {
    top: 38% !important;
  }
}

@media (max-width: 560px) {
  .sm-home-main .sm-hero-feature {
    max-width: 100% !important;
  }
}


/* =========================================================
   Botones del hero: blancos con underline en hover
   ========================================================= */

.sm-home-main .sm-hero-actions .sm-btn {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--sm-blue-dark) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14) !important;
  transform: none !important;
}

.sm-home-main .sm-hero-actions .sm-btn:hover,
.sm-home-main .sm-hero-actions .sm-btn:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--sm-blue-dark) !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  text-decoration-thickness: 2px !important;
  transform: none !important;
}

.sm-home-main .sm-hero-actions .sm-btn:active {
  transform: none !important;
}


/* =========================================================
   Noticias y fotos recientes del index en formato 4:5
   ========================================================= */

/* Se aplica solo a las tarjetas del inicio */
.sm-home-main .sm-card-grid .sm-media-card__image {
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
}

.sm-home-main .sm-card-grid .sm-media-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Ajuste visual para que las tarjetas verticales respiren mejor */
.sm-home-main .sm-card-grid {
  align-items: stretch !important;
}

.sm-home-main .sm-media-card__body {
  min-height: 158px !important;
  padding: 18px 20px 20px !important;
}

.sm-home-main .sm-media-card h3 {
  font-size: 19px !important;
  line-height: 1.18 !important;
}

/* En pantallas pequeñas mantiene 4:5 sin deformar */
@media (max-width: 900px) {
  .sm-home-main .sm-card-grid .sm-media-card__image {
    aspect-ratio: 4 / 5 !important;
  }
}


/* =========================================================
   Noticias y fotos recientes del index: 4 bloques por fila
   ========================================================= */

.sm-home-main .sm-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

/* Ajustes para que 4 columnas con imagen 4:5 se vean ordenadas */
.sm-home-main .sm-media-card__body {
  min-height: 150px !important;
  padding: 16px 16px 18px !important;
}

.sm-home-main .sm-media-card__date {
  font-size: 11px !important;
  margin-bottom: 8px !important;
}

.sm-home-main .sm-media-card h3 {
  font-size: 17px !important;
  line-height: 1.2 !important;
  margin-bottom: 14px !important;
}

.sm-home-main .sm-media-card__more {
  font-size: 11.5px !important;
}

/* Responsive: 3 columnas en pantallas medianas, 2 en tablet y 1 en móvil */
@media (max-width: 1250px) {
  .sm-home-main .sm-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 850px) {
  .sm-home-main .sm-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .sm-home-main .sm-card-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   Noticias.php y g_fotos.php: tarjetas en formato vertical 4:5
   ========================================================= */

/* Aplica a las grillas internas de noticias y galería de fotos */
.sm-news-page .sm-news-card__image,
.sm-gallery-page .sm-news-card__image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  background: #dbe5f0 !important;
  border-bottom: 4px solid var(--sm-red) !important;
}

/* Se elimina el alto fijo anterior de 210/220px */
.sm-news-page .sm-news-card__image img,
.sm-gallery-page .sm-news-card__image img,
.sm-gallery-card .sm-news-card__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Ajuste del cuerpo para que las tarjetas verticales queden proporcionadas */
.sm-news-page .sm-news-card__body,
.sm-gallery-page .sm-news-card__body {
  min-height: 150px !important;
}

.sm-news-page .sm-news-card__body h2,
.sm-gallery-page .sm-news-card__body h2 {
  font-size: 18px !important;
  line-height: 1.24 !important;
}

