
@keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 rgba(255, 255, 255, 0.5);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
  }
  
  .btn-efecto-pulse {
    animation: pulse 0.4s ease;
  }
  
  #portonLoader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .porton-loader-container {
    position: relative;
    width: 120px;
    height: 120px;
  }
  
  .porton-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 10;
  }
  
  .porton-ring-progress {
    fill: none;
    stroke: #00D1FF;
    stroke-width: 10;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease;
  }
  
  .porton-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
  }
  
  .app-footer {
    background: transparent !important;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.8rem;
    color: #f1f1f1;
    position: fixed !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  
  #estado-rele {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  #dot-status {
    transition: background-color 0.3s ease;
  }
  

  .dot-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
  }
  
  .dot-online {
    background-color: #00e676;
    box-shadow: 0 0 4px #00e676;
  }
  
  .dot-offline {
    background-color: #ff1744;
    box-shadow: 0 0 4px #ff1744;
  }

.spinner-ios {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin-ios 0.8s linear infinite;
}

@keyframes spin-ios {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#pull-indicator {
  background: rgba(0, 0, 0, 0.2); /* sutil fondo negro translúcido */
  border-radius: 100px;
  padding: 0.6rem;
}

.porton-header-wrapper {
  position: fixed;
  bottom: 8rem; /* aleja del footer */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0;
}

.encabezado-portones {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 0.4rem;
}

.porton-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0 1rem 0.5rem 1rem;
  scroll-padding-left: 1rem;
  -webkit-overflow-scrolling: touch;
}

.porton-card {
  flex: 0 0 auto;
  width: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  color: white;
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;
  text-align: left;
  transition: transform 0.2s ease;
}




.porton-slider::-webkit-scrollbar {
  display: none;
}

.porton-card {
  flex: 0 0 auto;
  width: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  color: white;
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;
  text-align: left;
  transition: transform 0.2s ease;
}

.porton-card:hover {
  transform: scale(1.03);
}

.porton-card .ubicacion {
  font-size: 0.85rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


.encabezado-portones {
  position: absolute;
  top: 3.5rem; /* Ajusta según necesidad */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: white;
  z-index: 10;
  text-align: center;
  font-weight: bold;
  pointer-events: none; /* para que no interfiera con clics si está sobre botones */
}


.porton-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin: 0.4rem;
  width: 220px;
  text-align: left;
  transition: all 0.25s ease-in-out;
}

.porton-card:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.03);
}

.porton-seleccionado {
    background: rgb(115 60 166 / 33%);
    box-shadow: 0 0 12px rgba(147, 94, 233, 0.13);
    transform: scale(1.05); 
}


