/* More general override for landing page context if body class isn't used */
html,
body {
	/* This will apply if landing.html is the root or if no more specific body class is set */
	background-color: #000000;
}

.landing-section {
	padding: 4rem 1rem;
	text-align: center;
	overflow-x: hidden;
	background-color: #000000; /* Explicit for sections, ensures consistency */
}

.landing-section .container {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.landing-section h2 {
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	line-height: 1.3em; /* MODIFIED: unitless to em */
	color: var(--text-primary);
}

.landing-section h3 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}

.landing-section h4 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

.landing-section p {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
	line-height: 1.6em; /* MODIFIED: unitless to em */
}
.landing-section p.subtitle {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--text-primary);
}

.alt-bg {
	background-color: #000000;
}

.btn-large {
	padding: 15px 30px;
	font-size: 1.1rem;
}

/* --- Hero Section (#hero) --- */
.hero-specific-bg {
	background-color: #000000;
}

#hero .hero-content h1 {
	font-size: 2.8rem;
	max-width: 900px;
	margin-bottom: 1rem;
	line-height: 1.2em; /* MODIFIED: unitless to em */
	margin-left: auto;
	margin-right: auto;
	color: var(--text-primary);
}

#hero .hero-content p {
	max-width: 600px;
	margin-bottom: 2rem;
	color: #ccc;
}

.hero-image-comparison {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.hero-element {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-element-old {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 0.5rem;
	width: 400px;
	height: 400px;
	flex-shrink: 0;
}

.hero-element-old-picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-element-new {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-element-new-picture {
	width: 400px;
	object-fit: cover;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.hero-arrow {
	font-size: 2.5rem;
	color: var(--accent-primary);
	opacity: 0.9;
	display: flex;
	align-items: center;
	margin: 1rem 0;
}

/* --- Problem Section (#problem) --- */
.problem-list {
	list-style: none;
	padding-left: 0;
	max-width: 750px; /* MODIFIED: Consistent max-width */
	margin: 2rem auto 0 auto;
}

.problem-list li {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 2rem; /* Adjusted for consistency */
	padding-left: 2.5rem; /* ADDED: Consistent padding for icon space */
	position: relative; /* ADDED: For icon positioning */
	text-align: left;
}

.problem-list .problem-icon {
	position: absolute;
	left: 0;
	top: 0.05em;
	color: var(--accent-danger);
	font-size: 1.3rem;
	line-height: 1.1em;
	width: 1.5rem;
	text-align: center;
}

.problem-list strong {
	color: var(--text-primary);
	margin-right: 0.3rem;
}

/* --- Solution Section (#solution) --- */
.steps-container {
	display: flex;
	justify-content: space-around;
	gap: 2rem;
	margin-top: 3rem;
	flex-wrap: wrap;
}

.step-item {
	flex: 1;
	min-width: 280px;
	max-width: 350px;
	padding: 1.5rem;
	background-color: var(--bg-secondary);
	border-radius: 8px;
	border: 1px solid var(--gray-iron);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-item .step-number {
	display: inline-block;
	background-color: var(--accent-primary);
	color: var(--text-primary);
	font-size: 1.5rem;
	font-weight: bold;
	width: 2.5rem;
	height: 2.5rem;
	line-height: 2.5rem;
	border-radius: 50%;
	text-align: center;
	margin-bottom: 1rem;
}

.step-item h3 {
	color: var(--text-primary);
}
.step-item p {
	font-size: 1rem;
	max-width: none;
}

/* --- Results Section (#results) --- */
.example-categories {
	margin-top: 2rem;
}
.example-category {
	margin-bottom: 3rem;
}
.example-category h4 {
	font-size: 1.3rem;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.image-gallery-row {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.example-image {
	width: 100%;
	max-width: 220px;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.example-image:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(230, 59, 18, 0.3);
}

/* --- Benefits Section (#benefits) --- */
.benefits-list {
	list-style: none;
	padding-left: 0;
	max-width: 750px;
	margin: 2rem auto 0 auto;
	text-align: left;
}
.benefits-list li {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	padding-left: 2.5rem;
	position: relative;
}
.benefits-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent-success);
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.1em;
	width: 1.5rem;
	text-align: center;
}

/* --- Pricing Section --- */
#plans-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin-top: 5rem;
	align-items: flex-start; /* Align cards to the top */
}

.plan-card-public {
	background-color: var(--bg-secondary);
	border: 1px solid var(--gray-iron);
	border-radius: 12px; /* Smoother corners */
	padding: 2rem 1.5rem;
	width: 100%;
	max-width: 330px; /* Slightly wider cards */
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card-public h3 {
	font-size: 1.6rem;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.plan-price-public {
	font-size: 2.5rem;
	font-weight: bold;
	color: var(--accent-primary);
	margin-bottom: 0.5rem;
}

.plan-frequency-public {
	font-size: 1rem;
	font-weight: normal;
	color: var(--text-secondary);
}

.plan-features-public {
	list-style: none;
	padding: 0;
	margin: 2rem 0; /* More vertical space */
	width: 100%;
	text-align: left;
	flex-grow: 1; /* Allows this to push the button down */
}

.btn-select-plan-public {
	width: 100%;
	padding: 12px 20px;
	font-size: 1rem;
	margin-top: auto; /* Pushes button to the bottom */
}

/* --- START OF CORRECTED AND ENHANCED PLAN FEATURE STYLES --- */

/* Highlight for the recommended plan (Creador IA Pro) */
.plan-card-public.highlighted-plan {
	position: relative;
	border: 2px solid var(--accent-primary);
	transform: scale(1.05); /* Make it pop */
	z-index: 5;
	box-shadow: 0 8px 40px rgba(230, 59, 18, 0.25);
}

/* "Más Popular" banner for the highlighted plan */
.plan-card-public.highlighted-plan::before {
	content: "Más Popular";
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--accent-primary);
	color: var(--text-primary);
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
	z-index: 10;
}

/* Base style for the new feature labels */
.feature-label {
	display: inline-block;
	padding: 3px 8px;
	margin-left: 6px;
	font-size: 0.7rem; /* Slightly smaller for better fit */
	font-weight: 700;
	border-radius: 5px;
	vertical-align: middle;
	line-height: 1.2;
	text-transform: uppercase;
	position: relative;
	top: -1px; /* Fine-tune alignment */
}

/* Specific brand colors for the labels */
.label-kling {
	background-color: #1e8e3e;
	color: #ffffff;
}
.label-google {
	background-color: #4285f4;
	color: #ffffff;
}
.label-flux {
	background-color: #ffc107;
	color: #000000;
}
.label-topaz {
	background-color: #fca311;
	color: #000000;
}

/* General list item styling in the features list */
.plan-features-public li {
	font-size: 0.95rem; /* Standardize font size */
	color: var(--text-secondary);
	margin-bottom: 0.8rem;
	padding-left: 0; /* Reset padding, will be handled by classes/content */
	position: relative;
}

/* Style for the group headers like "Con tus créditos..." */
.plan-features-public li.feature-group-header {
	color: var(--text-primary);
	font-weight: 600;
	margin-top: 1.2rem;
	margin-bottom: 0.6rem;
	font-size: 1rem;
}
/* Group headers should not have an icon */
.plan-features-public li.feature-group-header::before {
	content: none;
}

/* Add a checkmark to all list items that are NOT group headers or strikethroughs */
.plan-features-public li:not(.feature-group-header):not(:has(s)) {
	padding-left: 1.8rem;
}
.plan-features-public li:not(.feature-group-header):not(:has(s))::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent-success);
	font-weight: bold;
	font-size: 1.2rem;
}

/* Style for strikethrough text to make it obvious */
.plan-features-public li s {
	color: #6c757d; /* Gray out the text */
	text-decoration: line-through;
	text-decoration-color: #dc3545; /* Red line for high contrast */
	text-decoration-thickness: 2px;
	opacity: 0.7;
}

/* When a label is inside a strikethrough, gray it out too */
.plan-features-public li s .feature-label {
	filter: grayscale(80%);
	opacity: 0.6;
}
/* --- END OF CORRECTED AND ENHANCED PLAN FEATURE STYLES --- */

/* --- FAQ Section (#faq) --- */
.faq-list {
	max-width: 800px;
	margin: 2rem auto 0 auto;
	text-align: left;
}

.faq-item {
	margin-bottom: 1rem;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--gray-iron);
}
.faq-item:last-child {
	margin-bottom: 0;
}

.faq-question-btn {
	background-color: var(--bg-secondary);
	color: var(--text-primary);
	border: none;
	padding: 1rem 1.5rem;
	width: 100%;
	text-align: left;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.2s ease;
}

.faq-question-btn:hover {
	background-color: var(--gray-iron);
}
.faq-question-btn.active {
	background-color: var(--gray-iron);
}

.faq-question-text {
	flex-grow: 1;
	margin-right: 1rem;
}

.faq-toggle-icon {
	font-size: 1.5rem;
	font-weight: bold;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.faq-answer-content {
	background-color: var(--bg-primary);
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.faq-answer-content.active {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.faq-answer-content p {
	font-size: 1rem;
	color: var(--text-secondary);
	margin-bottom: 0;
	line-height: 1.6em;
}
.faq-answer-content p:not(:last-child) {
	margin-bottom: 1rem;
}

/* --- Final CTA & Gallery Section (#final-cta) --- */
.final-gallery-container {
	margin-top: 3rem;
}
.final-gallery-container h3 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: var(--text-primary);
}

.hero-gallery {
	display: flex;
	gap: 1rem;
	width: 100%;
	padding: 0;
	margin-top: 1rem;
	overflow: hidden;
}
.gallery-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1;
	min-width: 0;
}
.hero-gallery img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero-gallery img:hover {
	transform: scale(1.03);
	opacity: 0.9;
}

/* --- Technology Partners Section (#partners) --- */
.partners-section {
	padding: 2.5rem 1rem;
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--gray-iron);
	border-bottom: 1px solid var(--gray-iron);
}

.partners-section .container {
	max-width: 800px;
}

.partners-title {
	font-size: 1rem;
	color: var(--text-secondary);
	letter-spacing: 1px;
	padding-bottom: 2rem;
	font-weight: 500;
	text-align: center;
}

.partner-logos-container {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
	padding: 1rem 0;
}

.partner-logos-scroller {
	display: flex;
	align-items: center;
	gap: 5.5rem;
	width: fit-content;
	animation: scroll-logos 20s linear infinite;
}

.partner-logos-scroller:hover {
	animation-play-state: paused;
}

.partner-logo {
	flex-shrink: 0;
}

.partner-logo img {
	max-height: 50px;
	width: auto;
	opacity: 0.7;
	transition: opacity 0.3s ease, filter 0.3s ease;
	filter: grayscale(30%) brightness(150%);
	display: block;
}

.partner-logo img:hover {
	opacity: 1;
	filter: grayscale(0%) brightness(100%);
}

@keyframes scroll-logos {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(calc(-1 * var(--scroll-width, 1000px)));
	}
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
	.hero-image-comparison {
		flex-direction: column;
		gap: 2rem;
	}
	.hero-arrow {
		transform: rotate(90deg);
		margin: 0.5rem 0;
	}
	.hero-element-new-picture {
		max-width: 340px;
		width: 100%;
	}
	.hero-element-old {
		width: 340px;
		height: 340px;
	}
	.steps-container {
		flex-direction: column;
		align-items: center;
	}
	.step-item {
		width: 100%;
		max-width: 450px;
	}
}

@media (max-width: 768px) {
	.landing-section {
		padding: 3rem 1rem;
	}
	.landing-section h2 {
		font-size: 1.8rem;
	}
	#hero .hero-content h1 {
		font-size: 2.2rem;
	}
	.landing-section p,
	#hero .hero-content p {
		font-size: 1rem;
	}
	.btn-large {
		padding: 12px 25px;
		font-size: 1rem;
	}
	.example-image {
		max-width: 180px;
	}

	.hero-gallery {
		flex-wrap: wrap;
	}
	.gallery-column {
		flex-basis: calc(50% - 0.5rem);
		min-width: 150px;
	}

	.faq-question-btn {
		padding: 0.8rem 1rem;
		font-size: 1rem;
	}
	.faq-toggle-icon {
		font-size: 1.3rem;
	}
	.faq-answer-content {
		padding: 0 1rem;
	}
	.faq-answer-content.active {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	.hero-image-comparison {
		gap: 1.5rem;
	}
	.hero-element-old {
		width: 300px;
		height: 300px;
	}
	.hero-element-new-picture {
		max-width: 300px;
		width: 100%;
	}

	.partner-logos-container {
		-webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
		mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
	}
	.partner-logos-scroller {
		gap: 2.5rem;
		animation-duration: 18s;
	}
	.partner-logo img {
		max-height: 35px;
	}
	.plan-card-public {
		max-width: calc(50% - 1rem);
	}
	#plans-container {
		gap: 1.5rem;
	}
	.plan-card-public.highlighted-plan {
		transform: scale(1.02); /* Less pronounced on smaller screens */
	}
}

@media (max-width: 480px) {
	.example-image {
		max-width: 150px;
	}

	.gallery-column {
		flex-basis: 100%;
	}
	.steps-container {
		gap: 1.5rem;
	}
	.step-item {
		padding: 1rem;
	}
	.landing-section h2 {
		font-size: 1.6rem;
	}
	#hero .hero-content h1 {
		font-size: 2rem;
	}
	.hero-arrow {
		margin: 1rem 0;
	}
	.hero-element-old {
		width: 240px;
		height: 240px;
		gap: 0.3rem;
	}
	.hero-element-new-picture {
		max-width: 240px;
		width: 100%;
	}

	.partners-section {
		padding: 2rem 1rem;
	}
	.partner-logos-container {
		-webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
		mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
	}
	.partner-logos-scroller {
		gap: 1.5rem;
		animation-duration: 15s;
	}
	.partner-logo img {
		max-height: 30px;
	}
	.plan-card-public {
		max-width: 100%;
	}
	#plans-container {
		gap: 1rem;
	}
	.plan-price-public {
		font-size: 2rem;
	}
	.plan-card-public h3 {
		font-size: 1.4rem;
	}
	.plan-card-public.highlighted-plan {
		transform: scale(1); /* No scaling on mobile */
		border-width: 2px;
	}
	.plan-card-public.highlighted-plan::before {
		font-size: 0.7rem;
		padding: 4px 12px;
	}
}
