/* ===== RESET & BASE STYLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	color: #333;
	background: linear-gradient(135deg, #6ee2f5 0%, #1de9b6 50%, #2193b0 100%);
	min-height: 100vh;
	overflow-x: hidden;
}

/* ===== HERO HEADER ===== */
.hero-header {
	background: linear-gradient(135deg, rgba(33, 60, 90, 0.92) 0%, rgba(33, 147, 176, 0.85) 100%);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 0.8rem 0 0 0;
	margin-bottom: 0.3rem;
}

.hero-title {
	font-family: 'Playfair Display', serif;
	font-size: 2.1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.2rem;
	text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.85);
	font-weight: 300;
	margin-bottom: 0.2rem;
	letter-spacing: 0.01em;
	margin-left: 40px;
}

.stats-card {
	background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	padding: 2rem;
	text-align: center;
	border: 1px solid rgba(255,255,255,0.2);
}

.stats-number {
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.5rem;
}

.stats-label {
	color: rgba(255,255,255,0.8);
	font-size: 1rem;
	font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.main-content {
	padding: 2rem 0;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
	margin-bottom: 0;
	margin-top: 0;
	padding: 0 0 0 0;
	border-bottom: 1.5px solid rgba(33,147,176,0.10);
	background: transparent;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
}

.filter-tabs-inner {
	display: flex;
	gap: 0;
	width: 100%;
}

.filter-btn {
	color: #fff !important;
	background: transparent;
	border: none;
	font-weight: 500;
	font-size: 1.05rem;
	padding: 0.6em 1.2em;
	border-radius: 22px;
	transition: background 0.18s, color 0.18s;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.filter-btn i {
	color: #e0f7fa !important;
	font-size: 1.1em;
	transition: color 0.18s;
}

.filter-btn.active, .filter-btn:focus {
	background: rgba(255,255,255,0.13);
	color: #fff !important;
}

.filter-btn.active i, .filter-btn:focus i {
	color: #fff !important;
}

.filter-btn:hover {
	background: rgba(255,255,255,0.18);
	color: #fff !important;
}

.filter-btn:hover i {
	color: #fff !important;
}

@media (max-width: 900px) {
	.filter-tabs-inner {
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	.filter-btn {
		padding-left: 1rem;
		padding-right: 1rem;
		font-size: 1rem;
	}
}

/* ===== NEWS GRID ===== */
.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.news-card-wrapper {
	perspective: 1000px;
}

.news-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.news-card:hover {
	transform: translateY(-10px) rotateX(5deg);
	box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* ===== CARD IMAGE ===== */
.card-image-container {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-card:hover .card-image {
	transform: scale(1.1);
}

.card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(79,172,254,0.9) 0%, rgba(0,242,254,0.9) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.news-card:hover .card-overlay {
	opacity: 1;
}

.overlay-content {
	color: #fff;
	text-align: center;
	font-weight: 600;
	font-size: 1.1rem;
}

.overlay-content i {
	display: block;
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.card-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(0,0,0,0.7);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	backdrop-filter: blur(10px);
}

.card-badge i {
	margin-right: 0.5rem;
}

/* ===== CARD CONTENT ===== */
.card-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-meta {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #666;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.meta-item i {
	color: #4facfe;
}

.view-count {
	font-weight: 600;
}

.card-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.card-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.card-title a:hover {
	color: #4facfe;
}

.card-summary {
	color: #666;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	flex: 1;
}

/* ===== CARD ACTIONS ===== */
.card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
}

.btn-read-more {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-read-more:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(79,172,254,0.3);
	color: #fff;
}

.action-buttons {
	display: flex;
	gap: 0.5rem;
}

.btn-action {
	background: #f8f9fa;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-action:hover {
	background: #4facfe;
	color: #fff;
	transform: scale(1.1);
}

/* ===== LOAD MORE BUTTON ===== */
.btn-load-more {
	background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.btn-load-more:hover {
	background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.2);
	color: #fff;
}

/* ===== FOOTER ===== */
.footer {
	background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
	backdrop-filter: blur(20px);
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 2rem 0;
	margin-top: 4rem;
}

.footer-text {
	color: rgba(255,255,255,0.8);
	margin: 0;
	font-weight: 500;
}

.social-links {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}

.social-link {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.social-link:hover {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

/* ===== DRAWER DE COMENTARIOS ===== */
.news-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 500px;
	height: 100vh;
	background: #fff;
	box-shadow: -10px 0 30px rgba(0,0,0,0.2);
	transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.news-drawer.open {
	right: 0;
}

.drawer-header {
	padding: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	background: linear-gradient(135deg, #6ee2f5 0%, #1de9b6 50%, #2193b0 100%);
	color: #fff;
}

.drawer-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255,255,255,0.2);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.drawer-close:hover {
	background: rgba(255,255,255,0.3);
	transform: scale(1.1);
}

.drawer-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.drawer-meta {
	font-size: 0.9rem;
	opacity: 0.9;
}

.drawer-content {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.drawer-article {
	margin-bottom: 2rem;
}

.drawer-article img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.drawer-article h3 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #333;
}

.drawer-article p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 1rem;
}

/* ===== SECCIÓN DE COMENTARIOS ===== */
.comments-section {
	border-top: 1px solid #e0e0e0;
	padding-top: 1.5rem;
}

.comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.comments-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
}

.comments-count {
	background: #e3f2fd;
	color: #1976d2;
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 500;
}

.comments-list {
	margin-bottom: 1.5rem;
}

.comment-item {
	display: flex;
	gap: 0.8rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 12px;
	border-left: 3px solid #4facfe;
}

.comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.comment-content {
	flex: 1;
}

.comment-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.comment-author {
	font-weight: 600;
	color: #333;
	font-size: 0.9rem;
}

.comment-date {
	font-size: 0.8rem;
	color: #999;
}

.comment-text {
	color: #555;
	line-height: 1.5;
	font-size: 0.9rem;
}

/* ===== FORMULARIO DE COMENTARIOS ===== */
.comment-form {
	border-top: 1px solid #e0e0e0;
	padding-top: 1.5rem;
	background: #fff;
}

.comment-input-container {
	position: relative;
	margin-bottom: 1rem;
}

.comment-input {
	width: 100%;
	min-height: 80px;
	padding: 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	resize: vertical;
	font-family: inherit;
	font-size: 0.9rem;
	transition: border-color 0.3s ease;
}

.comment-input:focus {
	outline: none;
	border-color: #4facfe;
}

.comment-input::placeholder {
	color: #999;
}

.comment-char-count {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	font-size: 0.8rem;
	color: #999;
}

.comment-submit {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.comment-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.comment-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.login-prompt {
	text-align: center;
	padding: 2rem;
	color: #666;
}

.login-prompt i {
	font-size: 2rem;
	color: #4facfe;
	margin-bottom: 1rem;
}

.login-prompt p {
	margin-bottom: 1rem;
}

.login-btn-drawer {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.login-btn-drawer:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
	color: #fff;
	text-decoration: none;
}

/* ===== OVERLAY ===== */
.drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.news-drawer {
		width: 100%;
		max-width: none;
	}
	
	.drawer-header {
		padding: 1rem;
	}
	
	.drawer-content {
		padding: 1rem;
	}
	
	.drawer-article h3 {
		font-size: 1.1rem;
	}
}

/* ===== ESTADOS DE CARGA ===== */
.comments-loading {
	text-align: center;
	padding: 2rem;
	color: #666;
}

.comments-loading i {
	font-size: 2rem;
	color: #4facfe;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.comments-empty {
	text-align: center;
	padding: 2rem;
	color: #666;
}

.comments-empty i {
	font-size: 3rem;
	color: #ddd;
	margin-bottom: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}
	
	.news-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.filter-tabs .row {
		flex-wrap: wrap;
		gap: 1rem;
	}
	
	.filter-btn {
		margin: 0;
	}
	
	.card-actions {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}
	
	.btn-read-more {
		justify-content: center;
	}
	
	.action-buttons {
		justify-content: center;
	}
	
	.stats-card {
		margin-top: 2rem;
	}
	
	.social-links {
		justify-content: center;
		margin-top: 1rem;
	}
}

@media (max-width: 480px) {
	.hero-header {
		padding: 2rem 0 0 0;
	}
	
	.hero-title {
		font-size: 2rem;
	}
	
	.card-content {
		padding: 1rem;
	}
	
	.card-title {
		font-size: 1.2rem;
	}
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* ===== LOADING STATES ===== */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #4facfe;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Badge para el source (dominio del sitio web) */
.badge-source {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.7);
    color: #2193b0;
    font-weight: 600;
    border-radius: 16px;
    padding: 0.35em 0.9em;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(33,147,176,0.08);
    border: 1px solid rgba(33,147,176,0.15);
    backdrop-filter: blur(2px);
    margin-bottom: 0.5em;
    transition: background 0.2s;
}
.badge-source i {
    margin-right: 0.5em;
    color: #1de9b6;
    font-size: 1em;
}

.login-box {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 500;
}
.user-info img {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(33,147,176,0.10);
}

.icon-btn {
	background: transparent;
	border: none;
	color: #6bb3c9;
	font-size: 1.25rem;
	padding: 0.2rem 0.4rem;
	border-radius: 50%;
	transition: background 0.18s, color 0.18s;
	cursor: pointer;
	margin-left: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
	border: none;
}
.icon-btn:hover, .icon-btn:focus {
	background: rgba(33,147,176,0.10);
	color: #2193b0;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #444;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(33,147,176,0.08);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.45em 1.2em 0.45em 1em;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    cursor: pointer;
    outline: none;
    min-width: 0;
}
.login-btn img {
    margin-right: 8px;
    width: 22px;
    height: 22px;
    display: inline-block;
}
.login-btn:hover, .login-btn:focus {
    background: #f5f5f5;
    color: #2193b0;
    box-shadow: 0 4px 16px rgba(33,147,176,0.10);
    text-decoration: none;
}

.login-text {
    display: inline;
}
.login-mobile-text {
    display: none;
}

@media (max-width: 480px) {
    .login-text {
        display: none !important;
    }
    .login-mobile-text {
        display: none;
    }
    .login-btn {
        padding: 0.45em !important;
        min-width: 0 !important;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    .login-btn img {
        margin-right: 0;
    }
}

.toast-like {
    position: fixed;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%) scale(0.98);
    min-width: 220px;
    max-width: 90vw;
    background: rgba(33, 60, 90, 0.97);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
    text-align: center;
    letter-spacing: 0.01em;
}
.toast-like.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}
.toast-like.success {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
}
.toast-like.error {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
    color: #222;
}
@media (max-width: 480px) {
    .toast-like {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
        min-width: 120px;
    }
}

.action-stats {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	color: #666;
	font-weight: 500;
}

.stat-item i {
	color: #4facfe;
	font-size: 0.9rem;
}

 
