/* ===========================
   SECCIÓN SERVICIOS · HOME
   Mobile-first. Header centrado con eyebrow + título mixto,
   cards con foto, línea roja accent, título uppercase,
   descripción y lista de 3 bullets con check rojo.
   CTA final pill rojo "Solicitar presupuesto".
   =========================== */

.srv {
  background: #F4F6F8;
  padding: 72px 22px 80px;
}

.srv__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Header centrado ---- */
.srv__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin: 0 auto 44px;
  max-width: 720px;
}

.srv__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F65F01;
  line-height: 1;
}

.srv__eyebrow-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #F65F01;
}

.srv__title {
  margin: 0;
  font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1F252C;
  text-wrap: balance;
}

.srv__title em {
  font-style: italic;
  font-weight: 800;
  color: #F65F01;
}

/* ---- Grid de cards ---- */
.srv__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---- Card ---- */
.srv__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E3E6EA;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.srv__card:hover,
.srv__card:focus-visible {
  border-color: rgba(246, 95, 1, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 18, 22, 0.08);
}

.srv__card:focus-visible {
  outline: 2px solid #F65F01;
  outline-offset: 2px;
}

/* Foto */
.srv__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.srv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.srv__card:hover .srv__media img {
  transform: scale(1.04);
}

/* Línea roja accent debajo de la foto */
.srv__accent {
  display: block;
  width: 56px;
  height: 3px;
  background: #F65F01;
  margin: 0 22px;
  margin-top: -1px;
}

/* Body */
.srv__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  flex: 1;
}

.srv__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1F252C;
  line-height: 1.3;
}

.srv__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4A5560;
  font-weight: 400;
}

/* Lista de bullets */
.srv__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srv__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1F252C;
  line-height: 1.5;
}

.srv__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #F65F01;
}

/* ---- CTA final ---- */
.srv__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.srv__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  min-height: 54px;
  padding: 16px 28px;
  background: #F65F01;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.12s ease;
}

.srv__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.srv__cta:hover,
.srv__cta:focus-visible {
  background: #D14E00;
  color: #fff;
}

.srv__cta:hover svg,
.srv__cta:focus-visible svg {
  transform: translate(2px, -2px);
}

.srv__cta:active {
  transform: translateY(1px);
}

.srv__cta:focus-visible {
  outline: 2px solid #F65F01;
  outline-offset: 3px;
}

/* ---- Tablet (>= 640px): 2 columnas ---- */
@media (min-width: 640px) {
  .srv {
    padding: 96px 32px 104px;
  }

  .srv__header {
    margin-bottom: 56px;
  }

  .srv__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .srv__cta {
    width: auto;
    max-width: none;
  }
}

/* ---- Desktop (>= 1024px): 3 columnas ---- */
@media (min-width: 1024px) {
  .srv {
    padding: 120px 40px 132px;
  }

  .srv__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .srv__title {
    font-size: clamp(2rem, 3vw, 2.625rem);
  }

  .srv__cta-wrap {
    margin-top: 56px;
  }
}

/* ---- Desktop XL (>= 1280px): 4 columnas para 7 cards (4+3) ---- */
@media (min-width: 1280px) {
  .srv__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Reveal heredado ---- */
.srv.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.srv.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .srv.reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .srv__card,
  .srv__media img,
  .srv__cta,
  .srv__cta svg {
    transition: none;
  }
}
