body {
      font-family: 'Poppins', Arial, sans-serif;
      background: #f5f5f5;
      margin: 0;
      color: #333;
      transition: background 0.3s, color 0.3s;
    }

    main {
      max-width: 1100px;
      margin: 40px auto;
      padding: 20px;
      min-height: 100vh;
    }

    h1 {
      text-align: center;
      color: #003F6B;
      margin-bottom: 30px;
    }

    .ofertas-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
    }

    @media (max-width: 900px) {
      .ofertas-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

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

    .oferta {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
      padding: 20px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .oferta:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }

    .oferta img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      margin-bottom: 10px;
    }

    .titulo {
      font-weight: 600;
      color: #003F6B;
      text-align: center;
      font-size: 1.1rem;
      margin-bottom: 8px;
    }

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

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background: #fff;
      border-radius: 10px;
      padding: 25px;
      max-width: 650px;
      width: 90%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      overflow-y: auto;
      max-height: 85vh;
      transition: background 0.3s, color 0.3s;
    }

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

    .modal-header h2 {
      margin: 0;
      font-size: 1.3rem;
      color: #003F6B;
    }

    .close {
      cursor: pointer;
      font-size: 1.5rem;
      color: #333;
      font-weight: bold;
    }

    .modal-body p {
      margin: 8px 0;
      color: #333;
      line-height: 1.5;
    }

    .modal-body a {
      display: inline-block;
      margin-top: 12px;
      padding: 10px 15px;
      background: #003F6B;
      color: #fff;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
    }

    .modal-body a:hover {
      background: #005999;
    }

    .btn-volver {
      display: inline-block;
      margin-bottom: 25px;
      padding: 10px 15px;
      background: #003F6B;
      color: #fff;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
    }

    .btn-volver:hover {
      background: #005999;
    }

    /* 🌙 MODO OSCURO (usa la clase global .dark-mode) */
    body.dark-mode {
      background: #121212;
      color: #f5f5f5;
    }

    body.dark-mode h1 {
      color: #F9C031;
    }

    body.dark-mode .oferta {
      background: #1e1e1e;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .titulo {
      color: #F9C031;
    }

    body.dark-mode .fecha {
      color: #ffffffff;
    }

    body.dark-mode .modal-content {
      background: #1f1f1f;
      color: #ffffffff;
    }

    body.dark-mode .modal-header h2 {
      color: #F9C031;
    }

    body.dark-mode .close {
      color: #f1f1f1;
    }

    body.dark-mode .modal-body a {
      background: #F9C031;
      color: #000;
    }

    body.dark-mode .modal-body a:hover {
      background: #ffdd57;
    }

    body.dark-mode .btn-volver {
      background: #F9C031;
      color: #000;
    }

    body.dark-mode .btn-volver:hover {
      background: #ffdd57;
    }

    body.dark-mode .modal-body p {
      color: white;
    }