html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
  font-family: 'Maven Pro', sans-serif;
}

main {
  flex: 1; /* ocupa el espacio disponible */
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

    h1 {
      font-size: 2rem;
      text-align: center;
      margin-bottom: 20px;
    }

    /*HEADER COPIADO DEL HTML */

    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
        background-color: #f8f9fa;
        flex-wrap: wrap;
    }

    .main-header .logo img {
        height: 160px;
        transition: height 0.3s ease;
    }

    .main-header .main-nav {
        flex-grow: 1;
        text-align: center;
    }

    .main-header .main-nav a {
        margin: 0 15px;
        text-decoration: none;
        color: #ffffff;
    }

    .main-header .alta-btn a {
        padding: 10px 48px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        text-decoration: none;
    }

    .main-header .alta-btn:hover a {
        padding: 10px 48px;
        background-color: #001f4d;
        color: yellow;
        border-radius: 5px;
        text-decoration: none;
    }

    @media (max-width: 600px) {
        .main-header .logo img {
            height: 80px;
        }
    }

    header + h1 {
        margin-top: 40px !important;
    }

    /*FILTERS*/

    .filters {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 20px;
      justify-content: center;
    }

    .filters input {
      padding: 10px;
      font-size: 1rem;
      border-radius: 16px;
      border: 1px solid #ccc;
    }

    .card-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .card {
      background: white;
      border-radius: 12px;
      width: calc(100% / 7 - 20px);
      max-width: 200px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      padding: 10px;
    }

    .card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 8px;
    }

    .card h3 {
      font-size: 1rem;
      margin: 10px 0 5px;
      text-align: center;
    }

    .card .nickname {
      font-size: 0.9rem;
      color: #777;
      text-align: center;
    }

    .card .item {
      font-size: 0.9rem;
      color: #777;
      text-align: center;
    }

    .card .details {
      font-size: 0.8rem;
      color: #333;
      text-align: left;
      margin-top: 10px;
      line-height: 1.3;
    }

    .card .detailsmerc {
      font-size: 0.8rem;
      color: #333;
      text-align: center;
      margin-top: 10px;
      line-height: 1.3;
    }

    .pagination {
      text-align: center;
      margin-top: 20px;
      margin-bottom: 40px;
    }

    .pagination button {
      margin: 0 5px;
      padding: 8px 12px;
      font-size: 1rem;
      border-radius: 16px;
      border: none;
      background: #007bff;
      color: white;
      cursor: pointer;
    }

    .pagination button:disabled {
      background: #ccc;
      cursor: default;
    }

    @media (max-width: 1200px) {
      .card {
        width: calc(100% / 4 - 20px);
      }
    }

    @media (max-width: 768px) {
      .card {
        width: calc(100% / 2 - 20px);
      }
    }

    @media (max-width: 480px) {
      .card {
        width: 100%;
      }
    }
  
    #clearFilters {
      padding: 10px 14px;
      font-size: 1.2rem;
      border-radius: 16px;
      border: none;
      background: #007bff;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #order {
      padding: 10px 14px;
      font-size: 1.2rem;
      border-radius: 16px;
      border: none;
      background: #007bff;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

/* HEADER COMPLETO OSCURO CON MÁSCARA */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-image: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)), url('images/carlos_tartiere.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-wrap: wrap;
    margin: 0;
}

/* LOGO */
.logo-img {
    height: 40px;
    transition: height 0.3s ease;
}

/* MENÚ CENTRAL */
.main-nav {
    flex-grow: 1;
    text-align: center;
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: text-decoration 0.3s ease;
}

.main-nav a:hover {
    text-decoration: underline;
    color: yellow;
}

/* BOTONES */

@media (max-width: 600px) {
    .logo-img {
        height: 20px;
    }
}

.pedido-link {
    padding: 20px 32px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: fixed;
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.pedido-link:hover {
    background-color: #001f4d;
    color: yellow;
}

@media (max-width: 600px) {
    .logo-img {
        height: 20px;
    }
}

/* FOOTER*/

.footer {
  background-color: #0032A0;
  color: #ccc; 
  padding: 20px 40px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  font-size: 0.9rem;
  margin-top: auto; /* 👈 Esto empuja el footer abajo */
}

/* SEPARACIÓN DEL TÍTULO */
.title-main {
    margin-top: 40px !important;
}
