/* ===============================
   GLOBAL
================================ */
body {
  background: #0b0e14;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

.flex-fill {
  flex: 1 1 auto;
}


/* ===============================
   NAVBAR
================================ */
.navbar {
  background: rgba(15,18,26,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f232c;
}
.nav-link {
  color: #cfcfcf;
  transition: color .2s ease;
}

.nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ===============================
   HERO (FIXED & WORKING)
================================ */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(198,40,40,.35), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(198,40,40,.25), transparent 40%),
    #0b0e14;
  z-index: 0;
}


.hero {
  position: relative;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
}

.hero-sub {
  color: #c62828;
  margin-top: .5rem;
}

.hero-desc {
  max-width: 650px;
  margin: 1rem auto 2rem;
  color: #cfcfcf;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===============================
   BUTTONS
================================ */
.btn-danger {
  background: linear-gradient(135deg,#c62828,#8e0000);
  border: none;
  box-shadow: 0 0 0 rgba(198,40,40,0);
  transition: all .25s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(198,40,40,.6);
}

.btn-outline-light:hover {
  box-shadow: 0 0 15px rgba(255,255,255,.2);
}

/* ===============================
   FEATURES
================================ */
.features {
  position: relative;
  z-index: 2;
}

.feature-box {
  background: linear-gradient(180deg,#111318,#0b0e14);
  border: 1px solid #1f232c;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  transition: all .3s ease;
}

.feature-box i {
  font-size: 2rem;
  color: #c62828;
  margin-bottom: 1rem;
}

.feature-box h5 {
  margin-bottom: .5rem;
}

.feature-box p {
  color: #bfc2c9;
  font-size: .95rem;
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: #c62828;
  box-shadow: 0 25px 60px rgba(198,40,40,.35);
}

/* Featured main product (Top 1) */
.featured-main {
  transform: scale(1.05);
  border: 2px solid #c62828;
  box-shadow: 0 25px 70px rgba(198,40,40,.45);
}

@media (max-width: 768px) {
  .featured-main {
    transform: none;
  }
}


/* ===============================
   FOOTER
================================ */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid #1f232c;
  background: #0f121a;
  color: #8f939c;
  font-size: .9rem;
}


/* ===============================
   PRODUCTS PAGE
================================ */

.products-hero {
  padding: 7rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(198,40,40,.35), transparent 40%),
    #0b0e14;
}

.products-title {
  font-size: 3rem;
  font-weight: 700;
}

.products-desc {
  color: #bfc2c9;
  max-width: 600px;
  margin: .75rem auto 0;
}

/* PRODUCT CARD */
.product-card {
  background: linear-gradient(180deg,#111318,#0b0e14);
  border-radius: 16px;
  border: 1px solid #1f232c;
  overflow: hidden;
  height: 100%;
  transition: all .35s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: #c62828;
  box-shadow: 0 30px 70px rgba(198,40,40,.4);
}

/* IMAGE */
.product-image {
  height: 360px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

/* BODY */
.product-body {
  padding: 1.5rem;
}

.product-title {
  margin-bottom: .5rem;
}

/* STATUS */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.status-badge.online {
  background: rgba(46,204,113,.15);
  color: #2ecc71;
}

.status-badge.maintenance {
  background: rgba(241,196,15,.15);
  color: #f1c40f;
}

.status-badge.offline {
  background: rgba(231,76,60,.15);
  color: #e74c3c;
}

/* INFO */
.product-info {
  font-size: .9rem;
  color: #bfc2c9;
  line-height: 1.6;
}


/* ===============================
   STATUS PAGE
================================ */

.status-hero {
  padding: 7rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(198,40,40,.35), transparent 40%),
    #0b0e14;
}

.status-title {
  font-size: 3rem;
  font-weight: 700;
}

.status-desc {
  color: #bfc2c9;
  max-width: 600px;
  margin: .75rem auto 0;
}

/* ===============================
   PRODUCT IMAGE PREVIEW
================================ */
.product-preview {
  position: relative;
  width: 100%;
  /*max-width: 520px;*/
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at top, #2a0f0f, #0b0e14);
  border-radius: 10px;
  border: 2px solid #c62828;
  overflow: visible;
}

/* Imagen principal */
.zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  /*cursor: crosshair;*/
}

.zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Panel de zoom */
.zoom-result {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);

  width: 60%;
  height: 100%;

  background-repeat: no-repeat;
  background-size: 350%;
  background-position: center;

  border-radius: 10px;
  /*border: 2px solid #c62828;*/
  background-color: #0b0e14;

  display: none;
  z-index: 50;
}

/* Mobile: sin zoom lateral */
@media (max-width: 992px) {
  .zoom-result {
    display: none !important;
  }
}

.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* LENTE DE ZOOM */
.zoom-lens {
  position: absolute;
  width: 100px;
  height: 100px;

  /*border: 2px solid #ff3b3b;*/
  background: rgba(255, 60, 60, 0.15);

  pointer-events: none;
  display: none;
  /*border-radius: 6px;*/
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.6);
}


/* Imagen principal */
.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* CLAVE: mantiene proporción */
}

.product-thumbs img.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.product-thumbs img.thumb.active {
  border-color: #c62828;
}

.product-thumbs img.thumb:hover {
  transform: scale(1.05);
}


/* PLAN BUTTONS */
.plan-btn {
  width: 100%;
  background: #111318;
  border: 1px solid #1f232c;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  text-align: left;
  transition: all .25s ease;
}

.plan-btn small {
  display: block;
  font-size: .7rem;
  color: #aaa;
}

.plan-btn strong {
  font-size: 1.1rem;
}

.plan-btn span {
  display: block;
  font-size: .7rem;
  color: #2ecc71;
}

.plan-btn:hover,
.plan-btn.active {
  border-color: #c62828;
  box-shadow: 0 0 25px rgba(198,40,40,.4);
}

/* Preview centered + clickable */
.preview-img{
  cursor: zoom-in;
  max-width: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

/*.preview-img:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}*/


/* ===============================
   FEATURE CARDS
================================ */

.feature-card {
  background: linear-gradient(180deg,#111318,#0b0e14);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #1f232c;
}

.feature-card h5 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

.feature-list li {
  color: #cfd2d8;
  font-size: .9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* ===============================
   MODAL CONTENT
================================ */
.modal-content {
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(198, 40, 40, 0.45);
}

.modal-body p {
  font-size: 0.95rem;
}

