/*
Theme Name: Avance Nativo
Theme URI: https://example.com
Author: Avance Empresarial
Description: Tema WordPress 100% nativo, seguro y responsivo
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: avance-nativo
Domain Path: /languages
*/

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

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

.site-branding {
	margin-bottom: 20px;
}

.site-title {
	font-size: 2rem;
	margin-bottom: 5px;
}

.site-title a {
	color: #2563eb;
	text-decoration: none;
}

.site-title a:hover {
	color: #1e40af;
}

.site-description {
	font-size: 0.9rem;
	color: #666;
	margin: 0;
}

/* Menu */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
}

.primary-navigation {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

.primary-navigation a {
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.primary-navigation a:hover,
.primary-navigation a.current-menu-item {
	color: #2563eb;
}

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

/* Main */
main {
	margin: 40px 0;
}

/* Posts */
article {
	margin-bottom: 40px;
}

.entry-header {
	margin-bottom: 20px;
}

.entry-title {
	font-size: 2rem;
	margin-bottom: 10px;
	line-height: 1.2;
}

.entry-meta {
	font-size: 0.9rem;
	color: #666;
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.entry-meta a {
	color: #2563eb;
	text-decoration: none;
}

.entry-meta a:hover {
	text-decoration: underline;
}

.post-thumbnail {
	margin: 20px 0;
	overflow: hidden;
	border-radius: 8px;
}

.post-thumbnail img {
	max-width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	line-height: 1.7;
	color: #444;
	margin: 20px 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 20px 0 10px;
	line-height: 1.3;
}

.entry-content p {
	margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
	margin-left: 20px;
	margin-bottom: 15px;
}

.entry-content li {
	margin-bottom: 5px;
}

.read-more {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.read-more:hover {
	color: #1e40af;
}

/* Footer */
.site-footer {
	background: #1f2937;
	color: #e5e7eb;
	padding: 40px 0 20px;
	margin-top: 60px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-widget h3 {
	color: #fff;
	font-size: 1.1rem;
	margin-bottom: 15px;
}

.footer-widget a {
	color: #cbd5e1;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-widget a:hover {
	color: #3b82f6;
}

.footer-navigation {
	margin-bottom: 20px;
	border-top: 1px solid #374151;
	padding-top: 20px;
}

.footer-navigation a {
	color: #cbd5e1;
	text-decoration: none;
	margin-right: 20px;
	transition: color 0.3s;
}

.footer-navigation a:hover {
	color: #3b82f6;
}

.footer-bottom {
	text-align: center;
	font-size: 0.9rem;
	color: #9ca3af;
	border-top: 1px solid #374151;
	padding-top: 20px;
}

/* Pagination */
.pagination {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 40px 0;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: #2563eb;
	text-decoration: none;
	transition: all 0.3s;
}

.pagination a:hover {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.pagination .current {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

/* Buttons */
.btn,
button {
	display: inline-block;
	padding: 10px 20px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.3s;
	font-family: inherit;
	font-size: 1rem;
}

.btn:hover,
button:hover {
	background: #1e40af;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: 10px;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	margin: 60px 0;
	padding: 40px 0;
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-title {
	font-size: 3rem;
	line-height: 1.2;
	color: #1f2937;
	margin: 0;
}

.hero-text {
	font-size: 1.1rem;
	color: #4b5563;
	line-height: 1.7;
}

.hero-image {
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.btn-primary {
	background: #2563eb;
	color: #fff;
	padding: 12px 30px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	transition: background 0.3s;
	width: fit-content;
}

.btn-primary:hover {
	background: #1e40af;
	color: #fff;
	text-decoration: none;
}

.btn-light {
	background: #fff;
	color: #2563eb;
	padding: 12px 30px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
	transition: all 0.3s;
	border: 2px solid #fff;
}

.btn-light:hover {
	background: transparent;
	color: #fff;
	text-decoration: none;
}

/* Features Section */
.features-section {
	margin: 80px 0;
	padding: 60px 0;
	background: #f9fafb;
	border-radius: 12px;
}

.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 50px;
	color: #1f2937;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.feature-card {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #2563eb;
}

.feature-card p {
	color: #666;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

/* Latest Posts Section */
.latest-posts-section {
	margin: 80px 0;
	padding: 60px 0;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.post-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-card-image {
	overflow: hidden;
	height: 200px;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
	transform: scale(1.05);
}

.post-card-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.post-card-title {
	font-size: 1.3rem;
	margin: 0 0 10px 0;
}

.post-card-title a {
	color: #1f2937;
	text-decoration: none;
	transition: color 0.3s;
}

.post-card-title a:hover {
	color: #2563eb;
}

.post-card-meta {
	font-size: 0.85rem;
	color: #666;
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.post-card-meta a {
	color: #2563eb;
	text-decoration: none;
}

.post-card-meta a:hover {
	text-decoration: underline;
}

.post-card-excerpt {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 15px;
	flex-grow: 1;
}

.post-card .read-more {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
	align-self: flex-start;
}

.post-card .read-more:hover {
	color: #1e40af;
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	color: #fff;
	padding: 80px 0;
	border-radius: 12px;
	text-align: center;
	margin: 80px 0;
}

.cta-content h2 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	color: #fff;
}

.cta-content p {
	font-size: 1.1rem;
	margin-bottom: 30px;
	color: #e0e7ff;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
	.hero-section {
		grid-template-columns: 1fr;
		gap: 20px;
		margin: 30px 0;
		padding: 20px 0;
	}

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

	.hero-text {
		font-size: 1rem;
	}

	.section-title {
		font-size: 2rem;
		margin-bottom: 30px;
	}

	.features-section {
		margin: 40px 0;
		padding: 30px 0;
	}

	.latest-posts-section {
		margin: 40px 0;
		padding: 30px 0;
	}

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

	.cta-section {
		margin: 40px 0;
		padding: 40px 0;
	}

	.cta-content h2 {
		font-size: 1.8rem;
	}

	.cta-content p {
		font-size: 1rem;
	}
	.site-title {
		font-size: 1.5rem;
	}

	.entry-title {
		font-size: 1.5rem;
	}

	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		flex-direction: column;
		gap: 0;
		display: none;
		width: 100%;
	}

	.primary-navigation.active {
		display: flex;
	}

	.primary-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.primary-navigation a {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #e0e0e0;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	main {
		margin: 20px 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 0.95rem;
	}

	.site-title {
		font-size: 1.25rem;
	}

	.entry-title {
		font-size: 1.25rem;
	}

	.primary-navigation {
		gap: 0;
	}

	.entry-meta {
		font-size: 0.85rem;
		gap: 10px;
	}

	.container {
		padding: 0 15px;
	}
}
