/**
 * ============================================================================
 * Estilos para la Nueva Sección: Mantenimiento Industrial STVL
 * Mantenimiento preventivo y correctivo de puertas y muelles de carga
 * ============================================================================
 */

/* Contenedor principal de la sección */
.mantenimiento-industrial-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  color: #39454b;
  font-family: "Font-Content", "sans-serif";
  overflow: hidden;
}

/* Badge decorativo superior */
.mi-badge-wrap {
  margin-bottom: 12px;
}

.mi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 0, 1, 0.08);
  color: rgb(242, 0, 1);
  border: 1px solid rgba(242, 0, 1, 0.25);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(242, 0, 1, 0.08);
  transition: all 0.3s ease;
}

.mi-badge i {
  color: rgb(242, 0, 1);
  font-size: 14px;
}

.mi-badge:hover {
  background: rgba(242, 0, 1, 0.14);
  transform: translateY(-1px);
}

/* Título principal de la sección */
.mi-main-title {
  color: #1e293b;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 25px;
}

/* Bloque destacado (Lead text) */
.mi-lead-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 30px;
  border-left: 5px solid rgb(242, 0, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 35px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mi-lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.mi-lead-text {
  font-size: 20px;
  font-weight: 600;
  color: #1a252f;
  line-height: 1.5;
  margin-bottom: 14px;
}

.mi-intro-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 0;
}

/* Subtítulo central: ¿Qué debe revisar una rutina preventiva? */
.mi-section-subtitle-wrap {
  position: relative;
  display: inline-block;
  padding: 0 20px;
  margin: 15px auto 35px;
}

.mi-subtitle-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(242, 0, 1) 0%, #b80001 100%);
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(242, 0, 1, 0.35);
}

.mi-section-subtitle {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin: 5px 0 12px 0;
  letter-spacing: -0.01em;
}

.mi-subtitle-line {
  width: 70px;
  height: 4px;
  background: rgb(242, 0, 1);
  margin: 0 auto;
  border-radius: 2px;
}

/* Tarjetas de diagnóstico (Cards) */
.mi-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-bottom: 30px;
}

.mi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(242, 0, 1, 0.4);
}

/* Imagen de la tarjeta */
.mi-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #1a202c;
}

.mi-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mi-card:hover .mi-card-img {
  transform: scale(1.06);
}

.mi-card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.mi-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cuerpo de la tarjeta */
.mi-card-body {
  padding: 26px 28px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mi-card-header-flex {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.mi-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(242, 0, 1, 0.1);
  color: rgb(242, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mi-card:hover .mi-card-icon {
  background: rgb(242, 0, 1);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

.mi-card-title {
  font-size: 21px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

/* Lista de verificación */
/* Lista de verificación */
.mi-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.mi-checklist-item {
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 30px;
  padding-left: 6px;
  padding-right: 6px;
  background: transparent;
  border: none;
  
  transition: all 0.25s ease;
}

.mi-checklist-item:first-child {
  padding-top: 4px;
}

.mi-checklist-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.mi-checklist-item:hover {
  padding-left: 10px;
}

.mi-check-bullet {
  color: rgb(242, 0, 1);
  font-size: 16px;
  margin-right: 14px;
  margin-top: 1px;
  line-height: 1.3;
  flex-shrink: 0;
}

.mi-check-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.32;
  margin: 0;
  flex-grow: 1;
}

.mi-check-text strong {
  color: #0f172a;
}

/* Pie de la tarjeta */
.mi-card-footer {
  padding: 14px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mi-card-footer i {
  color: rgb(242, 0, 1);
}

/* Banner de llamado a la acción (CTA) */
.mi-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 35px 40px;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mi-cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: rgb(242, 0, 1);
}

.mi-cta-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 0, 1, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.mi-cta-inner {
  display: flex;
  align-items: center;
}

.mi-cta-text h4 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.35;
}

.mi-cta-text p {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.mi-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
}

/* Botones de acción */
.mi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  max-width: 290px;
}

.mi-btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.mi-btn-whatsapp:hover,
.mi-btn-whatsapp:focus {
  background: #1ebc59;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.mi-btn-phone {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mi-btn-phone:hover,
.mi-btn-phone:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .mi-card {
    margin-bottom: 30px;
  }

  .mi-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .mi-cta-text {
    margin-bottom: 22px;
    text-align: center !important;
  }

  .mi-cta-actions {
    align-items: center;
    width: 100%;
  }

  .mi-btn {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .mantenimiento-industrial-section {
    padding: 50px 0 50px !important;
  }

  .mi-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .mi-main-title {
    font-size: 26px !important;
  }

  .mi-lead-card {
    padding: 18px 20px;
  }

  .mi-lead-text {
    font-size: 17px;
  }

  .mi-intro-desc {
    font-size: 14px;
  }

  .mi-section-subtitle {
    font-size: 21px;
  }

  .mi-card-body {
    padding: 20px 18px 18px;
  }

  .mi-card-title {
    font-size: 18px;
  }

  .mi-checklist-item {
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .mi-check-text {
    font-size: 14px;
    line-height: 1.35;
  }

  .mi-cta-banner {
    padding: 25px 20px;
  }

  .mi-cta-text h4 {
    font-size: 19px;
  }
}
