/* Landing Residencial Tambo — estilos (estructura basada en las fichas de ximadijo.com). */

@font-face { font-family: "Proxima Nova"; src: url("../fonts/ProximaNova-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("../fonts/ProximaNova-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Proxima Nova"; src: url("../fonts/ProximaNova-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "xm-icons"; src: url("../fonts/icomoon.woff") format("woff"); font-weight: normal; font-style: normal; font-display: block; }

/* ---------- Base ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body { margin: 0; line-height: inherit; background: #fff; min-height: 100%; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, optgroup, textarea { font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
button, input:where([type="button"], [type="reset"], [type="submit"]) { appearance: button; cursor: pointer; }
textarea { resize: vertical; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }
:focus-visible { outline: 2px solid #fe4b45; outline-offset: 2px; }

/* Imágenes que llenan su contenedor (fondos de portada, vídeo y galería). */
.xm img.fill { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; color: transparent; }
.xm .g5-terminos_text { display: block; }


.xm {
  --xm-accent: #fe4b45;
  --xm-accent-dark: #de453b;
  --xm-tint: #f4f1f7;
  --xm-heading: #230641;
  --xm-purple: #431e69;
  --xm-gray-2: #7b7b7b;
  --xm-text: #3b3b3b;
  --xm-font: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  font-family: var(--xm-font);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: var(--xm-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.xm,
.xm *,
.xm *::before,
.xm *::after {
  box-sizing: content-box;
}
.xm button,
.xm select,
.xm textarea {
  box-sizing: border-box;
}

.xm p {
  margin: 0 0 15px;
}

.xm a {
  color: inherit;
  text-decoration: none;
}

.xm img {
  max-width: none;
}

.xm strong {
  font-weight: 700;
}

.xm .wancho {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

/* ---------- Iconos (fuente icomoon de ximadijo.com) ---------- */
.xm .icon-book:before { content: "\e914"; }
.xm .icon-facebook:before { content: "\e901"; }
.xm .icon-flecha-2:before { content: "\e902"; }
.xm .icon-instagram:before { content: "\e904"; }
.xm .icon-linkedin:before { content: "\e905"; }
.xm .icon-mail:before { content: "\e906"; }
.xm .icon-phone1:before { content: "\e90a"; }
.xm .icon-search2:before { content: "\e90d"; }
.xm .icon-yt:before { content: "\e913"; }
.xm .icon-map-pin:before { content: "\e910"; }
.xm .icon-close:before { content: "\e605"; }
.xm .icon-arrow-right:before { content: "\e606"; }
.xm .icon-arrow-left:before { content: "\e607"; }
.xm .icon-arrow-down:before { content: "\e608"; }
.xm .icon-whatsapp:before { content: "\e90f"; }
.xm [class^="icon-"],
.xm [class*=" icon-"] {
  font-family: "xm-icons" !important;
  speak: never;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

/* ---------- Animaciones de entrada (solo escritorio) ---------- */
@media screen and (min-width: 1025px) {
  .xm .g3-move-up-1,
  .xm .g3-move-up-2,
  .xm .g3-move-up-3,
  .xm .g3-move-up-4,
  .xm .g3-move-up-5,
  .xm .g3-move-up-6 {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s;
  }
  .xm .g3-move-up-1 { transition-delay: 0.25s; }
  .xm .g3-move-up-2 { transition-delay: 0.5s; }
  .xm .g3-move-up-3 { transition-delay: 0.75s; }
  .xm .g3-move-up-4 { transition-delay: 1s; }
  .xm .g3-move-up-5 { transition-delay: 1.25s; }
  .xm .g3-move-up-6 { transition-delay: 1.5s; }
  .xm .anima .g3-move-up-1,
  .xm .anima .g3-move-up-2,
  .xm .anima .g3-move-up-3,
  .xm .anima .g3-move-up-4,
  .xm .anima .g3-move-up-5,
  .xm .anima .g3-move-up-6 {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xm-radar {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes xm-pulse-whatsapp {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 206, 53, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(88, 206, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 206, 53, 0); }
}

/* ---------- Header ---------- */
.xm .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 80;
  transition: all 0.4s;
}
.xm .header:not(.scrolling) {
  background-color: transparent;
}
.xm .header.scrolling {
  border-bottom: 1px solid #ddd;
}
.xm .header-ctn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}
.xm .h-logos {
  display: flex;
  align-items: center;
  transition: all 0.4s;
}
.xm .header .logo-blanco { display: none; }
.xm .header:not(.scrolling) .logo-blanco { display: block; }
.xm .header:not(.scrolling) .logo-color { display: none; }
.xm .header-logo-1 { width: 200px; }
.xm .header-logo-2 { margin-left: 25px; }
.xm .h-years {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--xm-heading);
  border-left: 1px solid #ddd;
  padding-left: 25px;
  transition: color 0.4s, border-color 0.4s;
}
.xm .h-years strong { font-size: 38px; font-weight: 700; color: var(--xm-accent); line-height: 1; }
.xm .h-years > span { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; line-height: 1.1; }
.xm .h-years em { font-style: italic; font-weight: 400; font-size: 13px; }
.xm .header:not(.scrolling) .h-years { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.xm .header:not(.scrolling) .h-years strong { color: #fff; }
.xm .header-logo-1 img {
  display: block;
  width: 100%;
  height: auto;
}
.xm .h-btns {
  display: flex;
  align-items: center;
  gap: 0 24px;
}
.xm .h-btn {
  width: 248px;
  height: 48px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background-color: var(--xm-accent);
  transition: all 0.4s;
}
.xm .h-btn.w186 { width: 186px; }
.xm .h-btn:hover { background-color: var(--xm-accent-dark); }
.xm .h-menu-btn {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.xm .h-menu-title {
  font-size: 10px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.xm .h-menu-title i {
  display: block;
  margin-left: 3px;
  font-size: 8px;
}
.xm .h-menu-icon {
  width: 38px;
  height: 25px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.xm .h-menu-icon span {
  height: 2px;
  width: 100%;
  border-radius: 4px;
  background: #000;
  display: block;
  transition: all 0.3s ease;
}
.xm .h-menu-icon .short {
  width: 70%;
  margin-left: auto;
}
.xm .header:not(.scrolling) .h-menu-title { color: #fff; }
.xm .header:not(.scrolling) .h-menu-icon span { background-color: #fff; }
.xm .h-menu-btn:hover .h-menu-title { color: var(--xm-accent-dark); }
.xm .h-menu-btn:hover .h-menu-icon span {
  width: 100%;
  background: var(--xm-accent-dark);
}

@media screen and (max-width: 1250px) {
  .xm .header-logo-1 { width: 170px; }
  .xm .h-years strong { font-size: 32px; }
}
@media screen and (max-width: 1000px) {
  .xm .header .h-btn { display: none; }
  .xm .header-ctn { height: 70px; }
}
@media screen and (max-width: 745px) {
  .xm .header-logo-1 { width: 130px; }
  .xm .header-logo-2 { margin-left: 15px; }
  .xm .h-years { padding-left: 15px; }
  .xm .h-years strong { font-size: 26px; }
  .xm .h-years > span { font-size: 13px; }
  .xm .h-years em { display: none; }
}
@media screen and (max-width: 360px) {
  .xm .header-logo-1 { width: 110px; }
}

/* ---------- Menú lateral ---------- */
.xm .main-menu-overlay {
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  height: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 90;
  transition: opacity 0.4s;
}
.xm .main-menu-overlay.active {
  opacity: 0.5;
  height: 100vh;
  visibility: visible;
}
/* Menú lateral: panel compacto a la derecha, a toda la altura y en una sola columna. */
.xm .main-menu-panel {
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  background-color: #fff;
  box-shadow: -12px 0 40px rgba(35, 6, 65, 0.18);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(100%);
}
.xm .main-menu-panel.active { transform: translateX(0%); }
.xm .main-menu-sidebar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  padding: 84px 32px 8px;
  display: block;
}
/* Rótulo «Menú» a la altura del botón de cerrar */
.xm .main-menu-sidebar::before {
  content: "Menú";
  position: absolute;
  top: 34px;
  left: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xm-gray-2);
}
.xm .h-wrapmenu { width: 100%; margin: 0; }
.xm .h-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ece9f0;
}
.xm .h-menu-list li { border-bottom: 1px solid #ece9f0; }
.xm .h-menu-link {
  font-weight: 600;
  color: var(--xm-heading);
  font-size: 20px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  padding: 18px 4px;
  transition: color 0.2s, padding 0.2s;
}
.xm .h-menu-link i { color: var(--xm-accent); font-size: 11px; width: 14px; flex-shrink: 0; order: 2; margin-left: auto; transition: transform 0.2s; }
.xm .h-menu-link:hover { color: var(--xm-accent); padding-left: 10px; }
.xm .h-menu-link:hover i { transform: translateX(4px); }
.xm .h-text-link { margin-left: 0; }
.xm .main-menu-sidebar .h-btns { display: block; }
.xm .main-menu-sidebar .h-btn { display: flex; width: 100%; box-sizing: border-box; }
.xm .main-menu-main {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Imagen promocional como tarjeta */
.xm .main-banner { position: static; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(35, 6, 65, 0.12); }
.xm .main-banner a { display: block; }
.xm .main-banner img { width: 100%; height: auto; max-height: 240px; object-fit: cover; display: block; transition: transform 0.4s; }
.xm .main-banner a:hover img { transform: scale(1.03); }
.xm .close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  background: var(--xm-tint);
  color: var(--xm-heading);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  display: grid;
  place-items: center;
}
.xm .close-btn:hover { background-color: var(--xm-accent); color: #fff; transform: rotate(90deg); }
.xm .main-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  background: #fff;
  padding: 0;
  height: auto;
}
.xm .contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.xm .contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.xm .contact-box p { margin: 0 0 2px; font-size: 13px; color: var(--xm-gray-2); }
.xm .contact-box .contac-text-link { font-weight: 600; color: var(--xm-heading); font-size: 15px; }
.xm .contact-box .icon-mail,
.xm .contact-box .icon-whatsapp {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #e2dfe7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  color: var(--xm-accent);
  font-size: 16px;
  transition: all 0.3s;
}
.xm .contact-box:hover .icon-mail,
.xm .contact-box:hover .icon-whatsapp { background-color: var(--xm-accent); border-color: var(--xm-accent); color: #fff; }
/* Redes: iconos pequeños y redondos */
.xm .social-links { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid #ece9f0; }
.xm .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--xm-tint);
  color: var(--xm-heading);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, color 0.2s;
}
.xm .social-links a:hover { background-color: var(--xm-accent); color: #fff; }

@media screen and (max-width: 480px) {
  .xm .main-menu-panel { width: 100vw; }
  .xm .main-menu-sidebar { padding: 80px 24px 8px; }
  .xm .main-menu-sidebar::before { left: 24px; top: 32px; }
  .xm .main-menu-main { padding: 20px 24px 28px; }
  .xm .h-menu-link { font-size: 19px; padding: 16px 4px; }
}

/* ---------- Redes flotantes ---------- */
.xm .head_wrap_redes {
  position: fixed;
  z-index: 95;
  top: 50%;
  transform: translateY(-50%);
  right: 50px;
}
.xm .head_whatsapp { margin-bottom: 30px; }
.xm .head_whatsapp a {
  display: block;
  width: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #58ce35;
  animation: xm-pulse-whatsapp 2s infinite;
}
.xm .head_whatsapp a {
  height: 32px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.xm .head_redes a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}
.xm .head_redes a { color: var(--xm-heading); box-shadow: 0 1px 6px rgba(35, 6, 65, 0.15); }
.xm .head_redes a:hover { color: var(--xm-accent); }
@media screen and (max-width: 1025px) {
  .xm .head_wrap_redes { top: 70%; right: 20px; }
  .xm .head_whatsapp a { width: 40px; height: 40px; font-size: 21px; }
}

/* ---------- Hero (b99) ---------- */
.xm .b99 { position: relative; }
.xm .b99banner_slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.xm .b99slides {
  position: relative;
  height: 750px;
}
.xm .b99item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.xm .b99item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.xm .b99item-figure {
  position: relative;
  z-index: 9;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.xm .b99item-bg-picture {
  display: block;
  position: absolute;
  inset: 0;
}
.xm .b99item-bg-picture img {
  object-fit: cover;
  object-position: center center;
}
/* velo morado de marca para que el titular se lea sobre cualquier foto */
.xm .b99item-bg-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 6, 65, 0.72) 0%, rgba(35, 6, 65, 0.35) 55%, rgba(35, 6, 65, 0.1) 100%);
}
.xm .b99container { position: relative; z-index: 10; }
.xm .b99title {
  font-size: 58px;
  color: #fff;
  max-width: 790px;
  width: 100%;
  margin: 0;
  transform: translateX(-100px);
  opacity: 0;
  /* Demora y velocidad configurables desde el panel (Portada). */
  transition: all var(--xm-text-dur, 0.6s) cubic-bezier(0.25, 1, 0.5, 1) var(--xm-text-delay, 0.8s);
}
.xm .b99title p { margin: 0; }
.xm .b99_cotizar_btn {
  padding-top: 32px;
  transform: translateX(-100px);
  opacity: 0;
  /* El botón entra un instante después del texto. */
  transition: all calc(var(--xm-text-dur, 0.6s) + 0.4s) cubic-bezier(0.25, 1, 0.5, 1) calc(var(--xm-text-delay, 0.8s) + 0.2s);
}
.xm .b99item.active .b99title,
.xm .b99item.active .b99_cotizar_btn {
  transform: translateX(0);
  opacity: 1;
}
.xm .b99_cotizar_btn a {
  display: inline-block;
  border-radius: 40px;
  color: #fff;
  height: 48px;
  font-size: 18px;
  background-color: var(--xm-accent);
  font-weight: 700;
  line-height: 48px;
  padding: 0 30px;
}
.xm .b99_cotizar_btn i { font-weight: 700; }
.xm .b99pagers {
  width: 100%;
  display: flex;
  position: absolute;
  align-items: center;
  bottom: 50px;
  z-index: 20;
  left: 0;
  right: 0;
  margin: auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.xm .b99pagers button {
  background-color: transparent;
  border: 0;
  padding: 0;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin-right: 15px;
  transition: all 0.4s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.xm .b99pagers button:after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: #fff;
}
.xm .b99pagers button:before {
  position: absolute;
  top: -3px;
  left: -3px;
  border-radius: 100%;
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid var(--xm-accent);
  box-sizing: border-box;
  transition: all 0.4s;
  opacity: 0;
}
.xm .b99pagers button.active { background-color: var(--xm-accent); }
.xm .b99pagers button.active:before { opacity: 1; }
.xm .b99pagers button.active:after { background-color: transparent; }
@media screen and (max-width: 1024px) {
  .xm .b99slides { height: 500px; }
  .xm .b99title { font-size: 45px; }
}
@media screen and (max-width: 680px) {
  .xm .b99title { font-size: 40px; }
}

/* ---------- Características (b98) ---------- */
.xm .b98characteristics { height: 1px; }
.xm .b98characteristics_center {
  position: relative;
  top: -124px;
  z-index: 5;
  max-width: 960px;
  background-color: #fff;
  margin: 0 0 0 auto;
  border-radius: 16px 0 0 0;
}
.xm .b98characteristics_info {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 955px;
  margin-left: auto;
}
.xm .b98-info-left {
  width: 597px;
  display: flex;
  flex-flow: row wrap;
}
.xm .b98item {
  width: 40%;
  height: 124px;
  position: relative;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xm .b98item:before {
  content: "";
  display: block;
  height: 40px;
  width: 1px;
  background-color: #ccc;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}
.xm .b98item img {
  width: 24px;
  height: auto;
  margin: 0 20px 0 5px;
  display: block;
  flex-shrink: 0;
}
.xm .b98text {
  color: var(--xm-heading);
  font-family: var(--xm-font);
  font-size: 20px;
  font-weight: 400;
}
/* Recuadro del precio («Desde S/ …») a la derecha de la barra. */
.xm .b98-info-right {
  width: 358px;
  min-height: 124px;
  box-sizing: border-box;
  padding: 20px 40px;
  background-color: var(--xm-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xm .b98price-label { margin: 0; font-size: 16px; line-height: 20px; font-weight: 400; }
.xm .b98price { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
@media screen and (max-width: 1190px) {
  .xm .b98-info-right { width: 40%; }
  .xm .b98characteristics { height: auto; padding-bottom: 40px; }
  .xm .b98characteristics_center { top: 0; width: 100%; max-width: 100%; }
  .xm .b98characteristics_info { width: 100%; }
  .xm .b98-info-left { width: 60%; border-bottom: 1px solid #ddd; }
}
@media screen and (max-width: 1000px) {
  .xm .b98characteristics_info { display: block; }
  .xm .b98-info-left { width: 100%; }
  .xm .b98-info-right { width: 100%; min-height: 0; padding: 18px 5%; align-items: center; text-align: center; }
  .xm .b98price { font-size: 34px; line-height: 38px; }
}
@media screen and (max-width: 745px) {
  .xm .b98-info-left { display: block; }
  .xm .b98item {
    width: 100%;
    height: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
  }
}
@media screen and (max-width: 520px) {
  .xm .b98item:before { display: none; }
}

/* ---------- Intro (b97) ---------- */
.xm .b97 {
  /* El espacio inferior separa la foto de la sección del vídeo para que nunca se toquen. */
  padding: 50px 0 80px;
  overflow: hidden;
}
.xm .b97container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
}
.xm .b97left {
  width: auto;
  max-width: 676px;
  margin: 0;
}
.xm .b97group_top {
  display: flex;
  align-items: center;
}
.xm .b97logo { width: 224px; margin: 0; }
.xm .b97logo-text {
  margin: 0;
  color: var(--xm-accent);
  font-size: 22px;
  line-height: 1;
}
.xm .b97logo-text strong { display: block; font-size: 44px; font-weight: 700; }
/* Logo del proyecto (si se sube en el panel, sustituye a la etiqueta de texto) */
.xm .b97logo--img { display: flex; align-items: center; }
.xm .b97logo-img { display: block; width: auto; height: auto; max-width: 224px; max-height: 64px; }
.xm .b97location {
  box-sizing: border-box;
  padding-left: 40px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
  color: var(--xm-heading);
}
.xm .b97location p { margin: 0; }
.xm .b97title {
  padding-top: 63px;
  font-size: 42px;
  font-weight: 500;
  line-height: 48px;
  margin-bottom: 34px;
}
.xm .b97title h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.xm .b97title strong { color: var(--xm-heading); font-weight: 700; }
.xm .b97title .b97kicker { display: block; margin-bottom: 10px; font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--xm-accent); }
@media screen and (max-width: 640px) {
  .xm .b97title .b97kicker { margin-bottom: 6px; font-size: 12px; letter-spacing: 1.5px; }
}
.xm .b97description { font-size: 18px; line-height: 22px; }
.xm .b97right { width: 100%; position: relative; display: flex; justify-content: flex-end; }
.xm .b97-image {
  /* Dentro del flujo normal: la sección crece con la foto y nada se solapa. */
  margin: 0;
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 10;
  box-shadow: 0 18px 40px rgba(35, 6, 65, 0.18);
  /* Esquinas curvas, como el resto de piezas de la marca */
  border-radius: 28px;
  overflow: hidden;
}
.xm .b97-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
/* Carrusel de fotos de la presentación */
.xm .b97-slides { position: relative; aspect-ratio: 1; overflow: hidden; }
/* Fundido sin parpadeo: la foto nueva aparece encima y la anterior se retira cuando ya está cubierta. */
.xm .b97-slides .b97-slide { position: absolute; inset: 0; height: 100%; opacity: 0; z-index: 0; transition: opacity 0s linear 0.8s; }
.xm .b97-slides .b97-slide.active { opacity: 1; z-index: 1; transition: opacity 0.8s ease; }
.xm .b97-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.85); color: var(--xm-heading);
  display: grid; place-items: center; font-size: 14px;
  opacity: 0; transition: opacity 0.3s, background 0.3s;
}
.xm .b97-image:hover .b97-arrow, .xm .b97-arrow:focus-visible { opacity: 1; }
.xm .b97-arrow:hover { background: #fff; }
.xm .b97-prev { left: 12px; }
.xm .b97-next { right: 12px; }
.xm .b97-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.xm .b97-dots button {
  width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: transparent; cursor: pointer; box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); transition: background 0.3s;
}
.xm .b97-dots button.active { background: var(--xm-accent); border-color: var(--xm-accent); }
@media (hover: none) { .xm .b97-arrow { opacity: 1; } }
.xm .b97-isotipo {
  width: 300px;
  margin: 0;
  position: absolute;
  top: -30px;
  left: 0;
  transform: rotate(180deg);
  z-index: 1;
  color: var(--xm-accent);
  opacity: 0.9;
}
.xm .b97-isotipo svg { width: 100%; height: auto; display: block; }
@media screen and (max-width: 1100px) {
  .xm .b97container { grid-template-columns: 1fr; row-gap: 36px; }
  .xm .b97left { width: 100%; max-width: none; }
  /* En tablet y móvil la foto también se ve: debajo del texto y centrada. */
  .xm .b97right { justify-content: center; }
  .xm .b97-image { max-width: 560px; }
  .xm .b97 { padding-bottom: 60px; }
}
@media screen and (max-width: 768px) {
  .xm .b97group_top { flex-direction: column; align-items: flex-start; }
  .xm .b97logo { margin-bottom: 20px; }
  .xm .b97location { padding-left: 0; }
  .xm .b97title { font-size: 35px; line-height: 40px; }
}
@media screen and (max-width: 745px) {
  .xm .b97 { padding-top: 0; }
  .xm .b97logo-text { font-size: 18px; }
  .xm .b97logo-text strong { font-size: 36px; }
  .xm .b97location { font-size: 16px; }
  .xm .b97title { line-height: 24px; font-size: 20px; padding-top: 35px; margin-bottom: 15px; }
  .xm .b97description { line-height: 1.4; font-size: 14px; }
  .xm .b97 { padding-bottom: 48px; }
  .xm .b97container { row-gap: 28px; }
  .xm .b97-image { border-radius: 20px; }
}

/* ---------- Video (b95) ---------- */
.xm .b95tab { position: relative; }
.xm .b95list_tab {
  position: absolute;
  width: 100%;
  padding-top: 39px;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.xm .b95list_tab span {
  margin: 0 10px;
  text-transform: uppercase;
  font-size: 14px;
  color: #aaa;
  position: relative;
  padding: 0 10px 27px;
  box-sizing: border-box;
}
.xm .b95list_tab span:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  background-color: var(--xm-accent);
}
.xm .b95list_tab span.active { color: #fff; }
.xm .b95list_tab span.active:before { opacity: 1; }
.xm .b95img {
  position: relative;
  width: 100%;
  height: 600px;
}
.xm .b95-picture { display: block; position: absolute; inset: 0; }
.xm .b95-picture img { object-fit: cover; object-position: center center; }
.xm .b95content {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: 110px 579px;
  place-content: center;
  gap: 48px;
  height: 100%;
}
.xm .g6-radar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: block;
}
.xm .g6-radar-button {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.5px);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  place-items: center;
}
.xm .g6-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: xm-radar 2.5s ease-out infinite;
  z-index: 1;
  pointer-events: none;
}
.xm .g6-wave2 { animation-delay: 0.8s; }
.xm .g6-wave3 { animation-delay: 1.6s; }
/* Frase del vídeo: centrada, con negritas y un texto secundario más pequeño */
.xm .b95text {
  color: #fff;
  width: 100%;
  margin-left: 20px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(35, 6, 65, 0.35);
}
.xm .b95text .b95title { margin: 0; font-size: 38px; font-weight: 400; line-height: 1.2; letter-spacing: 0.3px; }
.xm .b95text .b95title strong { font-weight: 700; }
.xm .b95text .b95sub { max-width: 440px; margin: 18px auto 0; font-size: 17px; font-weight: 400; line-height: 1.45; }
.xm .b95text .b95sub strong { font-weight: 700; }
@media screen and (max-width: 1025px) {
  .xm .b95list_tab span { margin: 0; font-size: 13px; }
}
@media screen and (max-width: 1000px) {
  .xm .b95content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
  }
}
@media screen and (max-width: 960px) {
  .xm .b95text { margin-left: 0; }
}
@media screen and (max-width: 768px) {
  .xm .b95text .b95title { font-size: 32px; }
}
@media screen and (max-width: 640px) {
  .xm .b95text .b95title { font-size: 26px; }
  .xm .b95text .b95sub { font-size: 15px; margin-top: 14px; }
}

/* ---------- Galería (b94) ---------- */
.xm .b94 { padding: 50px 0; }
.xm .b94center_info { text-align: center; }
.xm .b94title {
  font-size: 30px;
  font-weight: 500;
  color: var(--xm-heading);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.xm .b94subtitle {
  font-size: 50px;
  margin-bottom: 56px;
  color: var(--xm-heading);
  letter-spacing: 1px;
}
.xm .b94nav_tab { text-align: center; padding-bottom: 56px; }
.xm .b94nav_tab .b94tab_menu {
  margin: 0 16px;
  padding: 0 0 8px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 500;
  color: #8f8e8e;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in;
}
.xm .b94nav_tab .b94tab_menu.active,
.xm .b94nav_tab .b94tab_menu:hover {
  border-bottom: 1px solid var(--xm-accent);
  color: var(--xm-accent);
}
.xm .b94content_tab:not([hidden]) { animation: xm-fade-in 0.45s ease; }
@keyframes xm-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xm .b94content_tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.xm .b94content_tab figure {
  margin: 0 0 29px;
  position: relative;
}
.xm .b94content_tab figure.small { width: 29%; }
.xm .b94content_tab figure.big { width: 69%; }
.xm .b94content_tab figure button {
  display: flex;
  height: 493px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.xm .b94-picture { display: block; position: absolute; inset: 0; }
.xm .b94-picture img { object-fit: cover; object-position: center center; }
.xm .b94lupa {
  background-color: #fff;
  border-radius: 50%;
  color: #333;
  display: grid;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 6;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 20px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
@media screen and (min-width: 1025px) {
  .xm .b94content_tab figure:hover .b94lupa { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 1024px) {
  .xm .b94lupa { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 960px) {
  .xm .b94content_tab figure.small,
  .xm .b94content_tab figure.big { width: 48%; }
}
@media screen and (max-width: 768px) {
  .xm .b94title { font-size: 25px; }
  .xm .b94subtitle { font-size: 40px; }
  .xm .b94nav_tab { padding-bottom: 30px; }
  .xm .b94nav_tab .b94tab_menu { display: block; width: 100%; font-size: 18px; margin: 0; padding: 20px 0; }
}
@media screen and (max-width: 640px) {
  .xm .b94title { line-height: 26px; letter-spacing: inherit; font-size: 22px; margin-bottom: 0; }
  .xm .b94subtitle { line-height: 37px; letter-spacing: inherit; font-size: 35px; }
  .xm .b94nav_tab .b94tab_menu { padding: 15px 0; }
  .xm .b94nav_tab .b94tab_menu.active { font-weight: 700; }
  .xm .b94content_tab figure.small,
  .xm .b94content_tab figure.big { width: 100%; }
}

/* ---------- Ubicación (b93) ---------- */
.xm .b93 {
  background-color: var(--xm-tint);
  padding-top: 45px;
  overflow: hidden;
}
.xm .b93 .wancho { padding-bottom: 50px; position: relative; }
.xm .b93info { text-align: center; padding-bottom: 48px; }
.xm .b93title {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--xm-heading);
  letter-spacing: 1px;
}
.xm .b93subtitle {
  color: var(--xm-heading);
  font-size: 50px;
  font-weight: 500;
  line-height: 61px;
  margin-bottom: 48px;
  letter-spacing: 1px;
}
.xm .b93wrap_maps { position: relative; }
.xm .b93navtabs {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 260px;
  background-color: #fff;
  z-index: 10;
  border-radius: 10px;
  padding: 24px;
  box-sizing: border-box;
}
.xm .b93title_maps { height: 0; margin: 0 0 16px; }
.xm .b93menu_tab {
  display: block;
  width: 100%;
  padding: 12px 10px 12px 50px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease-in;
  border-radius: 5px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  line-height: normal;
}
.xm .b93menu_tab figure {
  width: 24px;
  margin: 0;
  display: block;
  position: absolute;
  top: 10px;
  left: 15px;
}
.xm .b93menu_tab svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--xm-accent);
  transition: all 0.2s ease-in;
}
.xm .b93menu_tab.active {
  color: #fff;
  background-color: var(--xm-accent);
}
.xm .b93menu_tab.active svg { color: #fff; }
@media screen and (min-width: 1025px) {
  .xm .b93menu_tab:hover { color: #fff; background-color: var(--xm-accent); }
  .xm .b93menu_tab:hover svg { color: #fff; }
}
.xm .b93envolve_maps { position: relative; }
.xm .b93maps {
  width: 100%;
  height: 520px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 0;
  transition: all 0.15s ease-in;
}
.xm .b93maps.active { opacity: 1; visibility: visible; position: relative; }
.xm .b93maps { overflow: hidden; border-radius: var(--xm-radius, 20px); background: #e8eaed; }
/* Mapa fijo: no se arrastra ni hace zoom (evita mareos y que el pin del proyecto se descoloque). */
.xm .b93maps iframe {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.xm .b93maps iframe.active { opacity: 1; }
.xm .b93maps.loading::after {
  content: ""; position: absolute; left: 0; top: 0; z-index: 4; height: 3px; width: 40%;
  background: var(--xm-accent); animation: xm-map-loading 1.1s ease-in-out infinite;
}
@keyframes xm-map-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Pin del proyecto: la punta marca el centro del mapa (las coordenadas del proyecto). */
.xm .b93pin {
  position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; color: var(--xm-pin, #230641);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}
.xm .b93pin-card {
  display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box;
  margin-bottom: 6px; padding: 8px 14px; background: #fff; border-radius: 12px; border-bottom: 3px solid currentColor;
}
.xm .b93pin-card img { display: block; width: auto; height: auto; max-width: 132px; max-height: 40px; }
.xm .b93pin-card span { font-size: 14px; font-weight: 700; color: var(--xm-heading); white-space: nowrap; }
.xm .b93pin-mark { display: block; width: 34px; height: 44px; }
.xm .b93pin-pulse {
  position: absolute; left: 50%; bottom: -7px; z-index: -1; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: currentColor; animation: xm-pin-pulse 2.2s ease-out infinite;
}
@keyframes xm-pin-pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(3.4); opacity: 0; } }
.xm .b93open {
  position: absolute; right: 16px; top: 16px; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 40px;
  background: #fff; color: var(--xm-heading); font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(35, 6, 65, 0.2); transition: background-color 0.2s, color 0.2s;
}
.xm .b93open:hover { background: var(--xm-accent); color: #fff; }
.xm .b93open i { font-size: 10px; }
@media screen and (max-width: 768px) {
  .xm .b93maps { height: 420px; }
  .xm .b93pin-card { min-height: 36px; padding: 6px 10px; }
  .xm .b93pin-card img { max-width: 104px; max-height: 32px; }
  .xm .b93pin-mark { width: 28px; height: 36px; }
  .xm .b93open { right: 10px; top: 10px; height: 36px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .xm .b93pin-pulse { animation: none; opacity: 0; } }
@media screen and (max-width: 768px) {
  .xm .b93title { font-size: 25px; }
  .xm .b93subtitle { font-size: 40px; line-height: 50px; }
  .xm .b93navtabs { position: static; width: 100%; margin-bottom: 10px; }
}
@media screen and (max-width: 640px) {
  .xm .b93title { line-height: 26px; letter-spacing: inherit; font-size: 22px; margin-bottom: 0; }
  .xm .b93subtitle { line-height: 37px; letter-spacing: inherit; font-size: 35px; }
}

/* ---------- Cotizador (b33) ---------- */
.xm .b33 { padding: 50px 0 80px; }
.xm .b33-titles { text-align: center; }
.xm .b33-pretitle {
  font-size: 30px;
  line-height: 37px;
  font-weight: 500;
  color: var(--xm-heading);
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.xm .b33-title {
  font-size: 50px;
  line-height: 61px;
  letter-spacing: 1px;
  color: var(--xm-heading);
  font-weight: 500;
  margin: 0 0 8px;
}
.xm .b33-title p { margin: 0; }
.xm .b33-subtitle { margin-bottom: 64px; }
.xm .b33-main {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
}
.xm .b33-left { width: 45%; }
.xm .b33-right {
  width: 55%;
  padding-left: 70px;
  box-sizing: border-box;
}
.xm .b33-title-form {
  color: var(--xm-accent);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  margin: 0 0 20px;
}
.xm .g5-input-two {
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
}
.xm .g5-input-two .g5-item-input { width: 48.5%; }
.xm .g5-item-input {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid var(--xm-gray-2);
  border-radius: 20px;
  background-color: #fff;
}
.xm .g5-item-input.inFocus { border-color: var(--xm-accent); }
.xm .g5-item-input.invalid { border-color: #e33; }
.xm .form-input {
  border: 0;
  width: 100%;
  height: 55px;
  border-radius: 20px;
  box-sizing: border-box;
  display: block;
  background: none;
  box-shadow: none;
  appearance: none;
  padding: 0 20px;
  line-height: 40px;
  position: absolute;
  color: #000;
  left: 0;
  bottom: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  overflow: hidden;
  outline: none;
}
.xm select.form-input { color: #333; cursor: pointer; }
.xm select.form-input option { color: var(--xm-heading); }

/* Lista desplegable propia (ordenador): tarjeta blanca redondeada con sombra suave */
.xm .g5-select.abierto { z-index: 30; border-color: var(--xm-heading); }
.xm .g5-select .input-label i { transition: transform 0.25s ease; }
.xm .g5-select.abierto .input-label i { transform: rotate(180deg); }
.xm .g5-select.abierto .input-label.fijar i { transform: translate3d(0, -20px, 0) rotate(180deg); }
.xm .xm-opciones {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(35, 6, 65, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(35, 6, 65, 0.16);
  max-height: 264px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.xm .g5-select.abierto .xm-opciones {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.xm .xm-opciones li {
  position: relative;
  padding: 11px 40px 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--xm-heading);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.xm .xm-opciones li.activo { background: #f3eef8; }
.xm .xm-opciones li[aria-selected="true"] { font-weight: 700; }
.xm .xm-opciones li[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border: solid var(--xm-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.xm .input-label {
  display: block;
  height: 72px;
  pointer-events: none;
  box-sizing: border-box;
  position: relative;
  border-radius: 5px;
}
.xm .input-label span {
  transform-origin: 0% 50%;
  padding: 0 20px;
  box-sizing: border-box;
  transition: transform 0.2s, opacity 0.2s, font-size 0.2s;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  color: var(--xm-gray-2);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  position: relative;
}
.xm .input-label i {
  font-size: 25px;
  color: var(--xm-accent);
  position: absolute;
  right: 15px;
  bottom: 22px;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s, font-size 0.2s;
}
.xm .form-input:focus ~ .input-label span,
.xm .input-label.fijar span {
  transform: translate3d(0, -20px, 0);
  font-size: 11px;
  opacity: 1;
}
.xm .input-label.fijar span { color: #4f4f4f; }
.xm .g5-item-input.inFocus .input-label span { color: #8f8e8e; }
.xm .input-label.fijar i {
  font-size: 16px;
  top: 25px;
  bottom: auto;
  transform: translate3d(0, -20px, 0);
}
.xm .g5-textarea { width: 100%; }
.xm .g5-textarea textarea.form-input {
  height: 156px;
  position: static;
  padding-top: 35px;
  line-height: 100%;
  resize: none;
}
.xm .g5-textarea .input-label {
  height: 15px;
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
}
.xm .g5-textarea .form-input:focus ~ .input-label span,
.xm .g5-textarea .input-label.fijar span {
  transform: translate3d(0, 0, 0);
}
.xm .g5-required {
  display: block;
  line-height: 18px;
  margin-bottom: 13px;
  color: #333;
  font-size: 12px;
}
.xm .g5-terminos { position: relative; margin-bottom: 18px; }
.xm .g5-terminos input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin: 0;
}
.xm .g5-terminos_nota {
  position: relative;
  display: block;
  padding-left: 25px;
  cursor: pointer;
}
.xm .g5-terminos_icon {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 16px;
  height: 16px;
}
.xm .g5-terminos_icon:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid var(--xm-accent);
  box-sizing: border-box;
}
.xm .g5-terminos_icon:after {
  content: "✓";
  position: absolute;
  inset: 0;
  line-height: 15px;
  color: var(--xm-accent);
  font-weight: 700;
  font-size: 10px;
  text-align: center;
  opacity: 0;
  transition: all 0.25s ease-in-out;
}
.xm .g5-terminos input:checked + .g5-terminos_nota .g5-terminos_icon:after { opacity: 1; }
.xm .g5-terminos input:focus-visible + .g5-terminos_nota .g5-terminos_icon:before {
  outline: 2px solid var(--xm-accent);
  outline-offset: 2px;
}
.xm .g5-terminos.invalid .g5-terminos_icon:before { border-color: #e33; }
.xm .g5-terminos_text {
  font-size: 14px;
  line-height: 18px;
  color: var(--xm-gray-2);
}
.xm .g5-terminos_text a {
  color: var(--xm-accent);
  font-weight: 500;
  text-decoration: underline;
  transition: all 0.4s;
}
.xm .g5-terminos_text a:hover { opacity: 0.8; }
.xm .g0-cnt-btn { display: flex; }
.xm .g0-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 15px;
  height: 50px;
  width: 225px;
  background-color: var(--xm-accent);
  border: none;
  border-radius: 40px;
  font-size: 18px;
  line-height: 18px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.4s;
}
.xm .g0-btn:hover { background-color: var(--xm-accent-dark); }
.xm .g0-btn:disabled { opacity: 0.7; cursor: default; }
.xm .b33-form-status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 18px;
  color: var(--xm-heading);
}
.xm .b33-form-status.error { color: #d33; }

/* Aviso emergente de registro exitoso (se cierra solo a los 6 s) */
.xm-ok {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Proxima Nova", Arial, sans-serif;
  background: rgba(35, 6, 65, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.xm-ok.visible { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.xm-ok-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 34px 28px 26px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(35, 6, 65, 0.3);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.xm-ok.visible .xm-ok-card { transform: none; }
.xm-ok-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 34px;
  color: #8f8899;
  cursor: pointer;
}
.xm-ok-close:hover { background: #f3eef8; color: #230641; }
.xm-ok-icon svg { display: block; width: 68px; height: 68px; margin: 0 auto 14px; fill: none; stroke: #25a85a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.xm-ok-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.xm-ok-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.xm-ok.visible .xm-ok-icon circle { animation: xm-ok-draw 0.5s ease-out 0.1s forwards; }
.xm-ok.visible .xm-ok-icon path { animation: xm-ok-draw 0.35s ease-out 0.5s forwards; }
@keyframes xm-ok-draw { to { stroke-dashoffset: 0; } }
.xm-ok-title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; font-weight: 700; color: #230641; }
.xm-ok-text { margin: 0; font-size: 15px; line-height: 1.5; color: #4f4f4f; }
.xm-ok-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #f3eef8; }
.xm-ok-bar span { display: block; height: 100%; width: 100%; background: #fe4b45; transform-origin: left; transform: scaleX(1); }
.xm-ok.visible .xm-ok-bar span { animation: xm-ok-time 6s linear forwards; }
@keyframes xm-ok-time { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .xm-ok, .xm-ok-card { transition: none; }
  .xm-ok-icon circle, .xm-ok-icon path { stroke-dashoffset: 0; animation: none !important; }
}
.xm .b33-cnt-slider { padding-bottom: 4px; }

/* Imagen fija o carrusel junto al formulario */
.xm .b33-side { position: relative; max-width: 560px; margin: 0 auto; }
.xm .b33-side-slides { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #fff; }
.xm .b33-side-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  opacity: 0; visibility: hidden; z-index: 0; transition: opacity 0s linear 0.6s, visibility 0s linear 0.6s;
}
.xm .b33-side-slide.active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.6s ease; }
.xm .b33-side-slide img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.xm .b33-side-zoom {
  position: absolute; right: 14px; top: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--xm-heading);
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 2px 10px rgba(35, 6, 65, 0.15);
  opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.2s;
}
.xm .b33-side-slide:hover .b33-side-zoom,
.xm .b33-side-slide:focus-visible .b33-side-zoom { opacity: 1; transform: none; }
.xm .b33-side-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--xm-heading); font-size: 14px;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(35, 6, 65, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.xm .b33-side-arrow:hover { background: var(--xm-accent); color: #fff; }
.xm .b33-side-arrow.prev { left: -23px; }
.xm .b33-side-arrow.next { right: -23px; }
.xm .b33-side-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.xm .b33-side-dots { display: flex; gap: 8px; }
.xm .b33-side-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #d6d3dc; transition: width 0.3s, background 0.3s;
}
.xm .b33-side-dots button.active { width: 26px; background: var(--xm-accent); }
.xm .b33-side-count { font-size: 14px; color: var(--xm-gray-2); min-width: 40px; }
@media (hover: none) { .xm .b33-side-zoom { opacity: 1; transform: none; } }
/* En escritorio la imagen acompaña a la persona mientras rellena el formulario. */
@media screen and (min-width: 1101px) {
  .xm .b33-right { position: sticky; top: 110px; }
}
@media screen and (max-width: 1100px) {
  .xm .b33-side-arrow.prev { left: 8px; }
  .xm .b33-side-arrow.next { right: 8px; }
}
.xm .b33-plano {
  margin: 0 0 40px;
  display: block;
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.xm .b33-plano img { width: 523px; max-width: 100%; height: auto; display: block; }
.xm .b33-plano span {
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 15px;
  z-index: 5;
  color: #333;
  opacity: 0;
  transition: all 0.15s ease-in 0.1s;
  transform: scale(0);
}
@media screen and (min-width: 1025px) {
  .xm .b33-plano:hover span { opacity: 1; transform: scale(1); }
}
.xm .b33-subtitle-plano {
  font-size: 80px;
  line-height: 80px;
  font-weight: 700;
  color: var(--xm-tint);
  margin: 0;
}
.xm .b33-label-plano {
  font-weight: 700;
  font-size: 39px;
  line-height: 43px;
  color: var(--xm-heading);
  margin: 0;
}
.xm .b33-area {
  font-weight: 700;
  font-size: 80px;
  line-height: 80px;
  color: var(--xm-accent);
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.xm .b33-list {
  color: var(--xm-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 20px;
  padding-left: 20px;
  list-style: disc;
  /* evita que la lista vacía colapse con el margen del título, como en el original */
  border-top: 1px solid transparent;
  margin-top: -1px;
}
@media screen and (max-width: 1024px) {
  .xm .b33 { padding: 40px 0 60px; }
}
@media screen and (max-width: 1000px) {
  .xm .b33-left { width: 100%; order: 2; margin-top: 30px; }
  .xm .b33-right { width: 100%; padding-left: 0; }
}
@media screen and (max-width: 768px) {
  .xm .b33-main { flex-direction: column-reverse; }
  .xm .b33-pretitle { font-size: 25px; margin-bottom: 0; }
  .xm .b33-title { font-size: 35px; line-height: 45px; }
}
@media screen and (max-width: 745px) {
  .xm .b33-left { margin-top: 0; }
  .xm .b33-left .g0-btn { width: 100%; }
  .xm .b33-right { margin-top: 50px; }
  .xm .b33-pretitle { font-size: 20px; }
  .xm .b33-title { font-size: 28px; line-height: 30px; }
  .xm .b33-subtitle { margin-bottom: 35px; }
  .xm .b33-title-form { font-size: 18px; line-height: 20px; margin-top: 20px; }
  .xm .b33-subtitle-plano { font-size: 40px; line-height: 45px; }
  .xm .b33-label-plano { font-size: 28px; }
  .xm .b33-area { font-size: 40px; line-height: 42px; }
}
@media screen and (max-width: 640px) {
  .xm .g5-input-two { flex-direction: column; }
  .xm .g5-input-two .g5-item-input { width: 100%; }
}

/* ---------- Proyectos relacionados (b90) ---------- */
.xm .b90 { padding: 56px 0; background-color: #fafafa; overflow-x: clip; }
.xm .b90container.wancho { max-width: 1150px; }
.xm .b90info_top { text-align: center; padding-bottom: 56px; }
.xm .b90title {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--xm-heading);
  letter-spacing: 1px;
}
.xm .b90subtitle {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 22px;
  color: var(--xm-heading);
  letter-spacing: 1px;
}
.xm .b90btn a {
  height: 48px;
  line-height: 48px;
  border: 1px solid var(--xm-gray-2);
  display: inline-block;
  border-radius: 44px;
  padding: 0 30px;
  color: var(--xm-gray-2);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-sizing: border-box;
  transition: all 0.2s ease-in;
}
@media screen and (min-width: 1025px) {
  .xm .b90btn a:hover { background-color: var(--xm-accent); color: #fff; border-color: var(--xm-accent); }
}
.xm .b90wrap_items.wancho { max-width: 1400px; }
/* Cuadrícula de proyectos: todos a la vista, con entrada escalonada y efectos al pasar el ratón. */
.xm .b2-grid {
  display: grid;
  grid-template-columns: repeat(var(--xm-cols, 3), minmax(0, 360px));
  justify-content: center;
  gap: 32px;
}
.xm .b2-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: calc(0.35s + var(--i, 0) * 0.15s);
}
.xm .anima .b2-card { opacity: 1; transform: none; }
.xm .b2-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--xm-radius, 20px);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(35, 6, 65, 0.08);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s;
}
.xm .b2-link:hover,
.xm .b2-link:focus-visible { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(35, 6, 65, 0.18); }
.xm .b2-figura-it { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.xm .b2-figura-it img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.xm .b2-link:hover .b2-figura-it img { transform: scale(1.07); }
/* Velo suave al pasar el ratón para dar profundidad a la foto */
.xm .b2-figura-it::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 6, 65, 0) 55%, rgba(35, 6, 65, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}
.xm .b2-link:hover .b2-figura-it::after { opacity: 1; }
.xm .b2-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background-color: var(--xm-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}
.xm .b2-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.xm .b2-district { margin: 0 0 4px; color: var(--xm-accent); font-size: 14px; }
.xm .b2-name { margin: 0 0 14px; color: var(--xm-heading); font-size: 21px; font-weight: 600; line-height: 1.2; }
.xm .b2-specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--xm-gray-2);
}
.xm .b2-specs li { display: flex; align-items: center; gap: 8px; }
.xm .b2-specs img { width: 16px; height: 16px; }
.xm .b2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eeeaf1;
}
.xm .b2-price { display: flex; align-items: baseline; gap: 6px; color: var(--xm-heading); }
.xm .b2-price p { margin: 0; font-size: 13px; color: var(--xm-gray-2); }
.xm .b2-price span { font-size: 19px; font-weight: 700; }
.xm .b2-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--xm-accent);
  white-space: nowrap;
}
.xm .b2-more i { font-size: 10px; transition: transform 0.3s; }
.xm .b2-link:hover .b2-more i { transform: translateX(4px); }
/* Puntos del carrusel móvil (solo se ven en móvil) */
.xm .b2-dots { display: none; }
@media screen and (max-width: 1000px) {
  /* En tablet y móvil: carrusel que se desliza con el dedo; se asoma la siguiente tarjeta. */
  .xm .b2-grid {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 0 -5.556%;
    padding: 8px 5.556% 20px;
    scroll-padding-inline: 5.556%;
  }
  .xm .b2-grid::-webkit-scrollbar { display: none; }
  .xm .b2-card { flex: 0 0 min(62%, 400px); scroll-snap-align: start; }
  .xm .b2-card:last-child:nth-child(odd) { max-width: none; width: auto; }
  .xm .b2-link:hover, .xm .b2-link:focus-visible { transform: none; }
  .xm .b2-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .xm .b2-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: #d6d3dc; transition: width 0.3s, background 0.3s;
  }
  .xm .b2-dots button.active { width: 26px; background: var(--xm-accent); }
}
@media screen and (max-width: 640px) {
  .xm .b2-card { flex-basis: 84%; }
}
@media (prefers-reduced-motion: reduce) {
  .xm .b2-card { opacity: 1; transform: none; transition: none; }
}
@media screen and (max-width: 745px) {
  .xm .b90info_top { padding-bottom: 39px; }
  .xm .b90title { letter-spacing: inherit; line-height: 26px; font-size: 22px; margin-bottom: 0; }
  .xm .b90subtitle { line-height: 37px; letter-spacing: inherit; font-size: 35px; margin-bottom: 27px; }
  .xm .b90btn a { min-width: 204px; font-size: 19px; }
}

/* ---------- Footer ---------- */
.xm .f-footer {
  padding: 50px 0 20px;
  background: #efefef;
  color: var(--xm-text);
}
/* Parte superior del pie: marca | enlaces | llamada a la acción, separada del contacto por una línea */
.xm .f-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px 64px;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #dbd9d6;
}
.xm .f-brand { display: flex; flex-direction: column; gap: 18px; }
.xm .f-logo { width: 200px; }
.xm .f-logo img { width: 100%; height: auto; display: block; }
.xm .f-label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xm-gray-2);
}
.xm .f-menu { list-style: none; padding: 0; margin: 0; }
.xm .f-menu li { margin-bottom: 12px; }
.xm .f-menu li:last-child { margin-bottom: 0; }
.xm .f-menu a { color: var(--xm-heading); font-weight: 600; font-size: 17px; transition: color 0.2s; }
.xm .f-menu a:hover { color: var(--xm-accent); }
.xm .f-descubre { max-width: 340px; justify-self: end; }
.xm .f-subtitle {
  font-size: 28px;
  line-height: 1.15;
  color: var(--xm-heading);
  font-weight: 700;
  margin: 0 0 20px;
}
.xm .f-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 40px;
  background-color: var(--xm-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}
.xm .f-cta:hover { background-color: var(--xm-accent-dark); }
.xm .f-cta i { font-size: 11px; }
.xm .f-slogan { margin: 0; max-width: 300px; font-size: 16px; line-height: 1.45; color: var(--xm-gray-2); font-style: italic; }
.xm .f-contacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.xm .f-contact-list { display: flex; gap: 0 45px; }
.xm .f-contact-item { display: flex; align-items: center; gap: 1rem; }
.xm .f-contact-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border: 1px solid #bdbdbd;
  color: var(--xm-accent);
  border-radius: 100%;
  transition: all 0.2s ease-in;
  font-size: 20px;
  flex-shrink: 0;
}
.xm a.f-contact-item:hover i {
  background-color: var(--xm-accent);
  color: #fff;
  border-color: var(--xm-accent);
}
.xm .f-contact-item p { margin: 0; font-size: 13px; font-weight: 600; color: var(--xm-gray-2); letter-spacing: 0.5px; }
.xm .f-contact-item p:first-child { margin-bottom: 8px; }
.xm .f-contact-item p strong { display: block; font-weight: 600; font-size: 17px; color: var(--xm-heading); letter-spacing: 0; }
.xm .f-redes { display: flex; align-items: center; gap: 1.5rem; }
.xm .f-redes i { font-size: 24px; color: var(--xm-heading); transition: all 0.4s; }
.xm .f-redes a:hover i { color: var(--xm-accent); }
.xm .f-bottom {
  border-top: 1px solid #dbd9d6;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.xm .f-copy { margin: 0; font-size: 13px; color: var(--xm-gray-2); }
.xm .f-libro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: 5px;
  border: 1px solid var(--xm-gray-2);
  padding: 0 20px;
  color: var(--xm-heading);
  font-weight: 600;
  box-sizing: border-box;
}
.xm .f-libro i { font-size: 22px; }
.xm .f-libro:hover { border-color: var(--xm-accent); color: var(--xm-accent); }
.xm .f-legal-note {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--xm-gray-2);
  text-align: center;
}
@media screen and (max-width: 1190px) {
  .xm .f-contacto { flex-flow: row wrap; }
  .xm .f-contact-list { width: 100%; }
  .xm .f-redes { width: 100%; justify-content: center; margin-top: 40px; }
  .xm .f-bottom { flex-direction: column; align-items: center; }
}
/* Tablet: marca y menú lado a lado; la llamada a la acción en una franja; contacto en 3 columnas. */
@media screen and (max-width: 1000px) {
  .xm .f-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .xm .f-descubre {
    grid-column: 1 / -1; justify-self: stretch; max-width: none;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 26px; background: #fff; border-radius: var(--xm-radius, 20px);
  }
  .xm .f-subtitle { margin: 0; font-size: 24px; }
  .xm .f-cta { flex-shrink: 0; }
  .xm .f-contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .xm .f-contact-item { align-items: flex-start; gap: 12px; }
  .xm .f-contact-item i { width: 44px; height: 44px; font-size: 17px; }
  .xm .f-contact-item p strong { font-size: 15px; }
  .xm .f-redes { margin-top: 32px; }
  .xm .f-redes a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
  .xm .f-redes i { font-size: 18px; }
}
/* Celular: todo alineado a la izquierda y compacto (icono + texto en una fila). */
@media screen and (max-width: 640px) {
  .xm .f-footer { padding-top: 40px; }
  .xm .f-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; padding-bottom: 28px; }
  .xm .f-logo { width: 170px; }
  .xm .f-menu { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .xm .f-menu li { margin: 0; }
  .xm .f-menu a { font-size: 16px; }
  .xm .f-descubre { flex-direction: column; align-items: flex-start; padding: 22px; }
  .xm .f-subtitle { font-size: 22px; }
  .xm .f-cta { width: 100%; justify-content: center; box-sizing: border-box; }
  .xm .f-contacto { margin-bottom: 28px; }
  .xm .f-contact-list { grid-template-columns: 1fr; gap: 18px; }
  .xm .f-contact-item { align-items: center; }
  .xm .f-redes { justify-content: flex-start; gap: 10px; margin-top: 26px; }
  .xm .f-bottom { align-items: stretch; text-align: center; gap: 16px; }
  .xm .f-libro { width: 100%; }
}

/* ---------- Lightbox ---------- */
.xm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.xm-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.xm-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.xm-lightbox-media {
  position: relative;
  width: min(1200px, 100%);
  max-height: 100%;
}
.xm-lightbox-media.video { aspect-ratio: 16 / 9; width: min(1100px, 100%, calc((100vh - 80px) * 16 / 9)); }
.xm-lightbox-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.xm-lightbox-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  margin: auto;
  display: block;
}

/* Campo trampa del formulario (anti-spam) */
.xm .xm-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Esquinas curvas en todas las fotos ---------- */
.xm { --xm-radius: 20px; }
/* Galería: cada foto con curvas y un ligero zoom al pasar el ratón */
.xm .b94content_tab figure button { border-radius: var(--xm-radius); overflow: hidden; }
.xm .b94-picture img { transition: transform 0.5s ease; }
.xm .b94content_tab figure button:hover .b94-picture img { transform: scale(1.03); }
/* Tarjetas de «Otros proyectos»: la tarjeta entera con curvas (la foto queda redondeada arriba) */
.xm .b2-inner-it { border-radius: var(--xm-radius); overflow: hidden; }
.xm .b2-tag { border-radius: 6px; }
/* Carrusel junto al formulario, foto de la presentación y menú, con el mismo radio */
.xm .b33-side-slides { border-radius: var(--xm-radius); }
.xm .main-banner { border-radius: var(--xm-radius); }
/* Visor de fotos y vídeo ampliados */
.xm-lightbox-media img,
.xm-lightbox-media iframe { border-radius: 14px; }
@media screen and (max-width: 745px) {
  .xm { --xm-radius: 14px; }
}
