/* ============================
   ESTILOS ESPECÍFICOS HEADER & FOOTER
   Complemento a softcorp-theme.css
   ============================ */

/* === HEADER ESPECÍFICO === */

.sc-hidden-mobile {
  display: none;
}

@media (min-width: 769px) {
  .sc-hidden-mobile {
    display: inline-flex;
  }
}

/* Botón del Header */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.sc-btn-primary {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.sc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3), 0 0 30px rgba(13, 148, 136, 0.2);
}

.sc-btn-block {
  width: 100%;
  text-align: center;
}

.sc-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* === MENÚ MÓVIL REAL DEL HEADER ACTUAL === */

.sc-mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(240, 249, 250, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sc-mobile-menu.is-open,
.sc-mobile-menu.active,
body.sc-mobile-menu-open .sc-mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sc-mobile-container {
  width: min(540px, calc(100vw - 28px));
  height: calc(100dvh - 16px);
  margin: 8px auto;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.sc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-mobile-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sc-mobile-logo-img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.sc-mobile-logo-main {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: #1f2937;
}

.sc-mobile-logo-accent {
  color: #06b6d4;
}

.sc-mobile-logo-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #667085;
}

.sc-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.sc-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-mobile-link,
.sc-mobile-accordion-toggle {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sc-mobile-link:hover,
.sc-mobile-accordion-toggle:hover {
  background: #f8fafc;
  border-color: rgba(0, 102, 204, 0.16);
}

.sc-mobile-featured {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0066cc;
}

.sc-mobile-badge {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #0d9488);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sc-mobile-accordion {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #ffffff;
  overflow: visible;
}

.sc-mobile-accordion-toggle {
  justify-content: flex-start;
}

.sc-mobile-accordion-toggle .sc-mobile-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.sc-mobile-accordion.is-open .sc-mobile-chevron,
.sc-mobile-accordion.active .sc-mobile-chevron,
.sc-mobile-accordion-toggle[aria-expanded="true"] .sc-mobile-chevron {
  transform: rotate(180deg);
}

.sc-mobile-accordion-content {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0 0 22px;
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.24s ease;
}

.sc-mobile-accordion.is-open .sc-mobile-accordion-content,
.sc-mobile-accordion.active .sc-mobile-accordion-content,
.sc-mobile-accordion-toggle[aria-expanded="true"] + .sc-mobile-accordion-content {
  max-height: 520px;
  opacity: 1;
  padding: 8px 0 12px 22px;
}

.sc-mobile-sublink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 14px;
  color: #475569;
  background: #f8fafc;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.sc-mobile-sublink:hover {
  color: #0066cc;
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(3px);
}

.sc-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-mobile-actions .sc-btn {
  width: 100%;
  min-height: 78px;
  border-radius: 18px;
  font-size: 1.1rem;
}

.sc-mobile-actions .sc-btn-ghost,
.sc-btn-ghost {
  background: #ffffff;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.sc-mobile-actions .sc-btn-ghost:hover,
.sc-btn-ghost:hover {
  background: #eff6ff;
}

/* Compatibilidad con clases antiguas */
.sc-nav-mobile-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-nav-mobile-toggle {
  position: relative;
  padding-right: 2rem;
}

.sc-nav-mobile-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}

.sc-nav-mobile-toggle.is-active::after {
  transform: rotate(180deg);
}

.sc-nav-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 1rem;
}

.sc-nav-mobile-submenu.is-open {
  max-height: 500px;
}

.sc-nav-mobile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  margin: 1rem 0;
}

/* Bloqueo de scroll cuando el menú está abierto */
body.sc-mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* === FOOTER ESPECÍFICO === */

.sc-footer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 3rem 0;
}

.sc-footer-contact-info {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.sc-footer-contact-info p {
  margin-bottom: 0.5rem;
}

/* Espaciado utilitario */
.sc-mt-2 { margin-top: 0.5rem; }
.sc-mt-4 { margin-top: 1rem; }
.sc-mt-6 { margin-top: 1.5rem; }
.sc-mb-2 { margin-bottom: 0.5rem; }
.sc-mb-4 { margin-bottom: 1rem; }

/* Responsive para el footer */
@media (max-width: 768px) {
  .sc-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .sc-footer-locale {
    justify-content: center;
  }

  .sc-btn-primary .sc-btn-text {
    display: none;
  }

  .sc-header-actions .sc-btn-primary {
    width: 88px;
    height: 58px;
    padding: 0;
    border-radius: 16px;
  }
}

/* Efecto de scroll en el header */
.sc-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-glass {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}