/* 
 * Solutiva Proyectos - Main Stylesheet
 * Author: Cursor
 * Version: 1.0
 */

/* ======================================
   COLOR PALETTE
   
   Main Background: #F9F4ED (soft cream)
   Main Text: #2D1E2F (dark plum)
   Accents: #E63946 (carmine red), #F1A208 (honey yellow)
   Secondary Background: #FFFFFF
   Buttons: gradient from #FFB347 to #FFCC33
   ====================================== */

/* ======================================
   RESET & BASE STYLES
   ====================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 62.5%; /* 10px base for easier rem calculations */
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	font-size: 1.6rem;
	line-height: 1.6;
	color: #2d1e2f;
	background-color: #f9f4ed;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #e63946;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #f1a208;
}

ul,
ol {
	list-style-position: inside;
}

/* Container */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Section padding */
section {
	padding: 8rem 0;
}

.section-title {
	font-size: 3.6rem;
	margin-bottom: 4rem;
	text-align: center;
	position: relative;
}

.section-title::after {
	content: "";
	display: block;
	width: 8rem;
	height: 0.4rem;
	background: linear-gradient(to right, #ffb347, #ffcc33);
	margin: 1.5rem auto 0;
	border-radius: 0.2rem;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
	display: inline-block;
	padding: 1.2rem 2.4rem;
	border-radius: 0.4rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-size: 1.6rem;
}

.btn-primary {
	background: linear-gradient(to right, #ffb347, #ffcc33);
	color: #2d1e2f;
	box-shadow: 0 0.4rem 0.8rem rgba(241, 162, 8, 0.2);
}

.btn-primary:hover {
	background: linear-gradient(to right, #ffcc33, #ffb347);
	transform: translateY(-0.2rem);
	box-shadow: 0 0.6rem 1.2rem rgba(241, 162, 8, 0.3);
	color: #2d1e2f;
}

.btn-secondary {
	background: #ffffff;
	color: #2d1e2f;
	border: 0.2rem solid #e63946;
}

.btn-secondary:hover {
	background: #e63946;
	color: #ffffff;
}

.btn-service {
	background: linear-gradient(to right, #ffb347, #ffcc33);
	color: #2d1e2f;
	padding: 1rem 2rem;
	font-size: 1.5rem;
	width: 100%;
	border-radius: 0.4rem;
	font-weight: 600;
	margin-top: 2rem;
}

.btn-service:hover {
	background: linear-gradient(to right, #ffcc33, #ffb347);
	color: #2d1e2f;
}

.btn-cookie {
	background: #ffffff;
	color: #2d1e2f;
	padding: 0.8rem 1.6rem;
	font-size: 1.4rem;
	border: 0.1rem solid #2d1e2f;
}

.btn-cookie:hover {
	background: #2d1e2f;
	color: #ffffff;
}

/* ======================================
   HEADER & NAVIGATION
   ====================================== */
header {
	background-color: #ffffff;
	box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	padding: 1rem 0;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	max-width: 18rem;
}

.logo img {
	height: 5rem;
}

.main-nav {
	position: relative;
}

.menu-toggle {
	display: none;
}

.menu-icon {
	display: none;
	cursor: pointer;
	width: 3rem;
	height: 2.5rem;
	position: relative;
	z-index: 2;
}

.menu-icon span {
	display: block;
	position: absolute;
	height: 0.3rem;
	width: 100%;
	background: #2d1e2f;
	border-radius: 0.3rem;
	transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
	top: 0;
}

.menu-icon span:nth-child(2) {
	top: 1rem;
}

.menu-icon span:nth-child(3) {
	top: 2rem;
}

.menu {
	display: flex;
	list-style: none;
}

.menu li {
	margin-left: 2.5rem;
}

.menu li a {
	color: #2d1e2f;
	font-weight: 500;
	position: relative;
}

.menu li a::after {
	content: "";
	position: absolute;
	bottom: -0.5rem;
	left: 0;
	width: 0;
	height: 0.2rem;
	background: linear-gradient(to right, #ffb347, #ffcc33);
	transition: width 0.3s ease;
}

.menu li a:hover {
	color: #e63946;
}

.menu li a:hover::after {
	width: 100%;
}

.header-cta {
	display: inline-block;
}

/* Menu toggle behavior */
@media (max-width: 991px) {
	.menu-icon {
		display: block;
	}

	.menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		flex-direction: column;
		background: #ffffff;
		padding: 8rem 2rem 2rem;
		transition: right 0.3s ease;
		z-index: 1;
	}

	.menu li {
		margin: 1rem 0;
	}

	.menu-toggle:checked ~ .menu {
		right: 0;
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(1) {
		transform: rotate(45deg);
		top: 1rem;
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(3) {
		transform: rotate(-45deg);
		top: 1rem;
	}

	.header-cta {
		display: none;
	}
}

/* ======================================
   COOKIE BANNER
   ====================================== */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #2d1e2f;
	color: #ffffff;
	padding: 1rem 0;
	z-index: 99;
}

.cookie-banner .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cookie-banner p {
	margin-right: 2rem;
}

.cookie-banner a {
	color: #f1a208;
	text-decoration: underline;
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
	padding: 18rem 0 12rem;
	background-image: url("../img/hero-bg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	color: #ffffff;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(45, 30, 47, 0.7);
}

.hero-content {
	position: relative;
	max-width: 70rem;
	margin: 0 auto;
	text-align: center;
}

.hero h1 {
	font-size: 4.8rem;
	margin-bottom: 2rem;
	line-height: 1.2;
}

.hero p {
	font-size: 2rem;
	margin-bottom: 4rem;
}

/* ======================================
   ABOUT SECTION
   ====================================== */
.about {
	background-color: #ffffff;
}

.about-content {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
}

.about-text {
	flex: 1;
	min-width: 300px;
}

.about-text p {
	margin-bottom: 2rem;
}

.about-values {
	flex: 1;
	min-width: 300px;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.value-item {
	flex: 1 1 30%;
	padding: 2rem;
	border-radius: 0.6rem;
	background: #f9f4ed;
	text-align: center;
	box-shadow: 0 0.5rem 1.5rem rgba(45, 30, 47, 0.1);
	transition: transform 0.3s ease;
}

.value-item:hover {
	transform: translateY(-0.5rem);
}

.value-icon {
	width: 6rem;
	height: 6rem;
	margin: 0 auto 1.5rem;
}

.value-item h3 {
	margin-bottom: 1rem;
	color: #e63946;
}

/* ======================================
   SERVICES SECTION
   ====================================== */
.services {
	background-color: #f9f4ed;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
}

.service-card {
	background: #ffffff;
	border-radius: 0.6rem;
	overflow: hidden;
	box-shadow: 0 0.5rem 1.5rem rgba(45, 30, 47, 0.1);
	padding: 3rem;
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-0.5rem);
}

.service-icon {
	width: 8rem;
	height: 8rem;
	margin: 0 auto 2rem;
}

.service-card h3 {
	font-size: 2.4rem;
	margin-bottom: 1rem;
	text-align: center;
	color: #e63946;
}

.service-card p {
	margin-bottom: 2rem;
}

.service-features {
	margin-bottom: 2rem;
	list-style: none;
}

.service-features li {
	padding-left: 2rem;
	position: relative;
	margin-bottom: 0.5rem;
}

.service-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #f1a208;
	font-weight: bold;
}

/* ======================================
   ADVANTAGES SECTION
   ====================================== */
.advantages {
	background-color: #ffffff;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
}

.advantage-card {
	text-align: center;
	padding: 3rem 2rem;
	background: #f9f4ed;
	border-radius: 0.6rem;
	box-shadow: 0 0.5rem 1.5rem rgba(45, 30, 47, 0.1);
	transition: all 0.3s ease;
}

.advantage-card:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 1rem 2rem rgba(45, 30, 47, 0.15);
}

.advantage-icon {
	width: 7rem;
	height: 7rem;
	margin: 0 auto 2rem;
}

.advantage-card h3 {
	margin-bottom: 1.5rem;
	color: #e63946;
}

/* ======================================
   TESTIMONIALS SECTION
   ====================================== */
.testimonials {
	background-color: #f9f4ed;
}

.testimonial-slider {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
}

.testimonial-item {
	flex: 1 1 300px;
	background: #ffffff;
	border-radius: 0.6rem;
	padding: 3rem;
	box-shadow: 0 0.5rem 1.5rem rgba(45, 30, 47, 0.1);
}

.testimonial-content {
	margin-bottom: 2rem;
	position: relative;
}

.testimonial-content::before {
	content: '"';
	font-size: 8rem;
	color: rgba(230, 57, 70, 0.1);
	position: absolute;
	top: -3rem;
	left: -1rem;
	font-family: Georgia, serif;
}

.testimonial-author {
	display: flex;
	align-items: center;
}

.testimonial-author img {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	margin-right: 1.5rem;
	object-fit: cover;
}

.author-info h4 {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
	color: #e63946;
}

/* ======================================
   CASE STUDIES SECTION
   ====================================== */
.case-studies {
	background-color: #ffffff;
}

.cases-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
}

.case-card {
	border-radius: 0.6rem;
	overflow: hidden;
	box-shadow: 0 0.5rem 1.5rem rgba(45, 30, 47, 0.1);
	background: #f9f4ed;
	transition: transform 0.3s ease;
}

.case-card:hover {
	transform: translateY(-0.5rem);
}

.case-image {
	height: 20rem;
	overflow: hidden;
}

.case-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
	transform: scale(1.05);
}

.case-content {
	padding: 2.5rem;
}

.case-content h3 {
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	color: #e63946;
}

.case-content p {
	margin-bottom: 2rem;
}

.case-results {
	list-style: none;
}

.case-results li {
	padding-left: 2rem;
	position: relative;
	margin-bottom: 0.5rem;
}

.case-results li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: #f1a208;
	font-weight: bold;
}

/* ======================================
   FAQ SECTION
   ====================================== */
.faq {
	background-color: #f9f4ed;
}

.faq-container {
	max-width: 80rem;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 1.5rem;
	border-radius: 0.6rem;
	overflow: hidden;
	box-shadow: 0 0.3rem 1rem rgba(45, 30, 47, 0.1);
}

.faq-question {
	background: #ffffff;
	padding: 2rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.faq-question h3 {
	margin: 0;
	font-size: 1.8rem;
	padding-right: 2rem;
}

.faq-toggle {
	position: absolute;
	right: 2rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-toggle::before,
.faq-toggle::after {
	content: "";
	position: absolute;
	background: #e63946;
	transition: all 0.3s ease;
}

.faq-toggle::before {
	width: 1.5rem;
	height: 0.3rem;
}

.faq-toggle::after {
	width: 0.3rem;
	height: 1.5rem;
}

.faq-answer {
	background: #ffffff;
	padding: 0 2rem;
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.3s ease,
		padding 0.3s ease;
}

.faq-item:target .faq-answer,
.faq-question:hover + .faq-answer,
.faq-question:focus + .faq-answer,
.faq-answer:hover {
	max-height: 20rem;
	padding: 0 2rem 2rem;
}

.faq-item:target .faq-toggle::after,
.faq-question:hover .faq-toggle::after,
.faq-question:focus .faq-toggle::after {
	opacity: 0;
}

/* ======================================
   CONTACT FORM SECTION
   ====================================== */
.contact-form {
	background-color: #ffffff;
}

.form-container {
	max-width: 70rem;
	margin: 0 auto;
	padding: 4rem;
	background: #f9f4ed;
	border-radius: 0.6rem;
	box-shadow: 0 0.5rem 2rem rgba(45, 30, 47, 0.15);
}

.error-message {
	background: rgba(230, 57, 70, 0.1);
	border-left: 0.4rem solid #e63946;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border-radius: 0.4rem;
}

.error-message ul {
	list-style: none;
}

.error-message li {
	color: #e63946;
}

.form-group {
	margin-bottom: 2rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.8rem;
	font-weight: 600;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 1.2rem;
	border: 0.1rem solid #ddd;
	border-radius: 0.4rem;
	font-size: 1.6rem;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
	border-color: #f1a208;
	outline: none;
}

.form-checkboxes {
	margin-bottom: 2.5rem;
}

.form-check {
	margin-bottom: 1rem;
	display: flex;
	align-items: flex-start;
}

.form-check input {
	margin-right: 1rem;
	margin-top: 0.3rem;
}

.form-submit {
	text-align: center;
}

/* ======================================
   THANK YOU PAGE
   ====================================== */
.thank-you {
	padding: 15rem 0;
	text-align: center;
}

.thank-you-content {
	max-width: 70rem;
	margin: 0 auto;
}

.thank-you-icon {
	width: 10rem;
	height: 10rem;
	margin: 0 auto 3rem;
}

.thank-you h1 {
	font-size: 3.6rem;
	margin-bottom: 2rem;
	color: #e63946;
}

.thank-you p {
	font-size: 1.8rem;
	margin-bottom: 2rem;
}

.thank-you-actions {
	margin-top: 4rem;
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

/* ======================================
   FOOTER
   ====================================== */
footer {
	background-color: #2d1e2f;
	color: #ffffff;
	padding: 6rem 0 2rem;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4rem;
	margin-bottom: 4rem;
}

.footer-info {
	flex: 1;
	min-width: 250px;
}

.footer-logo {
	display: inline-block;
	margin-bottom: 2rem;
}

.footer-logo img {
	height: 5rem;
	filter: brightness(0) invert(1);
}

.footer-description {
	margin-bottom: 2rem;
}

.footer-contact {
	flex: 1;
	min-width: 250px;
}

.footer-contact h3 {
	margin-bottom: 2rem;
	font-size: 2rem;
	color: #f1a208;
}

.footer-contact ul {
	list-style: none;
	margin-bottom: 2rem;
}

.footer-contact li {
	margin-bottom: 1rem;
}

.footer-contact a {
	color: #f1a208;
}

.footer-contact a:hover {
	color: #e63946;
}

.map-container {
	width: 100%;
	height: 20rem;
	border-radius: 0.4rem;
	overflow: hidden;
}

.footer-legal {
	flex: 1;
	min-width: 250px;
}

.footer-legal h3 {
	margin-bottom: 2rem;
	font-size: 2rem;
	color: #f1a208;
}

.footer-legal ul {
	list-style: none;
}

.footer-legal li {
	margin-bottom: 1rem;
}

.footer-legal a {
	color: #ffffff;
	transition: color 0.3s ease;
}

.footer-legal a:hover {
	color: #f1a208;
}

.copyright {
	text-align: center;
	padding-top: 2rem;
	border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* ======================================
   LEGAL PAGES
   ====================================== */
.legal-page {
	padding: 12rem 0 6rem;
}

.legal-page h1 {
	font-size: 3.6rem;
	margin-bottom: 3rem;
	text-align: center;
}

.legal-content {
	max-width: 80rem;
	margin: 0 auto;
}

.legal-content h2 {
	font-size: 2.4rem;
	margin: 3rem 0 1.5rem;
	color: #e63946;
}

.legal-content h3 {
	font-size: 2rem;
	margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
	margin-bottom: 1.5rem;
}

.legal-content ul li,
.legal-content ol li {
	margin-bottom: 0.5rem;
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
   ====================================== */
@media (max-width: 1200px) {
	.container {
		max-width: 96%;
	}
}

@media (max-width: 991px) {
	html {
		font-size: 58%;
	}

	.about-content,
	.footer-content {
		flex-direction: column;
	}

	.about-text,
	.about-values,
	.footer-info,
	.footer-contact,
	.footer-legal {
		flex: 1 1 100%;
	}

	.about-values {
		justify-content: center;
	}

	.value-item {
		flex: 1 1 45%;
	}
}

@media (max-width: 768px) {
	html {
		font-size: 55%;
	}

	section {
		padding: 6rem 0;
	}

	.hero {
		padding: 15rem 0 10rem;
	}

	.hero h1 {
		font-size: 3.6rem;
	}

	.testimonial-slider,
	.thank-you-actions {
		flex-direction: column;
	}

	.testimonial-item {
		flex: 1 1 100%;
	}

	.form-container {
		padding: 3rem 2rem;
	}

	.cookie-banner .container {
		flex-direction: column;
	}

	.cookie-banner p {
		margin-right: 0;
		margin-bottom: 1rem;
	}
}

@media (max-width: 576px) {
	html {
		font-size: 50%;
	}

	.value-item {
		flex: 1 1 100%;
	}

	.service-card,
	.advantage-card,
	.case-card {
		max-width: 32rem;
		margin: 0 auto;
	}

	.cases-grid,
	.services-grid,
	.advantages-grid {
		grid-template-columns: 1fr;
	}
}
