:root {
	--primary-color: #ff6600; /* AliExpress orange */
	--secondary-color: #e55a00;
	--secondary-color-transparent: #e55c00b9;
	--accent-color: #ff8533;
	--danger-color: #ff4444;
	--warning-color: #ffaa00;
	--success-color: #4caf50;
	--text-primary: #2c2c2c;
	--text-secondary: #666666;
	--bg-primary: #ffffff;
	--bg-secondary: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
	--bg-tertiary: #fff2e6;
	--bg-pattern: linear-gradient(45deg, rgba(255, 102, 0, 0.09) 25%, transparent 25%), 
	              linear-gradient(-45deg, rgba(255, 102, 0, 0.05) 25%, transparent 25%), 
	              linear-gradient(45deg, transparent 75%, rgba(255, 102, 0, 0.08) 75%), 
	              linear-gradient(-45deg, transparent 75%, rgba(255, 102, 0, 0.025) 75%);
	--bg-pattern-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
	--bg-pattern-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	--border-color: #ffcc99;
	--shadow-light: 0 2px 8px rgba(255, 102, 0, 0.1);
	--shadow-medium: 0 4px 15px rgba(255, 102, 0, 0.15);
	--shadow-heavy: 0 10px 30px rgba(255, 102, 0, 0.2);
	--border-radius: 16px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--gradient-primary: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
	--gradient-danger: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
}

[data-theme="dark"] {
	--text-primary: #f5f5f5;
	--text-secondary: #cccccc;
	--bg-primary: #1a1a1a;
	--bg-secondary: linear-gradient(135deg, #2d1810 0%, #331a0d 100%);
	--bg-tertiary: #2d2017;
	--bg-pattern: linear-gradient(45deg, rgba(255, 102, 0, 0.09) 25%, transparent 25%), 
	              linear-gradient(-45deg, rgba(255, 102, 0, 0.05) 25%, transparent 25%), 
	              linear-gradient(45deg, transparent 75%, rgba(255, 102, 0, 0.08) 75%), 
	              linear-gradient(-45deg, transparent 75%, rgba(255, 102, 0, 0.025) 75%);
	--border-color: #4d2600;
	--shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.4);
	--shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-primary);
	background-image: var(--bg-pattern);
	background-size: var(--bg-pattern-size);
	background-position: var(--bg-pattern-position);
	color: var(--text-primary);
	line-height: 1.6;
	transition: var(--transition);
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 80%, rgba(255, 102, 0, 0.05) 0%, transparent 50%),
	            radial-gradient(circle at 80% 20%, rgba(255, 68, 68, 0.05) 0%, transparent 50%),
	            radial-gradient(circle at 40% 40%, rgba(255, 170, 0, 0.03) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

main.container {
	margin-top: 30px;
}

header {
	padding: 15px 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 240, 0.95) 100%);
	border-bottom: 2px solid var(--primary-color);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: 0 2px 20px rgba(255, 102, 0, 0.1);
}

[data-theme="dark"] header {
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 24, 16, 0.95) 100%);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.75rem;
	font-weight: 700;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.logo::before {
	content: '⚠️';
	font-size: 1.2rem;
	filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.3));
}

.nav-center {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-center a {
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 500;
	transition: var(--transition);
	padding: 0.5rem 1rem;
	border-radius: 8px;
}

.nav-center a:hover,
.nav-center a.active {
	color: var(--primary-color);
	background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(255, 204, 153, 0.3) 100%);
	border: 1px solid var(--border-color);
	transform: translateY(-2px);
	box-shadow: var(--shadow-light);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.theme-toggle {
	background: var(--gradient-primary);
	border: none;
	color: white;
	padding: 0.6rem;
	border-radius: 12px;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(255, 102, 0, 0.3);
}

.theme-toggle:hover {
	transform: scale(1.1) rotate(10deg);
	box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Theme toggle icons */
.svg-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition);
    display: inline-block;
    vertical-align: middle;
}

.theme-toggle .svg-icon {
    width: 18px;
    height: 18px;
    animation: iconSpin 0.5s ease-in-out;
}

.logo .svg-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.3));
    animation: warningPulse 2s infinite alternate;
}

/* Animaciones */
@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes warningPulse {
    0% { 
        filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 2px 8px rgba(255, 102, 0, 0.6));
        transform: scale(1.1);
    }
}

/* Estados hover */
.theme-toggle:hover .svg-icon {
    animation: iconSpin 0.3s ease-in-out;
}

.logo:hover .svg-icon {
    animation: warningPulse 0.5s ease-in-out;
}

.mobile-menu-button {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.5rem;
	cursor: pointer;
}

/* Main Content */
main {
	min-height: calc(100vh - 80px);
	padding: 2rem 0;
}

.page {
	display: none;
	animation: fadeIn 0.4s ease-out;
	margin-bottom: 3em;
}

.page.active {
	display: block;
}

/* Link animation style */
a.link {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	text-decoration: none;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
	position: relative;
	/* Importante para los ::before y ::after */
}

a.link::before,
a.link::after {
	position: absolute;
	content: '';
	border-bottom: 3px solid var(--text-secondary);
	border-radius: 1em;
	bottom: .3em;
	transform: translateY(5px);
	transition: transform .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

a.link::before {
	transform: translateY(5px);
	width: 1em;
	transform-origin: left;
}

a.link::after {
	width: 82%;
	left: 1em;
	transform: translate(110%, 5px);
}

a.link:hover::before {
	transform: translateY(5px) scaleX(0.3);
}

a.link:hover::after {
	transform: translate(0, 5px);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Home Page */
.hero {
	background: var(--bg-secondary);
	border-radius: var(--border-radius);
	padding: 4rem 2rem;
	margin-bottom: 3rem;
	text-align: center;
	box-shadow: var(--shadow-medium);
	border: 2px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(255, 68, 68, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.hero h1 {
	position: relative;
	z-index: 1;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 4px 8px rgba(255, 102, 0, 0.2);
}

.hero p {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Estrellas con animación */
.loading-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    font-size: 1.5rem;
}

.star {
	color: var(--primary-color);
	filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.3));
	animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.cta-button {
	background: var(--gradient-primary);
	color: white;
	padding: 1.2rem 2.5rem;
	border: none;
	border-radius: var(--border-radius);
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
	display: inline-block;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.cta-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.6s;
}

.cta-button:hover {
	background: var(--gradient-primary);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.cta-button:hover::before {
	left: 100%;
}

.section {
	background: var(--bg-secondary);
	border-radius: var(--border-radius);
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: var(--shadow-medium);
	border: 2px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--gradient-primary);
}

.section h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
	font-weight: 600;
}

.recent-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.post-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius);
	padding: 1.8rem;
	box-shadow: var(--shadow-light);
	border: 2px solid var(--border-color);
	transition: var(--transition);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.post-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--gradient-primary);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.post-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 12px 30px rgba(255, 102, 0, 0.25);
	border-color: var(--primary-color);
}

.post-card:hover::before {
	opacity: 0.05;
}

.post-card > * {
	position: relative;
	z-index: 1;
}

.post-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.post-card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.post-card p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* Ranking Page */
.ranking-header {
	text-align: center;
	margin-bottom: 3rem;
}

.ranking-header h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.podium-container {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	margin: 3rem 0;
	gap: 1rem;
	flex-wrap: wrap;
}

.podium-place {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	min-width: 120px;
}

.podium-place:hover {
	transform: translateY(-5px);
}

.drone-image {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
	border: 2px solid var(--border-color);
}

.podium-base {
	border-radius: 8px 8px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	position: relative;
	margin-bottom: 0.5rem;
}

.first-place .podium-base {
	width: 100px;
	height: 120px;
	background: linear-gradient(135deg, #ffd700, #ffb300);
}

.second-place .podium-base {
	width: 90px;
	height: 100px;
	background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
}

.third-place .podium-base {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.drone-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-primary);
}

.ranking-list {
	background: var(--bg-secondary);
	border-radius: var(--border-radius);
	padding: 2rem;
	margin-top: 2rem;
	box-shadow: var(--shadow-light);
	border: 1px solid var(--border-color);
}

.ranking-list h2 {
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.ranking-item {
	display: flex;
	align-items: center;
	padding: 1.2rem;
	border-bottom: 1px solid var(--border-color);
	cursor: pointer;
	transition: var(--transition);
	border-radius: 12px;
	margin-bottom: 0.8rem;
	border: 2px solid transparent;
	background: var(--bg-primary);
}

.ranking-item:hover {
	background: var(--bg-secondary);
	border-color: var(--primary-color);
	transform: translateX(8px);
	box-shadow: var(--shadow-medium);
}

.ranking-item:last-child {
	border-bottom: none;
}

.ranking-item img {
	width: 60px;
	height: 45px;
	object-fit: cover;
	border-radius: 6px;
	margin-right: 1rem;
}

.ranking-position {
	font-weight: 700;
	font-size: 1.125rem;
	margin-right: 1rem;
	color: var(--primary-color);
	min-width: 40px;
}

.ranking-score {
	font-weight: 600;
	color: var(--secondary-color);
	margin-right: 1rem;
	min-width: 50px;
}

.ranking-name {
	font-weight: 500;
	color: var(--text-primary);
}

/* Posts Page */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	align-items: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.modal-content {
	background: var(--bg-primary);
	margin: 2rem auto;
	padding: 2.5rem;
	border-radius: var(--border-radius);
	max-width: 650px;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	box-shadow: var(--shadow-heavy);
	border: 3px solid var(--primary-color);
}

.modal-close {
	position: absolute;
	width: 35px;
	height: 35px;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-secondary);
	transition: var(--transition);
	padding: 0.5rem;
	border-radius: 50%;
	z-index: 1;

	line-height: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.modal-close:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

.modal-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.price-tag {
	position: absolute;
	bottom: 10px;
	right: 0px;
	width: 80px;
	height: 35px;
	background: var(--gradient-danger);
	color: white;
	font-weight: bold;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(15deg);
	z-index: 2;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
	animation: priceTagPulse 2s infinite alternate;
}

@keyframes priceTagPulse {
	0% { transform: rotate(15deg) scale(1); }
	100% { transform: rotate(15deg) scale(1.05); }
}

.price-tag::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 8px solid #ff4444;
}

.modal-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.modal-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.info-item {
	text-align: center;
	padding: 0.75rem;
	background: var(--bg-secondary);
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

.info-label {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-bottom: 0.25rem;
}

.info-value {
	font-weight: 600;
	color: var(--primary-color);
}

.modal-description {
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.yt-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: white;
  mask-image: url('icons/youtube.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  /* Para navegadores antiguos/webkit */
  -webkit-mask-image: url('icons/youtube.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.yt-video-button {
  display: flex;
  width: 150px;
  align-items: center;
  justify-self: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: #c4302b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-family: sans-serif;
}

.yt-video-button:hover {
  background-color: #a82722;
}

/* Score breakdown by features */
.score-breakdown {
	margin: 1.5rem 0;
	border: 2px solid var(--primary-color);
	border-radius: var(--border-radius);
	padding: 2rem;
	background: var(--bg-secondary);
	margin-top: 2rem;
	box-shadow: var(--shadow-medium);
	position: relative;
}

.score-breakdown::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary);
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.breakdown-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.total-score-wrapper {
	margin-bottom: 1.5rem;
	position: relative;
}

.total-score-bar {
	background: var(--bg-tertiary);
	border-radius: 2rem;
	height: 30px;
	position: relative;
	overflow: hidden;
}

.bar-filled-multi {
	display: flex;
	height: 100%;
	width: 100%;
}

.bar-segment {
	flex: none;
	height: 100%;
	position: relative;
	transition: 0.5s ease;
	background: repeating-linear-gradient(
		45deg,
		var(--secondary-color-transparent),
		var(--secondary-color-transparent) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
}

.bar-segment.performance.selected { 
    background: repeating-linear-gradient(
		45deg,
		rgba(255, 87, 51 , 0.5),
		rgba(255, 87, 51 , 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	); }
.bar-segment.material.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(239, 49, 77 , 0.5),
		rgba(239, 49, 77, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.battery.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(233, 30, 99, 0.5),
		rgba(233, 30, 99, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.flightTime.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(195, 35, 138, 0.5),
		rgba(195, 35, 138, 0.5), 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.protocol.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(156, 39, 176, 0.5),
		rgba(156, 39, 176, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.range_score.selected { 	
    background: repeating-linear-gradient(
		45deg,
		rgba(54, 126, 221, 0.5),
		rgba(54, 126, 221, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	); }
.bar-segment.safety.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(3, 169, 244, 0.5),
		rgba(3, 169, 244, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.sensors.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(40, 172, 162, 0.5),
		rgba(40, 172, 162, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.features.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(76, 175, 80, 0.5),
		rgba(76, 175, 80, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }
.bar-segment.usability.selected { 
    	background: repeating-linear-gradient(
		45deg,
		rgba(86, 158, 92, 0.5),
		rgba(86, 158, 92, 0.5) 10px,
		var(--bg-tertiary) 10px,
		var(--bg-tertiary) 20px
	);
 }

.bar-segment-filled {
	height: 100%;
	transition: 0.5s ease;
	background: var(--primary-color); /* color por defecto si no está seleccionada */
	border-radius: 0;
}

.bar-segment-filled.performance.selected { background: #f44336; }
.bar-segment-filled.material.selected { background: #EF314D; }
.bar-segment-filled.battery.selected { background: #E91E63; }
.bar-segment-filled.flightTime.selected { background: #C3238A; }
.bar-segment-filled.protocol.selected { background: #9C27B0; }
.bar-segment-filled.range_score.selected { background: #367EDD; }
.bar-segment-filled.safety.selected { background: #03A9F4; }
.bar-segment-filled.sensors.selected { background: #28ACA2; }
.bar-segment-filled.features.selected { background: #4CAF50; }
.bar-segment-filled.usability.selected { background: #569E5C; }

.total-score-text {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-weight: 600;
	line-height: 30px;
}

.category-detail {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border-color);
}

.category-detail summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-weight: 600;
	color: var(--text-primary);
}

.category-description {
	color: var(--text-secondary);
	margin: 0.5rem 0 0.75rem 0;
	font-size: 0.95rem;
}

.subcategory-list {
	list-style: none;
	padding-left: 0.5rem;
	margin-top: 0.25rem;
}

.subcategory-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.25rem 0;
	font-size: 0.9rem;
	color: var(--text-primary);
}

.score-value {
	background: var(--primary-color);
	color: white;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	margin-left: 0.5rem;
}

.score-value.performance { background: #f44336; }
.score-value.material { background: #EF314D; }
.score-value.battery { background: #E91E63; }
.score-value.flightTime { background: #C3238A; }
.score-value.protocol { background: #9C27B0; }
.score-value.range_score { background: #367EDD; }
.score-value.safety { background: #03A9F4; }
.score-value.sensors { background: #28ACA2; }
.score-value.features { background: #4CAF50; }
.score-value.usability { background: #569E5C; }

.score-value.tertiary {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

.category-description {
	padding: 0.5rem 0;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.tags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.tag {
	background: var(--gradient-primary);
	box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	font-size: 0.85rem;
	font-weight: 600;
	position: relative;
	overflow: hidden;
}

.tag::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s;
}

.tag:hover {
	transform: scale(1.1) rotate(-2deg);
	box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.tag:hover::before {
	left: 100%;
}

/* Elementos flotantes de acción */
.floating-warning {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: var(--gradient-danger);
	color: white;
	padding: 1rem;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
	z-index: 1000;
	animation: floatingBounce 3s ease-in-out infinite;
	cursor: pointer;
	font-size: 1.2rem;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes floatingBounce {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}

/* ============================= */
/* Estilos para Post Individual  */
/* ============================= */
#postContainer {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--border-color);
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
}

/* Encabezados principales */
#postContainer h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#postContainer .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-style: italic;
}

/* Subtítulos */
#postContainer h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    border-left: 6px solid var(--primary-color);
    padding-left: 0.75rem;
}

#postContainer h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

#postContainer h4 {
    font-size: 1.2rem;
    margin: 1rem 0 0.6rem;
    font-weight: 500;
    color: var(--accent-color);
}

/* Texto general */
#postContainer p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#postContainer b {
    font-weight: 700;
    color: var(--primary-color);
}

#postContainer i {
    font-style: italic;
    color: var(--text-secondary);
}

/* Enlaces */
#postContainer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

#postContainer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Listas */
#postContainer ul,
#postContainer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#postContainer ul li {
    margin-bottom: 0.5rem;
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

#postContainer ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

#postContainer ol li {
    margin-bottom: 0.5rem;
}

/* Responsividad */
@media (max-width: 768px) {
    #postContainer {
        padding: 1.5rem;
    }
    #postContainer h1 {
        font-size: 1.8rem;
    }
    #postContainer h2 {
        font-size: 1.4rem;
    }
    #postContainer h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #postContainer {
        padding: 1rem;
    }
    #postContainer h1 {
        font-size: 1.6rem;
    }
    #postContainer .subtitle {
        font-size: 1rem;
    }
}


/* Mobile hamburger menu */
/* Icono animado del menú hamburguesa */
.mobile-menu-button .hamburger {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 16px;
    justify-content: space-between;
}

.mobile-menu-button .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: var(--transition);
    transform-origin: center;
}

/* Animación del icono cuando está activo */
.mobile-menu-button.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
	background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
	border: 2px solid var(--primary-color);
	border-top: none;
	border-radius: 0 0 var(--border-radius) var(--border-radius);
	box-shadow: var(--shadow-heavy);
    z-index: 99;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
	color: var(--primary-color);
	background: var(--bg-secondary);
	border-left: 4px solid var(--primary-color);
}

.mobile-menu-list a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

/* Overlay para cerrar el menú */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Modificación a la regla existente del mobile-menu-button */
.mobile-menu-button {
    display: none;
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 101;
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-center {
		display: none;
	}

	.mobile-menu-button {
		display: block;
	}

	.hero {
		padding: 3rem 1.5rem;
	}

	.podium-container {
		flex-direction: row;
		gap: 1.5rem;
	}

	.podium-place {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: -15px;
	}

	.ranking-item {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.ranking-position,
	.ranking-score {
		min-width: auto;
	}

	.modal-content {
		margin: 1rem;
		padding: 1.5rem;
	}

	/* Scrollbar personalizado */
	.modal-content::-webkit-scrollbar {
		width: 8px;
	}
	
	.modal-content::-webkit-scrollbar-track {
		background: var(--bg-tertiary);
		border-radius: 4px;
	}
	
	.modal-content::-webkit-scrollbar-thumb {
		background: var(--gradient-primary);
		border-radius: 4px;
		border: 1px solid var(--border-color);
	}
	
	.modal-content::-webkit-scrollbar-thumb:hover {
		background: var(--secondary-color);
		box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
	}

	#modalContent > h2 {
		text-align: center;
	}

	.modal-info {
		grid-template-columns: 3fr 3fr 3fr;
	}

	.modal-description {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 0.75rem;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.recent-posts,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.ranking-item {
		flex-direction: column;
		text-align: center;
	}

	.ranking-item img {
		margin-right: 0;
		margin-bottom: 0.5rem;
	}
}