/* ==========================================================================
   SECCIÓN SERVICIOS (DISEÑO ELEGANTE, ULTRA-RESPONSIVO & PERFORMANCE)
   ========================================================================== */

.sf-section {
  background: #222222;
  font-family: 'DM Sans', sans-serif;
  color: #e5e5e5;
  padding: 4rem 1.5rem;
  border-top: solid 1px rgba(255, 255, 255, 0.164);
}

.titulo {
  max-width: 100%;
  margin-left: 3rem;
  margin-bottom: 2rem;
  text-align: initial;
}

.sf-label {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.sf-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0;
}

.sf-title span {
  color: #888888;
}

/* Grid de Servicios */
.sf-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.sf-item {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: 250px;
  background: #161616;
  transition: background 0.2s;
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sf-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sf-img-box {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
  background: #141414;
}

.sf-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sf-item:hover .sf-img-box img {
  transform: scale(1.06);
}

.sf-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.sf-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sf-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  color: #666666;
  line-height: 1;
  transition: color 0.3s ease;
}

.sf-item:hover .sf-num {
  color: #ffffff;
}

.sf-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sf-desc {
  font-size: 0.95rem;
  color: #b0b0b0;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Botón de Servicio */
.btn-servicios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  background: #282828;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-servicios:hover,
.btn-servicios:focus-visible {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS (TABLETS Y CELULARES)
   ========================================================================== */

/* Tablets (< 992px) */
@media (max-width: 991.98px) {
  .sf-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sf-item {
    grid-template-columns: 220px 1fr;
  }
}

/* Celulares (< 768px) */
@media (max-width: 767.98px) {
  .sf-section {
    padding: 3rem 1rem;
  }

  .sf-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sf-img-box {
    height: 180px;
    min-height: 180px;
  }

  .sf-content {
    padding: 1.25rem;
  }

  .btn-servicios {
    width: 100%;
  }
}