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

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #2c3e50;
      color: #ecf0f1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Header Styles */
    .header {
      background: #34495e;
      padding: 12px 32px;
      display: flex;
      align-items: center;
      gap: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      position: sticky;
      top: 0;
      z-index: 100;
      justify-content: space-between;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: white;
      font-size: 20px;
      font-weight: 600;
    }

    .logo-icon {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, #ff6b6b, #ff8787);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .search-container {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 500px;
    }

    .search-container input {
      width: 100%;
      padding: 10px 16px 10px 40px;
      background: #2c3e50;
      border: 1px solid #445566;
      border-radius: 8px;
      color: #ecf0f1;
      font-size: 14px;
    }

    .search-container input::placeholder {
      color: #95a5a6;
    }

    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #95a5a6;
      font-size: 16px;
    }

    .header-icons {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-left: auto;
    }

    .icon-btn {
      background: none;
      border: none;
      color: #ecf0f1;
      font-size: 22px;
      cursor: pointer;
      position: relative;
      padding: 8px;
      transition: all 0.3s ease;
    }

    .icon-btn:hover {
      color: #ff6b6b;
    }

    .notification-badge {
      position: absolute;
      top: 4px;
      right: 4px;
      background: #ff6b6b;
      color: white;
      font-size: 10px;
      font-weight: bold;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .sell-btn {
      background: linear-gradient(135deg, #ff6b6b, #ff5252);
      color: white;
      border: none;
      padding: 10px 24px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
    }

    .sell-btn:hover {
      background: linear-gradient(135deg, #ff5252, #ff3838);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }

    .menu-toggle {
      font-size: 24px;
      cursor: pointer;
      color: white;
      padding: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      background: rgba(255, 107, 107, 0.1);
      border-radius: 8px;
      min-width: 40px;
      min-height: 40px;
    }

    .menu-toggle:hover {
      background: rgba(255, 107, 107, 0.2);
      transform: scale(1.05);
    }

    /* Side Menu */
    .side-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 280px;
      height: 100vh;
      background: #34495e;
      z-index: 200;
      padding: 24px;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .side-menu.active {
      transform: translateX(0);
    }

    .menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 32px;
    }

    .menu-close {
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      padding: 4px;
    }

    .menu-main-content {
      flex-grow: 1;
    }

    .menu-main-content a,
    .menu-bottom-section a {
      display: block;
      padding: 14px 16px;
      color: #bdc3c7;
      text-decoration: none;
      border-radius: 8px;
      margin-bottom: 8px;
      transition: all 0.3s ease;
      font-size: 15px;
    }

    .menu-main-content a:hover,
    .menu-bottom-section a:hover {
      background: #3d566e;
      color: #ff6b6b;
      transform: translateX(4px);
    }

    .menu-bottom-section {
      margin-top: auto;
      padding-top: 24px;
      border-top: 1px solid #445566;
    }

    /* Main Content */
    .main-content {
      flex-grow: 1;
      padding: 40px 32px 60px;
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
    }

    .page-title {
      font-size: 42px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 40px;
      color: #ecf0f1;
    }

    /* Filter Bar */
    .filter-bar {
      margin-bottom: 32px;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .filter-bar select {
      padding: 12px 20px;
      border-radius: 8px;
      background: #34495e;
      border: 1px solid #445566;
      color: #ecf0f1;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 200px;
    }

    .filter-bar select:hover {
      border-color: #ff6b6b;
      background: #3d566e;
    }

    .filter-bar select:focus {
      outline: none;
      border-color: #ff6b6b;
      box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }

    /* Listings Grid */
    .block {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 24px;
    }

    .listing-item {
      background: #34495e;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #445566;
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .listing-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #ff6b6b, #ffa07a, #ffb088);
    }

    .listing-item:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
      border-color: #ff6b6b;
    }

    /* Image Styles */
    .listing-image {
      width: 100%;
      height: 240px;
      overflow: hidden;
      background: linear-gradient(135deg, #3d566e, #2c3e50);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 72px;
    }

    .listing-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .listing-item:hover .listing-image img {
      transform: scale(1.05);
    }

    /* Content Styles */
    .listing-content {
      padding: 24px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .listing-content .font-semibold {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
      line-height: 1.4;
    }

    .listing-content .font-semibold a {
      color: #ff8787;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .listing-content .font-semibold a:hover {
      color: #ffa07a;
    }

    .listing-content p {
      color: #bdc3c7;
      font-size: 14px;
      line-height: 1.6;
    }

    /* Actions Section */
    .actions {
      margin-top: auto;
      padding-top: 16px;
      display: flex;
      justify-content: center;
    }

    .chat-btn {
      background: linear-gradient(135deg, #ff6b6b, #ff5252);
      color: white;
      border: none;
      padding: 11px 22px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }

    .chat-btn:hover {
      background: linear-gradient(135deg, #ff5252, #ff3838);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }

    /* Category specific styling */
    .listing-item[data-category="libros"]::before {
      background: linear-gradient(90deg, #10b981, #059669);
    }

    .listing-item[data-category="comida"]::before {
      background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .listing-item[data-category="objetos"]::before {
      background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    }

    .listing-item[data-category="otros"]::before {
      background: linear-gradient(90deg, #ec4899, #db2777);
    }

    /* Footer */
    .footer {
      background: #34495e;
      padding: 40px 32px 20px;
      margin-top: auto;
      border-top: 1px solid #445566;
    }

    .footer-content {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 32px;
      margin-bottom: 24px;
    }

    .footer-section h3 {
      color: #ff6b6b;
      font-size: 16px;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .footer-section p,
    .footer-section a {
      color: #95a5a6;
      font-size: 14px;
      line-height: 1.8;
      text-decoration: none;
    }

    .footer-section a:hover {
      color: #ff6b6b;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 8px;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #445566;
      color: #7f8c8d;
      font-size: 13px;
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-30px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideInRight {
      from { opacity: 0; transform: translateX(30px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .animate-slideInLeft {
      animation: slideInLeft 0.5s ease-out forwards;
      opacity: 0;
    }

    .animate-slideInRight {
      animation: slideInRight 0.5s ease-out forwards;
      opacity: 0;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
    }

    ::-webkit-scrollbar-track {
      background: #2c3e50;
    }

    ::-webkit-scrollbar-thumb {
      background: #ff6b6b;
      border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #ff5252;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .search-container {
        display: none;
      }

      .header {
        padding: 12px 16px;
      }

      .main-content {
        padding: 24px 16px 40px;
      }

      .page-title {
        font-size: 32px;
      }

      .block {
        grid-template-columns: 1fr;
      }

      .header-icons {
        gap: 12px;
      }

      .sell-btn {
        padding: 8px 16px;
        font-size: 13px;
      }

      .footer-content {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .page-title {
        font-size: 28px;
      }

      .footer-content {
        grid-template-columns: 1fr;
      }
    }