.navbar-default {
    background-color: #000;
    border-color: #1b1f22;
    border-top-color: #1b1f22;
    border-right-color: #1b1f22;
    border-bottom-color: #1b1f22;
    border-left-color: #1b1f22;
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: #1b1f22;
}

/* Ocultar el icono de hamburgesa en la vista móvil en las páginas legales */
.navbar .navbar-toggle {
    display: none !important;
}

/* Reducción de paddings izquierdo y derecho de la página de formulario de contacto en la vista móvil */
.convertforms .cf-content-wrap, .convertforms .cf-form-wrap {
    padding: 20px;
    padding-top: 20px;
    padding-right: 0px !important;
    padding-bottom: 20px;
    padding-left: 0px !important;
}

/* Alineación de textos en las páginas legales y formularios */
@media (max-width: 768px) {
    .content p {
        text-align: unset;
    }
}

/* ===== Páginas legales / contacto ===== */

body.site.sticky-header.is-joomla4 {
  background: #000;
  color: #fff;
}

.navbar.navbar-default.elegant-navbar {
  background: #000;
  border-top: 1px solid #1b1f22;
  border-bottom: 1px solid #1b1f22;
}

.master {
  background: #000;
}

/* Reducción margen inferior del arttículo al footer en Páginas legales / contacto ===== */
section.master.top {
  padding: 0px !important;
}

footer {
  background: #000;
  color: #fff;
}

/* Reducción de los márgenes entre el banner del login y el bloque de tres columnas */
#es .es-login-box {
    margin-top: 0px !important;
    margin-bottom: -40px !important;
}

/* ===== Footer layout independiente del template ===== */
#custom-footer {
  margin-top: 60px;
  margin-bottom: 80px;
}

#custom-footer .custom-footer__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

#custom-footer .custom-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#custom-footer .custom-footer__col {
  flex: 1 1 33.333%;
  min-width: 240px;
  text-align: center;
}

#custom-footer h4 {
  margin: 0 0 15px;
}

#custom-footer a {
  display: block;
  text-decoration: none;
  color: #ffffff !important;
}

#custom-footer a:hover {
  color: #e60023 !important;
}

/* Créditos */
#custom-footer .custom-footer-credits {
  text-align: center;
  color: #ccc;
  margin-top: 50px;
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Móvil */
@media (max-width: 767px) {
  #custom-footer .custom-footer__col {
    flex: 1 1 100%;
    margin-bottom: 25px;
  }

  #custom-footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  #custom-footer a {
    font-size: 16px;
    line-height: 1.8;
  }

  #custom-footer .custom-footer-credits {
    margin-top: 20px;
    padding-bottom: 20px;
  }
}

/* Color del fondo y borde del área de texto de los artículos y el footer */
.wrap {
    background: #000000;
    border-radius: 3px;
    border: 1px solid #000000;
}

.content:before, .sidebar:before {
    background: #000000;
}

/* Color blanco en títulos en toda la plantilla */
h1, h2, h3, h4, h5, h6, strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* Página Quiénes somos - Subspace */
.subspace-quienes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    max-width: 1360px;
    margin: 70px auto;
    padding: 0;
}

.subspace-quienes__media {
    flex: 1;
}

.subspace-quienes__media img {
    width: 100%;
    max-width: 560px;
    display: block;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
}

.subspace-quienes__texto {
    flex: 1;
}

.subspace-quienes__texto h1 {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 24px;
}

.subspace-quienes__texto p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 26px;
}

/* Vista móvil */
@media (max-width: 768px) {
    .subspace-quienes {
        flex-direction: column;
        gap: 32px;
        margin: 35px auto;
        padding: 0;
    }

    .subspace-quienes__texto h1 {
        font-size: 14px;
        text-align: center;
    }

    .subspace-quienes__texto p {
        font-size: 14px;
        text-align: center;
    }
}