

.custom-jumbotron {

    background-image: url("../mtpreventivo/fondo2mtpreventivo.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: white;

    position: relative;

    min-height: 450px;

    display: flex;

    align-items: center;

    padding: 60px 40px;

}
 .custom-jumbotron .content {

    background-color: rgba(0, 0, 0, 0.55);

    padding: 30px;

    border-radius: 10px;

    max-width: 650px;

}

  
  .custom-jumbotron h1,
  .custom-jumbotron p {
    color: white; /* Asegúrate de que las letras sean blancas para un buen contraste */
  }
     /* ===== FIX RESPONSIVE SERVICIOS ===== */

@media (max-width: 768px) {

  .jumbotron {
    flex-direction: column !important;
    text-align: center;
    padding: 20px;
  }

  .jumbotron img {
    max-width: 90%;
    height: auto;
    margin-top: 20px;
  }

  .jumbotron .content {
    width: 100%;
    margin: 0;
  }

  h1, h2, h3, p {
    word-break: break-word;
  }

}
/* ===== TÍTULO RESPONSIVE HERO ===== */

@media (max-width: 768px) {

  .custom-jumbotron h1 {
    font-size: 1.8rem;
    word-break: break-word;
    line-height: 1.2;
  }

}
/* =================================
   MEJORA RESPONSIVE JUMBOTRON
================================= */

@media (max-width: 768px) {

  .custom-jumbotron {

    padding: 40px 20px;

    min-height: auto;

  }

  .custom-jumbotron .content {

    max-width: 100%;

    text-align: left;

  }

}
/* =================================
   HERO CON NEWS CARD
================================= */

.hero-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;

}

/* CARD NOTICIAS */

.news-card {

   background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    padding: 25px;

    border-radius: 12px;

    max-width: 320px;

    color: white;

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);

    border: 1px solid rgba(255,255,255,0.08);

     margin-left: auto;

    margin-right: 40px;

    align-self: center;

     transition: transform 0.3s ease, box-shadow 0.3s ease;

      text-align: left; /* ← AGREGA ESTA LÍNEA */
}
.news-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.35);

}
.news-card ul {
    padding-left: 20px;
}

.news-card li {
    margin-bottom: 8px;
}
/* RESPONSIVE */

@media (max-width: 768px) {

    .hero-container {

        flex-direction: column;

        align-items: flex-start;

    }

    .news-card {

        max-width: 100%;

        margin-top: 20px;

    }

}
/* =================================
   HERO RESPONSIVE CELULAR
================================= */

@media (max-width: 768px) {

    .custom-jumbotron {

        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        min-height: auto;

    }

    .custom-jumbotron .content {

        max-width: 100%;
        margin-right: 0;
        margin-bottom: 25px;

    }

    .custom-jumbotron h1 {

        font-size: 32px;
        line-height: 1.2;

    }

    .custom-jumbotron p {

        font-size: 16px;

    }

    /* CARD NOTICIAS EN CELULAR */

    .news-card {

        margin: 0 auto;
        width: 100%;
        max-width: 400px;

        padding: 20px;

        backdrop-filter: blur(8px);

    }

}

/* =================================
   SECCIÓN VENTAJAS PREVENTIVO
================================= */

.ventajas-section {

  background: #2c2f36;

  padding: 80px 20px;

  margin-top: 60px;

}


/* CONTENEDOR */

.ventajas-container {

  max-width: 1200px;

  margin: auto;

  text-align: left;

}


/* TITULO */

.ventajas-titulo {

  color: white;

  font-size: 32px;

  margin-bottom: 50px;

  font-weight: 600;

}


/* GRID */

.ventajas-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

}


/* CARD */

.ventaja-card {

  background: rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);

  padding: 30px 25px;

  border-radius: 12px;

  color: white;

  transition: 0.3s;

  border: 1px solid rgba(255,255,255,0.08);

  text-align: left;

}


/* HOVER */

.ventaja-card:hover {

  transform: translateY(-8px);

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.15);

}


/* ICONO */

.ventaja-icono {

  font-size: 30px;

  color: #00c853;

  margin-bottom: 15px;

}


/* TITULO CARD */

.ventaja-card h4 {

  margin-bottom: 10px;

  font-weight: 600;

}


/* TEXTO */

.ventaja-card p {

  font-size: 15px;

  opacity: 0.9;

  line-height: 1.5;

}


/* =================================
   RESPONSIVE CELULAR
================================= */

@media (max-width: 768px) {

  .ventajas-grid {

    grid-template-columns: 1fr;

  }

  .ventaja-card {

    text-align: left;

  }

  .ventajas-titulo {

    font-size: 26px;

  }

}