/* ===== seguros.css (component) ===== */
.seguros-hero {
    position: relative;
    height: 80vh;
    min-height: 480px;
    /* asegura visibilidad en pantallas pequeñas */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #2f2f2f;
    /* fallback si la imagen no carga */
}

/*.seguros-hero {
  position: relative;
  height: 100vh;
}
.seguros-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); 
}*/

.seguros-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.seguros-hero .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 22px;
}

.seguros-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.seguros-hero p {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

/* Botones */
.seguros-hero .btn {
    border-radius: 10px;
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .seguros-hero {
        height: 60vh;
        min-height: 380px;
    }

    .seguros-hero h1 {
        font-size: 2rem;
    }

    .seguros-hero p {
        font-size: 1rem;
    }
}

/* ===== Botones Header ===== */
.custom-breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 10px 24px;
  background: transparent;
}

.custom-breadcrumb-btn a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-breadcrumb-btn a:hover {
  color: #ddd;
}

.custom-breadcrumb-btn .arrow {
  color: #fff;
  font-size: 18px;
  pointer-events: none; /* la flecha no es clickeable */
}

.custom-breadcrumb-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


/* ===== Sección Beneficios ===== */
.benefits-section {
  background-color: #fff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-green {
  color: var(--color-green);
}

.display-6 {
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--color-dark);
}

/* ===== Tarjetas ===== */
.feature-card {
  background: transparent;
  border: none;
  padding: 10px;
  transition: transform 0.3s ease;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-icon img {
  width: 130px; 
  height: 130px;
  object-fit: contain;
  justify-content: center;
  display: flex; 
}

.feature-title {
  color: var(--color-dark, #111827);
  line-height: 1.3;
}

.feature-text {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 240px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .display-6 {
    font-size: 2rem;
  }
  .feature-icon {
    width: 100px;
    height: 100px;
  }
  .feature-icon img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  .feature-card {
    padding: 0;
  }
  .feature-text {
    font-size: 0.9rem;
  }
}

/* ===== Tarjetas de seguros (Personal & Comercial) ===== */

/* Grid general */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: stretch; /* todas las tarjetas tendrán la misma altura */
}

/* Card base */
.ins-card {
    background: var(--color-blanco);
    border: 1px solid var(--color-dark);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;

    height: 100%;
    min-height: 360px; /* puedes ajustar según el contenido más alto */
}

/* Icono circular */
.ins-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    margin-top: -10%;
}

.ins-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* Títulos */
.feature-title,
.ins-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    margin-top: -5%;
    text-align: center;
}

/* Descripciones */
.ins-card p,
.ins-desc {
    font-size: 16px;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1; /* ocupa el espacio disponible para empujar el botón */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón de WhatsApp */
.ins-link {
    margin-top: auto; /* mantiene el botón alineado al final */
    margin-bottom: 5%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-green);
    color: white;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ins-link:hover {
    background-color: #0bbd4f;
    transform: scale(1.1);
}

/* Hover: borde verde y sombra más fuerte */
.ins-card:hover {
    border-color: var(--color-green);
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

/* Efecto hover adicional sobre el ícono */
.ins-card:hover .ins-icon {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* ===== Responsive ajustes ===== */
@media (max-width: 1200px) {
    .insurance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .insurance-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ins-icon {
      width: 130px;
      height: 130px;
      margin-bottom: 12px;
    }

    .ins-icon img {
      width: 100px;
      height: 100px;
    }
}

@media (max-width: 768px) {
    .insurance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .insurance-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 25px;
    }

    .ins-card {
        padding: 20px;
        min-height: auto;
    }

    .ins-icon {
        width: 130px;
        height: 130px;
        margin-bottom: 12px;
    }

    .ins-icon img {
        width: 100px;
        height: 100px;
    }

    .ins-link {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}


/* ===== Banner Insurance CTA ===== */
#banner-insurance {
  background: var(--color-purple);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

#banner-insurance h6,
#banner-insurance h2 {
  color: #fff;
}

/* Botón rectangular con esquinas redondeadas */
.btn-quote {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-blanco);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px; 
  text-decoration: none;
}

.btn-quote:hover {
  background: var(--color-green-secondary); 
  color: var(--color-blanco);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
