/* ============================================================
   WYVRN — estilos compartidos por TODAS las páginas
   (menú, modal de login, footer, variables de color)
   Cada página enlaza este archivo + su CSS propio.
   ============================================================ */

:root {
	--cyan:        #3bbedf;
	--cyan-soft:   rgba(54, 208, 255, 0.4);
	--teal:        #26B9B7;
	--ink:         #111111;
	--gray-page:   #D8D8D8;
	--gray-light:  #EFEFEF;
	--white:       #ffffff;
	--radius:      12px;
	--radius-pill: 200px;
	--shadow:      0 4px 20px rgba(0, 0, 0, 0.12);
	--font:        'Grenze', serif;
}

* {
	font-family: var(--font);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--gray-page);
	color: var(--ink);
}

img { max-width: 100%; }

/* ===================== HEADER / NAV ===================== */
header {
	width: 100%;
	background: linear-gradient(to bottom, var(--cyan-soft), var(--gray-page));
}

.navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100px;
	padding: 0 40px;
	position: relative;
}

.navigation ul {
	list-style: none;
	display: flex;
	gap: 36px;
}

.navigation ul li a {
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	position: relative;
}

.navigation ul li a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--teal);
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.3s ease-in-out;
}

.navigation ul li a:hover::after,
.navigation ul li a.active::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.logo {
	width: 90px;
	height: auto;
	transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.1); }

.login-button {
	font-size: 16px;
	font-weight: 900;
	color: var(--ink);
	width: 130px;
	height: 40px;
	background: var(--gray-light);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s ease;
}

.login-button:hover { background: var(--cyan); }

/* contenedor de acciones a la derecha (idioma + login) */
.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* selector de idioma */
.lang-select {
	font-family: var(--font);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	background: var(--gray-light);
	border: none;
	border-radius: var(--radius);
	height: 40px;
	padding: 0 10px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lang-select:hover { background: var(--cyan); }

/* botón hamburguesa (solo móvil) */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.nav-toggle span {
	width: 26px;
	height: 3px;
	background: var(--ink);
	border-radius: 2px;
	transition: 0.3s;
}

/* ===================== LOGIN / REGISTER MODAL ===================== */
.wrapper {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 400px;
	max-width: 92vw;
	height: 440px;
	backdrop-filter: saturate(150%) blur(50px);
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 20px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 500ms ease, height 200ms ease;
	z-index: 1000;
}

.wrapper.active-popup { transform: translate(-50%, -50%) scale(1); }
.wrapper.active { height: 500px; }
.wrapper .form-box { width: 100%; padding: 40px; }
.wrapper .form-box.login { transition: transform 180ms ease; transform: translateX(0); }
.wrapper.active .form-box.login { transition: none; transform: translateX(-400px); }
.wrapper .form-box.register { position: absolute; transition: none; transform: translateX(400px); }
.wrapper.active .form-box.register { transition: transform 180ms ease; transform: translateX(0); }

.wrapper .close-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 45px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 1;
}

.form-box h2 { font-size: 32px; font-weight: 900; text-align: center; }

.input-box {
	position: relative;
	width: 100%;
	height: 50px;
	border-bottom: 1px solid var(--ink);
	margin: 30px 0;
}

.input-box label {
	position: absolute;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	font-size: 16px;
	font-weight: 200;
	pointer-events: none;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label { visibility: hidden; }

.input-box input {
	width: 100%;
	height: 100%;
	background: transparent;
	border: none;
	outline: none;
	font-size: 18px;
	font-weight: 200;
	padding: 0 35px 0 5px;
}

.input-box .icon {
	position: absolute;
	right: 8px;
	font-size: 16px;
	line-height: 57px;
}

.remember-forgot {
	font-size: 14px;
	margin: -15px 0 15px;
	display: flex;
	justify-content: space-between;
}

.remember-forgot label input { accent-color: var(--teal); margin-right: 3px; }
.remember-forgot a { color: var(--ink); font-size: 14px; text-decoration: none; }
.remember-forgot a:hover { text-decoration: underline; }

.wrapper .btn {
	width: 100%;
	height: 40px;
	background: var(--gray-light);
	border: none;
	outline: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 900;
	transition: background 0.2s ease;
}

.wrapper .btn:hover { background: var(--cyan); }

.login-register { font-size: 14px; margin: 25px 0 10px; text-align: center; }
.login-register p a { color: var(--ink); text-decoration: none; font-weight: 600; }
.login-register p a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer {
	background-color: var(--gray-light);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: auto;
	padding-bottom: 20px;
}

.footer h1 { font-weight: 900; font-size: 40px; margin: 20px 0; }
.footer-sections { display: flex; justify-content: center; flex-wrap: wrap; }
.footer-sections > div {
	display: flex;
	flex-direction: column;
	width: 220px;
	margin: 0 60px 20px;
}
.footer h2 { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.footer p { font-weight: 200; font-size: 18px; }
.footer .contact-info p { user-select: text; }
.footer-socials { display: flex; gap: 18px; justify-content: center; margin-top: 4px; }
.footer-socials a { font-size: 16px; }
.footer-socials img { width: 28px; height: 28px; transition: transform 0.2s ease; }
.footer-socials img:hover { transform: scale(1.15); }

/* botón negro reutilizable (CTA) */
.pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	color: var(--white);
	background: var(--ink);
	border: none;
	border-radius: var(--radius-pill);
	padding: 16px 40px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.pill-btn:hover { background: var(--cyan); color: var(--ink); transform: translateY(-2px); }

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 860px) {
	.navigation { padding: 0 20px; }
	.nav-toggle { display: flex; }

	.navigation ul {
		position: absolute;
		top: 100px;
		left: 0;
		width: 100%;
		flex-direction: column;
		gap: 0;
		background: var(--gray-light);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		z-index: 999;
	}

	.navigation.open ul { max-height: 320px; }
	.navigation ul li { width: 100%; text-align: center; }
	.navigation ul li a { display: block; padding: 16px 0; font-size: 18px; }
	.navigation ul li a::after { display: none; }

	.logo { order: -1; }
}

/* ===================== BARRA DE SCROLL PERSONALIZADA ===================== */
/* Firefox */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--cyan) var(--gray-light);
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(var(--cyan), var(--teal));
	border-radius: 10px;
	border: 3px solid var(--gray-light);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ===================== ANIMACIONES AL HACER SCROLL ===================== */
/* La clase .reveal la añade main.js; si no hay JS, no se oculta nada. */
.reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* ===================== ETIQUETAS DE ESTADO DE PRODUCTO ===================== */
.status-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	color: #fff;
}
.status-badge.status-free { background: #1a8f5e; }
.status-badge.status-beta { background: #b8632a; }
.status-badge.status-soon { background: #555; }

/* Precio con descuento de lanzamiento */
.price-was { text-decoration: line-through; opacity: 0.5; font-weight: 700; font-size: 0.62em; margin-right: 8px; vertical-align: middle; }
.price-now { color: #e23b3b; }
.discount-badge { display: inline-block; background: #e23b3b; color: #fff; font-weight: 800; font-size: 13px; line-height: 1; padding: 5px 9px; border-radius: var(--radius-pill, 999px); letter-spacing: 0.5px; }
.buy-secondary { background: transparent !important; border: 1px solid var(--cyan) !important; color: var(--cyan) !important; }
.buy-secondary:hover { background: var(--cyan) !important; color: var(--ink) !important; }

/* botón deshabilitado (productos "próximamente") */
.buy-disabled {
	background: #b0b0b0 !important;
	color: #f0f0f0 !important;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none !important;
	opacity: 0.6;
}