.servicios-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 3rem 20px; 
    margin-top: 3rem;
    box-sizing: border-box;
}

.servicios-container h3 {
    margin: 0 0 1rem 0;
}

.servicios-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

/* Servicio individual */
.servicio {
    background-color: #1a2f5a;
    color: white;
    flex: 1 1 220px;
    max-width: 250px;
    border: 2px solid white; 
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px; 
}

.servicio p:first-child {
    background-color: white;
    color: #1a2f5a;
    font-weight: bold;
    padding: 10px;
    margin: 0;
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.servicio p:last-child {
    padding: 10px;
    flex-grow: 1; 
}

/* RESPONSIVE: tablet */
@media (max-width: 768px) {
    .servicios-inner {
        flex-direction: column;
        align-items: center;
        gap: 15px; 
    }

    .servicio {
        max-width: 100%;
        flex: 1 1 auto;
        min-height: auto;
    }

    .servicio p:first-child {
        height: auto;
    }
}

.home-insurance-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.home-insurance-container h3 {
  margin: 0;
}

.home-insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.home-insurance-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}

.home-insurance-grid p {
  text-align: justify;
  margin: 0;
  padding: 0;
}

.home-insurance-grid img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-insurance-text {
  padding: 1rem 2rem;
}

/* Utilities */
.home-insurance-shadow {
  box-shadow: 6px 10px 18px rgba(0, 0, 0, 0.45);
}

.home-insurance-bg {
  background: var(--bg) !important;
}

.home-insurance-black-text {
  color: black !important;
}

.home-insurance-justify {
  text-align: justify;
}

/* Responsivo */
@media (max-width: 820px) {
  .home-insurance-grid {
    grid-template-columns: 1fr;
  }

  .home-insurance-grid > div:nth-child(odd) {
    order: 1;
  }

  .home-insurance-grid > div:nth-child(even) {
    order: 2;
  }

  .home-insurance-grid > div {
    height: auto;
  }

  .home-insurance-grid img {
    height: auto;
  }
}

.mt-2rem {
    margin-top: 2rem;
}

.seguro-casa-contenido__texto {
    padding: 0 !important;
}