/* Página de inicio: Diseño limpio, amigable e inspirado en la identidad visual de Mejora Confiable */

.simple-home {
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 41, 61, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(191, 41, 61, 0.07) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 40px 0 56px;
}

.service-selector {
  max-width: 920px;
}

.selector-intro {
  text-align: center;
  margin-bottom: 32px;
}

.selector-intro h1 {
  display: inline-block;
  background: linear-gradient(135deg, #c81e32 0%, #991b1b 100%);
  color: #ffffff;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 16px 42px;
  margin: 0 0 16px;
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.24);
}

.selector-intro p {
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0 auto;
  max-width: 54ch;
  color: #334155;
}

.service-options {
  display: grid;
  gap: 20px;
  scroll-margin-top: 120px;
}

.choice.service-option {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 24px;
  min-height: 152px;
  padding: 0 26px 0 0;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice.service-option:hover,
.choice.service-option:focus-visible {
  border-color: #bf293d;
  box-shadow: 0 14px 32px rgba(191, 41, 61, 0.16);
  transform: translateY(-2px);
}

.service-picture {
  align-self: stretch;
  height: 100%;
  min-height: 152px;
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 0;
  background: #e2e8f0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

/* Franja diagonal roja estilo flyer oficial */
.service-picture::after {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: 5%;
  width: 8px;
  background: #bf293d;
  transform: skewX(-12deg);
  z-index: 2;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}

.service-picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Recorte matemático exacto sobre servicios-referencia.png (1254x1254) usando porcentajes propios de la imagen */
.picture-reference > img {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 415%;
  height: auto;
  max-width: none;
  object-fit: unset;
}

.picture-desempleo > img {
  transform: translate(-26.8%, -44.25%);
}

.picture-pensionados > img {
  transform: translate(-26.8%, -61.64%);
}

.picture-casas > img {
  transform: translate(-26.8%, -78.86%);
}

.choice.service-option > .option-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-block: 18px;
}

.choice.service-option .option-copy strong {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.choice.service-option .option-copy > span {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: #475569;
  margin: 0;
}

.choice.service-option > .option-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #bf293d;
  font-size: 1.4rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.choice.service-option:hover > .option-arrow {
  background: #bf293d;
  border-color: #bf293d;
  color: #ffffff;
  transform: translateX(3px);
}

.selector-hint {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 26px 0 0;
  color: #475569;
}

/* Sección de contacto rápido en inicio */
.simple-contact {
  max-width: 920px;
  margin-top: 40px;
  padding: 36px 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.simple-contact h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin-bottom: 8px;
}

.simple-home .simple-contact p {
  font-size: 1.04rem;
  color: #475569;
  max-width: 50ch;
  margin: 0 auto 24px;
}

.simple-contact .actions {
  justify-content: center;
  margin-bottom: 0;
}

.choice.simple-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fffafa;
  border: 1.5px dashed #fca5a5;
  border-radius: 16px;
  min-height: 88px;
  padding: 18px 24px;
  margin-top: 28px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.choice.simple-work:hover {
  background: #fef2f2;
  border-color: #bf293d;
  border-style: solid;
}

.choice.simple-work strong {
  font-size: 1.1rem;
  color: #111827;
}

.choice.simple-work span {
  font-size: 0.98rem !important;
  font-weight: 700;
  color: #bf293d !important;
}

.simple-home .actions a {
  max-width: 100%;
}

/* Responsivo para tablet y móvil */
@media (max-width: 760px) {
  .simple-home {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .selector-intro {
    margin-bottom: 22px;
  }

  .selector-intro h1 {
    font-size: 1.45rem;
    padding: 13px 24px;
    width: 100%;
    border-radius: 16px;
  }

  .selector-intro p {
    font-size: 0.98rem;
  }

  .service-options {
    gap: 14px;
    scroll-margin-top: 20px;
  }

  .choice.service-option {
    grid-template-columns: 122px minmax(0, 1fr) 38px;
    gap: 12px;
    padding-right: 14px;
    min-height: 132px;
    border-radius: 22px;
  }

  .service-picture {
    min-height: 132px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }

  .service-picture::after {
    right: 4%;
    width: 6px;
    transform: skewX(-8deg);
  }

  .picture-reference > img {
    width: auto;
    height: 715%;
  }

  .choice.service-option > .option-copy {
    padding-block: 14px;
    gap: 4px;
  }

  .choice.service-option .option-copy strong {
    font-size: 1.12rem;
    overflow-wrap: anywhere;
  }

  .choice.service-option .option-copy > span {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .choice.service-option > .option-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .simple-contact {
    margin-top: 28px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .simple-contact .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .choice.service-option {
    grid-template-columns: 98px minmax(0, 1fr) 32px;
    gap: 10px;
    padding-right: 10px;
  }

  .choice.service-option .option-copy strong {
    font-size: 1.02rem;
  }

  .choice.service-option .option-copy > span {
    font-size: 0.85rem;
  }
}
