@charset "utf-8";
/* CSS Document */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 100px;
    width: auto;
}
.Titulo {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
}
.main-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.nav-list li a:hover, 
.nav-list li a.active {
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c0392b;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Single Article */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.article-image {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 20px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p, 
.footer-section a {
    color: var(--light-color);
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-section i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar-header h3 {
    font-size: 1.2rem;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.admin-nav li a:hover, 
.admin-nav li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
}

.admin-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
}

.admin-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, 
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.table-actions a {
    margin-right: 10px;
    color: var(--primary-color);
    text-decoration: none;
}

.table-actions a.delete {
    color: var(--accent-color);
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}
/* Estilos para la subida de archivos */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.file-upload-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #f5f7fa;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #ebeff5;
    border-color: #9ca3af;
}

.file-upload-label i {
    font-size: 1.2rem;
    color: #4b5563;
}

/* Vista previa de imágenes */
.image-preview-container {
    margin-top: 15px;
}

.image-preview-container p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 5px;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.current-image {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-label input {
    margin: 0;
}

/* Estilos para el toggle de estado */
.status-toggle {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.status-toggle input[type="radio"] {
    display: none;
}

.status-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn-publicado {
    background-color: #e6f7ee;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.status-btn-borrador {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-toggle input[type="radio"]:checked + .status-btn-publicado {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.status-toggle input[type="radio"]:checked + .status-btn-borrador {
    background-color: #d97706;
    color: white;
    border-color: #d97706;
}

/* Mejoras para los botones */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-cancel:hover {
    background-color: #e5e7eb;
}
.btn-secondary {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2F7FB6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}
.btn-secondary:hover {
    background-color: #0E2FB5;
}
/* Estilos para el sistema de likes */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.likes-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.like-icon {
    font-size: 1.1rem;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.like-icon:hover {
    color: #e74c3c !important;
}

.fas.fa-heart {
    color: #e74c3c;
}

.likes-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}
/* Estilos para el editor de about */
.current-image-preview {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    border: 1px dashed #ddd;
}

.current-image-preview p {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

/* Editor de texto mejorado */
#contenido {
    min-height: 300px;
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    line-height: 1.6;
}

.file-upload-label {
    display: block;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.file-upload-label i {
    margin-right: 8px;
}
/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, 
    .about-text {
        flex: none;
        width: 100%;
    }
	.logo {
		height: 80px;
		width: auto;
	}
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
	.logo {
		height: 60px;
		width: auto;
	}
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
	.logo {
		height: 50px;
		width: auto;
	}
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .charts-grid {
      grid-template-columns: repeat(3, 1fr);
    }
}

