/* ==================================================
   FUENTE CORPORATIVA HORAS
   ================================================== */

@font-face {
  font-family: "Horas";
  src: url("../fonts/Horas-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Horas";
  src: url("../fonts/Horas-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Horas";
  src: url("../fonts/Horas-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Horas";
  src: url("../fonts/Horas-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Horas";
  src: url("../fonts/Horas-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Aplicación general de la fuente */

html,
body {
  font-family: "Horas", Arial, sans-serif;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: "Horas", Arial, sans-serif;
  font-weight: 800;
}

h4,
h5,
h6 {
  font-family: "Horas", Arial, sans-serif;
  font-weight: 700;
}
/* Color corporativo de los enlaces del menú desplegable */
.container-header .metismenu.mod-menu .metismenu-item > ul a,
.container-header .metismenu.mod-menu .metismenu-item > ul a:visited {
  color: #452c5c !important;
}

/* Al pasar el cursor o seleccionar con teclado */
.container-header .metismenu.mod-menu .metismenu-item > ul a:hover,
.container-header .metismenu.mod-menu .metismenu-item > ul a:focus {
  color: #5b24ee !important;
  text-decoration: none;
}

/* Página actualmente seleccionada */
.container-header .metismenu.mod-menu .metismenu-item > ul .current > a,
.container-header .metismenu.mod-menu .metismenu-item > ul .active > a {
  color: #452c5c !important;
  font-weight: 700;
}
/* ==================================================
   CABECERA MASTERSOLUTIONS
   ================================================== */

.container-header {
  box-sizing: border-box;
  width: 100%;
  background-color: #452c5c;
  background-image: none;
}

/* Logotipo */

.container-header .navbar-brand {
  margin: 0;
  padding: 0;
}

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

/* ==================================================
   ESCRITORIO
   ================================================== */

@media (min-width: 992px) {
  .container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    box-sizing: border-box;
    width: 100%;
    min-height: 90px;
    padding: 12px clamp(30px, 5vw, 90px);
  }

  /* Elimina la limitación de ancho de Cassiopeia */
  .container-header .grid-child {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Contenedor del logotipo */
  .container-header .navbar-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

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

  /* El contenedor del menú ocupa el espacio disponible */
  .container-header .container-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;

    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .container-header .container-nav .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
  }

  /* Menú alineado hacia la derecha */
  .container-header .mod-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;

    width: auto;
    margin: 0;
    padding: 0;
  }

  .container-header .mod-menu > li {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button {
    display: flex;
    align-items: center;
    padding: 12px 14px;

    color: #ffffff;
    font-family: "Horas", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  /* La hamburguesa no se muestra en escritorio */
  .container-header .navbar-toggler {
    display: none !important;
  }
}
/* ==================================================
   TABLET Y MÓVIL
   ================================================== */

@media (max-width: 991.98px) {
  .container-header {
    position: relative !important;
    display: block;
    min-height: 0;
    padding: 10px 16px;
  }

  /* Logo a la izquierda y centrado verticalmente */

  .container-header .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;

    /* Espacio reservado para la hamburguesa */
    padding: 0 70px 0 0;
  }

  .container-header .navbar-brand img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  /* Posicionamiento respecto a la cabecera */

  .container-header .container-nav,
  .container-header .container-nav .navbar {
    position: static !important;
  }

  .container-header .container-nav {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Botón hamburguesa de 54 × 54 px */

  .container-header button.navbar-toggler {
    position: absolute !important;
    top: 24px !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 9999 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 6px;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Símbolo hamburguesa */

  .container-header button.navbar-toggler::before {
    content: "\2630";
    display: block;
    color: #ffffff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
  }

  /* Oculta el icono original de Joomla */

  .container-header button.navbar-toggler > * {
    display: none !important;
  }

  /* Contenedor desplegable */

  .container-header .navbar-collapse {
    width: 100%;
    margin-top: 12px;
  }

  .container-header .navbar-collapse.show {
    display: block !important;
  }

  /* Enlaces del menú móvil */

  .container-header .mod-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container-header .mod-menu > li {
    display: block;
    width: 100%;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 11px 8px;
    color: #ffffff;
    font-family: "Horas", Arial, sans-serif;
    font-weight: 600;
  }
}

/* ==================================================
   TELÉFONOS PEQUEÑOS
   ================================================== */

@media (max-width: 480px) {
  .container-header {
    padding-right: 15px;
    padding-left: 15px;
  }

  .container-header .navbar-brand img {
    width: 180px;
  }

  .container-header button.navbar-toggler {
    right: 15px !important;
  }
 }
/* ==================================================
   AJUSTES FINALES DEL MENÚ MÓVIL
   ================================================== */

@media (max-width: 991.98px) {

  /* Elementos principales */
  .container-header .mod-menu > li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button,
  .container-header .mod-menu > li > span {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 10px !important;

    color: #ffffff;
    font-family: "Horas", Arial, sans-serif !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
  }

  /* Separación moderada entre opciones */
  .container-header .mod-menu > li + li {
    margin-top: 8px !important;
  }

  /* Submenú de Soluciones */
  .container-header .mod-menu .mod-menu {
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 6px !important;
    padding: 4px 0 4px 18px !important;
    background-color: rgba(255, 255, 255, 0.06);
  }

  .container-header .mod-menu .mod-menu > li > a {
    min-height: 42px;
    padding: 8px 10px !important;
    font-size: 16px;
    font-weight: 500;
  }

  /* Menú desplegado */
  .container-header .navbar-collapse {
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    padding: 4px 22px 12px;
  }

  /* Elimina contornos punteados al usar el menú */
  .container-header a:focus,
  .container-header button:focus {
    outline: none;
    box-shadow: none;
      }
}

/* ==================================================
   PÁGINA MASTERCONTROL
   ================================================== */

:root {
  --ms-header: #452c5c;
  --ms-solution-bg: #e8e1ec;
  --ms-title: #2d1b3d;
  --ms-text: #51465d;
  --ms-text-soft: #6b6074;
  --ms-primary: #5b24ee;
  --ms-primary-hover: #461855;
  --ms-white: #ffffff;
}

.mc-page {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  font-family: "Horas", Arial, sans-serif;
  background-color: var(--ms-solution-bg);
}

/* Banner superior */
.mc-banner {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--ms-solution-bg);
}

.mc-banner img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto;
  margin: 0 !important;
}

/* Estructura común de las secciones */
.mc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  width: 100%;
  min-height: 0;
  margin: 0;
  background-color: var(--ms-solution-bg);
}

.mc-hero--normal {
  grid-template-areas: "content visual";
}

.mc-hero--reverse {
  grid-template-areas: "visual content";
}

.mc-hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 65px clamp(55px, 6vw, 90px);
  color: var(--ms-title);
  background-color: var(--ms-solution-bg) !important;
}

/* La segunda sección debe ser más compacta. */
.mc-hero--reverse .mc-hero__content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mc-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 16px;
  color: var(--ms-primary-hover);
  background-color: rgba(91, 36, 238, 0.12);
  border: 1px solid rgba(70, 24, 85, 0.18);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mc-hero h1,
.mc-hero h2 {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--ms-title);
  font-family: "Horas", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.mc-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
}

.mc-hero h2 {
  font-size: clamp(38px, 4vw, 60px);
}

.mc-text-highlight {
  color: var(--ms-primary);
}

.mc-hero__description {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--ms-text);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.45;
}

.mc-hero__support {
  max-width: 650px;
  margin: 0;
  color: var(--ms-text-soft);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* Botones */
.mc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.mc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: "Horas", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.mc-button--primary {
  color: var(--ms-white);
  background-color: var(--ms-primary);
  border-color: var(--ms-primary);
}

.mc-button--primary:hover,
.mc-button--primary:focus {
  color: var(--ms-white);
  background-color: var(--ms-primary-hover);
  border-color: var(--ms-primary-hover);
  transform: translateY(-2px);
}

/* Panel de imagen */
.mc-hero__visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 45px clamp(40px, 5vw, 70px);
  overflow: hidden;
  background-color: var(--ms-solution-bg) !important;
  isolation: isolate;
}

.mc-hero--reverse .mc-hero__visual {
  padding-top: 30px;
  padding-bottom: 30px;
}

.mc-hero__visual img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0;
  mix-blend-mode: multiply;
}

/* Tablet y escritorio */
@media (min-width: 768px) {
  .mc-hero--normal .mc-hero__content {
    grid-column: 1;
  }

  .mc-hero--normal .mc-hero__visual {
    grid-column: 2;
  }

  .mc-hero--reverse .mc-hero__visual {
    grid-column: 1;
  }

  .mc-hero--reverse .mc-hero__content {
    grid-column: 2;
  }
}

/* Teléfonos */
@media (max-width: 767.98px) {
  .mc-hero {
    grid-template-columns: 1fr;
  }

  /* En móvil, todas las secciones muestran primero el texto */
  .mc-hero--normal,
  .mc-hero--reverse {
    grid-template-areas:
      "content"
      "visual";
  }

  .mc-hero__content,
  .mc-hero--reverse .mc-hero__content {
    padding: 40px 22px 24px;
  }

  .mc-hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .mc-hero h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .mc-hero__visual,
  .mc-hero--reverse .mc-hero__visual {
    min-height: 0;
    padding: 10px 20px 32px;
  }

  .mc-hero__visual img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}

@media (max-width: 575.98px) {
  .mc-hero__eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .mc-hero h1,
  .mc-hero h2 {
    margin-bottom: 20px;
  }

  .mc-hero__description {
    font-size: 19px;
  }

  .mc-hero__support {
    font-size: 16px;
  }

  .mc-hero__actions {
    width: 100%;
    margin-top: 30px;
  }

  .mc-button {
    width: 100%;
  }
}

/* ==================================================
   CASSIOPEIA: PÁGINA A TODO EL ANCHO
   ================================================== */

body:has(.mc-page) .site-grid {
  column-gap: 0 !important;
  row-gap: 0 !important;
}

body:has(.mc-page) .site-grid > .container-component {
  grid-column: full-start / full-end !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.mc-page) main,
body:has(.mc-page) .container-component,
body:has(.mc-page) .container-component > *,
body:has(.mc-page) .com-content-article,
body:has(.mc-page) .com-content-article__body {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.mc-page),
body:has(.mc-page) .site-grid,
body:has(.mc-page) .container-component {
  overflow-x: clip;
  background-color: var(--ms-solution-bg);
}
/* Imágenes más grandes en todas las secciones de MasterControl */
@media (min-width: 1100px) {

  /* Texto izquierda – imagen derecha */
  .mc-hero--normal {
    grid-template-columns:
      minmax(0, 0.95fr)
      minmax(520px, 1.05fr);
  }

  /* Imagen izquierda – texto derecha */
  .mc-hero--reverse {
    grid-template-columns:
      minmax(520px, 1.05fr)
      minmax(0, 0.95fr);
  }

  /* Reducir el espacio alrededor de todas las imágenes */
  .mc-hero__visual {
    padding: 30px 20px;
  }

  /* Ampliar todas las imágenes */
  .mc-hero__visual img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}
/* =========================================================
   BOTÓN VOLVER ARRIBA — MASTERCONTROL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.mc-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background-color: #5b24ee;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 2, 18, 0.25);

  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.mc-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mc-back-top:hover,
.mc-back-top:focus-visible {
  background-color: #461855;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
}

.mc-back-top:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Teléfonos */
@media (max-width: 767.98px) {
  .mc-back-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 27px;
  }
}

/* Respetar preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mc-back-top {
    transition: none;
  }
}
/* =========================================================
   FOOTER GENERAL — MASTERSOLUTIONS (VERSIÓN CONSOLIDADA)
   ========================================================= */

.container-footer {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  background: #070212;
  color: #ffffff;
}

.container-footer .grid-child,
.container-footer .mod-custom {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ms-footer,
.ms-footer * {
  box-sizing: border-box;
}

.ms-footer {
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-family: "Horas", Arial, sans-serif;
}

.ms-footer-container {
  width: min(calc(100% - 48px), 1460px);
  margin-inline: auto;
}

/* CTA */
.ms-footer-cta {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  text-align: center;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(169, 140, 255, 0.23),
      transparent 32%
    ),
    linear-gradient(135deg, #461855 0%, #5b24ee 100%);
}

.ms-footer-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.ms-footer-cta h2 {
  max-width: 900px;
  margin: 0 auto 14px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ms-footer-cta p {
  max-width: 780px;
  margin: 0 auto;
  color: #eee9ff;
  font-size: 18px;
  line-height: 1.55;
}

.ms-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.ms-footer-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.container-footer .ms-footer .ms-footer-button--primary {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #461855 !important;
  box-shadow: 0 10px 26px rgba(7, 2, 18, 0.2);
}

.container-footer .ms-footer .ms-footer-button--primary:hover,
.container-footer .ms-footer .ms-footer-button--primary:focus-visible {
  border-color: #e8e1ec;
  background-color: #e8e1ec;
  color: #461855 !important;
  transform: translateY(-2px);
}

.ms-footer-button--secondary {
  border-color: rgba(255, 255, 255, 0.78);
  background-color: transparent;
  color: #ffffff;
}

.ms-footer-button--secondary:hover,
.ms-footer-button--secondary:focus-visible {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Contenido principal */
.ms-footer-main {
  background-color: #070212;
}

.ms-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.35fr)
    minmax(150px, 0.72fr)
    minmax(150px, 0.72fr)
    minmax(240px, 1fr);
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 40px;
}

.ms-footer-brand {
  max-width: 380px;
}

.ms-footer-logo {
  display: inline-block;
  max-width: 320px;
  margin: 0 0 14px;
}

.ms-footer-logo img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* El eslogan ya está integrado en el logotipo. */
.ms-footer-slogan {
  display: none;
}

.ms-footer-description {
  max-width: 360px;
  margin: 0;
  color: #cfc8d8;
  font-size: 15px;
  line-height: 1.6;
}

.ms-footer-column h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.ms-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-footer-column li {
  margin: 0 0 10px;
}

.ms-footer-column a,
.ms-footer-contact a {
  color: #cfc8d8;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-footer-column a:hover,
.ms-footer-column a:focus-visible,
.ms-footer-contact a:hover,
.ms-footer-contact a:focus-visible {
  color: #a98cff;
  text-decoration: none;
}

/* Redes sociales */
.ms-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.ms-footer-social a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ms-footer-social a:hover,
.ms-footer-social a:focus-visible {
  border-color: #5b24ee;
  background-color: #5b24ee;
  color: #ffffff;
  transform: translateY(-2px);
}

.ms-footer-social svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Contacto */
.ms-footer-contact address {
  margin: 0;
  color: #cfc8d8;
  font-style: normal;
}

.ms-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: #cfc8d8;
  text-decoration: none;
}

.ms-footer-contact-item svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: #a98cff;
  transition: fill 0.2s ease;
}

.ms-footer-contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.ms-footer-contact strong {
  color: #ffffff;
  font-weight: 700;
}

.ms-footer-contact-item:hover svg,
.ms-footer-contact-item:focus-visible svg {
  fill: #ffffff;
}

/* Franja inferior */
.ms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background-color: #05010d;
}

.ms-footer-bottom__inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.ms-footer-bottom p {
  margin: 0;
  color: #a9a2b3;
  font-size: 13px;
  line-height: 1.5;
}

.ms-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.ms-footer-bottom a {
  color: #a9a2b3;
  font-size: 13px;
  text-decoration: none;
}

.ms-footer-bottom a:hover,
.ms-footer-bottom a:focus-visible {
  color: #ffffff;
}

/* Accesibilidad */
.ms-footer a:focus-visible {
  outline: 3px solid #a98cff;
  outline-offset: 3px;
}

/* Tablet */
@media (max-width: 991.98px) {
  .ms-footer-container {
    width: min(calc(100% - 40px), 900px);
  }

  .ms-footer-cta {
    padding: 48px 0;
  }

  .ms-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .ms-footer-brand {
    max-width: none;
  }
}

/* Teléfonos */
@media (max-width: 767.98px) {
  .ms-footer-container {
    width: min(calc(100% - 36px), 620px);
  }

  .ms-footer-cta {
    padding: 42px 0;
  }

  .ms-footer-cta h2 {
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.1;
  }

  .ms-footer-cta p {
    font-size: 16px;
    line-height: 1.5;
  }

  .ms-footer-cta__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }

  .ms-footer-button {
    width: 100%;
  }

  .ms-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 22px;
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .ms-footer-brand,
  .ms-footer-contact {
    grid-column: 1 / -1;
  }

  .ms-footer-brand {
    text-align: center;
  }

  .ms-footer-logo {
    display: block;
    width: fit-content;
    max-width: 270px;
    margin: 0 auto 16px;
  }

  .ms-footer-logo img {
    max-width: 270px;
    margin: 0 auto;
  }

  .ms-footer-description {
    max-width: 330px;
    margin: 0 auto;
    text-align: center;
  }

  .ms-footer-social {
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .ms-footer-social a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .ms-footer-social svg {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }

  .ms-footer-column h2 {
    margin-bottom: 16px;
  }

  .ms-footer-contact-list {
    gap: 14px;
  }

  .ms-footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .ms-footer-bottom nav {
    justify-content: flex-start;
    gap: 9px 18px;
  }
}

@media (max-width: 390px) {
  .ms-footer-social a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-footer a {
    transition: none;
  }
}

/* =========================================================
   ICONOS RESISTENTES AL FILTRO DE JOOMLA
   TinyMCE puede eliminar SVG insertados en el HTML. Estos
   iconos se generan desde CSS y conservan los enlaces actuales.
   ========================================================= */

/* Evitar iconos duplicados si Joomla conserva algún SVG. */
.ms-footer-social svg,
.ms-footer-contact-item svg {
  display: none !important;
}

/* Base de los iconos sociales. */
.ms-footer-social a::before {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ms-footer-social a[href*="facebook.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5V6.8c0-.8.5-1 1-1h2.8V2.1L14.6 2C11.3 2 10 4 10 6.5v2H7v4h3V22h4v-9.5h3.3l.6-4H14Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5V6.8c0-.8.5-1 1-1h2.8V2.1L14.6 2C11.3 2 10 4 10 6.5v2H7v4h3V22h4v-9.5h3.3l.6-4H14Z'/%3E%3C/svg%3E");
}

.ms-footer-social a[href*="instagram.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm10.5 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm10.5 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
}

.ms-footer-social a[href*="youtube.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8ZM9.7 15.6V8.4L16 12l-6.3 3.6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8ZM9.7 15.6V8.4L16 12l-6.3 3.6Z'/%3E%3C/svg%3E");
}

/* Contacto: posición estable aunque el editor elimine SVG o span. */
.ms-footer-contact-item {
  position: relative;
  display: block;
  min-height: 22px;
  padding-left: 32px;
}

.ms-footer-contact-item::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: block;
  width: 20px;
  height: 20px;
  background-color: #a98cff;
  content: "";
  transition: background-color 0.2s ease;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ms-footer-contact-item[href*="google.com/maps"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

.ms-footer-contact-item[href*="wa.me"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.2-1.3A10 10 0 1 0 12 2Zm0 18a8 8 0 0 1-4.1-1.1l-.4-.2-3 .8.8-2.9-.2-.5A8 8 0 1 1 12 20Zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.6.1l-.7.9c-.1.2-.3.2-.5.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.3 0-.4.1-.6l.5-.6c.1-.2.1-.4 0-.6l-.7-1.7c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.7.7-1 1.5-1 2.4 0 1.4 1 2.8 1.2 3 1.1 1.8 2.8 3.2 4.8 4 .7.3 1.3.4 1.8.5.8.1 1.5 0 2-.4.6-.4 1-1.1 1.1-1.6.1-.4.1-.8 0-.9-.2-.2-.4-.3-.7-.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.2-1.3A10 10 0 1 0 12 2Zm0 18a8 8 0 0 1-4.1-1.1l-.4-.2-3 .8.8-2.9-.2-.5A8 8 0 1 1 12 20Zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.6.1l-.7.9c-.1.2-.3.2-.5.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.3 0-.4.1-.6l.5-.6c.1-.2.1-.4 0-.6l-.7-1.7c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.7.7-1 1.5-1 2.4 0 1.4 1 2.8 1.2 3 1.1 1.8 2.8 3.2 4.8 4 .7.3 1.3.4 1.8.5.8.1 1.5 0 2-.4.6-.4 1-1.1 1.1-1.6.1-.4.1-.8 0-.9-.2-.2-.4-.3-.7-.4Z'/%3E%3C/svg%3E");
}

.ms-footer-contact-item[href^="mailto:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm9 9 8.5-6.2V6L12 12 3.5 6.8 3.5 6 12 13Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm9 9 8.5-6.2V6L12 12 3.5 6.8 3.5 6 12 13Z'/%3E%3C/svg%3E");
}

.ms-footer-contact-item:hover::before,
.ms-footer-contact-item:focus-visible::before {
  background-color: #ffffff;
}
