* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.78)),
    url('img/fondo.png') center center / cover no-repeat fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 140px 30px 30px;
  position: relative;
}

.app-shell {
  width: 100%;
  max-width: 560px;
  position: relative;
}

.main-box {
  width: 100%;
  max-width: 520px;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}

.title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
}

.subtitle {
  margin: 0 0 26px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 15px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 16px;
  outline: none;
}

.button {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(90deg, #d4af37, #f4d472, #d4af37);
  color: #111;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.message.error {
  background: rgba(180, 35, 35, .25);
  border: 1px solid rgba(255, 120, 120, .25);
  color: #ffb3b3;
}

.result {
  margin-top: 20px;
  background: rgba(255,255,255,.96);
  color: #111;
  border-radius: 16px;
  padding: 18px;
}

.logos-panel {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 50;
}

.logo-link {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  padding: 10px;
  backdrop-filter: blur(5px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.logo-link:hover {
  transform: scale(1.06);
  border-color: rgba(255,255,255,.28);
  background: rgba(0,0,0,.65);
}

.logo-link.active {
  border-color: rgba(244, 212, 114, .85);
  box-shadow: 0 0 0 2px rgba(244, 212, 114, .18) inset;
}

.logo-link img {
  width: 100%;
  height: 100%;
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

.mini-admin-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.mini-admin-link:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,.72);
  border-color: rgba(244,212,114,.35);
}

.mini-admin-link.icon-only {
  width: 58px;
  height: 58px;
}

.user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.user-icon svg {
  width: 24px;
  height: 24px;
  fill: #f4d472;
  display: block;
}

@media (max-width: 980px) {
  .page {
    padding: 90px 24px 24px;
    align-items: flex-start;
  }

  .app-shell {
    max-width: 100%;
    margin-top: 22px;
  }

  .logos-panel {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
  }

  .logo-link {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .logo-link img {
    max-width: 46px;
    max-height: 46px;
  }

  .main-box {
    padding: 24px 18px;
  }

  .title {
    font-size: 34px;
  }
}

.admin-body {background:linear-gradient(135deg,#080b14 0%,#121a2c 45%,#1f2942 100%)}
.admin-page {min-height:100vh;padding:28px}
.premium-card {background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 60px rgba(0,0,0,.35);backdrop-filter:blur(14px);border-radius:28px}
.admin-login-card {max-width:520px;margin:40px auto;padding:34px}
.admin-login-card h1,.settings-card h1 {margin:10px 0 8px;font-size:38px}
.admin-login-card p,.settings-card p,.dashboard-sidebar p,.muted,.admin-help {color:rgba(255,255,255,.78)}
.badge {display:inline-block;padding:8px 12px;border-radius:999px;background:rgba(244,212,114,.14);border:1px solid rgba(244,212,114,.28);color:#f4d472;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dashboard-shell {max-width:1380px;margin:0 auto;display:grid;grid-template-columns:320px 1fr;gap:22px}
.dashboard-sidebar {padding:24px;display:flex;flex-direction:column;justify-content:space-between;min-height:calc(100vh - 56px);position:sticky;top:28px}
.dashboard-sidebar h2 {margin:14px 0 8px;font-size:28px;color:#fff}
.dashboard-nav {display:flex;flex-direction:column;gap:12px;margin-top:24px}
.nav-link {padding:14px 16px;border-radius:16px;text-decoration:none;color:#fff;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-weight:700}
.nav-link:hover,.nav-link.active {background:rgba(244,212,114,.12);border-color:rgba(244,212,114,.35)}
.nav-link.danger:hover {background:rgba(185,50,50,.18);border-color:rgba(255,120,120,.28)}
.dashboard-main {display:flex;flex-direction:column;gap:18px}
.topbar {padding:18px 22px;display:flex;justify-content:space-between;align-items:center;color:#fff}
.status-pill {padding:10px 14px;border-radius:999px;background:rgba(80,200,120,.14);border:1px solid rgba(80,200,120,.24);font-weight:800}
.settings-card {padding:28px;color:#fff}
.label {display:block;margin:8px 0 8px;font-size:14px;font-weight:700;color:rgba(255,255,255,.88)}
.grid-3 {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.message.success {background:rgba(30,130,65,.22);border:1px solid rgba(109,226,145,.24);color:#b8ffca}
@media (max-width:1100px) {.dashboard-shell{grid-template-columns:1fr}.dashboard-sidebar{min-height:auto;position:static}.grid-3{grid-template-columns:1fr}}


.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244,212,114,.14);
  border: 1px solid rgba(244,212,114,.28);
  color: #f4d472;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platform-keywords-preview {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.55;
}

.platform-keywords-label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: #f4d472;
}

.platform-keywords-list {
  color: rgba(255,255,255,.86);
}

.textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}

.keywords-block {
  margin-top: 20px;
  padding-top: 10px;
}

.keywords-header h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.keywords-header p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.keyword-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 720px) {
  .keywords-grid {
    grid-template-columns: 1fr;
  }

  .main-box {
    max-width: 100%;
  }
}

.keywords-block{border-top:1px solid rgba(255,255,255,.12);margin-top:24px;padding-top:24px}.keywords-header{margin-bottom:8px}


.section-title {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #f4d472;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.platform-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
}

.platform-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.platform-card-header h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.platform-card-header p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.conditions-wrap {
  margin-top: 16px;
  padding-top: 8px;
}

.conditions-title {
  margin-bottom: 12px;
  color: #f4d472;
  font-size: 16px;
  font-weight: 800;
}

.condition-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.main-box-compact {
  max-width: 500px !important;
  padding: 28px 24px !important;
}

@media (max-width: 1100px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .platform-card-header,
  .condition-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}







.platform-keywords-preview {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.platform-keywords-label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #f4d472;
  font-size: 16px;
}

.platform-keywords-list {
  display: block;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  max-width: 90%;
  margin: 0 auto;
}
