* {
    
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: #efeded !important;
    }

header {
  display: flex;
  align-items: center;
  justify-content: center; /* centramos horizontalmente todo el contenido */
  padding: 15px 20px;
  background-color: #f9f9f9;
  color: white;
  position: relative;
}

/* LOGO A LA IZQUIERDA */
.logo {
  position: absolute;
  left: 20px;
  font-size: 1.5rem;
  font-weight: bold;
    color: #000000 !important;

}
    header input[type="text"] {
      padding: 8px 60px;
      border-radius: 5px;
      border: none;
      width: 100%;
      max-width: 300px;
      font-size: 0.95rem;
    }

.search-container {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* INPUT DEL BUSCADOR */
.search-container input[type="text"],
#buscador {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}
/* SUGERENCIAS */
#sugerencias {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  width: 100%;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  z-index: 999;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
}

.sugerencias {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Igual ancho que el input */
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 999;
}

.sugerencia-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sugerencia-item:hover {
  background-color: #f5f5f5;
}

.sugerencia-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.sugerencia-item span {
  font-size: 14px;
  color: #333;
}

.mp-oferta .oferta .text-success{
    color: #000000 !important;
}

.colorletra{
    color: #044794;
}
.card-text{
    font-weight: 700;
}
.btn-primary{
    background-color: #125a7e !important;
}
.btn-primary:hover{
    background-color: #1d92cc !important;
}
.btn-outline-success{
    color: #000000 !important;
    border-color: #0e5269 !important;
}
.btn-outline-success:hover{
    background-color: #217ec5 !important;
    color: white !important;
}

.mp-info {
  text-align: center;
}

.mp-rating,
.mp-precio {
  justify-content: center; /* Para alinear horizontalmente si usas d-flex */
  text-align: center;
}

    .container {
      max-width: 1200px;
      margin: auto;
    }
    .carousel-inner{
      border-radius: 10px;
    }

    .texto1{
      background-color: #02103f;
      text-align: center;
      font-weight: 700;
      color: white;
      font-size: 23px;
      padding: 20px;
      user-select: none;
    }
    .titulo-seccion {
      font-size: 1.8rem;
      font-weight: bold;
      margin-bottom: 20px;
      text-align: center;
    }

    .grid-cursos {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }

    .curso-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
      transition: transform 0.2s;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
    }

    .curso-card:hover {
      transform: translateY(-4px);
    }

    .curso-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .curso-card-content {
      padding: 15px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .curso-card h3 {
      margin: 0 0 10px;
      font-size: 1.2rem;
      color: #333;
    }

    .curso-card p {
      margin: 4px 0;
      font-size: 0.95rem;
      color: #555;
    }

    .curso-card p:last-child {
      margin-top: auto;
      font-weight: bold;
      color: #1e1e2f;
    }

    footer {
      background-color: #1e1e2f;
      color: white;
      text-align: center;
      margin-top: 40px;
    }

    footer p {
      font-size: 0.9rem;
    }
    .a{
      padding: 20px;
      padding-top: 0%;
      max-width: 550px;
      margin: auto;
      margin-top: 0px !important;
      border-radius: 10% !important;
      }
    
.baul-color{
  background: #15386d !important;
}
.baul-color:hover{
  background: #000000 !important;
}
/* HEADER BONITO ANARANJADO PARA CELULAR */
@media (max-width: 768px) {

    header {
        background: linear-gradient(135deg, #fffcfb, #02103f) !important;
        padding: 10px 10px !important;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 12px !important;
    }

    /* LOGO BONITO Y CENTRADO */
    header .logo {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .logo img {
        height: 65px !important;
        object-fit: contain;
        filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.25));

        /* 👉 ANIMACIÓN DE SALTO */
        animation: miniJump 1.4s ease-in-out infinite;
    }

    /* TEXTO BONITO */
    .tex {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        letter-spacing: 0.5px;
        text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
        user-select: none;
    }

    /* === BUSCADOR SIN COLOR NARANJA === */
    .search-container {
        width: 100% !important;
        display: flex;
        justify-content: center !important;
        margin-top: 5px;
    }

    #buscador {
        width: 90% !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
        border: 1px solid #ddd !important;
        font-size: 16px !important;
        background: #ffffff !important;
        color: #333 !important;
        box-shadow: none !important;
    }

    #buscador:focus {
        outline: none !important;
        border-color: #ff8c42 !important;
        box-shadow: 0px 0px 6px rgba(255,140,66,0.35) !important;
    }
}

/* 🎉 Animación pequeña de salto */
@keyframes miniJump {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}



/*4 tarjetas*/
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 576px) {
    .mp-card .mp-info .mp-titulo {
        white-space: normal;       /* Permite salto de línea */
        word-wrap: break-word;     /* Fuerza a romper palabras largas si es necesario */
        overflow: hidden;          /* Evita que sobresalga del contenedor */
        text-overflow: ellipsis;   /* Opcional: agrega "..." si corta */
        display: block;            /* Asegura que tome el ancho completo */
    }
}
.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center; /* CENTRA LOS BOTONES */
}

.card-body a.btn,
.card-body button {
    margin-top: auto; /* deja los botones pegados abajo */
}
/* Mantiene el título arriba */
.card-body h5.card-title {
    margin-bottom: 10px;
}

/* Empuja precio + botones hacia abajo */
.card-body p.card-text {
    margin-top: auto;
    margin-bottom: 10px; /* separa el precio de los botones */
}
.card-body .btn {
    display: inline-block !important;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/*baul*/
.baul-color{
      background-color: #0e9dcc;
text-decoration: none;
color: white;
padding: 15px;

}
.baul-color:hover {
  background-color: #000000;
  color: rgb(255, 255, 255);
}
#baul-toggle {
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  font-size: 23px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
  width: 100%;
  user-select: none;
}

#baul-toggle:hover {
  color: #ffffff;
}

#baul {
  display: none;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.baul-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.baul-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.baul-grid img:hover {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .baul-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.qr-metodo {
  max-width: 100%;
  max-height: 200px; /* puedes ajustar según tu diseño */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.footerr{
  background: #02103f;
  color: #eee;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}
.carritob{
  background-color: #394397 !important;
  border-color: #000000 !important;
}
.carritob:hover{
  background-color: #483de7 !important;
}
/* Evita que los títulos largos se salgan del cuadro */
.mp-titulo,
.curso-titulo,
.card-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    text-align: center;
}

/* Arregla columnas en modo móvil */
@media (max-width: 480px) {

  .mp-card,
  .curso-item {
      width: 100% !important;
  }

  .mp-img {
      height: 150px !important;
      object-fit: cover;
  }
}
.mp-img {
    width: 100%;
    object-fit: cover !important;
    display: block;
}
/* Ajuste para móviles */
@media (max-width: 480px) {
  #notificacion {
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 100%); /* entra desde abajo */
    max-width: 90%; /* ocupa casi todo el ancho */
    font-size: 12px;
  }

  #notificacion.mostrar {
    transform: translate(-50%, 0); /* animación de subida */
    opacity: 1;
  }
}

@keyframes catBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #notificacion {
        width: 70vw;       /* 80% del ancho de la pantalla */
        max-width: none;   /* quitar el max-width fijo */
    }
}
/* 🚫 EVITA SCROLL HORIZONTAL GLOBAL */
html, body{
  max-width:100%;
  overflow-x:hidden;
}

/* CONTENEDOR */
.testimonios-wrap{
  width:100%;
  overflow:hidden;
  padding:30px 0;
  position:relative;
  background:#f4f6f8;
}

/* CARRIL */
.testimonios-track{
  display:flex;
  gap:20px;
  animation:scrollTestimonios 40s linear infinite;
  will-change:transform;
}

/* TARJETA */
.testimonio-card{
  min-width:260px;
  max-width:260px;
  background:#fff;
  padding:16px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  flex-shrink:0;
  overflow:hidden;
  cursor:pointer;
  transition:transform .3s ease;
}

.testimonio-card:hover{
  transform:translateY(-4px);
}

/* NOMBRE */
.testimonio-card .nombre{
  display:block;
  font-weight:600;
  margin-bottom:4px;
}

/* ESTRELLAS */
.stars{
  color:#f5b301;
  margin-bottom:6px;
  font-size:14px;
}

/* COMENTARIO */
.comentario{
  font-size:14px;
  line-height:1.45;
  max-height:4.2em; /* 3 líneas */
  overflow:hidden;
  transition:max-height .45s ease;
}

/* EXPANDIDO */
.testimonio-card.expandido .comentario{
  max-height:300px;
}

/* 🌫 DESENFOQUE EN BORDES */
.testimonios-wrap::before,
.testimonios-wrap::after{
  content:"";
  position:absolute;
  top:0;
  width:80px;
  height:100%;
  z-index:2;
  pointer-events:none;
}

.testimonios-wrap::before{
  left:0;
  background:linear-gradient(to right,
    #f4f6f8,
    rgba(244,246,248,0));
}

.testimonios-wrap::after{
  right:0;
  background:linear-gradient(to left,
    #f4f6f8,
    rgba(244,246,248,0));
}

/* 🎥 ANIMACIÓN INFINITA */
@keyframes scrollTestimonios{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* 📱 MOBILE */
@media(max-width:768px){
  .testimonio-card{
    min-width:220px;
    max-width:220px;
  }
}
