/* ───── 1. Variables & Reset ───── */
:root {
  --bg: #05070c;
  --glass: rgba(255, 255, 255, 0.06);
  --accent: #6cf0ff;
  --text-main: #c2c2c2;
  --text-dim: #737373;
  --border-glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* ───── 2. Tipografía ───── */
h1, h2, h3 { color: #fff; }

h2, h3 {
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.title_dest { color: var(--accent); }
.title_tld { opacity: 0.3; }

/* ───── 3. Layout Estructural ───── */

main > section:not(.hero) {
  max-width: 900px;
  margin: 5rem auto;
  padding: 0 2rem;
}

/* ───── 4. Header ───── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5,7,12,0.9), rgba(5,7,12,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.prose {
	font-size:12px;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-inner h1 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.header-inner h1 small { opacity: 0.3; font-size: 0.8rem; }

header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* ───── 5. Hero & Canvas ───── */
.hero {
  position: relative;
  width: 100%;
  height: 45vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(5,7,12,0.4), rgba(5,7,12,0.8));
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; 
 position: relative;
  z-index: 2;
  height: 100%;
  width:100%;
  display: flex;
  place-content: center;
  text-align: center;
  background: linear-gradient( to bottom, rgba(5,7,12,0.4), rgba(5,7,12,0.8) );
 
  flex-direction: column;
}
#note-display{
	position: absolute;
	bottom:10rem;
	left:1rem;
	font-size:9px;
	text-align: left;
}

/* Overlay de información en Hero */
#demo-info-overlay {
position: absolute;
  bottom: 5%;
  right: 5%;
  color: #555;
  text-align: right;
  pointer-events: none;
  opacity: 1;
  font-weight: lighter;
 max-width:40rem;
  font-size: 10px;

}
#demo-description{ display:none;}
.text-content h1 {
  font-size: 10px;
  letter-spacing: 15px;
  filter: blur(10px);
  color:#444;
   text-transform: uppercase;
  transition: all 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}
.btnt{cursor:pointer;}
#demo-author{
	 text-transform: uppercase;
}
.is-visible h1 { letter-spacing: 2px; filter: blur(0); opacity: 1; }
.is-visible p, .is-visible #demo-author { opacity: 0.8; transform: translateY(0); }

/* ───── 6. Componentes (Cards & Grids) ───── */
.card, .cards .block-inner, .cards .content, .bcard > .content {
  background: var(--glass);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
}
.cards .btn{
	font-size:10px;
}
.block-inner{
  display: flex;
  flex-direction: column;
}
.block-inner .media-group{
	order:-1;
}
.media-group img{
	border-radius: 1rem;overflow:hidden;
	object-fit: cover;
}

.cards.light .content{
	background:transparent;
	border:0;
}

        .lang-nav { position: relative; display: inline-block; margin-left: 1rem; }
        .lang-nav ul { display: none; position: absolute; top: 100%; right: 0; border-radius:0.5rem; border: 1px solid rgba(255, 255, 255, 0.1); list-style:none; padding:0; margin:0; min-width: 60px; z-index:99; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
        .lang-nav:hover ul { display: block;border-radius:0 0 0.5rem 0.5rem;overflow:hidden; }
        .lang-nav a { display: block; padding: 0.5rem 1rem; text-decoration: none; color: #c2c2c2; font-size: 10px; }
        .lang-nav a:hover {  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--accent); }
        .lang-current { cursor: pointer; border-radius:0.5rem 0.5rem 0 0;}
		.lang-current:hover { cursor: pointer; border-radius:0.5rem 0.5rem 0 0;}
		
		
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

/* ───── 7. Botones ───── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(120, 90, 255, 0.15),
    rgba(0, 200, 255, 0.12)
  );
  border-color: rgba(120, 140, 255, 0.35);
  color: #ffffff;
  box-shadow:
    0 0 0 rgba(0,0,0,0);
}

.btn-toolbar {
  color: #b0b0b0;
   font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-toolbar:hover, .btn-toolbar.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--accent);
}

/* ───── 8. Separadores & Animaciones ───── */
.sep, .separador-secundario {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sep { height: 4px; background: #000; box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); }
.separador-secundario { height: 2px; background: #1a1a1a; opacity: 0.7; }

.sep::before, .separador-secundario::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 100%;
  animation: flujo 4s linear infinite;
}

.sep::before {
  background: linear-gradient(90deg, transparent, #00f2ff, #fff, #7000ff, transparent, #00f2ff, #fff, #7000ff, transparent);
}

.separador-secundario::before {
  background: linear-gradient(90deg, transparent, #444, #999, #444, transparent, #444, #999, #444, transparent);
  animation-duration: 8s;
}

@keyframes flujo {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───── 9. Footer ───── */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap:1rem;
  font-size:10px;
  max-width:900px;
  margin:auto;
  color:#555;
}
footer .container .btn{
	 color:#555;
}
footer .container .btn:hover{
	 color:#fff;
}

.acc { display: flex; gap: 1rem; margin-top:1rem;margin-left:auto;justify-content: flex-end;}


@media (max-width:980px){
	.hero-content{
			font-size:12px;
	}
	.hero-content > h1{
		font-size:19px;
		
	}
	.title_tld{
		font-size:12px;
	}
	.hero{
		height:60vh;
	}
	#hud-phase{
		display:none;
	}
	.lang-current{
		white-space: nowrap;
	}
	.header-inner h1 small{
		display:none;
	}
	body{
		font-size:10px;
	}
	footer .container{
		flex-direction: column;
		align-items: center;justify-items: center;
	}
	footer .acc{
		margin-left:0;
	}
}
