
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#5b647a;
  --line:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(15,23,42,.12);
  --maxw:1120px;
  --gap:14px;
}

html[data-theme="dark"]{
  --bg:#0b1020;
  --card:#0f1630;
  --text:#e9eefc;
  --muted:#a9b3d3;
  --line:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ height:auto; min-height:100%; }

body{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(47,107,255,.16), transparent 60%),
    radial-gradient(1200px 700px at 95% 10%, rgba(20,184,166,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(122,162,255,.25), transparent 60%),
    radial-gradient(1200px 700px at 95% 10%, rgba(155,255,207,.12), transparent 55%),
    var(--bg);
}

[lang="ar"]{
  direction:rtl;
  text-align:right;
  unicode-bidi:isolate;
}

a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:22px 18px 38px; }

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}

.brand h1{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600;
}

.brand h1 span:last-child{
  opacity:.7;
}

.brandDotcom{
  opacity:.65;
  font-weight:500;
}

.brand24{
  color:#d4a800; /* amarillo más oscuro */
  font-weight:700;
}
html[data-theme="dark"] .brand24{
  color:#facc15; /* amarillo original */
}

.logo{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.tagline{
  margin:2px 0 0;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.pill{
  border:1px solid var(--line);
  background:rgba(15,23,42,.04);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:transform .05s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  white-space:nowrap;
}

html[data-theme="dark"] .pill{
  background:rgba(255,255,255,.06);
}

.pill:hover{ background:rgba(15,23,42,.07); }
html[data-theme="dark"] .pill:hover{ background:rgba(255,255,255,.09); }
.pill:active{ transform:translateY(1px); }

.pill.primary{
  border-color:rgba(47,107,255,.35);
  background:rgba(47,107,255,.12);
}

html[data-theme="dark"] .pill.primary{
  border-color:rgba(122,162,255,.40);
  background:rgba(122,162,255,.18);
}

#themeBtn{
  width:40px;
  height:40px;
  padding:0;
  border-radius:50%;
  font-size:16px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
}

.hero{
  margin-top:8px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
}

html[data-theme="dark"] .hero{
  background:transparent;
}

.detailTop{
  display:block;
}

.mainPane, .card{
  background:linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.55));
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(15,23,42,.10);
}

html[data-theme="dark"] .mainPane,
html[data-theme="dark"] .card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}

.mainPane{ padding:18px; }

.breadcrumb{
  margin-bottom:14px;
  color:var(--muted);
  font-size:13px;
}

.appHead{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.appTopRow{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.appMetaMain{
  min-width:0;
  flex:1 1 auto;
}

.appIconXL{
  width:92px;
  height:92px;
  border-radius:24px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  overflow:hidden;
  flex:0 0 auto;
}

html[data-theme="dark"] .appIconXL{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.appIconXL img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.appTitle{
  margin:0;
  font-size:30px;
  line-height:1.15;
  letter-spacing:.1px;
}

.byline{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
}

.rating{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}

.downloads{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

.star{
  color:#f59e0b;
  font-size:14px;
}

.subrow{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}

.badge{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  color:var(--muted);
  max-width:100%;
  white-space:nowrap;
}

html[data-theme="dark"] .badge{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.badge.cat{
  color:#1d3fa8;
  border-color:rgba(47,107,255,.25);
  background:rgba(47,107,255,.10);
}

html[data-theme="dark"] .badge.cat{
  color:#d7ddff;
  border-color:rgba(122,162,255,.25);
  background:rgba(122,162,255,.12);
}

.badge.lang{
  color:#0f766e;
  border-color:rgba(20,184,166,.22);
  background:rgba(20,184,166,.10);
}

html[data-theme="dark"] .badge.lang{
  color:#dfffe9;
  border-color:rgba(155,255,207,.22);
  background:rgba(155,255,207,.10);
}

.lead{
  margin-top:14px;
  color:var(--muted);
  font-size:15px;
}

.ctaRow{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.btnMain{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  min-height:48px;
  padding:0 24px;

  border-radius:16px;

  background:linear-gradient(135deg, #2f6bff, #14b8a6);
  color:#ffffff;

  font-weight:600;
  font-size:15px;
  letter-spacing:.3px;

  border:0;
  cursor:pointer;

  box-shadow:0 10px 24px rgba(47,107,255,.30);

  transition:transform .05s ease, box-shadow .15s ease, opacity .15s ease;
}
.btnMain:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(47,107,255,.40);
}

.btnMain:active{
  transform:translateY(1px);
  box-shadow:0 6px 16px rgba(47,107,255,.25);
}
.btnIcon{
  font-size:18px;
  line-height:1;
}

html[data-theme="dark"] .btnMain{
  background:linear-gradient(135deg, #4f83ff, #2dd4bf);
  color:#ffffff;

  box-shadow:0 10px 26px rgba(0,0,0,.45);
}
html[data-theme="dark"] .btnMain:hover{
  box-shadow:0 14px 34px rgba(0,0,0,.60);
}
html[data-theme="dark"] .btnMain:active{
  box-shadow:0 6px 16px rgba(0,0,0,.40);
}

.btnSoft{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(15,23,42,.04);
  cursor:pointer;
}

.reportLink{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:14px;
  text-decoration:none;
  padding:4px 0;
  transition:color .15s ease, opacity .15s ease;
}

.reportLink:hover{
  color:var(--text);
  text-decoration:none;
  opacity:.85;
}

.reportIcon{
  font-size:13px;
  line-height:1;
  opacity:.85;
}

html[data-theme="dark"] .btnSoft{
  background:rgba(255,255,255,.06);
}

.section{
  margin-top:18px;
}

.sectionHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}

.sectionHead h2{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}

.hint{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.shots{
  display:flex;
  gap:14px;
  overflow:auto;
  padding-bottom:4px;
}

.shot{
  flex:0 0 auto;
  width:170px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(15,23,42,.04);
  box-shadow:0 10px 26px rgba(15,23,42,.10);
  cursor:pointer;
}

html[data-theme="dark"] .shot{
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}

.shot img{
  width:100%;
  height:auto;
  display:block;
}

.descCard{
  padding:18px;
}

.descText{
  color:var(--text);
  font-size:15px;
  line-height:1.7;
}

.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:var(--gap);
}

@media (min-width:720px){
  .grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

@media (min-width:980px){
  .grid{ grid-template-columns:repeat(4, minmax(0,1fr)); }
}

.card{
  overflow:hidden;
  min-height:112px;
  transition:transform .08s ease, border-color .15s ease, background .15s ease;
}

.card:hover{
  transform:translateY(-1px);
  border-color:rgba(15,23,42,.18);
}

.cardInner{
  padding:12px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  min-width:0;
}

.appIcon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  flex:0 0 auto;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.context-links{
  margin-top:12px;
  font-size:14px;
  color:var(--muted);
}
.context-links a{
  color:inherit;
  text-decoration:underline;
}

html[data-theme="dark"] .appIcon{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.appIcon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.meta{
  min-width:0;
  flex:1 1 auto;
}

.appName{
  margin:0;
  font-size:14px;
  line-height:1.25;
  letter-spacing:.1px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reportModalBg{
  display:none;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.42);
  z-index:9999;
  padding:18px;
}

.reportModal{
  max-width:560px;
  margin:60px auto 0;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--card);
  box-shadow:var(--shadow);
}

html[data-theme="dark"] .reportModal{
  background:var(--card);
}

#reportMsg{
  margin-top:10px;
}

#reportSuccessBox{
  margin-top:12px;
}

.field{
  margin-top:12px;
}

.field label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  color:var(--muted);
}

.field select,
.field textarea{
  width:100%;
  border:1px solid var(--line);
  background:rgba(15,23,42,.04);
  border-radius:14px;
  padding:12px;
  outline:none;
}

html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea{
  background:rgba(255,255,255,.06);
}

html[data-theme="dark"] select{
  background:#0f1630;
  color:#e9eefc;
  border-color:rgba(255,255,255,.15);
}

html[data-theme="dark"] select option{
  background:#0f1630;
  color:#e9eefc;
}

.msgOk{
  margin-top:10px;
  color:#0f766e;
  font-size:13px;
}
.msgErr{
  margin-top:10px;
  color:#b91c1c;
  font-size:13px;
}
html[data-theme="dark"] .msgOk{
  color:#34d399;
}
html[data-theme="dark"] .msgErr{
  color:#f87171;
}


#ssCruz{
	position:relative;
	top:-2px;
}

footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

footer a{
  color:inherit;
  text-decoration:none;
  opacity:0.9;
}

footer a:hover{
  text-decoration:underline;
  opacity:1;
}

.footerSep{
  display:inline;
}

.footerLegal{
  display:inline;
}

@media (max-width:560px){
  header{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  
  #footerText,
  .footerLegal{
    display:block;
    margin:6px 0;
  }

  .footerSep{
    display:none;
  }


  .brand{
    justify-content:flex-start;
  }

  .tagline{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .topActions{
    justify-content:space-between;
  }

  .topActions .pill{
    flex:1 1 auto;
    text-align:center;
  }

	.appTopRow{
	  align-items:flex-start;
	  gap:14px;
	}

	.appIconXL{
	  width:88px;
	  height:88px;
	  border-radius:22px;
	}

	.appMetaMain{
	  min-width:0;
	}

	.appTitle{
	  font-size:24px;
	  line-height:1.18;
	}

  #createBtn{
    flex:2 1 auto;
  }

  .appTitle{
    font-size:24px;
  }

  .shot{
    width:190px;
  }
  
  #ssCruz{
  	position:relative;
  	top:0px;
  }
  
   .grid .cardInner{
    flex-direction:column;
    gap:10px;
  }

  .grid .appIcon{
    width:56px;
    height:56px;
    border-radius:16px;
  }

  .grid .meta{
    width:100%;
    min-width:0;
  }

  .grid .appName{
    white-space:normal;
    overflow:hidden;
    text-overflow:clip;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    line-height:1.3;
    min-height:0;
  }

  .grid .appName + .subrow{
    margin-top:10px;
  }

}


.ssModalBg{
  display:none;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.78);
  z-index:10000;
  padding:20px;
}

.ssModal{
  max-width:980px;
  max-height:90vh;
  margin:20px auto 0;
  position:relative;
  text-align:center;
}

.ssModal img{
  max-width:100%;
  max-height:86vh;
  border-radius:18px;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.ssClose{
  position:absolute;
  right:0;
  top:-6px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}



