html {
  scroll-behavior: smooth;
}


img {
  padding-bottom: 6%;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%; /* importante */
  padding: 15px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 5px 5px 0 0;
  transition: transform 0.4s ease;
}
.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


/* zoom suave sin salir de la card */
.card:hover img {
  transform: scale(1.08);
}


/* Hace que el contenido crezca */
.card h6,
.card p {
  margin-bottom: 10px;
}

/* Empuja el botón al fondo */
.card button {
  margin-top: auto;
}
#contenedorMarket {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


#carrito-icon {
  width: 20px;
  height: auto;
  margin-left: 5px;
  filter: invert(1);
  -webkit-filter: invert(1);

}

#cantidadCarrito {
  background-color: #4E73DF;
  text-decoration: none;
  /* Sobrescribe cualquier otro estilo */
}

.in {
  margin-top: 0px;
  padding-top: 7%;

}


  /* ===== HERO FORM MODERNO ===== */
.hero {
  position: relative;
  text-align: left;
  padding: 0 32px;
  min-height: 90vh;
  background-color: #4E73DF;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* overlay degradé irregular desde el centro hacia abajo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 40%,           /* centro arriba / centro horizontal */
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.12) 25%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 70%
    );
  mix-blend-mode: screen;          /* opcional, para mezclar mejor con el azul */
}

/* CONTENEDOR HERO */
.hero .container {
  position: relative; /* para estar sobre el overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.title-hero {
  color: #ffffff;
}

.description-hero {
  color: #ffffff;
}



/* ===============================
   HERO FORM MODERNO
================================= */

#miFormularioPrincipal {
  width: 100%;
  max-width: 520px;
  margin-left: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Labels */
#miFormularioPrincipal label {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  display: block;
}

/* Inputs */
#miFormularioPrincipal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  margin-bottom: 18px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

/* Focus */
#miFormularioPrincipal input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* Checkbox */
.form-check {
  margin-bottom: 18px;
}

.form-check-label {
  color: #fff;
  display:block;
}

/* Botón */
#miFormularioPrincipal button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #4E73DF;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#miFormularioPrincipal button:hover {
  background: #eaeaea;
  transform: translateY(-2px);
}
/* Fix checkbox alignment */
/* Contenedor del checkbox */
/* Contenedor */
#miFormularioPrincipal .form-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 15px 0 20px 0;
  padding-left: 0 !important; /* elimina offset bootstrap */
}

/* Checkbox */
#miFormularioPrincipal .form-check-input {
  position: static !important; /* quita position absolute de bootstrap */
  margin: 0 !important;
  width: 16px;
  height: 16px;
  accent-color: #ffffff;
  flex-shrink: 0; /* evita que se comprima */
}

/* Label */
#miFormularioPrincipal .form-check-label {
  margin: 0 !important;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

#miFormulario {
  display: none;
}
.form-compra {
  max-width: 420px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  gap: 20px; /* más espacio uniforme */
}

/* Agrupar cada campo */
.form-compra .campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.form-compra label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Inputs */
.form-compra input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s ease;
  box-sizing: border-box; /* 🔥 importante */
}

/* Focus elegante */
.form-compra input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Botón */
.form-compra button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.form-compra button:hover {
  background:  #0b4ad1;
  transform: translateY(-2px);
}
.navbar {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 8px 16px; /* 8 arriba/abajo - 16 lados */
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  position: relative;
  transition: 0.3s ease;
  
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #76abfa;
  transition: 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
@media (max-width: 991.98px) {

  .navbar-collapse {
    background-color: #4E73DF;
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
  }

}


footer {
  background: #111;
  color: #111;
 
  font-size: 14px;
}

footer a {
  color: #0d6efd;
  text-decoration: none;
}
footer .input-group-text,
footer .form-control {
  height: 38px;
}








/* Estilos para dispositivos móviles */
/* ============================= */
/* 📱 RESPONSIVE - TABLET & MOBILE */
/* ============================= */
@media (max-width: 768px) {

  /* Navbar */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  /* Hero */
   .hero {
    padding: 100px 20px;
    min-height: auto;
    text-align: center;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
  }

  .hero hgroup {
    max-width: 100%;
  }

  .title-hero {
    font-size: 28px;
    line-height: 1.3;
  }

  .description-hero {
    font-size: 16px;
  }

  #miFormularioPrincipal {
    width: 100%;
    max-width: 400px;
  }

  

  /* Cards */
  .card {
    margin-bottom: 20px;
  }

  /* Grid de productos */
  #contenedorMarket {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Formulario principal */
  #miFormularioPrincipal {
    width: 100%;
    margin: 0 auto;
  }

  /* Formulario compra */
  .form-compra {
    width: 95%;
    padding: 20px;
  }

  /* Footer */
  footer {
    text-align: center;
  }
  

}


/* Estilos para tabletas */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .hero .container {
    max-width: 90%;
    /* Reducir el ancho máximo para tabletas */
  }
}




/* Estilos para las etiquetas */
label {
  font-weight: bold;
}

/* Estilos para los input */
.form-control {
  margin-bottom: 15px;
  margin-bottom: 15px;
}

/* Estilos para el botón */
.btn-primary {
  width: 100%;

}

.btn2 {
  /*Estiloscomunesparatodoslosbotones*/
  background-color: #762ef4;
  color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  /*Espaciadointerno*/
  font-size: 16px;
  /*Tamañodefuente*/
  border: none;
  /*Sinborde*/
  border-radius: 5px;
  /*Borderedondeado*/
  cursor: pointer;
  transition: background-color 0.3s ease;

  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
}

.btn2:hover {
  /* Estilos cuando el cursor pasa sobre el botón */
  background-color: #5f08f5;
  /* Color de fondo ligeramente más oscuro */
}

/* Estilos para el pequeño texto */
.form-text {
  color: #6c757d;
  /* Color de texto gris */
}

.navbar {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #8e8c8c;
}

.invert-img {
  filter: invert(100%);
  -webkit-filter: invert(100%);

}


/* Estilos para el título */
.title2 {
  font-size: 24px;
  /* Tamaño de fuente */
  margin-bottom: 20px;
  /* Espaciado inferior */
}

/* Estilos para el formulario */


.btns {
  background-color: #7FC80E;
  line-height: 65px;
  height: 65px;
  padding: 0 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

/* Estilos para el botón de enviar */
.btn-success {
  display: block;
  /*Mostrarcomobloqueparacentrarhorizontalmente*/
  width: 100%;
  /*Anchocompleto*/
  padding: 10px;
  /*Espaciadointerno*/
  border: none;
  /*Sinborde*/
  border-radius: 5px;
  /*Bordesredondeados*/
  background-color: #28a745;
  /*Colordefondoverde*/
  color: #fff;
  /*Colordeltexto*/
  font-size: 16px;
  /*Tamañodefuente*/
  cursor: pointer;
  /*Cambiarcursoralpasarsobreelbotón*/
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-border-radius: 5px;
}



/* Estilos para el contenedor de datos del formulario */
#datosDelFormulario {
  margin-top: 20px;
  /* Espacio superior */
  color: #ccc;
  width: 80px;
  padding: 10px;
  /* Espaciado interno */
}


.text-light {
  text-align: center;
  /* Centrar el texto */
  padding-top: 20px;
  /* Agregar espacio en la parte superior */
}

h2 {
  margin-top: 0;
  /* Eliminar el margen superior predeterminado */
}

/* Estilos para la tabla interna */
.tabla {

  border-radius: 10px;
  /* Redondear los bordes */
  overflow: hidden;
  /* Para asegurarse de que el borde redondeado se aplique correctamente */
}

#Carrito {
  display: flex;
  /* Usa flexbox para centrar el contenido */
  justify-content: center;
  /* Centra horizontalmente */
  align-items: center;
  /* Centra verticalmente */
  flex-direction: column;
  /* Alinea los elementos en columna */
  background-color: #DDEAFB;
  padding: 20px;

}


/* Estilos para las celdas de la tabla */
#carrito td {
  padding: 12px;
  /* Espaciado interno */


}

/* Estilos para el encabezado de la tabla */
#carrito th {
  padding: 12px;
  background-color: #fff;
  /* Color de fondo del encabezado */
  color: rgb(2, 2, 2);
  /* Color de texto del encabezado */

}

/* Estilos para el pie de la tabla */
#carrito tfoot td {
  font-weight: bold;
  background-color: #fff;
  /* Color de fondo del pie */
  color: rgb(1, 1, 1);
  /* Color de texto del pie */
}


.table {
  width: 80%;
  justify-content: center;
  -webkit-border-radius: ;
  -moz-border-radius: ;
  -ms-border-radius: ;
  -o-border-radius: ;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para la tabla de contenidos */


.thead {
  width: 80%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  padding-top: 5%;

}



.btn {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background-color: #0b4ad1;
  /*border: 1px solid #ccc;*/
  
  transform: translateY(-2px);
}

.btn-danger {
  background-color: brown;
  height: 20pt;
  width: 20pt;
  padding: 0px;
}

/* Estilos para dispositivos móviles y tabletas */

/* Estilos adicionales para tabletas */
@media only screen and (min-width: 769px) and (max-width: 1024px) {

  /* Estilos para tabletas */
  .card-container {
    padding: 5%;
    /* Ajustar el padding para tabletas */
  }

  .card {
    width: 45%;
    /* Ajustar el ancho de la tarjeta para tabletas */
  }
}



/* Estilos para los iconos de fontawesome */
.fab {
  /* Color del icono */
  color: #90bdf8;
  /* Cambia el color a tu preferencia */

  /* Margen entre los iconos */
  margin: 10px;
  /* Cambia el valor según sea necesario */

  /* Tamaño del icono */
  font-size: 4rem;
  /* Cambia el tamaño a tu preferencia */

}

.text-left {
  color: #90bdf8;
  /* Cambia  el color deseado en formato hexadecimal, rgb, rgba, etc. */
}

.bg-col {
  background-color: #DDEAFB;
}

/* Estilos para el modal */

.modal-dialog {
  max-width: 500px;
  /* Ancho máximo del modal */
  margin: 1.75rem auto;
  /* Margen exterior */

}

.modal-content {
  text-align: center;
  border-radius: 0.25rem;
  box-shadow: 0 0 15px rgba(95, 8, 245, 0.25);
  background-color: #fff;
  padding: 20px;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  -ms-border-radius: 0.25rem;
  -o-border-radius: 0.25rem;
}

/* Estilos para el contenido del modal */
#modalBody {
  color: #333;
  /* Color del texto */
}

#modalBody p {
  margin: 0.5rem 0;
  /* Margen entre párrafos */
}

#modalBody strong {
  font-weight: bold;
  /* Negrita para los títulos */
  margin-right: 0.5rem;
  /* Margen derecho */
}


.modal-header .modal-title {
  display: flex;
  /* Usar flexbox para centrar el icono */
  align-items: center;
  /* Centrar verticalmente */
  justify-content: center;
  /* Centrar horizontalmente */
  text-align: center;
  /* Centrar el texto */
}

.modal-header .modal-title i {
  font-size: 24px;
  /* Tamaño del icono */
  color: #5f08f5;
  /* Color del icono */
  margin-right: 10px;
  /* Espacio entre el icono y el texto */

}