@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;
}

.client-logo {
  flex: 0 0 auto;
  width: 260px;     /* 👈 MÁS GRANDE */
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 0.5em;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  overflow: hidden;
}



.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  object-fit: contain;

  /* 👇 MUY IMPORTANTE */
  transform: translateZ(0) scale(1.55);
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;

  filter: grayscale(100%);
  opacity: 0.9;

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s ease,
    opacity 0.25s ease;
}



.client-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.client-logo:hover img {
  transform: scale(1.6);
  filter: grayscale(0%);
  opacity: 1;
}



* {
	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 */
/* ============================================ */
#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;
}
		#header h1 {
			font-size: 1em;
			line-height: 1.3;
		}
		
		#header h1 a {
			display: flex;
			flex-direction: column;
			gap: 0.2em;
			letter-spacing: 1px;
			text-decoration: none;
		}

			#header h1 a::before {
			display: none !important;
		}
		
#header h1 a:hover {
	letter-spacing: 2px;
}

#header h1 strong {
	font-weight: 700;
	color: var(--color-accent);
}
			#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);
}

/* Banner/Hero */


#banner {
	background: linear-gradient(rgba(0, 76, 69, 0.88), rgba(0, 76, 69, 0.88)),
	            url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600') center/320% auto;
	background-attachment: fixed;
	min-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5.2em 0;
	text-align: center;
	color: var(--color-white);
	position: relative;
	overflow: hidden;
}

.carousel {
	max-width: 820px;
	margin: 0 auto;
	background: rgba(12, 35, 33, 0.16);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 18px;
	padding: 2.2em 2.3em;
	box-shadow: 0 16px 45px rgba(0,0,0,0.26);
	backdrop-filter: blur(3px);
	position: relative;
}

.carousel-slide {
	display: none !important;
	animation: fadeIn 0.8s ease;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.carousel-slide.active {
	display: block !important;
	opacity: 1;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.carousel-slide h2 {
	font-size: 3.2em;
	color: var(--color-white);
	margin-bottom: 0.5em;
	line-height: 1.2;
}

.carousel-slide p {
	font-size: 1.3em;
	color: rgba(255,255,255,0.95);
	margin-bottom: 2em;
	line-height: 1.6;
}

.actions {
	list-style: none;
	display: flex;
	gap: 1.5em;
	justify-content: center;
	flex-wrap: wrap;
}

.button {
	display: inline-block;
	padding: 1em 2.5em;
	background: transparent;
	border: 2px solid var(--color-white);
	color: var(--color-white);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1.5px;
	transition: all 0.4s ease;
	font-size: 0.9em;
	border-radius: 4px;
}

.button.special {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.button.special:hover {
	background: #b8965f;
	border-color: #b8965f;
}

.carousel-controls {
	display: flex;
	gap: 1em;
	justify-content: center;
	margin-top: 1.8em;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,0.3);
	cursor: pointer;
	transition: all 0.3s ease;
}

.carousel-dot.active {
	background: var(--color-accent);
	width: 30px;
	border-radius: 6px;
}

/* Clientes Carousel */
.clients-section {
	background: var(--color-bg-light);
	padding: 5em 0;
}

.clients-section h2 {
	text-align: center;
	font-size: 2em;
	color: var(--color-dark);
	margin-bottom: 0.5em;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.clients-section p {
	text-align: center;
	color: var(--color-text-light);
	margin-bottom: 3em;
	font-size: 1.1em;
}

.carousel-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.clients-carousel {
	display: flex;
	gap: 4em;
	align-items: center;
	padding: 2em 1em;
	animation: scrollClients 120s linear infinite;
	width: max-content;
	overflow: visible;
}

.clients-carousel:hover {
	animation-play-state: paused;
}

@keyframes scrollClients {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.clients-carousel:hover {
	animation-play-state: paused;
}

.client-logo {
	flex: 0 0 auto;
  width: 320px;   /* ⬅️ ancho */
  height: 170px;  /* ⬅️ alto */
  padding: 1em;   /* ⬅️ más aire */
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-white);
	border-radius: 8px;

	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.client-logo:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.client-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all 0.3s ease;
}

.client-logo:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Estadísticas */
.stats-section {
	background: linear-gradient(135deg, var(--color-primary) 0%, #013b36 100%);
	padding: 5em 0;
	color: var(--color-white);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3em;
	text-align: center;
}

.stat-item h2 {
	font-size: 4em;
	color: var(--color-accent);
	margin-bottom: 0.2em;
}

.stat-item p {
	font-size: 1.1em;
	color: rgba(255,255,255,0.9);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

/* Quiénes Somos */
.about-section {
	padding: 6em 0;
	background: var(--color-white);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 4em;
	align-items: center;
}

.about-content h2 {
	font-size: 2.5em;
	color: var(--color-dark);
	margin-bottom: 0.3em;
}

.about-content .subtitle {
	display: block;
	color: var(--color-accent);
	font-size: 1.1em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 2em;
}

.about-content p {
	margin-bottom: 1.5em;
	line-height: 1.8;
}

/* Justificar textos en la sección "Quiénes Somos" */
.about-section .about-content p {
    text-align: justify;
}

/* Blog */
.blog-section {
	background: var(--color-white);
	padding: 6em 0;
	text-align: center;
}

.blog-section h2 {
	font-size: 2.5em;
	color: var(--color-dark);
	margin-bottom: 0.5em;
}

.blog-section p {
	font-size: 1.2em;
	color: var(--color-text);
	margin-bottom: 2.5em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Testimonios */
.testimonials-section {
	background: var(--color-bg-light);
	padding: 6em 0;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5em;
}

.testimonial-card {
	background: var(--color-white);
	padding: 2.5em;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	text-align: center;
	transition: all 0.3s ease;
}

.testimonial-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.testimonial-card .quote-icon {
	font-size: 3em;
	color: var(--color-accent);
	margin-bottom: 0.5em;
	opacity: 0.3;
}

.testimonial-card p {
	font-size: 1.05em;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.7;
	margin-bottom: 1.2em;
}

.testimonial-card .author {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding-top: 0.6em;
	margin-top: 0.6em;
	border-top: 1px solid var(--color-border);
	font-weight: 700;
	color: var(--color-dark);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.85em;
}

.testimonial-card .company {
	font-size: 0.9em;
	color: var(--color-text-light);
}

/* CTA Final */
.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;
	padding: 7em 0;
	text-align: center;
	color: var(--color-white);
}

.cta-section h2 {
	font-size: 3em;
	color: var(--color-white);
	margin-bottom: 0.5em;
}

.cta-section p {
	font-size: 1.3em;
	margin-bottom: 2em;
}

/* 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);
}

/* Legal Pages */
.page-hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, #003a34 100%);
	color: white;
	padding: 3em 0;
	text-align: center;
}

.page-hero h1 {
	color: white;
	font-size: 2.5em;
	margin-bottom: 0.5em;
}

.page-hero p {
	color: rgba(255,255,255,0.85);
	font-size: 1.1em;
}

.legal-section {
	padding: 4em 0;
	font-family: 'Montserrat', sans-serif;
	line-height: 1.8;
}

.legal-section h2 {
	color: var(--color-primary);
	font-size: 1.5em;
	margin-top: 2em;
	margin-bottom: 0.8em;
	border-left: 4px solid var(--color-accent);
	padding-left: 1em;
}

.legal-section h2:first-of-type {
	margin-top: 0;
}

.legal-section p {
	margin-bottom: 1em;
	color: var(--color-text);
}

.legal-section ul {
	margin-left: 1.5em;
	margin-bottom: 1.5em;
	list-style-type: disc;
}

.legal-section ul li {
	margin-bottom: 0.6em;
	color: var(--color-text);
}

.legal-section a {
	color: var(--color-primary);
	text-decoration: none;
	border-bottom: 1px solid var(--color-accent);
	transition: all 0.3s ease;
}

.legal-section a:hover {
	color: var(--color-accent);
	border-bottom-color: var(--color-primary);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

/* Tablets y pantallas medianas (max-width: 968px) */
@media screen and (max-width: 968px) {
	body {
		font-size: 16px;
		padding-top: 100px;
	}

	.container {
		width: 92%;
	}

	#banner {
		background-size: 240% auto;
		padding: 4.8em 1.4em;
		min-height: 78vh;
	}

	.carousel {
		padding: 2.1em 1.9em;
		max-width: 95%;
	}

	.carousel-slide h2 {
		font-size: 2.5em;
		line-height: 1.15;
	}

	.carousel-slide p {
		font-size: 1.15em;
		margin-bottom: 1.5em;
	}

	#header nav ul li {
		margin: 0 0.8em;
	}

	#header nav ul li a {
		font-size: 0.8em;
		letter-spacing: 1.2px;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2em;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 2.5em;
	}
}

/* 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%;
	}

	#banner {
		background-attachment: scroll;
		background-size: 220% auto;
		padding: 4.2em 0.9em;
		min-height: 70vh;
	}

	.carousel {
		padding: 1.9em 1.4em;
		max-width: 100%;
		border-radius: 12px;
	}

	#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;
	}

	.carousel-slide h2 {
		font-size: 2em;
		margin-bottom: 0.4em;
	}

	.carousel-slide p {
		font-size: 1em;
		margin-bottom: 1.2em;
	}

	.actions {
		gap: 1em;
	}

	.button {
		font-size: 0.9em;
		padding: 0.8em 2em;
	}

	.carousel-controls {
		margin-top: 1.5em;
	}

	.carousel-dot {
		width: 10px;
		height: 10px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
		gap: 1.5em;
	}

	.stat-item h2 {
		font-size: 2.5em;
	}

	.about-section,
	.services-section,
	.testimonials-section {
		padding: 3em 0;
	}

	.clients-section {
		padding: 4em 0;
	}

	.clients-section h2 {
		font-size: 1.8em;
	}

	.clients-section p {
		font-size: 1em;
		margin-bottom: 2.5em;
	}

	.client-logo {
		width: 280px;
		height: 150px;
		padding: 0.8em;
	}

	.clients-carousel {
		gap: 3em;
	}

	.page-hero h1 {
		font-size: 2em;
	}

	.page-hero p {
		font-size: 1em;
	}
}

/* Móviles pequeños (max-width: 480px) */
@media screen and (max-width: 480px) {
	body {
		padding-top: 145px;
		font-size: 14px;
	}

	.container {
		width: 95%;
	}

	#banner {
		background-size: 300% auto;
		padding: 3.5em 0.8em;
		min-height: 65vh;
	}

	.carousel {
		padding: 1.5em 1.2em;
		border-radius: 10px;
	}

	#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;
	}

	.carousel-slide h2 {
		font-size: 1.6em;
		margin-bottom: 0.3em;
	}

	.carousel-slide p {
		font-size: 0.95em;
		line-height: 1.5;
		margin-bottom: 1em;
	}

	.button {
		font-size: 0.85em;
		padding: 0.7em 1.5em;
	}

	.carousel-controls {
		margin-top: 1.2em;
	}

	.carousel-dot {
		width: 8px;
		height: 8px;
		margin: 0 4px;
	}

	.about-section,
	.services-section,
	.testimonials-section {
		padding: 2.5em 0;
	}

	.clients-section {
		padding: 3em 0;
	}

	.clients-section h2 {
		font-size: 1.5em;
	}

	.clients-section p {
		font-size: 0.95em;
		margin-bottom: 2em;
		padding: 0 1em;
	}

	.client-logo {
		width: 240px;
		height: 130px;
		padding: 0.6em;
	}

	.clients-carousel {
		gap: 2.5em;
		padding: 1.5em 0.5em;
	}

	.page-hero {
		padding: 2em 0;
	}

	.page-hero h1 {
		font-size: 1.7em;
	}

	.page-hero p {
		font-size: 0.95em;
	}

	.legal-section {
		padding: 2.5em 0;
		font-size: 0.95em;
	}
}
