* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}
/* Header general */
header {
  background-color: #1c1c1c;
  color: white;
  position: relative;
  height: 220px;
}
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  padding-top: 10px;
}

/* Logo centrado en la parte superior */
.logo img {
  width: 180px; /* Ajusta el tamaño si es muy grande */
  height: auto;
 
}


/* Botón del carrito en la esquina superior derecha */
.btn-carrito {
  display: flex;
  flex-direction: column; /* 🔄 Alinea en columna */
  align-items: center;     /* 📍 Centra horizontalmente */
  text-align: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: #1c1c1c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 10px;
  right: 20px;
}


.btn-carrito img {
  width: 70px;
  height: 70px;
}

.btn-carrito:hover {
  background-color: #18171c;
}

/* Nav abajo del header, centrado */
.nav {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  border-bottom: 1px solid #555555;
  background: linear-gradient(to bottom, #8b8b8b 0%, #6a6a6a 50%, #5e5e5e 52%, #717171 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu li {
  margin: 0 15px;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

/* HOVER VERDE */
.menu li a:hover {
  color: #00ff00;
}
.search_bar {
  display: flex;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 30px;
  background: linear-gradient(to right, #7e7e7e 1%, #797979 49%, #6e6e6e 51%, #767676 100%);
  border-radius: 50px;
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.7);
  padding: 0 10px;
}

.search_bar input[type="text"] {
  flex: 1;
  height: 25px;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  padding-left: 10px;
  font-size: 14px;
}

.search_bar input::placeholder {
  color: #ccc;
}

.icon-search {
  color: white;
  font-size: 16px;
}
.content {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.item {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
}

.contact_form {
  background-color: #1e1e1e;
  margin: 60px auto; /* 🔼🔽 Espacio arriba y abajo */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 700px;
}


h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
}

h3 {
  font-size: 16px;
  color: #bbbbbb;
  text-align: center;
  margin-bottom: 30px;
}

form p {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #dddddd;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1e90ff;
  background-color: #2f2f2f;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.obligatorio {
  color: #ff6b6b;
  margin-left: 4px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #187bcd;
}

.aviso {
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  text-align: center;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}
/* ===============================
   🌐 ADAPTACIÓN RESPONSIVE
   =============================== */

/* --- Tablets (pantallas medianas) --- */
@media (max-width: 1024px) {
  header {
    height: auto;
    padding-bottom: 10px;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-carrito {
    position: static;
    margin-top: 10px;
  }

  .nav {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .menu {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu li {
    margin: 5px 10px;
  }

  .search_bar {
    position: static;
    transform: none;
    width: 80%;
    margin: 10px auto 0;
  }
}

/* --- Celulares (pantallas pequeñas) --- */
@media (max-width: 768px) {
  /* 🔹 Header */
  header {
    height: auto;
  }

  .logo img {
    width: 140px;
  }

  .btn-carrito {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .btn-carrito img {
    width: 40px;
    height: 40px;
  }

  .btn-carrito span {
    font-size: 14px;
  }

  /* 🔹 Menú */
  .nav-content {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    flex-direction: column;
    text-align: center;
  }

  .menu li {
    margin: 8px 0;
  }

  /* 🔹 Buscador */
  .search_bar {
    width: 90%;
    height: 35px;
  }

  .search_bar input[type="text"] {
    font-size: 13px;
  }

  /* 🔹 Formulario */
  .contact_form {
    width: 90%;
    padding: 20px;
    margin: 30px auto;
  }

  h1 {
    font-size: 20px;
  }

  h3 {
    font-size: 14px;
  }

  label {
    font-size: 14px;
  }

  input,
  textarea {
    font-size: 13px;
    padding: 10px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  /* 🔹 Footer */
  footer {
    padding: 20px 10px;
    font-size: 13px;
  }
}

/* --- Móviles pequeños (hasta 480px) --- */
@media (max-width: 480px) {
  .logo img {
    width: 120px;
  }

  .btn-carrito {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    height: auto;
    padding: 5px;
  }

  .menu li a {
    font-size: 14px;
  }

  .search_bar {
    width: 95%;
    height: 32px;
    padding: 0 8px;
  }

  .contact_form {
    width: 95%;
    padding: 15px;
  }

  h1 {
    font-size: 18px;
  }

  h3 {
    font-size: 13px;
  }

  input,
  textarea {
    font-size: 12px;
  }

  button {
    font-size: 13px;
  }

  footer {
    font-size: 12px;
    padding: 15px;
  }
}
