/* ===================================================
   servicios.css — Estilos exclusivos de servicios.html
   Requiere base.css cargado primero
   =================================================== */

/* ── Visual Stack (stacked images) ── */
.visual-stack {
  position: relative;
  height: 500px;
}

.img-main {
  width: 85%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  z-index: 2;
  position: relative;
}

.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 3;
  border: 5px solid var(--white);
}

.img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-sub-alt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 3;
  border: 5px solid var(--dark);
}

.img-sub-alt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decoration-circle {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

/* ── Feature List Premium ── */
.feature-list-premium {
  list-style: none;
  margin-bottom: 30px;
}

.feature-list-premium li {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list-premium .check {
  color: var(--yellow);
  font-weight: 900;
}

.btn-text-link {
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.btn-text-link:hover {
  letter-spacing: 1px;
  color: var(--blue-dark);
}

/* ── Stats Mini Grid ── */
.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stats-light-theme .s-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
}

.stats-light-theme .s-val {
  color: var(--blue);
  font-size: 2.2rem;
}

.stats-light-theme .s-lab {
  color: var(--text-muted);
  font-weight: 700;
}

.s-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.s-val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
}

.s-lab {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Machinery Grid ── */
.machinery-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 5%;
}

.m-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid var(--gray-light);
  overflow: hidden; /* Cortar imagen */
  display: flex;
  flex-direction: column;
}

.m-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 70px rgba(3, 42, 109, 0.12);
  border-color: var(--yellow);
}

.m-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--dark);
}

.m-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.m-card:hover .m-img-wrapper img {
  transform: scale(1.1);
}

.m-badge-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.m-badge-overlay svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.m-card:hover .m-badge-overlay {
  background: var(--yellow);
  transform: rotate(360deg);
}

.m-card:hover .m-badge-overlay svg {
  color: var(--blue-dark);
}

.m-content {
  padding: 30px;
  flex-grow: 1;
}

.m-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.m-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════
   RESPONSIVE servicios
═══════════════════════════════════ */
@media (max-width: 992px) {
  .visual-stack {
    height: 400px;
  }

  .img-main {
    width: 100%;
    height: 300px;
  }

  .img-sub,
  .img-sub-alt {
    width: 60%;
    height: 180px;
  }

  .feature-list-premium li {
    justify-content: center;
  }

  .stats-mini-grid {
    max-width: 100%;
    margin: 30px auto 0;
  }

  .machinery-grid-premium {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .visual-stack {
    height: 300px;
  }

  .img-main {
    height: 220px;
  }

  .img-sub,
  .img-sub-alt {
    height: 140px;
  }

  .s-val {
    font-size: 1.6rem;
  }
}