
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url("../imagen/fondo_amalfi2.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center;
    position: relative;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 0;
    animation: fadeDarken 8s ease forwards;
}

@keyframes fadeDarken {
    to {
        background-color: rgba(0, 0, 0, 0.2);
    }
}

.main-content {
    position: relative;
    z-index: 1;
}

.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.08);
}

.top-container {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Animación de aparición gradual de las fichas */
.fade-in-cards {
    opacity: 0;
    animation: fadeInCards 1.5s ease-in-out forwards;
}

@keyframes fadeInCards {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.logo-govco {
    height: 20px;
    margin-right: 5px;
}

.barra-superior {
  background-color: #2a64ff;
  color: white;
  min-height: 36px;       /* ✅ mínimo 36px, pero puede crecer si el contenido lo necesita */
  height: auto;           /* ✅ permite que crezca si se baja el texto */
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  flex-wrap: wrap;        /* ✅ permite que los elementos bajen si no caben */
  padding: 0 10px;
}


.texto-barra {
    color: white;
}

.texto-izquierda {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.texto-centro {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.navbar-custom {
    margin-top: 36px;
}

.logo-yarumal {
    height: 25px;
    margin-right: 5px;
}

.chatbot-image {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
    animation: slideZoomIn 5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideZoomIn {
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Responsive para móviles */

@media (max-width: 576px) {
    .container {
      padding-left: 10px;
      padding-right: 10px;
    }
  
    .top-container {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  
    .top-container .row {
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
  
    .top-container .col {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  
    .card {
      width: 100% !important;
      max-width: 320px;
      margin: 0 auto 1rem auto;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
  
    .card-img-top {
        width: 100%;
        height: auto;
        display: block;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        background-color: white;
        padding: 0;
    }
  
    .card-body {
      padding: 10px;
    }
  }


/*ajustar bordes de las imagenes en las fichas*/
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .card-header {
    background-color: #6c757d; /* o tu color */
    color: white;
    text-align: center;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 8px;
  }
  
  .card-img-top {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    background-color: white;
  }

  /*logo y titulo de yarumal que no se desajuste en movil*/
  @media (max-width: 576px) {
    .barra-superior {
      flex-wrap: wrap;
      justify-content: space-between;
      height: auto;
      padding: 8px 10px;
    }
  
    .texto-izquierda {
      width: auto;
      margin-right: auto;
    }
  
    .texto-centro {
      width: 100%;
      text-align: right;
      margin-top: 4px;
      padding-right: 5px;
      font-size: 0.85rem;
      position: relative;
      left: 0;
      transform: none;
    }
  
    .logo-yarumal {
      height: 20px;
      margin-right: 5px;
    }
  }

  /*desactivar zomm en movil*/
  @media (max-width: 576px) {
    .card:hover {
      transform: none !important;
    }
  }
 
  @media (max-width: 576px) {
    .navbar-custom {
      margin-top: 60px;
    }
  
    .overlay {
      background-color: rgba(0, 0, 0, 0.6) !important;
      backdrop-filter: blur(2px);
      animation: none !important;
    }
  }
  
  /*separar menu con ficha primera*/
  @media (max-width: 576px) {
    .top-container {
      margin-top: 1.5rem;
    }
  }

  /*titulo transparente en tarifas*/
.titulo-transparente {
  background-color: rgba(241, 216, 70, 0.75);
  color: black;
  display: block;
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom: 0.3rem;  /* menos espacio con la tabla */
  margin-top: 0.3rem;     /* menos espacio con el bloque de arriba */
  text-align: center;
}

/*Organizar el template requisitos moto*/
.fondo-requisitos {
  background-color: #fff9db; /* amarillo claro */
  color: #333; /* texto negro */
  border-radius: 10px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fondo-requisitos h2 {
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.btn-buscar {
  background-color: #f1d846;
  color: black;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-buscar:hover {
  background-color: #e5c93e;
  color: black;
}

.link-descarga {
  display: inline-block;
  background-color: #3f83db;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.link-descarga:hover {
  background-color: #2c6cc5;
  text-decoration: none;
}

.fondo-requisitos select,
.fondo-requisitos input,
.fondo-requisitos textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.fondo-requisitos select:focus,
.fondo-requisitos input:focus,
.fondo-requisitos textarea:focus {
  border-color: #f1d846;
  outline: none;
  box-shadow: 0 0 6px rgba(241, 216, 70, 0.4);
}

@media (max-width: 576px) {
  .d-flex.flex-wrap .link-descarga {
    width: 100%;
    margin-bottom: 16px;   /* 🔁 más separación vertical */
    text-align: center;
  }

  .d-flex.flex-wrap {
    gap: 0 !important;  /* elimina espacio lateral si lo hubiera */
  }
}

