/*
/* Design Reyes - Sistema de diseño (derivado del estilo oficial del index) */
	Objetivo: reutilizar tokens + componentes base en TODO el sitio
*/

:root {
	/* Fondos — morado premium con resplandores dorados + grid de puntos */
	--bg-body: #0d0221;
	--bg-main:
radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1.5px),
radial-gradient(circle at 6% 12%, rgba(255, 214, 10, 0.10) 0%, transparent 28%),
radial-gradient(circle at 12% 20%, rgba(138, 11, 210, 0.85) 0%, transparent 38%),
radial-gradient(circle at 92% 10%, rgba(138, 11, 210, 0.72) 0%, transparent 36%),
radial-gradient(circle at 94% 90%, rgba(255, 214, 10, 0.08) 0%, transparent 24%),
radial-gradient(circle at 50% 92%, rgba(138, 11, 210, 0.66) 0%, transparent 40%),
radial-gradient(circle at 30% 66%, rgba(196, 100, 255, 0.32) 0%, transparent 30%),
		linear-gradient(160deg, #3a0e86 0%, #26095f 24%, #170542 50%, #0d0221 100%);

	/* Paneles */
	--panel: rgba(255, 255, 255, 0.04);
	--panel-soft: rgba(255, 255, 255, 0.03);
	--border: rgba(255, 255, 255, 0.09);

	/* Acentos — usar #8A0BD2 como morado principal */
	--accent: #8A0BD2;
	--accent-deep: #5b0ea3;
	--accent-soft: #b44bf0;
	--accent-alt: #f97316;
	--ok: #22c55e;
	--yellow: #FFD60A;
	--yellow-soft: #FFE873;
	--gradient-purple: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent-soft) 100%);
	--gradient-purple-yellow: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 55%, var(--yellow) 100%);
	--font-script: "Dancing Script", cursive;

	/* Texto */
	--text: #ffffff;
	--text-soft: #f3edff;
	--muted: #9b8ec4;

	/* Radios */
	--radius-lg: 16px;
	--radius-md: 10px;

	/* Sombras — ninguna en botones */
	--shadow-soft: none;
	--shadow-card: none;
	--shadow-hover: none;
	--shadow-accent: none;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 18px;
	scroll-behavior: smooth;
}

body {
	font-family: "Poppins", sans-serif;
	background: #0d0221;
	background-image: var(--bg-main);
	background-size: 26px 26px, auto, auto, auto, auto, auto, auto, auto;
	background-attachment: fixed;
	color: var(--text);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ANIMACIONES (compat) */

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeLeft {
	from {
		opacity: 0;
		transform: translateX(16px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeRight {
	from {
		opacity: 0;
		transform: translateX(-16px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes glowLoop {
	0% {
		text-shadow: 0 0 6px rgba(124, 58, 237, 0.4);
	}

	50% {
		text-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
	}

	100% {
		text-shadow: 0 0 6px rgba(124, 58, 237, 0.4);
	}
}

.animate-fade-up {
	opacity: 0;
	animation: fadeUp 0.7s ease-out forwards;
}

.animate-fade-left {
	opacity: 0;
	animation: fadeLeft 0.7s ease-out forwards;
}

.animate-fade-right {
	opacity: 0;
	animation: fadeRight 0.7s ease-out forwards;
}

.delay-1 {
	animation-delay: 0.15s;
}

.delay-2 {
	animation-delay: 0.3s;
}

.delay-3 {
	animation-delay: 0.45s;
}

.delay-4 {
	animation-delay: 0.6s;
}

.loop-glow {
	animation: glowLoop 4s ease-in-out infinite;
}

/* BARRA + NAVBAR (estándar index) */

.info-bar {
	text-align: center;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	background: rgba(7, 1, 20, 0.95);
	border-bottom: 1px solid var(--border);
	color: var(--text-soft);
}

.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	background: linear-gradient(135deg, rgba(34, 7, 78, 0.95) 0%, rgba(58, 15, 108, 0.92) 50%, rgba(34, 7, 78, 0.95) 100%);
	border-bottom: 1px solid rgba(138, 11, 210, 0.3);
}

.nav-inner {
	width: 92%;
	max-width: 2200px;
	margin: 0 auto;
	padding: 0.85rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	font-size: 1.1rem;
}

.nav-brand img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.95rem;
}

.nav-links a {
	padding: 0.4rem 1rem;
	border-radius: 8px;
	color: var(--muted);
	transition: color 0.2s, background 0.2s;
	font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
	background: rgba(138, 11, 210, 0.22);
	color: var(--text);
}

.nav-toggle {
	display: none;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	padding: 0.4rem 0.7rem;
	cursor: pointer;
}

/* BOTONES (estándar index) */

.btn {
	border: none;
	border-radius: 8px;
	padding: 0.55rem 1.25rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
	white-space: nowrap;
}

.btn-primary {
	background: #fff;
	color: var(--accent-deep);
}

.btn-primary:hover {
	background: var(--yellow-soft);
	color: #1e0550;
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	border: 1.5px solid rgba(138, 11, 210, 0.35);
	color: var(--accent-soft);
}

.btn-outline:hover {
	background: rgba(138, 11, 210, 0.12);
	border-color: var(--accent);
	color: #fff;
}

.btn-orange {
	background: linear-gradient(135deg, #ff6b00, #ff8f3d);
	color: #fff;
}

.btn-orange:hover {
	background: linear-gradient(135deg, #ff8000, #ffa65d);
	transform: translateY(-1px);
}

/* INPUTS / FORMULARIOS (estándar) */

input,
select,
textarea {
	font-family: "Poppins", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	background: rgba(26, 10, 46, 0.6);
	border: 1px solid rgba(124, 58, 237, 0.2);
	color: var(--text);
	border-radius: 12px;
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: rgba(165, 163, 199, 0.85);
}

input:focus,
select:focus,
textarea:focus {
	border-color: rgba(124, 58, 237, 0.55);
	background: rgba(26, 10, 46, 0.8);
}

/* TARJETAS / CONTENEDORES (base) */

.dr-card,
.panel,
.card {
	background: var(--panel);
	border: 1px solid rgba(139, 92, 246, 0.16);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

	 COMPAT: estilos para cabecera tipo dr-*

.dr-page {
	min-height: 100vh;
}

.dr-header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	background: linear-gradient(135deg, rgba(34, 7, 78, 0.95) 0%, rgba(58, 15, 108, 0.92) 50%, rgba(34, 7, 78, 0.95) 100%);
	border-bottom: 1px solid rgba(138, 11, 210, 0.3);
}

.dr-header-inner {
	width: 92%;
	max-width: 2200px;
	margin: 0 auto;
	padding: 0.85rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.dr-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	font-size: 1.1rem;
}

.dr-logo img {
	width: 40px;
	height: 40px;
}

.dr-header-links {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.95rem;
}

.dr-header-links a {
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	color: var(--muted);
	transition: 0.25s;
}

.dr-header-links a:hover {
	background: rgba(124, 58, 237, 0.28);
	color: var(--text);
}

.dr-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-radius: 999px;
	padding: 0.55rem 1.25rem;
	font-weight: 600;
	background: linear-gradient(135deg, var(--accent), var(--accent-soft));
	color: #fff;
	box-shadow: var(--shadow-accent);
}

/* RESPONSIVE NAV (compat con index) */

@media (max-width: 768px) {
	.nav-toggle {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 56px;
		left: 0;
		right: 0;
		background: linear-gradient(135deg, rgba(26, 5, 53, 0.97), rgba(48, 12, 90, 0.94));
		backdrop-filter: blur(28px);
		-webkit-backdrop-filter: blur(28px);
		flex-direction: column;
		padding: 1.25rem;
		gap: .6rem;
		border-bottom: 1px solid rgba(138, 11, 210, 0.25);
		box-shadow: 0 12px 40px rgba(138, 11, 210, 0.12);
		transform: translateY(-110%);
		opacity: 0;
		visibility: hidden;
		transition: all .35s cubic-bezier(.4, 0, .2, 1);
		z-index: 999;
	}

	.nav-links.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.nav-links a {
		width: 100%;
		text-align: center;
		padding: .75rem 1rem;
		font-size: 1rem;
	}

	.nav-links .btn {
		width: 100%;
		margin-top: .4rem;
	}
}

/* NAVBAR AUTH - BOTÓN USUARIO LOGUEADO */

.nav-links .btn.is-logged-in,
.nav-links button.is-logged-in,
header .btn.is-logged-in,
.btn.btn-primary.is-logged-in,
button.btn-primary.is-logged-in,
#loginBtn.is-logged-in,
#loginButton.is-logged-in,
[data-login-btn].is-logged-in {
	background: linear-gradient(135deg, #ff6b00, #ff8f3d) !important;
	color: #ffffff !important;
	box-shadow: none !important;
	border-color: transparent !important;
}

.nav-links .btn.is-logged-in:hover,
.nav-links button.is-logged-in:hover,
header .btn.is-logged-in:hover,
.btn.btn-primary.is-logged-in:hover,
button.btn-primary.is-logged-in:hover,
#loginBtn.is-logged-in:hover,
#loginButton.is-logged-in:hover,
[data-login-btn].is-logged-in:hover {
	background: linear-gradient(135deg, #ff8000, #ffa65d) !important;
	box-shadow: none !important;
	transform: translateY(-2px);
}

.nav-links .btn.is-logged-in i,
.nav-links button.is-logged-in i,
header .btn.is-logged-in i,
.btn.is-logged-in i,
button.is-logged-in i {
	margin-right: 0.3rem;
}

/* SWEETALERT2 - ESTILOS DESIGN REYES */

.swal2-popup.dr-swal-popup,
.swal2-popup {
	border-radius: 20px !important;
	border: 1px solid rgba(139, 92, 246, 0.3) !important;
	box-shadow:
0 25px 60px rgba(0, 0, 0, 0.5),
0 0 40px rgba(124, 58, 237, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.swal2-title.dr-swal-title,
.swal2-title {
	color: #f9f5ff !important;
	font-family: 'Poppins', sans-serif !important;
	font-weight: 700 !important;
	font-size: 1.5rem !important;
}

.swal2-html-container {
	color: #c4b5fd !important;
	font-family: 'Poppins', sans-serif !important;
}

.swal2-confirm.dr-swal-confirm,
.swal2-confirm {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
	border-radius: 12px !important;
	font-weight: 600 !important;
	padding: 12px 24px !important;
	font-family: 'Poppins', sans-serif !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
	transform: translateY(-2px) !important;
	box-shadow: none !important;
}

.swal2-cancel.dr-swal-cancel,
.swal2-cancel {
	background: rgba(55, 65, 81, 0.8) !important;
	border-radius: 12px !important;
	font-weight: 500 !important;
	padding: 12px 24px !important;
	font-family: 'Poppins', sans-serif !important;
	transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
	background: rgba(75, 85, 99, 0.9) !important;
}

/* Icono de límite/tiempo */
.swal2-icon.swal2-info {
	border-color: #f59e0b !important;
	color: #f59e0b !important;
}

.swal2-icon.swal2-info::before {
	color: #f59e0b !important;
}

/* Icono de warning */
.swal2-icon.swal2-warning {
	border-color: #f59e0b !important;
	color: #f59e0b !important;
}

/* Animaciones */
@keyframes swalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.swal2-show {
	animation: swalFadeIn 0.3s ease-out !important;
}