/* ===========================================================
   SYSTEMINFORMATIC - URGENCIAS INFORMATICAS (Diseño moderno)
   =========================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ⚠️ OVERRIDE: Anular el grid de WebSite X5 que rompe el diseño nuevo */
#imContent {
  display: block !important;
  grid-template: none !important;
  -ms-grid-columns: none !important;
  -ms-grid-rows: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#imContentGraphics {
  display: none !important;
}

/* Forzar contenedores principales a ancho completo */
#imPage {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

#imPageExtContainer {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ocultar barra lateral */
#imSideBar, #imSideBarObjects {
  display: none !important;
}

/* Asegurar que el main content ocupe todo */
main#imContent {
  align-self: stretch !important;
  align-items: stretch !important;
}

/* ===========================================================
   CONTENEDOR PRINCIPAL
   =========================================================== */
#ug-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d3436;
  line-height: 1.6;
  background: #f8f9fa;
}

.ug-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.ug-section {
  padding: 60px 0;
}

.ug-section-light {
  background: #ffffff;
}

.ug-section-alt {
  background: #f8f9fa;
}

.ug-section-dark {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
  color: #fff;
}

.ug-section-dark .ug-section-title { color: #fff; }
.ug-section-dark .ug-section-desc { color: rgba(255,255,255,0.7); }

.ug-section-cta {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
}

.ug-section-test {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
}

/* ===========================================================
   SECTION HEADER
   =========================================================== */
.ug-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.ug-section-label {
  display: inline-block;
  background: rgba(26,115,232,0.1);
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ug-section-dark .ug-section-label {
  background: rgba(255,255,255,0.12);
  color: #90caf9;
}

.ug-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.ug-section-desc {
  font-size: 16px;
  color: #636e72;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ug-section-test .ug-section-title { color: #fff; }
.ug-section-test .ug-section-desc { color: rgba(255,255,255,0.7); }
.ug-section-test .ug-section-label { background: rgba(255,255,255,0.12); color: #90caf9; }

/* ===========================================================
   HERO
   =========================================================== */
.ug-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #1a3a6b 100%);
  padding: 70px 0 60px;
  text-align: center;
}

.ug-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.ug-hero-subtitle {
  font-size: clamp(16px, 1.8vw, 22px);
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-weight: 400;
}

/* ===========================================================
   PRICING GRID (two columns)
   =========================================================== */
.ug-pricing-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px;
  align-items: start;
}

.ug-pricing-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px;
}

.ug-pricing-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px;
}

.ug-pricing-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.ug-pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ug-pricing-card-header {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
  padding: 24px 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ug-pricing-card-header .ug-section-label {
  background: rgba(255,255,255,0.15);
  color: #90caf9;
}

.ug-pricing-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 4px;
  letter-spacing: -0.3px;
}

.ug-pricing-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-weight: 400;
}

.ug-pricing-card-body {
  padding: 16px 8px;
}

.ug-pricing-card-footer {
  padding: 0 20px 20px;
}

.ug-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  border-radius: 6px;
  gap: 8px;
}

.ug-price-row:hover {
  background: #f0f4ff;
}

.ug-price-label {
  font-size: 14px;
  font-weight: 500;
  color: #2d3436;
  flex: 1;
  line-height: 1.3;
}

.ug-price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #0077b6;
  white-space: nowrap;
  flex-shrink: 0;
}

.ug-subsection-title-sm {
  font-size: 16px;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.ug-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.ug-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #2d3436;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ug-list li strong {
  color: #0077b6;
  font-size: 16px;
  white-space: nowrap;
}

.ug-note {
  font-size: 12px;
  color: #636e72;
  line-height: 1.6;
  margin: 8px 0 0;
  font-style: italic;
}

/* ===========================================================
   CTA IMAGE
   =========================================================== */
.ug-cta-img {
  text-align: center;
  margin-top: 32px;
}

.ug-cta-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.ug-cta-img img:hover {
  transform: scale(1.02);
}

/* ===========================================================
   NOTICE BOX
   =========================================================== */
.ug-notice-box {
  max-width: 650px;
  margin: 32px auto 0;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 24px 28px;
}

.ug-notice-box p {
  font-size: 14px;
  color: #6d4c00;
  line-height: 1.7;
  margin: 0 0 12px;
}

.ug-notice-box p:last-child {
  margin-bottom: 0;
}

.ug-examples {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ffe082;
}

.ug-examples p {
  font-size: 13px;
  color: #6d4c00;
  margin-bottom: 8px;
}

.ug-examples strong {
  color: #333;
}

/* ===========================================================
   REMOTE SUPPORT SECTION
   =========================================================== */
.ug-remote-grid {
  display: block;
  max-width: 640px;
  margin: 0 auto;
}

.ug-remote-left {
  position: sticky;
  top: 100px;
}

.ug-remote-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ug-remote-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ug-remote-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin: 0;
}

.ug-link {
  color: #64b5f6;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ug-link:hover {
  color: #90caf9;
}

.ug-phones {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 16px 0;
}

.ug-phone-item {
  margin-bottom: 16px;
}

.ug-phone-item img {
  height: 50px;
  width: auto;
}

.ug-phone-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 16px;
}

.ug-phone-label {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 12px 0 6px;
  font-weight: 500;
}

.ug-phone-number {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: #64b5f6;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: rgba(100,181,246,0.1);
  margin: 4px 0;
}

.ug-phone-number:hover {
  background: rgba(100,181,246,0.2);
  color: #90caf9;
}

.ug-phone-urgent {
  font-size: 30px;
  color: #ef5350;
  background: rgba(239,83,80,0.1);
}

.ug-phone-urgent:hover {
  background: rgba(239,83,80,0.2);
  color: #ef5350;
}

.ug-remote-bottom-img {
  text-align: center;
  margin-top: 8px;
}

.ug-remote-bottom-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===========================================================
   CITY LINE
   =========================================================== */
.ug-city-line {
  font-size: 14px;
  color: #636e72;
  text-align: center;
  margin: 0;
  line-height: 1.6;
  word-spacing: 2px;
}

/* ===========================================================
   CTA SECTION
   =========================================================== */
.ug-cta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.ug-cta-left img {
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.ug-cta-left img:hover {
  transform: scale(1.03);
}

.ug-cta-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.ug-cta-right .ug-btn {
  display: inline-block;
  transition: transform 0.2s ease;
}

.ug-cta-right .ug-btn:hover {
  transform: translateX(6px);
}

.ug-cta-right img {
  max-width: 200px;
  height: auto;
}

/* ===========================================================
   SERVICE ICONS (3 CARDS)
   =========================================================== */
.ug-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ug-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 56px 32px 44px;
  background: #f8f9fa;
  border-radius: 24px;
  border: 1px solid #e9ecef;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ug-icon-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -65%);
  background: radial-gradient(circle, rgba(0, 191, 255, 0.35) 0%, rgba(65, 105, 225, 0.15) 30%, transparent 65%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: ug-blue-glow-entrance 1.2s ease-out forwards;
}

@keyframes ug-blue-glow-entrance {
  0% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(0.3);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1.3);
  }
  60% {
    opacity: 0.8;
    transform: translate(-50%, -65%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -65%) scale(1.05);
  }
}

.ug-icon-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -65%);
  background: radial-gradient(circle, rgba(0, 191, 255, 0.12) 0%, transparent 50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: ug-blue-glow-pulse 3s ease-in-out 1.2s infinite;
}

@keyframes ug-blue-glow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -65%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -65%) scale(1.3);
  }
}

.ug-icon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  border-color: #0077b6;
  background: #fff;
}

.ug-icon-card:hover::before {
  background: radial-gradient(circle, rgba(0, 191, 255, 0.45) 0%, rgba(65, 105, 225, 0.25) 30%, transparent 65%);
}

.ug-icon-card img {
  width: 110px;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.ug-icon-card:hover img {
  transform: scale(1.15);
}

.ug-icon-label {
  font-size: 18px;
  font-weight: 600;
  color: #1a2a4a;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* ===========================================================
   SEGUNDO MENU (Hosting, Dominio, SSL, Nube) - Estilo pyme.html
   =========================================================== */
#in-second-menu {
  width: 100% !important;
  background: #0a1628 !important;
  padding: 8px 0 !important;
  position: relative !important;
}
#in-second-menu .sm-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  position: relative !important;
}
#in-second-menu .sm-list {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
#in-second-menu .sm-list li {
  margin: 0 !important;
  padding: 0 !important;
}
#in-second-menu .sm-hamburger,
#in-second-menu .sm-overlay,
#in-second-menu .sm-mobile {
  display: none !important;
}
@media (max-width: 768px) {
  #in-second-menu .sm-list { display: none !important; }
  #in-second-menu .sm-nav { justify-content: center !important; }
  #in-second-menu .sm-hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 9999 !important;
    position: relative !important;
  }
  #in-second-menu .sm-bar {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
  }
  #in-second-menu .sm-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 9997 !important;
  }
  #in-second-menu .sm-overlay.active { display: block !important; }
  #in-second-menu .sm-mobile {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 280px !important;
    height: 100vh !important;
    background: #0d1b2a !important;
    z-index: 9998 !important;
    list-style: none !important;
    padding: 60px 16px 24px !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
  }
  #in-second-menu .sm-mobile.open { right: 0 !important; }
}

#in-second-menu .sm-list li a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 28px !important;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}
#in-second-menu .sm-list li:last-child a {
  border-right: none !important;
}
#in-second-menu .sm-list li a:hover {
  color: #4fc3f7 !important;
  background: rgba(79,195,247,0.08) !important;
}
#in-second-menu .sm-icon {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
@media (max-width: 768px) {
  #in-second-menu .sm-mobile li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 16px !important;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
  }
  #in-second-menu .sm-mobile li a:hover {
    color: #4fc3f7 !important;
    background: rgba(79,195,247,0.06) !important;
  }
  #in-second-menu .sm-mobile .sm-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ===========================================================
   SPEED TEST CONTAINER
   =========================================================== */
.ug-section-dark {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0a1628 100%);
}

/* Anchor offset for sticky header */
#TEST {
  scroll-margin-top: 80px;
}

.ug-speedtest-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ug-speedtest-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px;
}

.ug-speedtest-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ug-speedtest-video-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.55);
  z-index: 1;
  pointer-events: none;
}

.ug-speedtest-container {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}

.ug-st-header {
  padding: 28px 28px 0;
  text-align: center;
}

.ug-st-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a2a4a;
  margin: 0 0 6px;
}

.ug-st-desc {
  font-size: 16px;
  color: #636e72;
  margin: 0;
}

.ug-st-body {
  padding: 24px 28px 28px;
  text-align: center;
}

.ug-st-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(0,119,182,0.45);
  font-family: inherit;
}

.ug-st-btn .ug-st-btn-icon {
  font-size: 28px;
  line-height: 1;
}

.ug-st-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,119,182,0.45);
}

.ug-st-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ug-st-btn-icon {
  font-size: 20px;
}

.ug-st-status {
  font-size: 15px;
  color: #636e72;
  margin: 14px 0 18px;
  min-height: 24px;
  font-weight: 500;
}

.ug-st-status.testing {
  color: #0077b6;
}

.ug-st-status.done {
  color: #00a86b;
}

.ug-st-status.pulsing::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  background: #0077b6;
  border-radius: 50%;
  animation: ug-pulse-dot 1.2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes ug-pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ug-st-progress-wrap {
  width: 100%;
  height: 5px;
  background: #e9ecef;
  border-radius: 10px;
  margin: 16px 0 0;
  overflow: hidden;
  display: none;
}

.ug-st-progress-wrap.active {
  display: block;
}

.ug-st-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b4d8, #0077b6);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.ug-st-progress-text {
  font-size: 13px;
  color: #636e72;
  margin-top: 8px;
  display: none;
}

.ug-st-progress-text.active {
  display: block;
}

.ug-st-progress-value {
  font-weight: 700;
  color: #0077b6;
}

.ug-st-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 119, 182, 0.35);
  border-radius: 16px;
  background: rgba(240, 244, 248, 0.5);
}

.ug-st-card {
  background: #f0f4f8;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
}

.ug-st-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.ug-st-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #636e72;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ug-st-card-value {
  font-size: 24px;
  font-weight: 800;
  color: #1a2a4a;
  margin: 4px 0 2px;
}

.ug-st-card-unit {
  font-size: 12px;
  font-weight: 600;
  color: #636e72;
}

.ug-st-card-ping .ug-st-card-value { color: #0077b6; }
.ug-st-card-download .ug-st-card-value { color: #00b4d8; }
.ug-st-card-upload .ug-st-card-value { color: #00a86b; }
.ug-st-card-connection .ug-st-card-value { font-size: 15px; line-height: 1.3; color: #2d3436; word-break: break-word; }
#ugStConnectionUnit { font-size: 11px; line-height: 1.35; color: #636e72; word-break: break-word; }
.ug-st-card-sub { font-size: 10px; line-height: 1.3; color: #98a1a8; word-break: break-word; margin-top: 2px; }

.ug-st-footer {
  padding: 0 28px 20px;
  text-align: center;
}

.ug-st-footer span {
  font-size: 11px;
  color: #b2bec3;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  .ug-section {
    padding: 40px 0;
  }

  .ug-hero {
    padding: 50px 0 40px;
  }

  .ug-remote-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ug-remote-left {
    position: static;
  }

  .ug-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .ug-cta-left img {
    max-width: 200px;
  }

  .ug-icons-grid {
    grid-template-columns: 1fr;
  }

  .ug-icon-card {
    padding: 40px 24px;
    flex-direction: row;
    text-align: left;
  }

  .ug-icon-card img {
    width: 80px;
  }

  .ug-icon-label {
    font-size: 16px;
  }

  .ug-bottom-menu-wrap {
    margin-top: 32px;
  }

  .ug-menu-hamburger {
    display: flex;
  }

  .ug-bottom-menu {
    display: none;
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  .ug-bottom-menu.open {
    display: flex;
  }

  .ug-bottom-menu-item {
    padding: 16px 24px;
    min-width: 200px;
    width: 100%;
    max-width: 280px;
    flex-direction: row;
    gap: 16px;
  }

  .ug-bottom-menu-item img {
    width: 36px;
  }

  .ug-bottom-menu-item span {
    font-size: 14px;
  }

  .ug-pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .ug-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
  }

  .ug-price-amount {
    font-size: 20px;
  }

  .ug-phone-number {
    font-size: 22px;
    padding: 6px 18px;
  }

  .ug-phone-urgent {
    font-size: 24px;
  }

  .ug-st-body {
    padding: 20px 20px 24px;
  }

  .ug-st-title {
    font-size: 20px;
  }

  .ug-st-card-value {
    font-size: 20px;
  }

  .ug-speedtest-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ug-container {
    padding: 0 16px;
  }

  .ug-hero {
    padding: 36px 0 30px;
  }

  .ug-section {
    padding: 32px 0;
  }

  .ug-st-results {
    gap: 8px;
  }

  .ug-st-card {
    padding: 12px 8px;
  }

  .ug-bottom-menu-item {
    min-width: 100px;
    padding: 16px 16px;
  }

  .ug-bottom-menu-item img {
    width: 36px;
  }

  .ug-bottom-menu-item span {
    font-size: 12px;
  }
}

/* ===========================================================
   FOOTER FONT FIX
   Alinea la tipografía del footer con la de index.html
   =========================================================== */
#imFooter {
  font-family: 'Titillium Web', sans-serif;
}

/* ===========================================================
   MONITOR DE FIBRA ÓPTICA (#fibra)
   Integrado desde redes.html, todo bajo #fibra para evitar
   conflictos con estilos existentes de la página.
   =========================================================== */
#fibra {
  --fm-bg: #ffffff;
  --fm-text: #1a2a4a;
  --fm-muted: #636e72;
  --fm-border: #e9ecef;
  --fm-ok: #00a86b;
  --fm-warning: #f1c232;
  --fm-danger: #e63946;
  --fm-info: #0077b6;
  --fm-card-bg: #ffffff;
  --fm-shadow: 0 4px 20px rgba(26, 42, 74, 0.08);
  --fm-cream: #fff8e7;
  background: var(--fm-bg);
  scroll-margin-top: 80px;
}

#fibra .fm-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

#fibra .fm-header {
  text-align: center;
  margin-bottom: 40px;
}

#fibra .fm-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--fm-text);
  margin-bottom: 12px;
}

#fibra .fm-header p {
  font-size: 19px;
  color: var(--fm-muted);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

#fibra .fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f0f4f8;
  color: var(--fm-muted);
  margin-top: 16px;
}

#fibra .fm-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fm-ok);
  animation: ug-fm-pulse 2s ease-in-out infinite;
}

@keyframes ug-fm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

@keyframes ug-fm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#fibra .fm-user-info {
  background: #f8f9fa;
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 28px;
  font-size: 17px;
  color: var(--fm-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
}

#fibra .fm-user-info strong {
  color: var(--fm-text);
}

#fibra .fm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #f8f9fa;
  border: 1px solid var(--fm-border);
  border-radius: 16px;
}

#fibra .fm-controls-info {
  font-size: 17px;
  color: var(--fm-muted);
}

#fibra .fm-controls-info strong {
  color: var(--fm-text);
}

#fibra .fm-controls-info div {
  margin-bottom: 4px;
}

#fibra .fm-controls-info div:last-child {
  margin-bottom: 0;
}

#fibra .fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fm-info);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

#fibra .fm-btn:hover:not(:disabled) {
  background: #005f8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

#fibra .fm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#fibra .fm-btn img.fm-btn-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

#fibra .fm-btn:hover img.fm-btn-icon {
  transform: rotate(180deg);
}

#fibra .fm-btn-secondary {
  background: transparent;
  color: var(--fm-info);
  border: 2px solid var(--fm-info);
  box-shadow: none;
}

#fibra .fm-btn-secondary:hover:not(:disabled) {
  background: rgba(0, 119, 182, 0.08);
}

#fibra .fm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

#fibra .fm-card {
  background: var(--fm-card-bg);
  border: 1px solid var(--fm-border);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--fm-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

#fibra .fm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fm-info), #00b4d8);
  opacity: 0.6;
}

#fibra .fm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26, 42, 74, 0.16);
}

#fibra .fm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#fibra .fm-card-title {
  font-size: 22px;
  font-weight: 800;
}

#fibra .fm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#fibra .fm-status.ok { background: rgba(0, 168, 107, 0.12); color: var(--fm-ok); }
#fibra .fm-status.warning { background: rgba(241, 194, 50, 0.15); color: #b38f00; }
#fibra .fm-status.danger { background: rgba(230, 57, 70, 0.12); color: var(--fm-danger); }

#fibra .fm-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

#fibra .fm-card-body {
  font-size: 16px;
  color: var(--fm-muted);
  line-height: 1.6;
}

#fibra .fm-card-body strong {
  color: var(--fm-text);
}

#fibra .fm-card-body p {
  margin: 0 0 6px;
}

#fibra .fm-card-brands {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--fm-border);
}

#fibra .fm-card-brands-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--fm-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

#fibra .fm-card-brand {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fm-text);
  background: #f0f4f8;
  border-radius: 20px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
}

#fibra .fm-card-brands-note {
  font-size: 13px;
  font-style: italic;
  color: var(--fm-muted);
}

#fibra .fm-latency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f0f4f8;
}

#fibra .fm-locations {
  list-style: none;
  margin-top: 14px;
}

#fibra .fm-locations li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fm-border);
  font-size: 15px;
}

#fibra .fm-locations li:last-child {
  border-bottom: none;
}

#fibra .fm-locations li::before {
  content: '📍';
  font-size: 14px;
}

#fibra .fm-report-section {
  background: var(--fm-cream);
  border: 1px solid #f5e6c8;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

#fibra .fm-report-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--fm-text);
}

#fibra .fm-report-section p {
  font-size: 16px;
  color: var(--fm-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

#fibra .fm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

#fibra .fm-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#fibra .fm-form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-text);
}

#fibra .fm-form-group input,
#fibra .fm-form-group select {
  padding: 14px 16px;
  border: 1px solid #e8dcc8;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--fm-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#fibra .fm-form-group input:focus,
#fibra .fm-form-group select:focus {
  outline: none;
  border-color: var(--fm-info);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}

#fibra .fm-disclaimer {
  font-size: 14px;
  color: var(--fm-muted);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--fm-border);
  text-align: center;
  line-height: 1.7;
}

#fibra .fm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--fm-text);
  color: #fff;
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

#fibra .fm-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #fibra .fm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #fibra .fm-header h2 { font-size: 28px; }
  #fibra .fm-header p { font-size: 17px; }
  #fibra .fm-controls { flex-direction: column; align-items: stretch; }
  #fibra .fm-grid { grid-template-columns: 1fr; }
  #fibra .fm-card { padding: 20px; }
  #fibra .fm-report-section { padding: 24px 20px; }
}
