@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* 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 ACTUALIZADO */
/* ============================================ */
#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 {
	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;
}

/* Estilo optimizado para el nombre de la firma */
#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);
}

.button {
	display: inline-block;
	padding: 1em 2.5em;
	background: var(--color-accent);
	border: 2px solid var(--color-accent);
	color: var(--color-white) !important;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1.5px;
	transition: all 0.4s ease;
	font-size: 0.9em;
	font-family: 'Montserrat', sans-serif;
	border-radius: 4px;
}

.button:hover {
	background: #b8965f;
	border-color: #b8965f;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(201, 168, 106, 0.5);
}

.button.outline {
	background: transparent;
	color: var(--color-accent) !important;
}

.button.outline:hover {
	background: var(--color-accent);
	color: var(--color-white) !important;
}

/* Hero */
.page-hero {
	background: linear-gradient(rgba(0, 76, 69, 0.88), rgba(0, 76, 69, 0.88)),
	            url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1600') center/cover;
	background-attachment: fixed;
	padding: 8em 0 6em;
	text-align: center;
	color: var(--color-white);
}

.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);
}

/* Introducción */
.intro-section {
	background: var(--color-white);
	text-align: center;
	padding: 6em 0;
}

.intro-section .lead {
	font-size: 1.3em;
	color: var(--color-text);
	max-width: 850px;
	margin: 0 auto 1.5em;
	line-height: 1.8;
	font-weight: 300;
	text-align: justify;
}

/* Servicios Detallados */
.services-list {
	display: flex;
	flex-direction: column;
	gap: 5em;
}

.service-block {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 3em;
	align-items: stretch;
	position: relative;
}

.service-block:nth-child(even) {
	grid-template-columns: 1fr 400px;
}

.service-block:nth-child(even) .service-image {
	order: 2;
}

.service-image {
	width: 105%;
	height: auto;
	min-height: 450px;
	margin-top: 3.5em;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	display: flex;
	align-items: stretch;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.service-block:hover .service-image img {
	transform: scale(1.05);
}

.service-details h3 {
	font-size: 2em;
	color: var(--color-dark);
	margin-top: 0;
	margin-bottom: 0.5em;
}

.tag {
	display: inline-block;
	padding: 0.5em 1em;
	background: var(--color-bg-light);
	color: var(--color-accent);
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
	margin-bottom: 1em;
}

.service-details p {
	font-size: 1.05em;
	line-height: 1.8;
	color: var(--color-text);
	margin: 1.5em 0;
	text-align: justify;
}

.service-details ul {
	list-style: none;
	padding: 0;
}

.service-details ul li {
	padding: 0.6em 0 0.6em 2em;
	position: relative;
	color: var(--color-text);
	line-height: 1.6;
	text-align: justify;
}

.service-details ul li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

/* Especialidades */
.specialty-section {
	background: var(--color-bg-light);
	padding: 6em 0;
	text-align: center;
}

.specialty-section h2 {
	font-size: 2.5em;
	color: var(--color-dark);
	margin-bottom: 0.5em;
}

.specialty-section .description {
	font-size: 1.1em;
	color: var(--color-text-light);
	max-width: 600px;
	margin: 0 auto 3em;
	text-align: justify;
}

.specialty-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2em;
	margin-top: 3em;
}

.specialty-card {
	background: var(--color-white);
	padding: 2.5em 1.5em;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
}

.specialty-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.specialty-card .icon {
	font-size: 3em;
	margin-bottom: 0.5em;
}

.specialty-card h4 {
	font-size: 1.2em;
	color: var(--color-dark);
	margin-bottom: 0.8em;
}

.specialty-card p {
	font-size: 0.95em;
	color: var(--color-text-light);
	line-height: 1.6;
	text-align: justify;
}

/* CTA */
.cta-section {
	background: linear-gradient(rgba(0, 76, 69, 0.9), rgba(0, 76, 69, 0.9)),
	            url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600') center/cover;
	background-attachment: fixed;
	color: var(--color-white);
	text-align: center;
	padding: 7em 0;
	margin-top: 4em;
	position: relative;
}

.cta-section::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.4) 100%);
}

.cta-section .container {
	position: relative;
	z-index: 1;
}

.cta-section h2 {
	font-size: 3em;
	color: var(--color-white);
	margin-bottom: 0.5em;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.cta-section p {
	font-size: 1.3em;
	color: rgba(255,255,255,0.95);
	margin-bottom: 2.5em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* Footer - CSS Original del Documento */
#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: 1.2fr 1.5fr 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;
	position: relative;
}

.footer-column h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 30px;
	height: 2px;
	background: var(--color-accent);
}

#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);
	padding-left: 4px;
}

.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);
	font-size: 1em;
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icons a:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #ffffff;
	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;
	font-weight: 100;
	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;
	margin: 0 0.5em;
}

.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;
	}

	.intro-section .lead {
		font-size: 1.2em;
	}

	.service-block,
	.service-block:nth-child(even) {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.service-block:nth-child(even) .service-image {
		order: 0;
	}

	.service-image {
		height: 350px;
	}

	.service-content {
		padding: 2em 1.5em;
	}

	.specialty-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 2em;
	}

	.cta-section h2 {
		font-size: 2.5em;
	}

	.cta-section p {
		font-size: 1.15em;
	}

	.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;
	}

	section {
		padding: 3.5em 0;
	}

	.intro-section {
		padding: 3em 0;
	}

	.intro-section .lead {
		font-size: 1.1em;
		padding: 0 1em;
	}

	.service-block {
		margin-bottom: 2.5em;
	}

	.service-image {
		height: 300px;
	}

	.service-content {
		padding: 1.8em 1.3em;
	}

	.service-content h2 {
		font-size: 1.8em;
	}

	.service-content .service-number {
		font-size: 4em;
	}

	.service-features {
		margin: 1.5em 0;
	}

	.service-features li {
		font-size: 0.95em;
		padding: 0.6em 0;
	}

	.specialty-section {
		padding: 3em 0;
	}

	.section-title h2 {
		font-size: 2.2em;
		letter-spacing: 1.5px;
	}

	.section-title p {
		font-size: 1em;
		letter-spacing: 1.2px;
	}

	.specialty-grid {
		grid-template-columns: 1fr;
		gap: 1.8em;
	}

	.specialty-card {
		padding: 2em 1.5em;
	}

	.specialty-card .icon {
		font-size: 2.5em;
	}

	.specialty-card h4 {
		font-size: 1.15em;
	}

	.specialty-card p {
		font-size: 0.9em;
	}

	.cta-section {
		padding: 5em 0;
		background-attachment: scroll;
	}

	.cta-section h2 {
		font-size: 2em;
		letter-spacing: 1.5px;
	}

	.cta-section p {
		font-size: 1.05em;
		padding: 0 1em;
	}

	.cta-button {
		padding: 1em 2.5em;
		font-size: 0.95em;
	}

	.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;
	}

	section {
		padding: 2.5em 0;
	}

	.intro-section {
		padding: 2em 0;
	}

	.intro-section .lead {
		font-size: 1em;
		padding: 0 0.5em;
	}

	.service-block {
		margin-bottom: 2em;
		border-radius: 8px;
	}

	.service-image {
		height: 250px;
		border-radius: 8px 8px 0 0;
	}

	.service-content {
		padding: 1.5em 1.2em;
	}

	.service-content h2 {
		font-size: 1.5em;
		margin-bottom: 0.6em;
	}

	.service-content .service-number {
		font-size: 3.5em;
		top: 0.3em;
		right: 0.3em;
	}

	.service-features {
		margin: 1.2em 0;
	}

	.service-features li {
		font-size: 0.9em;
		padding: 0.5em 0 0.5em 2em;
	}

	.service-features li i {
		font-size: 0.9em;
	}

	.service-content > p {
		font-size: 0.95em;
		line-height: 1.6;
	}

	.specialty-section {
		padding: 2.5em 0;
	}

	.section-title {
		margin-bottom: 2.5em;
	}

	.section-title h2 {
		font-size: 1.8em;
		letter-spacing: 1.2px;
	}

	.section-title h2::after {
		width: 60px;
		height: 3px;
		margin: 0.6em auto;
	}

	.section-title p {
		font-size: 0.9em;
		letter-spacing: 1px;
	}

	.specialty-grid {
		gap: 1.5em;
	}

	.specialty-card {
		padding: 1.8em 1.3em;
	}

	.specialty-card .icon {
		font-size: 2.2em;
		margin-bottom: 0.4em;
	}

	.specialty-card h4 {
		font-size: 1.05em;
		margin-bottom: 0.6em;
	}

	.specialty-card p {
		font-size: 0.88em;
		line-height: 1.5;
	}

	.cta-section {
		padding: 4em 0;
	}

	.cta-section h2 {
		font-size: 1.7em;
		letter-spacing: 1.2px;
	}

	.cta-section p {
		font-size: 0.95em;
		padding: 0 0.8em;
		margin-bottom: 2em;
	}

	.cta-button {
		padding: 0.9em 2em;
		font-size: 0.9em;
		letter-spacing: 1.2px;
	}

	#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;
	}
}
