body {
      margin: 0;
      font-family: "Poppins", sans-serif;
      background: linear-gradient(180deg, #fdfbf5, #f6f6f6);
      color: #333;
      transition: all 0.3s ease-in-out;
      overflow-x: hidden;
    }

    header {
      background: linear-gradient(135deg, #fbc735, #f1a400);
      color: #222;
      text-align: center;
      padding: 70px 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    header h1 {
      margin: 0;
      font-size: 2.4rem;
      font-weight: 700;
    }

    header p {
      margin-top: 12px;
      font-size: 1.05rem;
    }

    section {
      max-width: 1200px;
      margin: 60px auto;
      padding: 0 20px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .card {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
      transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
      text-align: center;
      position: relative;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-bottom: 25px;
    }

    .card:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .card:hover img {
      transform: scale(1.05);
    }

    .card h2 {
      color: #fbc735;
      font-size: 1.3rem;
      margin-top: 20px;
      margin-bottom: 10px;
      padding: 0 15px;
    }

    .card p {
      font-size: 0.95rem;
      color: #444;
      line-height: 1.6;
      padding: 0 20px;
      margin: 0;
    }

    .icon {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(251, 199, 53, 0.9);
      color: #fff;
      font-size: 1.3rem;
      padding: 10px;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    footer {
      background: #222;
      color: #fff;
      text-align: center;
      padding: 30px;
      margin-top: 80px;
      font-size: 0.9rem;
    }

    /* 🌙 MODO OSCURO */
    body.dark-mode {
      background: #1b1b1b;
      color: #eaeaea;
    }

    body.dark-mode header {
      background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
      color: #fbc735;
    }

    body.dark-mode .card {
      background: #2a2a2a;
      box-shadow: 0 5px 14px rgba(0, 0, 0, 0.6);
    }

    body.dark-mode .card h2 {
      color: #fbc735;
    }

    body.dark-mode .card p {
      color: #ccc;
    }

    /* ===== EFECTOS ===== */
    .card.fade-out {
      opacity: 0;
      transform: scale(0.8);
      pointer-events: none;
    }

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      z-index: 10;
    }

    .overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    /* ===== TARJETA ACTIVA (POPUP) ===== */
    .card.active {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(1);
      width: 90%;
      max-width: 800px;
      z-index: 11;
      background: #fff;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
      border-radius: 12px;
      overflow-y: auto;
      max-height: 90vh;
      cursor: default;
    }

    .card.active::-webkit-scrollbar {
      width: 8px;
    }

    .card.active::-webkit-scrollbar-thumb {
      background: #fbc735;
      border-radius: 6px;
    }

    .card.active::-webkit-scrollbar-track {
      background: #eee;
    }

    body.dark-mode .card.active {
      background: #2a2a2a;
    }

    /* 🔹 Oculto por defecto */
    .card-content {
      display: none;
    }

    /* 🔹 Solo visible en la tarjeta activa */
    .card.active .card-content {
      display: block;
      margin-top: 10px;
      padding-bottom: 25px;
      opacity: 1;
    }

    .extra-images {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      margin-top: 15px;
    }

    .extra-images img {
      width: 250px;
      height: 200px;
      border-radius: 8px;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .extra-images img:hover {
      transform: scale(1.05);
    }

    .btn-volver {
      margin-top: 20px;
      background: #fbc735;
      border: none;
      padding: 10px 18px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s ease;
    }

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

    @media (max-width: 768px) {
      .card.active {
        width: 95%;
      }
    }