/* ==========================================================================
   L-BRAILLE - STYLE.CSS (Responsive Layouts & Interactive Components)
   Estilos específicos para cada vista generada por scripts.js
   ========================================================================== */

/* Contenedor general si se usa */
#container {
	font-family: inherit;
	position: relative;
	width: 100%;
	min-height: 100vh;
}

/* --------------------------------------------------------------------------
   VISTA DE REGISTRO INICIAL (#inicial)
   -------------------------------------------------------------------------- */
.inicial-view {
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(16px, 4vw, 40px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.inicial-title {
	font-family: 'Outfit', Georgia, sans-serif !important;
	font-size: clamp(28px, 6vw, 46px) !important;
	color: #ffffff !important;
	margin: 0 0 16px !important;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.braille-word-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 12px auto;
	width: 100%;
	max-width: 580px;
}

.inicial-bienv-text {
	color: #ffffff !important;
	text-align: center !important;
	font-size: clamp(22px, 4vw, 32px) !important;
	margin: 16px 0 8px !important;
	letter-spacing: 2px;
	font-weight: 700;
}

.inicial-subtext {
	margin: 12px 0 20px !important;
	font-size: clamp(16px, 3vw, 22px) !important;
	color: #e2e8f0 !important;
	font-weight: 600;
}

.inicial-input {
	width: 100% !important;
	max-width: 440px !important;
	font-size: clamp(18px, 3.5vw, 24px) !important;
	text-align: center !important;
	padding: 14px 20px !important;
	border-radius: 12px !important;
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	background: rgba(255, 255, 255, 0.95) !important;
	color: #0f172a !important;
	font-family: inherit !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
	outline: none !important;
	transition: all 0.25s ease !important;
	box-sizing: border-box;
}

.inicial-input:focus {
	border-color: #00b060 !important;
	box-shadow: 0 0 0 4px rgba(0, 176, 96, 0.3) !important;
}

.inicial-btn-ok {
	width: 100% !important;
	max-width: 300px !important;
	border-radius: 14px !important;
	padding: 14px 24px !important;
	margin: 24px auto 12px !important;
	background: linear-gradient(135deg, #00b060 0%, #00874a 100%) !important;
	font-size: clamp(18px, 3.5vw, 24px) !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 6px 20px rgba(0, 176, 96, 0.4) !important;
	transition: all 0.2s ease !important;
	font-family: inherit !important;
}

.inicial-btn-ok:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 25px rgba(0, 176, 96, 0.6) !important;
}

/* --------------------------------------------------------------------------
   VISTA DE TEORÍA (teoriagen)
   -------------------------------------------------------------------------- */
.teoria-view {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(16px, 3vw, 32px);
	box-sizing: border-box;
	background-size: cover !important;
	background-position: center !important;
	position: relative;
}

.teoria-header-title {
	font-size: clamp(20px, 4vw, 32px) !important;
	color: #ffffff !important;
	margin: 0 0 16px !important;
	text-align: center;
	text-shadow: 0 2px 6px rgba(0,0,0,0.6);
	font-weight: 800;
	width: 100%;
}

.teoria-card-container {
	width: 100%;
	max-width: 820px;
	background: rgba(10, 15, 50, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 20px;
	padding: clamp(16px, 3vw, 32px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto 60px;
}

.teoria-image-box {
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto 20px;
}

.teoria-image-box img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.4);
	display: block;
}

.teoria-text-content {
	width: 100%;
	text-align: left;
	color: #f1f5f9;
	font-size: clamp(15px, 2.2vw, 18px);
	line-height: 1.65;
}

.teoria-text-content h3 {
	margin: 0 0 14px;
	font-weight: 400;
	font-size: inherit;
}

/* --------------------------------------------------------------------------
   VISTA EXPLORACIÓN ALFABETO Y NÚMEROS (alfanumgen)
   -------------------------------------------------------------------------- */
.alfanum-view {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(16px, 3vw, 30px);
	box-sizing: border-box;
	background-size: cover !important;
	background-position: center !important;
	position: relative;
}

.alfanum-title {
	font-size: clamp(20px, 4vw, 32px) !important;
	color: #ffffff !important;
	margin: 0 0 16px !important;
	text-shadow: 0 2px 6px rgba(0,0,0,0.6);
	font-weight: 800;
	text-align: center;
}

.alfanum-active-piece {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 10px auto 20px;
	min-height: 100px;
}

.alfanum-grid {
	width: 100%;
	max-width: 860px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
	gap: 8px;
	padding: 16px;
	background: rgba(10, 15, 50, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 18px;
	margin: 0 auto 70px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.alfanum-grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	cursor: pointer;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	padding: 4px;
	transition: transform 0.2s ease, background 0.2s ease;
}

.alfanum-grid img:hover {
	transform: scale(1.15);
	background: rgba(255, 255, 255, 0.25);
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* --------------------------------------------------------------------------
   VISTA DE JUEGOS Y ACTIVIDADES (activitygen)
   -------------------------------------------------------------------------- */
.activity-view {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(16px, 3vw, 28px);
	box-sizing: border-box;
	background-size: cover !important;
	background-position: center !important;
	position: relative;
}

.activity-title {
	font-size: clamp(20px, 4vw, 32px) !important;
	color: #ffffff !important;
	margin: 0 0 6px !important;
	text-shadow: 0 2px 6px rgba(0,0,0,0.6);
	font-weight: 800;
}

.activity-question {
	font-size: clamp(16px, 3vw, 22px) !important;
	color: #cbd5e1 !important;
	margin: 0 0 16px !important;
	font-weight: 600;
}

.activity-word-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 16px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 16px;
	margin: 0 auto 20px;
	max-width: 95vw;
}

.activity-answers-grid {
	width: 100%;
	max-width: 720px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 0 auto 20px;
}

@media (max-width: 600px) {
	.activity-answers-grid {
		grid-template-columns: 1fr;
	}
}

.activity-answer-btn {
	background: url('assets/answerbg.svg') no-repeat center center;
	background-size: 100% 100%;
	min-height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 12px;
	transition: transform 0.2s ease, filter 0.2s ease;
	padding: 8px 16px;
}

.activity-answer-btn:hover {
	transform: scale(1.03);
	filter: brightness(1.15) drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.activity-answer-btn h1 {
	font-size: clamp(16px, 3vw, 22px) !important;
	color: #ffffff;
	margin: 0;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.activity-score-badge {
	font-size: clamp(16px, 3vw, 20px) !important;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.5);
	padding: 8px 20px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin: 10px auto;
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN Y ACCIONES FLOTANTES (Back, Tip, Close)
   -------------------------------------------------------------------------- */
.nav-actions-bar {
	position: fixed;
	bottom: 16px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 clamp(16px, 4vw, 32px);
	box-sizing: border-box;
	pointer-events: none;
	z-index: 100;
}

.nav-action-btn {
	pointer-events: auto;
	width: clamp(52px, 8vw, 72px);
	height: clamp(52px, 8vw, 72px);
	cursor: pointer;
	border-radius: 50%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-action-btn:hover {
	transform: scale(1.12);
}

.nav-action-btn:active {
	transform: scale(0.94);
}

/* --------------------------------------------------------------------------
   MODAL DE CONFIRMACIÓN / FEEDBACK RESPONSIVE
   -------------------------------------------------------------------------- */
.responsive-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(5, 10, 30, 0.85) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	padding: 20px !important;
	box-sizing: border-box !important;
	z-index: 1000 !important;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.responsive-modal-overlay.is-visible {
	display: flex !important;
}

.responsive-modal-card {
	background: rgba(15, 23, 74, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	padding: clamp(20px, 4vw, 36px);
	max-width: 480px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

