/* === Fondo transparente en la barra de contenido === */

#body-wrapper #body .content-title {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* También el wrapper por si Quark lo pinta por herencia */
#body-wrapper #body .content-wrapper {
  background: transparent !important;
}

/* Asegura que el texto siga visible sobre fondos oscuros */
#body-wrapper #body .content-title h1,
#body-wrapper #body .content-title h2 {
  color: #fff !important;
}

/* === TARJETAS SF EXISTENTES === */

.sf-cards-wrapper {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto 80px auto;
  color: #eaf6fb;
  font-family: Montserrat, Arial, sans-serif;
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.sf-card-outer {
  perspective: 1000px;
  min-height: 200px;
}

.sf-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.sf-card-outer:hover .sf-inner {
  transform: rotateX(180deg);
}

.sf-front,
.sf-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.sf-front {
  background: rgba(7, 32, 48, 0.9);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 2;
}

.sf-back {
  background: rgba(11, 65, 92, 0.96);
  border: 1px solid rgba(0, 240, 200, .45);
  transform: rotateX(180deg);
}

.sf-front div:first-child {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 10px;
}

.sf-front div:nth-child(2) {
  font-size: 15px;
  line-height: 1.4;
  color: #cfe9ff;
}

.sf-back div {
  font-size: 15px;
  line-height: 1.4;
  color: #eaf6fb;
}

/* === CABECERA Y MENÚ PRINCIPAL === */

.header {
  position: relative !important;
  top: 0;
  margin-top: -40px;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 145px;
  background: rgba(9,33,41,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.header-inner {
  width: min(1200px, 92%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 5px;
}

.top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 135px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-weight: 700;
  line-height: 1.2;
  font-family: Montserrat, Arial, sans-serif;
}

/* === MENÚ === */

nav {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  z-index: 100;
}

nav a {
  font: 600 18px/1 'Playfair Display', serif;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

nav a:hover {
  color: #aefaff !important;
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 4px !important;
}

/* === SUBMENÚ === */

.menu-quienes {
  position: relative;
}

.submenu-quienes {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(9,33,41,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 200px;
  padding: 5px 0;
  z-index: 1000;
}

.submenu-quienes a {
  display: block;
  padding: 10px 15px;
  font: 600 16px/1 'Playfair Display', serif;
  color: #ffffff !important;
}

.submenu-quienes a:hover {
  background: rgba(255,255,255,0.05);
  color: #aefaff !important;
  text-decoration: underline !important;
}

.menu-quienes:hover .submenu-quienes {
  display: block !important;
}

/* === ESPACIADOR Y CONTENIDO === */

.spacer {
  height: 145px;
}

.main-content {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100vh - 145px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: white;
}

/* ============================================================
   AJUSTES RESPONSIVE REALES (SIN TOCAR ESTÉTICA DESKTOP)
   ============================================================ */

@media (max-width: 768px) {

  /* Neutraliza el 100vw que rompe móvil */
  .header,
  .main-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Cabecera fluida */
  .header {
    height: auto !important;
    margin-top: 0 !important;
    padding: 10px 0 !important;
  }

  .header-inner {
    width: 100% !important;
    padding-bottom: 10px !important;
  }

  .top-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .logo img {
    height: 60px !important;
  }

  nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  nav a {
    font-size: 14px !important;
    padding: 4px !important;
  }

  /* Elimina espacios forzados */
  .spacer {
    height: 0 !important;
  }

  .main-content {
    min-height: auto !important;
    padding-top: 20px !important;
  }

  /* Desactiva flip 3D en móvil */
  .sf-inner,
  .sf-card-outer:hover .sf-inner {
    transform: none !important;
  }
}
@media (max-width: 768px) {
  html::before {
    content:
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    background:
    color: white;
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  /* Contenedor de idiomas */
  .language-switcher,
  .lang-switch,
  .flags,
  .idiomas {
    position: static !important;
    margin: 8px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  /* Si están en línea con style inline */
  .header-inner > div[style*="position: absolute"] {
    position: static !important;
    margin: 8px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
  }

}

/* Footer integrado con el fondo (sin franja gris) */
#footer.section.bg-gray {
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* === MARCA DE AGUA ESTÁTICA AL FINAL === */
.nubika-footer-brand {
  display: block;
  width: 100%;
  text-align: center;
  padding: 40px 0 20px 0; /* Espacio para que respire al final */
  margin-top: 50px;       /* Asegura que no toque las fotos */
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  clear: both;            /* Evita que se monte sobre otros elementos */
  color: rgba(255, 255, 255, 0.7);
}

.nubika-footer-brand-inner {
  display: inline-block;
  background: rgba(9, 33, 41, 0.85); 
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nubika-footer-brand a {
  color: #aefaff !important;
  text-decoration: none;
  font-weight: 700;
  margin-left: 5px;
}

.nubika-footer-brand a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(174, 250, 255, 0.5);
}
