* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #FFF3E0;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
}

.wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header */
.menu-fijo {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px;
  background-color: #0A2E55;
  color: #FDBF00;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1000;
}
.color{
  background-color: #0A2E55;
}
header h1 {
  margin-top: 0;
}

.carousel-item img {
  max-height: 400px;
  object-fit: contain;
}

/* Main */
.contenedor-principal {
  width: 80%;
  margin: 100px auto 20px;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  flex: 1;
}

h2{
  text-align: center;
  margin-bottom: 20px;
}

p {
  padding: 15px 5px;
}

.botones {
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  margin-right: 10px;
  border: 2px solid #D62828;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #B71C1C;
  color: white;
}

/* Productos */
.card-img-top {
  height: 250px;      
  object-fit: cover; 
}
.card-body {
  display: flex;
  flex-direction: column;
}

.card-text {
  flex-grow: 1;
  max-height: 200px;     
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-rojo {
  background-color: #D62828 !important;
  color: white !important;
  border: none !important;
}

.btn-rojo:hover {
  background-color: #b22222 !important;
}


.grid-productos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.producto {
  text-align: center;
  background-color: #eee;
  padding: 10px;
  border-radius: 8px;
}

.producto img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Formulario */
.formulario h2{
  padding-top: 30px;
}

.formulario form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.formulario label {
  margin-top: 10px;
}

.formulario input,
.formulario textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


/* Footer */
.footer__Content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #0A2E55;
  color: #FDBF00;
  text-align: center;
  position: relative;
}
.footer__Content p {
  flex: 1;
  text-align: center;
  margin: 0;
  font-weight: bold;
}

.footer__social{
  display: flex;
  justify-content: space-around;
  flex: 1;
}

.footer__social-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  text-decoration: none;
  font-size: 14px;
}

.footer__social-link {
  display: inline-block;
}

.footer__social-list {
  gap: 24px;
}

.footer__social-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Responsividad */
@media (max-width: 768px) {
  .contenedor-principal {
    width: 95%;
    padding: 10px;
  }

  button {
    margin-bottom: 10px;
    width: 100%;
  }

  .botones {
    display: flex;
    flex-direction: column;
  }
  .grid-productos {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }

  .footer__social {
    flex-direction: column;
    align-items: center;
  }

  .footer__Content {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .footer__Content p {
    position: static;
    transform: none;
    padding: 10px 0;
  }

  .botones {
    flex-direction: column;
    gap: 10px;
  }

  button {
    width: 100%;
  }

  .formulario form {
    width: 90%;
  }

  header h1 {
    font-size: 1.5rem;
  }
}
