/* ==========================================================
   MOBELLIAL - COMPONENTES COMUNES
   Estilos del navbar y footer compartidos (includes/*.php)
   ========================================================== */

:root{
  --mob-blue:#2129B0;
  --mob-blue-hover:#1b2399;
  --mob-cyan:#58BAE0;
  --mob-dark:#0f172a;
  --mob-text:#334155;
  --mob-muted:#64748b;
  --mob-border:#e2e8f0;
}

/* ===== NAVBAR COMÚN ===== */
.mobellial-navbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:9999;
  background:#ffffff;
  border-bottom:1px solid #eef2f7;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.mobellial-nav-inner{
  width:min(100% - 48px, 1280px);
  margin:0 auto;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.mobellial-nav-logo{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  text-decoration:none;
}

.mobellial-nav-logo img{
  display:block;
  height:60px;
  width:auto;
  object-fit:contain;
}

.mobellial-desktop-nav{
  display:flex;
  align-items:center;
  gap:24px;
}

.mobellial-nav-link,
.menu-servicios-toggle{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#475569;
  font-size:14px;
  line-height:1;
  font-weight:600;
  text-decoration:none;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  font-family:inherit;
  transition:color .2s ease;
  white-space:nowrap;
}

.mobellial-nav-link:hover,
.menu-servicios-toggle:hover,
.mobellial-nav-link.is-active,
.menu-servicios-toggle.is-active{
  color:#0f172a;
}

.menu-servicios{
  position:relative;
}

.submenu-servicios{
  display:none;
  position:absolute;
  top:calc(100% + 18px);
  left:0;
  z-index:10000;
  width:282px;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.92);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,.14);
  padding:14px;
}

.menu-servicios:hover .submenu-servicios,
.menu-servicios:focus-within .submenu-servicios,
.menu-servicios.abierto .submenu-servicios{
  display:block;
}

.submenu-servicios a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#475569;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.submenu-servicios a:hover,
.submenu-servicios a.is-active{
  background:#eff6ff;
  color:var(--mob-blue);
  transform:translateX(2px);
}

.mobellial-nav-actions{
  display:flex;
  align-items:center;
  gap:16px;
  flex:0 0 auto;
}

.mobellial-nav-phone{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#475569;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s ease;
}

.mobellial-nav-phone:hover{
  color:#0f172a;
}

.mob-phone-icon{
  display:inline-block;
  width:24px;
  height:24px;
  flex:0 0 24px;
  vertical-align:middle;
  object-fit:contain;
  border:1px solid #e2e8f0;
  border-radius:6px;
  padding:2px;
  background:#fff;
  box-sizing:border-box;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
}

.mobellial-nav-phone:hover .mob-phone-icon{
  transform:scale(1.12);
  border-color:#2563eb;
  background:#eff6ff;
  box-shadow:0 6px 14px rgba(37,99,235,.22);
}

.nav-budget-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  border-radius:14px;
  color:#ffffff;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  background:linear-gradient(90deg,#2563eb,#1d4ed8);
  box-shadow:0 10px 22px rgba(37,99,235,.24);
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
  white-space:nowrap;
}

.nav-budget-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(37,99,235,.34);
  filter:saturate(1.08);
}

.mobellial-menu-button{
  display:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.mobellial-menu-button svg{
  width:24px;
  height:24px;
}

.mobellial-mobile-panel{
  position:absolute;
  left:16px;
  right:16px;
  top:calc(100% + 10px);
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  padding:14px;
}

.mobellial-mobile-panel[hidden]{
  display:none !important;
}

.mobellial-mobile-link,
.mobellial-mobile-services-toggle{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  padding:13px 12px;
  border-radius:14px;
  color:#0f172a;
  background:transparent;
  border:0;
  text-decoration:none;
  font-family:inherit;
  font-size:15px;
  font-weight:750;
  cursor:pointer;
  text-align:left;
}

.mobellial-mobile-link:hover,
.mobellial-mobile-link.is-active,
.mobellial-mobile-services-toggle:hover{
  background:#eff6ff;
  color:var(--mob-blue);
}

.mobellial-mobile-services-list{
  display:grid;
  gap:2px;
  padding:4px 0 8px 14px;
}

.mobellial-mobile-services-list[hidden]{
  display:none !important;
}

.mobellial-mobile-services-list a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#475569;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
}

.mobellial-mobile-services-list a:hover,
.mobellial-mobile-services-list a.is-active{
  background:#f8fafc;
  color:var(--mob-blue);
}

.mobellial-mobile-actions{
  display:grid;
  gap:10px;
  padding:12px 4px 4px;
  border-top:1px solid #eef2f7;
  margin-top:8px;
}

.mobellial-mobile-actions .mobellial-nav-phone,
.mobellial-mobile-actions .nav-budget-btn{
  width:100%;
  justify-content:center;
}

.mobellial-mobile-actions .mobellial-nav-phone{
  min-height:42px;
  border-radius:13px;
  background:#f8fafc;
}

.mobellial-page-no-scroll{
  overflow:hidden;
}

/* ===== FOOTER COMÚN ===== */
.mobellial-footer{
  background:#0f172a;
  color:#cbd5e1;
}

.mobellial-footer-container{
  width:min(100% - 48px, 1280px);
  margin:0 auto;
}

.mobellial-footer-main{
  padding:64px 0;
}

.mobellial-footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px;
}

.footer-logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  background:#ffffff;
  padding:11px 16px;
  border-radius:2px;
  margin-bottom:24px;
  box-shadow:0 12px 28px rgba(2,8,23,.18);
  overflow:hidden;
}

.footer-logo-link img{
  display:block;
  width:auto;
  height:46px;
  object-fit:contain;
}

.mobellial-footer-text{
  color:#94a3b8;
  margin:0 0 24px;
  max-width:420px;
  line-height:1.65;
  font-size:16px;
}

.mobellial-footer-contact{
  display:grid;
  gap:14px;
}

.mobellial-footer-contact a{
  display:flex;
  align-items:flex-start;
  gap:13px;
  color:#94a3b8;
  text-decoration:none;
  line-height:1.45;
  transition:color .2s ease;
}

.mobellial-footer-contact a:hover{
  color:#ffffff;
}

.mobellial-footer-contact svg,
.mobellial-footer-contact .mob-phone-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  margin-top:1px;
  border:none;
  padding:0;
  background:transparent;
  box-shadow:none;
}

.mobellial-footer h4{
  color:#ffffff;
  font-size:16px;
  font-weight:800;
  margin:0 0 16px;
}

.mobellial-footer ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}

.mobellial-footer li a{
  color:#94a3b8;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:color .2s ease;
}

.mobellial-footer li a:hover{
  color:#ffffff;
}

.mobellial-footer-bottom{
  border-top:1px solid #1e293b;
  padding:24px 0;
}

.mobellial-footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.mobellial-footer-copy{
  color:#64748b;
  font-size:14px;
  margin:0;
}

.mobellial-socials{
  display:flex;
  align-items:center;
  gap:16px;
}

.mobellial-socials a{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#1e293b;
  color:#cbd5e1;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.mobellial-socials a:hover{
  background:#334155;
  color:#ffffff;
  transform:translateY(-2px);
}

.mobellial-socials svg{
  width:20px;
  height:20px;
}

.mobellial-footer-socials-below{
  padding-top:48px;
}

@media (max-width: 1120px){
  .mobellial-desktop-nav,
  .mobellial-nav-actions{
    display:none;
  }

  .mobellial-menu-button{
    display:inline-flex;
  }

  .mobellial-nav-inner{
    width:min(100% - 32px, 1280px);
    height:76px;
  }

  .mobellial-nav-logo img{
    height:56px;
  }

  .mobellial-footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 700px){
  .mobellial-nav-inner{
    height:72px;
  }

  .mobellial-nav-logo img{
    height:52px;
  }

  .mobellial-footer-container{
    width:min(100% - 32px, 1280px);
  }

  .mobellial-footer-main{
    padding:48px 0;
  }

  .mobellial-footer-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .footer-logo-link{
    padding:10px 14px;
  }

  .footer-logo-link img{
    height:42px;
  }

  .mobellial-footer-bottom-inner{
    flex-direction:column;
    text-align:center;
  }
}
