  body { background:#0d1117; color:#f0f6fc; font-family:"Inter",system-ui,sans-serif; margin:0 }
  header {
    background: linear-gradient(90deg, #161b22 0%, #1c2128 100%);
    border-bottom: 1px solid #30363d;
    padding: 2rem 1.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  .title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #f0f6fc;
    letter-spacing: -0.5px;
  }
  .title span {
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .subtitle {
    margin-top: .4rem;
    font-size: 1rem;
    color: #8b949e;
    font-weight: 400;
  }
  .divider {
    width: 60px;
    height: 3px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    border-radius: 2px;
  }

  .container { max-width:1200px; margin:0 auto; padding:1.5rem }

  /* ==== NUEVAS SECCIONES ==== */
  .section-title {
    text-align: center;
    margin: 0.5rem 0 0.2rem; /* margen más ajustado */
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
  }

  .section-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 1.5rem; /* más compacto */
    font-size: 0.92rem;
  }

  .section-dark {
    background: #11161c;
    padding: 0.5rem 0 0.2rem; /* mucho menos margen superior */
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
  }

  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  @keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ==== BLOQUE DE FECHAS ==== */
  .updates { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem; 
    margin-bottom: 2rem; 
    /*justify-items: center;*/
  }

  .update-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #30363d;
    background: #1c2128;
    width: 100%;
    max-width: 260px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  /* ✅ centrado perfecto en móvil */
  @media (max-width: 768px) {
    .updates {
      display: grid;
      grid-template-columns: minmax(auto, 260px);
      justify-content: center;
    }
    .update-card {
      width: auto; /* 👈 evita que el fondo se estire de más */
    }
  }

  .update-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .update-card img {
    width: 70px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    background: #0d1117;
    flex-shrink: 0;
  }
  .update-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    line-height: 1.2;
  }
  .update-info .prov-name {
    font-weight: 600;
  }
  .update-info .label {
    color: #8b8c8
  }
  .update-card img:hover { transform:scale(1.05); }

  /* ==== TARJETAS ==== */
  .grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem }
  .card{ background:#1c2128; border:1px solid #30363d; border-radius:16px; padding:1.25rem; display:flex; flex-direction:column; transition:.25s; box-shadow:0 2px 6px rgba(0,0,0,.2) }
  .card:hover{ transform:translateY(-3px); box-shadow:0 6px 12px rgba(0,0,0,.3) }
  .brand{ display:flex; align-items:center; gap:1rem; margin-bottom:1.2rem }
  .brand img{ width:120px; height:70px; object-fit:cover; border-radius:10px; background:#0d1117 }
  .brand-name{ font-weight:600; font-size:1.15rem }
  .best{ margin-left:auto; font-weight:700; color:#5dd39e }

  .provider-grid{ display:flex; flex-wrap:wrap; gap:.4rem }
  .prov-btn{ flex:1 1 70px; min-width:70px; max-width:100px; border-radius:10px; padding:.4rem .3rem; text-align:center; cursor:pointer; transition:.2s; border:1.5px solid #30363d; background:transparent; color:#f0f6fc }
  .prov-btn:hover{ background:rgba(255,255,255,.04); transform:translateY(-2px); box-shadow:0 3px 8px rgba(0,0,0,.3) }
  .prov-btn .percent{ font-size:1rem; font-weight:700 }
  .prov-btn .provider-name{ font-size:.7rem; color:#8b949e }

  .prov-beruby{ border-color:#EB4950; color:#EB4950 }
  .prov-igraal{ border-color:#EA6531; color:#EA6531 }
  .prov-woolsocks{ border-color:#F4C644; color:#F4C644 }
  .prov-mapfre {
    border-color: #D71920;
    color: #D71920;
    
  }

  /* ==== MODAL ==== */
  .modal{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:100 }
  .modal-content{ background:#161b22; border:1px solid #30363d; border-radius:16px; width:90%; max-width:640px; max-height:90vh; overflow-y:auto; box-shadow:0 6px 18px rgba(0,0,0,.5); animation:fadeIn .25s }
  .modal-header{ padding:1rem 1.25rem; border-radius:16px 16px 0 0; display:flex; align-items:center; justify-content:space-between }
  .modal-header h2{ margin:0; font-size:1.1rem; color:#fff }
  .modal-close{ cursor:pointer; font-size:1.3rem; color:#fff }
  .modal-body{ padding:1.5rem }
  .modal-brand{ text-align:center; margin-bottom:1rem }
  .modal-brand img{ width:120px; height:70px; object-fit:cover; border-radius:8px; background:#0d1117 }
  .modal-cashback{ text-align:center; font-size:1.4rem; font-weight:700; margin:.5rem 0 1rem }
  .price-grid{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom:1rem }
  .price-card{ background:#1c2128; border:1px solid #30363d; border-radius:8px; padding:.4rem .8rem; font-size:.85rem }
  .price-card.available{ border-color:#238636; color:#5dd39e }
  .modal-body h3{ margin-top:1.5rem; font-size:1rem }
  .modal-body p{ white-space:pre-line; line-height:1.5; color:#c9d1d9 }
  .btn-ref{ display:inline-block; margin-top:1.8rem; padding:.75rem 1.25rem; border-radius:8px; color:#fff; text-decoration:none; font-weight:600; transition:.2s; text-align:center }

  @keyframes fadeIn{ from{opacity:0; transform:translateY(-10px)} to{opacity:1; transform:translateY(0)} }

  .sort-btn {
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .sort-btn:hover {
    opacity: 0.9;
  }

  /* ==== FOOTER ==== */
  .modal-footer {
    position: sticky;
    bottom: 0;
    background: #161b22;
    border-top: 1px solid #30363d;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.4);
  }
  .modal-footer .btn-ref { margin: 0; width: 100%; max-width: 280px; }

  .footer {
    background: linear-gradient(90deg, #161b22 0%, #1c2128 100%);
    border-top: 1px solid #30363d;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #8b949e;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.2px;
  }
  .footer span {
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
  }
  .footer p { margin: 0; transition: opacity 0.3s ease; }
  .footer:hover p { opacity: 0.85; }
  .footer .version {
    font-size: 0.8rem;
    color: #6e7681;
    margin-left: 0.5rem;
  }

  /* ==== CÓDIGOS DE REFERIDO (CON COLOR CORPORATIVO) ==== */
  .referral-category {
    margin-bottom: 2.5rem;
  }

  .referral-category h3 {
    font-size: 1.5rem;
    color: #f0f6fc;
    margin-bottom: 1rem;
    border-bottom: 2px solid #30363d;
    padding-bottom: 0.4rem;
    text-align: left;
  }

  /* Grid adaptativo sin solapamientos */
  .referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-items: center;
  }

  /* En pantallas grandes, exactamente 4 columnas */
  @media (min-width: 1200px) {
    .referral-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* Tarjeta individual */
  .referral-card {
    width: 100%;
    max-width: 260px;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    color: #fff; /* texto blanco por defecto */
  }
  .referral-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
  }

  .referral-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.8rem;
  }

  .referral-header img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    background: #0d1117;
    margin-bottom: 0.6rem;
    padding: 4px;
    background: rgba(255,255,255,0.15);
  }

  .referral-brand {
    font-weight: 700;
    font-size: 1.15rem;
  }

  .referral-description {
    font-size: 0.95rem;
    margin: 0.6rem 0 0.8rem;
    line-height: 1.4;
    opacity: 0.95;
  }

  .referral-code {
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-weight: 600;
    font-family: monospace;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 0.95rem;
  }

  .referral-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .referral-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    background: rgba(255,255,255,0.2);
    border: none;
  }
  .referral-btn:hover {
    background: rgba(255,255,255,0.35);
  }

  .referral-conditions-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: 0.3s;
  }
  .referral-conditions-btn:hover {
    background: rgba(255,255,255,0.15);
  }

  /* === BOTONES FLOTANTES IR ARRIBA / ABAJO === */
  .scroll-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
  }

  .scroll-btn {
    background: linear-gradient(90deg, #EB4950, #EA6531, #F4C644);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0.7;
  }

  .scroll-btn:hover {
    transform: scale(1.1);
    opacity: 1;
  }

  /* === ICONOS DE BUNDLE (TODO EN UNO / +) === */
  .bundle-icon {
    font-size: 0.8rem;
    margin-left: 4px;
  }
  .bundle-todo { color: #F4C644; }   /* Amarillo */
  .bundle-todo-plus { color: #4FA9FF; } /* Azul */