@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Blog page styles extracted from blog.html */
/* Variables de Color */
:root {
	--color-primary: #004C45;
	--color-accent: #D6D1CA;
	--color-dark: #0f2f2c;
	--color-text: #3f3f3f;
	--color-text-light: #7a7a7a;
	--color-bg-light: #f6f6f4;
	--color-white: #ffffff;
	--color-border: #dcd9d4;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	line-height: 1.75;
	color: var(--color-text);
	background: var(--color-white);
	padding-top: 85px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	color: var(--color-dark);
	font-weight: 700;
	line-height: 1.35;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ============================================ */
/* HEADER MEJORADO */
/* ============================================ */
#header {
	background: linear-gradient(180deg, var(--color-primary) 0%, #003a34 100%);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 0;
	box-shadow: 0 4px 20px rgba(0, 76, 69, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
}

#header.scrolled {
	padding: 0;
	box-shadow: 0 6px 30px rgba(0, 76, 69, 0.4);
	background: linear-gradient(180deg, #003a34 0%, var(--color-primary) 100%);
}

#header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5em 0;
	transition: padding 0.3s ease;
}

#header.scrolled .container {
	padding: 1.1em 0;
}

#header h1 {
	font-size: 1em;
	line-height: 1.3;
	margin: 0;
}

#header h1 a {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	letter-spacing: 1px;
	text-decoration: none;
	color: var(--color-white);
	transition: letter-spacing 0.3s ease;
}

#header h1 a::before {
	display: none !important;
}

#header h1 a .firm-name {
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--color-white);
}

#header h1 a .firm-subtitle {
	font-size: 0.7em;
	font-weight: 400;
	letter-spacing: 2px;
	color: var(--color-accent);
	text-transform: uppercase;
	opacity: 0.95;
}

#header h1 a:hover .firm-name {
	letter-spacing: 2px;
}

#header h1 a:hover::before {
	display: none !important;
}

#header nav ul {
	list-style: none;
	display: flex;
	gap: 0;
	align-items: center;
	margin: 0;
}

#header nav ul li {
	position: relative;
	margin: 0 1.5em;
}

#header nav ul li a {
	color: var(--color-white);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 1.5px;
	padding: 0.8em 0.8em;
	display: inline-block;
	position: relative;
	transition: color 0.3s ease;
}

#header nav ul li a::before {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 0.8em;
	right: 0.8em;
	height: 2px;
	background: var(--color-accent);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: center;
}

#header nav ul li a:hover::before,
#header nav ul li a.active::before {
	transform: scaleX(1);
}

#header nav ul li a:hover,
#header nav ul li a.active {
	color: var(--color-accent);
}

#header nav ul li:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -1.5em;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 18px;
	background: rgba(214, 209, 202, 0.2);
}

/* Page Hero */
.page-hero {
	background: linear-gradient(rgba(0, 76, 69, 0.88), rgba(0, 76, 69, 0.88)),
	            url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1600') center/cover;
	background-attachment: fixed;
	padding: 8em 0 6em;
	text-align: center;
	color: var(--color-white);
	position: relative;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 76, 69, 0.3) 100%);
}

.page-hero .container {
	position: relative;
	z-index: 1;
}

.page-hero h1 {
	font-size: 4em;
	color: var(--color-white);
	margin-bottom: 0.3em;
	text-transform: uppercase;
	letter-spacing: 3px;
}

.page-hero p {
	font-size: 1.3em;
	color: rgba(255,255,255,0.9);
	max-width: 700px;
	margin: 0 auto;
	font-weight: 300;
}

.breadcrumb {
	display: flex;
	justify-content: center;
	gap: 0.5em;
	margin-top: 2em;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.breadcrumb a {
	color: rgba(255,255,255,0.8);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--color-accent);
}

.breadcrumb span {
	color: var(--color-accent);
}

/* Loading y Empty States */
.loading-container,
.empty-state {
	text-align: center;
	padding: 4em 2em;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.loading-container i,
.empty-state i {
	font-size: 3em;
	color: var(--color-accent);
	margin-bottom: 1em;
}

.loading-container i {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.empty-state h2 {
	color: var(--color-dark);
	margin-bottom: 0.5em;
}

.empty-state p {
	color: var(--color-text-light);
}

/* Blog Layout */
.blog-section {
	padding: 4em 0;
}

/* Artículo Destacado */
.featured-article {
	background: var(--color-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
	margin-bottom: 4em;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	cursor: pointer;
	transition: all 0.4s ease;
}

.featured-article:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.featured-image {
	position: relative;
	height: 500px;
	overflow: hidden;
}

.featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.featured-article:hover .featured-image img {
	transform: scale(1.05);
}

.featured-badge {
	position: absolute;
	top: 1.5em;
	left: 1.5em;
	background: var(--color-accent);
	color: var(--color-white);
	padding: 0.6em 1.2em;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
}

.featured-category {
	position: absolute;
	bottom: 1.5em;
	right: 1.5em;
	background: rgba(0, 76, 69, 0.95);
	color: var(--color-white);
	padding: 0.5em 1em;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
}

.featured-content {
	padding: 3em 2.5em;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.featured-meta {
	display: flex;
	gap: 1.5em;
	font-size: 0.9em;
	color: var(--color-text-light);
	margin-bottom: 1.5em;
}

.featured-meta span {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.featured-meta i {
	color: var(--color-accent);
}

.featured-content h2 {
	font-size: 2.5em;
	color: var(--color-dark);
	margin-bottom: 0.5em;
	line-height: 1.2;
}

.featured-excerpt {
	font-size: 1.1em;
	color: var(--color-text);
	line-height: 1.7;
	margin-bottom: 1.5em;
	text-align: justify;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.9em;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.read-more:hover {
	gap: 1em;
	color: #b8965f;
}

/* Grid de Artículos Recientes */
.recent-articles-title {
	font-size: 2em;
	color: var(--color-dark);
	margin-bottom: 2em;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.recent-articles-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--color-accent);
	margin: 0.8em auto 0;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2.5em;
}

.blog-card {
	background: var(--color-white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card-image {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.08);
}

.blog-card-category {
	position: absolute;
	top: 1em;
	right: 1em;
	background: var(--color-primary);
	color: var(--color-white);
	padding: 0.4em 0.8em;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 3px;
}

.blog-card-content {
	padding: 1.8em;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-card-meta {
	display: flex;
	gap: 1em;
	font-size: 0.85em;
	color: var(--color-text-light);
	margin-bottom: 1em;
}

.blog-card-meta span {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.blog-card-meta i {
	color: var(--color-accent);
}

.blog-card h3 {
	font-size: 1.3em;
	color: var(--color-dark);
	margin-bottom: 0.8em;
	line-height: 1.3;
}

.blog-card-excerpt {
	font-size: 0.95em;
	color: var(--color-text);
	line-height: 1.6;
	margin-bottom: 1.2em;
	flex: 1;
	text-align: justify;
}

.blog-card .read-more {
	font-size: 0.85em;
}

/* ================= FOOTER ================= */
#footer {
	background: linear-gradient(180deg, #004C45 0%, #D6D1CA 200%);
	color: rgba(255,255,255,0.85);
	padding: 5em 0 2.5em;
	font-family: 'Montserrat', sans-serif;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4em;
	padding-bottom: 3em;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-column h3 {
	color: #ffffff;
	font-size: 0.9em;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1.8em;
}

.footer-column h3::after {
	content: '';
	display: block;
	width: 30px;
	height: 2px;
	background: var(--color-accent);
	margin-top: 0.6em;
}

#footer ul {
	list-style: none;
}

#footer ul li {
	margin-bottom: 0.7em;
}

#footer ul li a {
	color: rgba(255,255,255,0.75);
	font-size: 0.9em;
	text-decoration: none;
	transition: all 0.3s ease;
}

#footer ul li a:hover {
	color: var(--color-accent);
}

.location-box {
	padding: 0 0 1.2em;
	border-left: none;
	padding-left: 0;
	margin-bottom: 2em;
	background: transparent;
}

.location-box h4 {
	color: var(--color-accent);
	font-size: 0.95em;
	margin-bottom: 0.6em;
	letter-spacing: 1px;
}

.location-box p {
	font-size: 0.85em;
	color: rgba(255,255,255,0.8);
	line-height: 1.7;
	margin: 0.2em 0;
}

.social-icons {
	display: flex;
	gap: 1em;
	margin: 1.5em 0 2em;
}

.social-icons a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.85);
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icons a:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	transform: translateY(-3px);
}

.footer-contact p {
	font-size: 0.8em;
	color: rgba(255,255,255,0.6);
	margin-bottom: 0.3em;
}

.footer-contact a {
	color: rgba(255,255,255,0.9);
	font-size: 0.9em;
	text-decoration: none;
}

.footer-contact a:hover {
	color: var(--color-accent);
}

.footer-bottom {
	text-align: center;
	padding-top: 2em;
}

.footer-bottom p {
	font-size: 0.8em;
	color: rgba(255,255,255,0.55);
}

.footer-bottom a {
	color: rgba(255,255,255,0.55);
	text-decoration: none;
}

.footer-bottom a:hover {
	color: var(--color-accent);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

/* Tablets y pantallas medianas (max-width: 968px) */
@media screen and (max-width: 968px) {
	body {
		font-size: 16px;
		padding-top: 100px;
	}

	.container {
		width: 92%;
	}

	#header nav ul li {
		margin: 0 0.8em;
	}

	#header nav ul li a {
		font-size: 0.8em;
		letter-spacing: 1.2px;
	}

	.page-hero {
		background-attachment: scroll;
		padding: 6em 0 4em;
	}

	.page-hero h1 {
		font-size: 3em;
	}

	.page-hero p {
		font-size: 1.15em;
	}

	.blog-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 2.5em;
	}

	.footer-content {
		grid-template-columns: 1fr 1fr;
		gap: 3em;
	}
}

/* Móviles en horizontal y tablets pequeñas (max-width: 768px) */
@media screen and (max-width: 768px) {
	body {
		padding-top: 130px;
		font-size: 15px;
	}

	.container {
		width: 94%;
	}

	#header .container {
		flex-direction: column;
		gap: 1em;
		padding: 1.2em 0;
	}

	#header h1 {
		font-size: 0.9em;
	}

	#header h1 a .firm-name {
		font-size: 1.1em;
		letter-spacing: 1.2px;
	}

	#header h1 a .firm-subtitle {
		font-size: 0.65em;
		letter-spacing: 1.5px;
	}

	#header nav ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5em;
	}

	#header nav ul li {
		margin: 0 0.5em;
	}

	#header nav ul li a {
		font-size: 0.75em;
		padding: 0.6em 0.6em;
	}

	#header nav ul li:not(:last-child)::after {
		display: none;
	}

	.page-hero {
		padding: 4em 0 3em;
	}

	.page-hero h1 {
		font-size: 2.5em;
		letter-spacing: 2px;
	}

	.page-hero p {
		font-size: 1em;
		padding: 0 1em;
	}

	.breadcrumb {
		margin-top: 1.5em;
		font-size: 0.85em;
	}

	.blog-section {
		padding: 3.5em 0;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.blog-card {
		max-width: 500px;
		margin: 0 auto;
	}

	.blog-card-image {
		height: 250px;
	}

	.blog-card-content {
		padding: 1.5em;
	}

	.blog-card h3 {
		font-size: 1.3em;
	}

	.blog-card-excerpt {
		font-size: 0.95em;
		line-height: 1.6;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 2.5em;
	}
}

/* Móviles pequeños (max-width: 480px) */
@media screen and (max-width: 480px) {
	body {
		padding-top: 145px;
		font-size: 14px;
	}

	.container {
		width: 95%;
	}

	#header h1 {
		font-size: 0.8em;
	}

	#header h1 a .firm-name {
		font-size: 1em;
		letter-spacing: 1px;
	}

	#header h1 a .firm-subtitle {
		font-size: 0.6em;
		letter-spacing: 1.2px;
	}

	#header nav ul li {
		margin: 0 0.3em;
	}

	#header nav ul li a {
		font-size: 0.7em;
		padding: 0.5em 0.4em;
		letter-spacing: 1px;
	}

	.page-hero {
		padding: 3em 0 2.5em;
	}

	.page-hero h1 {
		font-size: 2em;
		letter-spacing: 1.5px;
	}

	.page-hero p {
		font-size: 0.95em;
		padding: 0 0.8em;
	}

	.breadcrumb {
		margin-top: 1.2em;
		font-size: 0.8em;
	}

	.blog-section {
		padding: 2.5em 0;
	}

	.blog-grid {
		gap: 1.8em;
	}

	.blog-card {
		max-width: 100%;
	}

	.blog-card-image {
		height: 220px;
	}

	.blog-card-category {
		font-size: 0.7em;
		padding: 0.5em 1em;
		top: 0.8em;
		left: 0.8em;
	}

	.blog-card-content {
		padding: 1.3em 1.2em;
	}

	.blog-card-meta {
		font-size: 0.75em;
		margin-bottom: 0.8em;
	}

	.blog-card h3 {
		font-size: 1.15em;
		margin-bottom: 0.7em;
	}

	.blog-card-excerpt {
		font-size: 0.9em;
		line-height: 1.5;
		margin-bottom: 1.2em;
	}

	.blog-card .read-more {
		font-size: 0.85em;
		padding: 0.8em 1.8em;
	}

	#footer {
		padding: 3.5em 0 2em;
	}

	.footer-content {
		gap: 2em;
		padding-bottom: 2em;
	}

	.footer-column h3 {
		font-size: 0.85em;
		letter-spacing: 1.5px;
		margin-bottom: 1.5em;
	}

	.footer-column h3::after {
		width: 25px;
	}

	#footer ul li a {
		font-size: 0.85em;
	}

	.location-box {
		padding: 0 0 0.8em;
		padding-left: 0;
		margin-bottom: 1.2em;
	}

	.location-box h4 {
		font-size: 0.9em;
	}

	.location-box p {
		font-size: 0.8em;
	}

	.social-icons {
		gap: 0.8em;
		margin: 1.2em 0 1.5em;
	}

	.social-icons a {
		width: 38px;
		height: 38px;
		font-size: 0.95em;
	}

	.footer-contact p {
		font-size: 0.75em;
	}

	.footer-contact a {
		font-size: 0.85em;
	}

	.footer-bottom {
		padding-top: 1.5em;
	}

	.footer-bottom p {
		font-size: 0.75em;
	}
}
