 body {
             padding-top: 250px;
             background: #f5f5f5;
         }

         .contenido h1 {
             text-align: center;
             color: #013981;
             margin-bottom: 30px;
             font-weight: 600;
         }

         .contenido p {
             font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
             font-size: 20px;
             font-weight: 300;
             line-height: 1.7;
             color: #2c3e50;
             margin-bottom: 1rem;
             text-align: justify;
         }



         /* Estilos de las cards */
         .card {
             width: 25rem;
             border: none;
             border-radius: 12px;
             overflow: hidden;
             cursor: pointer;
             transition: transform 0.3s ease, box-shadow 0.3s ease;
             background-color: white;
             box-shadow: 0 2px 8px rgba(0,0,0,0.1);
             display: flex;
             flex-direction: column;

             margin-left: auto;
             margin-right: auto;
          }


         .card:hover {
             transform: scale(1.02);
             box-shadow: 0 15px 30px rgba(0,0,0,0.2);
         }

         /* Título en la parte superior - CENTRADO */
         .card-header-title {
             font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
             font-size: 1.3rem;
             font-weight: 700;
             color: #013981;
             text-align: center;  /* ← Centrado */
             padding: 20px 15px;
             margin: 0;
             background-color: white;
             order: 1;
         }

         /* Contenedor de la imagen */
         .card-img-container {
             position: relative;
             width: 90%;
             overflow: hidden;
             margin: 0 auto 15px auto;
             border-radius: 8px;
             order: 2;
         }

         .card-img-bottom {
             width: auto;
             height: 300px;
             align: center;
             object-fit: cover;
             margin-left: auto;   /* ← agrega esto */
             margin-right: auto;  /* ← agrega esto */
             display: block;
             transition: all 0.3s ease;
         }

         /* Overlay gris semitransparente */
         .card-img-container::before {
             content: "";
             position: absolute;
             align: center;
             top: 0;
             left: 5px;
             width: 100%;
             height: 100%;
             background-color: rgba(0, 0, 0, 0);
             transition: background-color 0.3s ease;
             z-index: 1;
             border-radius: 8px;
         }

         .card:hover .card-img-container::before {
             background-color: rgba(0, 0, 0, 0.6);
         }

.card-overlay-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;

    transform: translateY(20%); /* ligeramente abajo */
    opacity: 0; /* 👈 oculto */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.card:hover .card-overlay-text {
    transform: translateY(-50%); /* centrado */
    opacity: 1; /* 👈 aparece */
}

         /* Ajustes responsive */
         @media (max-width: 768px) {
             .card {
                 width: 100% !important;
                 max-width: 28rem;
             }

             .card-header-title {
                 font-size: 1.1rem;
                 padding: 15px 10px;
             }

             .card-overlay-text {
                 font-size: 0.85rem;
                 padding: 15px;
             }
         }
