/* Compatibility bridge for the site's former Bootstrap 3 markup.
   New/edited markup should use native Bootstrap 5 utilities and components. */
.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  display: block;
  max-height: 100%;
  width: auto;
}

.navbar-nav > li > a {
  display: block;
  padding: .5rem;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.active > a {
  color: #fff;
}

.thumbnail {
  display: block;
  padding: .25rem;
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}

.thumbnail > img,
.carousel-item > img {
  display: block;
  max-width: 100%;
  height: auto;
}

.form-horizontal .form-group {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
  margin-bottom: 1rem;
}

.form-horizontal .form-group > * {
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
}

/* The legacy galleries placed Bootstrap columns directly in their container.
   Bootstrap 3 floated those columns; Bootstrap 5 expects a .row flex parent. */
#contenido > [class*="col-"],
#galeria2 > [class*="col-"] {
  float: left;
  padding: .5rem;
}

#contenido::after,
#galeria2::after {
  display: block;
  clear: both;
  content: "";
}

/* Consistent media cards inside each gallery. */
.gallery-photos > .thumb > .thumbnail {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-photos > .thumb > .thumbnail > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.gallery-videos #galeria2 > .thumb > li {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-reports #galeria2 > .thumb > li {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 10px;
  padding: 0;
  list-style: none;
}

.gallery-videos #galeria2 > .thumb > li > a,
.gallery-reports #galeria2 > .thumb > li > a,
.gallery-videos #galeria2 video,
.gallery-reports #galeria2 video {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gallery-reports #galeria2 > .thumb > li > a {
  margin: 0;
}

.gallery-videos #galeria2 img,
.gallery-reports #galeria2 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.gallery-reports #galeria2 video {
  object-fit: cover;
}

.gallery-workshops > .thumb > .ratio {
  aspect-ratio: 16 / 9;
}

@media (max-width: 991.98px) {
  .navbar-header { width: 100%; }

  .social {
    display: flex !important;
    float: none !important;
    justify-content: flex-end;
    gap: .25rem;
    right: auto !important;
    margin: .5rem 1rem !important;
  }
}

/* 2026 visual refresh: preserves the dark identity while improving hierarchy,
   spacing and responsive behaviour across the public site. */
:root {
  --samu-bg: #111416;
  --samu-surface: rgba(31, 36, 40, .94);
  --samu-surface-soft: rgba(255, 255, 255, .055);
  --samu-border: rgba(255, 255, 255, .12);
  --samu-text: #f4f1eb;
  --samu-muted: #c8c4bd;
  --samu-accent: #e9ad35;
  --samu-accent-dark: #9f6411;
  --samu-radius: 16px;
  --samu-shadow: 0 18px 45px rgba(0, 0, 0, .3);
}

html {
  background: var(--samu-bg);
  scroll-behavior: smooth;
}

html body {
  min-height: 100%;
  color: var(--samu-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--samu-bg);
  background-image:
    linear-gradient(rgba(10, 12, 13, .78), rgba(10, 12, 13, .78)),
    url("../imagenes/bg.png");
}

body > .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 76px;
  padding: .65rem 0;
  background: rgba(25, 30, 34, .96) !important;
  border-bottom: 1px solid var(--samu-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}

.navbar > .container-fluid {
  width: min(94%, 1240px);
  margin: 0 auto;
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 2rem;
  padding: 0 !important;
}

.navbar-brand img {
  width: auto !important;
  height: 54px !important;
  border-radius: 0 !important;
}

.navbar-nav {
  align-items: center;
  gap: .18rem;
}

.navbar-nav > li > a {
  padding: .6rem .72rem;
  color: var(--samu-muted);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}

.navbar-nav > li.active > a {
  color: #17130b;
  background: var(--samu-accent);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .25);
}

body > .social {
  display: flex;
  float: none;
  justify-content: flex-end;
  gap: .4rem;
  width: min(94%, 1240px);
  margin: .8rem auto 0;
  right: auto;
}

.social a {
  display: block;
  border-radius: 9px;
  transition: transform .2s ease, filter .2s ease;
}

.social a:hover,
.social a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.social a img {
  width: 32px;
  height: 32px;
  border-radius: 8px !important;
}

div#contenido {
  width: min(94%, 1240px);
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

body div#contenido > h1 {
  margin: 0 0 1.4rem;
  color: var(--samu-text);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-align: left;
}

#contenido h2,
#contenido h3 {
  color: var(--samu-text);
}

#contenido p,
#contenido li {
  color: var(--samu-muted);
}

#contenido a:focus-visible,
.home-actions a:focus-visible {
  outline: 3px solid rgba(233, 173, 53, .65);
  outline-offset: 3px;
}

.thumb > .thumbnail,
#galeria2 > .thumb > li,
.gallery-workshops > .thumb > .ratio {
  background: var(--samu-surface);
  border: 1px solid var(--samu-border) !important;
  border-radius: var(--samu-radius) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.thumb > .thumbnail:hover,
.thumb > .thumbnail:focus-visible,
#galeria2 > .thumb > li:hover,
.gallery-workshops > .thumb > .ratio:hover {
  z-index: 2;
  border-color: rgba(233, 173, 53, .62) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .36);
  transform: translateY(-4px);
}

.gallery-photos > .thumb > .thumbnail,
.gallery-photos > .thumb > .thumbnail > img,
.gallery-videos #galeria2 > .thumb > li,
.gallery-videos #galeria2 img,
.gallery-videos #galeria2 video,
.gallery-reports #galeria2 > .thumb > li,
.gallery-reports #galeria2 img,
.gallery-reports #galeria2 video,
.gallery-workshops > .thumb > .ratio {
  border-radius: var(--samu-radius) !important;
}

body h5 {
  width: min(94%, 1240px);
  margin: 1.25rem auto;
  padding: 1.1rem 0;
  color: #aaa69f;
  font-size: .86rem;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid var(--samu-border);
}

/* Text-led pages and service lists. */
body div#historia {
  margin-top: 0;
  text-align: left;
}

body div#historia > img {
  position: sticky;
  top: 104px;
  float: left;
  width: 30%;
  max-height: calc(100vh - 130px);
  object-fit: cover;
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius);
  box-shadow: var(--samu-shadow);
}

body div#historia > p,
body div#historia > h2 {
  margin-left: 33%;
}

body div#historia > p {
  color: var(--samu-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Detail pages use an explicit grid so legacy float rules cannot misalign copy. */
body div#historia.show-detail {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: 1.1rem 2rem;
  align-items: start;
}

body div#historia.show-detail > img {
  position: sticky !important;
  top: 104px;
  grid-column: 1;
  grid-row: 1 / span 8;
  float: none !important;
  width: 100% !important;
  max-height: calc(100vh - 130px);
  margin: 0 !important;
  object-fit: cover;
}

body div#historia.show-detail > h2,
body div#historia.show-detail > p,
body div#historia.show-detail > .show-highlights,
body div#historia.show-detail > .show-cta,
body div#historia.show-detail > iframe {
  grid-column: 2;
  width: 100%;
  margin: 0 !important;
}

body div#historia.show-detail > h2 {
  padding: .1rem 0 .25rem;
  color: var(--samu-accent);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

body div#historia.show-detail > .show-lead {
  color: var(--samu-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: left;
}

body div#historia > .show-highlights,
body div#historia > .show-cta {
  margin-left: 33%;
}

.show-highlights {
  padding: .9rem 1.1rem .9rem 2.7rem !important;
  color: var(--samu-muted);
  font-size: 1.03rem;
  line-height: 1.65;
  list-style: disc outside !important;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--samu-border);
  border-radius: 12px;
}

.show-highlights li {
  margin-bottom: .65rem;
  padding-left: .25rem;
}

.show-highlights li::marker {
  color: var(--samu-accent);
}

.show-cta {
  padding: 1.2rem 1.35rem;
  text-align: center;
  background: var(--samu-surface-soft) !important;
  border: 1px solid var(--samu-border);
  border-radius: 12px;
}

.show-cta p {
  max-width: 46rem;
  margin: 0 auto .9rem !important;
  color: var(--samu-text);
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: center !important;
  text-wrap: balance;
}

.show-cta .btn-secondary {
  color: #17130b !important;
  font-weight: 750;
  background: var(--samu-accent) !important;
  border-color: var(--samu-accent) !important;
}

.service-faq {
  clear: both;
  width: min(100%, 980px);
  margin: 2.5rem auto 1rem;
  padding: 1.5rem;
  text-align: left;
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius);
}

.service-faq h2 {
  margin: 0 0 1rem;
  color: var(--samu-accent);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.service-faq details {
  padding: .9rem 0;
  border-top: 1px solid var(--samu-border);
}

.service-faq summary {
  color: var(--samu-text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.service-faq details p,
.related-service-links {
  margin: .7rem 0 0;
  color: var(--samu-muted);
  line-height: 1.65;
}

.related-service-links a,
#textoinicio a {
  color: var(--samu-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body div#historia > .service-index-intro {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: 12px;
}

body div#historia > a {
  display: block;
  margin: 0 0 1rem 33%;
  padding: 1rem 1.15rem;
  color: inherit;
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: 12px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

body div#historia > a:hover,
body div#historia > a:focus-visible {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(233, 173, 53, .58);
  transform: translateX(4px);
}

body div#historia > a h2,
body div#historia > a p {
  margin: 0;
  padding: 0;
}

body div#historia > a h2 {
  margin-bottom: .35rem;
  color: var(--samu-accent);
  font-size: 1.2rem;
}

body div#historia > a p {
  color: var(--samu-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Contact */
body #contenido > #foto,
body #contenido > .form-inlin {
  border: 0 !important;
  padding: .5rem;
}

body #contenido > #foto img {
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius) !important;
  box-shadow: var(--samu-shadow);
}

body .form-style,
body .form-style-text {
  margin: 0 0 1rem;
  padding: 1.25rem;
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

body .form-style label,
body .form-style-text label {
  color: var(--samu-muted);
}

body .form-style-text label {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body .form-style h3,
body .form-style-text h3 {
  margin: 0;
  color: var(--samu-text) !important;
  font-family: inherit;
  line-height: 1.45;
}

.contact-direct {
  width: 100%;
  margin: 0 0 1.35rem;
  text-align: center;
}

.contact-direct-title {
  margin: 0 0 .65rem;
  color: var(--samu-muted);
  font-size: .95rem;
  font-weight: 650;
}

.contact-direct-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 58px;
  padding: .65rem 1rem;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid var(--samu-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  color: #fff !important;
  border-color: var(--samu-accent);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.contact-action svg,
.contact-action img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: .7rem;
}

.contact-action svg {
  fill: var(--samu-accent);
}

.contact-action-whatsapp svg {
  fill: #25d366;
}

.contact-action span,
.contact-action small,
.contact-action strong {
  display: block;
  text-align: left;
}

.contact-action small {
  color: var(--samu-muted);
  font-size: .76rem;
  line-height: 1.1;
}

.contact-action strong {
  margin-top: .15rem;
  font-size: 1rem;
  line-height: 1.15;
}

.contact-form-title {
  margin: 1.35rem 0 0;
  color: var(--samu-text);
  font-size: 1.25rem;
  font-weight: 700;
}

body .form-style-text h3 {
  color: var(--samu-muted) !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  text-align: left !important;
}

body .form-style .form-control {
  min-height: 44px;
  color: #222;
  background: rgba(255, 255, 255, .96);
  border: 1px solid transparent;
  border-radius: 9px;
}

body .form-style textarea.form-control {
  min-height: 110px;
}

body .form-style .form-control:focus {
  border-color: var(--samu-accent);
  box-shadow: 0 0 0 .2rem rgba(233, 173, 53, .2);
}

body .form-style .btn-secondary {
  color: #17130b;
  font-weight: 750;
  background: var(--samu-accent);
  border-color: var(--samu-accent);
}

body #captcha {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1.6rem 0 1.35rem;
}

body #captcha > label {
  width: auto;
  margin: 0;
  padding: 0;
}

body #captcha .cf-turnstile {
  width: min(100%, 420px);
}

.captcha-configuration-error {
  margin: 0;
  color: #ffcf70;
  text-align: center;
}

body #divsubmit {
  width: 100%;
  margin: 0 !important;
  text-align: center;
}

body #resultado {
  width: 100%;
  margin: 0 auto 1rem !important;
  text-align: center;
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social-links a {
  display: block;
  border-radius: 20px;
  transition: transform .2s ease, filter .2s ease;
}

.contact-social-links a:hover,
.contact-social-links a:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.contact-social-links img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.contact-intro,
.contact-follow {
  text-align: center;
}

.contact-intro p {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--samu-muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

body .contact-follow h3 {
  margin: 0;
  color: var(--samu-muted) !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

/* Home */
.home-content {
  padding-top: .6rem !important;
}

.home-content .carousel {
  top: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--samu-border);
  border-radius: 22px;
  box-shadow: var(--samu-shadow);
  overflow: hidden;
}

.home-content .carousel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 8, .82) 0%, rgba(5, 7, 8, .46) 38%, transparent 72%);
  content: "";
}

#contenido.home-content .carousel-item img {
  width: 100%;
  height: min(68vh, 690px);
  min-height: 460px;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 0 !important;
}

.home-hero-copy {
  position: absolute;
  left: clamp(2rem, 7vw, 5.5rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 3;
  width: min(570px, 50%);
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.home-eyebrow {
  display: inline-block;
  margin-bottom: .8rem;
  color: #17130b;
  padding: .3rem .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--samu-accent);
  border-radius: 999px;
  text-shadow: none;
}

div#contenido .home-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

.home-hero-copy p {
  max-width: 470px;
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, .88) !important;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.home-actions .btn {
  padding: .7rem 1.05rem;
  font-weight: 750;
  border-radius: 10px;
  text-shadow: none;
}

.home-actions .btn-primary {
  color: #17130b;
  background: var(--samu-accent);
  border-color: var(--samu-accent);
}

.home-actions .btn-primary:hover {
  color: #fff;
  background: var(--samu-accent-dark);
  border-color: var(--samu-accent-dark);
}

.home-content .carousel-control-prev,
.home-content .carousel-control-next,
.home-content .carousel-indicators {
  z-index: 4;
}

#textoinicio {
  width: min(94%, 920px);
  margin: 1.5rem auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

body #textoinicio p {
  width: auto;
  margin: 0;
  color: var(--samu-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem) !important;
  line-height: 1.75;
  text-align: center;
}

.home-services {
  width: min(94%, 1120px);
  margin: 1.5rem auto 0;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  text-align: left;
}

.home-section-heading {
  max-width: 720px;
  margin-bottom: 1.35rem;
}

.home-section-heading > span {
  color: var(--samu-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-section-heading h2 {
  margin: .35rem 0 .5rem;
  color: var(--samu-text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -.025em;
}

.home-section-heading p {
  margin: 0;
  color: var(--samu-muted);
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-service-grid > a {
  display: block;
  padding: 1.25rem;
  color: inherit;
  background: var(--samu-surface-soft);
  border: 1px solid var(--samu-border);
  border-radius: var(--samu-radius);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.home-service-grid > a:hover,
.home-service-grid > a:focus-visible {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(233, 173, 53, .58);
  transform: translateY(-3px);
}

.home-service-grid h3 {
  margin: 0 0 .4rem;
  color: var(--samu-accent);
  font-size: 1.15rem;
}

.home-service-grid p {
  margin: 0;
  color: var(--samu-muted);
  font-size: .96rem;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  body > .navbar {
    min-height: 68px;
  }

  .navbar > .container-fluid {
    width: min(92%, 1240px);
  }

  .navbar-header {
    width: 100%;
  }

  .navbar-brand img {
    height: 48px !important;
  }

  .navbar-collapse {
    padding: .8rem 0 .25rem;
  }

  .navbar-nav {
    align-items: stretch;
    gap: .2rem;
  }

  .navbar-nav > li > a {
    padding: .72rem .9rem;
    border-radius: 9px;
  }

  body > .social {
    width: min(92%, 1240px);
    margin: .65rem auto 0 !important;
  }

  div#contenido {
    width: min(92%, 1240px);
  }

  #contenido.home-content .carousel-item img {
    height: 62vh;
    min-height: 480px;
  }

  .home-hero-copy {
    top: auto;
    left: 1.6rem;
    bottom: 3.8rem;
    transform: none;
    width: calc(100% - 3.2rem);
  }

  body div#historia > img {
    position: relative;
    top: auto;
    float: none;
    width: 100%;
    max-height: 520px;
    margin: 0 0 1.25rem;
    object-position: center 24%;
  }

  body div#historia > p,
  body div#historia > h2,
  body div#historia > a,
  body div#historia > .show-highlights,
  body div#historia > .show-cta {
    margin-left: 0;
  }

  body div#historia.show-detail {
    display: block;
  }

  body div#historia.show-detail > img {
    position: relative !important;
    top: auto;
    width: 100% !important;
    max-height: 560px;
    margin: 0 0 1.25rem !important;
    object-position: center 22%;
  }

  body div#historia.show-detail > h2,
  body div#historia.show-detail > p,
  body div#historia.show-detail > .show-highlights,
  body div#historia.show-detail > .show-cta,
  body div#historia.show-detail > iframe {
    width: 100%;
    margin: 0 0 1rem !important;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  html body {
    font-size: 15px;
  }

  body > .social {
    justify-content: center;
  }

  body div#contenido > h1 {
    margin-bottom: 1rem;
  }

  body #contenido > #foto,
  body #contenido > .form-inlin {
    width: 100%;
  }

  body .form-style,
  body .form-style-text {
    padding: 1rem;
  }

  .contact-direct-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .contact-action {
    width: 100%;
    min-width: 0;
    min-height: 60px;
  }

  body .form-style .form-group > [class*="col-sm-"] {
    width: 100%;
  }

  .home-content .carousel {
    border-radius: 16px;
  }

  .home-content .carousel::after {
    background: linear-gradient(0deg, rgba(5, 7, 8, .9) 0%, rgba(5, 7, 8, .3) 65%, transparent 100%);
  }

  #contenido.home-content .carousel-item img {
    height: 68vh;
    min-height: 500px;
    object-position: center top;
  }

  .home-hero-copy {
    top: auto;
    left: 1.15rem;
    bottom: 3.4rem;
    transform: none;
    width: calc(100% - 2.3rem);
  }

  div#contenido .home-hero-copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-actions .btn {
    width: 100%;
  }

  #contenido > [class*="col-"],
  #galeria2 > [class*="col-"] {
    padding: .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
