/**
 * Estilos del frontend para Affiliate Amazon Catalog.
 */

/* Variables CSS */
:root {
	--aac-primary-color: #0073aa;
	--aac-accent-color: #00a0d2;
	--aac-text-color: #333;
	--aac-text-light: #666;
	--aac-border-color: #ddd;
	--aac-bg-light: #f9f9f9;
	--aac-success-color: #46b450;
	--aac-error-color: #dc3232;
	--aac-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--aac-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
	--aac-font-family: inherit;
	--aac-font-size-base: 16px;
	--aac-heading-font-size: 28px;
	--aac-image-width: 600px;
	--aac-image-height: 600px;
	--aac-video-width: 800px;
	--aac-video-height: 450px;
}

/* Typography */
.aac-product-landing,
.aac-catalog {
	font-family: var(--aac-font-family);
	font-size: var(--aac-font-size-base);
	line-height: 1.6;
	color: var(--aac-text-color);
}

.aac-product-landing h1,
.aac-product-landing h2,
.aac-product-landing h3 {
	font-size: var(--aac-heading-font-size);
}

/* Container */
.aac-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.aac-single-product-wrapper {
	padding: 40px 0;
}

/* Catalog Grid */
.aac-catalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.aac-catalog.aac-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.aac-catalog.aac-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.aac-catalog.aac-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
	.aac-catalog,
	.aac-catalog.aac-columns-2,
	.aac-catalog.aac-columns-3,
	.aac-catalog.aac-columns-4 {
		grid-template-columns: 1fr;
	}
}

/* Product Card */
.aac-product-card {
	background: #fff;
	border: 1px solid var(--aac-border-color);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.aac-product-card:hover {
	box-shadow: var(--aac-shadow-hover);
	transform: translateY(-5px);
}

.aac-card-image {
	position: relative;
	overflow: hidden;
	background: var(--aac-bg-light);
	padding-top: 75%; /* Aspect ratio 4:3 */
}

.aac-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.aac-product-card:hover .aac-card-image img {
	transform: scale(1.05);
}

.aac-card-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.aac-card-category {
	font-size: 12px;
	color: var(--aac-text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.aac-card-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	line-height: 1.4;
}

.aac-card-title a {
	color: var(--aac-text-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

.aac-card-title a:hover {
	color: var(--aac-primary-color);
}

.aac-card-rating {
	margin-bottom: 12px;
}

.aac-card-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
	flex: 1;
}

.aac-card-benefits li {
	padding: 4px 0;
	font-size: 14px;
	color: var(--aac-text-light);
	position: relative;
	padding-left: 20px;
}

.aac-card-benefits li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--aac-success-color);
	font-weight: bold;
}

.aac-card-price {
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: bold;
}

.aac-card-price .price-discount {
	color: var(--aac-error-color);
	margin-right: 10px;
}

.aac-card-price .price-regular {
	color: var(--aac-text-light);
	text-decoration: line-through;
	font-size: 14px;
	font-weight: normal;
}

.aac-card-actions {
	margin-top: auto;
}

/* Buttons */
.aac-button {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1.4;
}

.aac-button-primary {
	background-color: var(--aac-primary-color);
	color: #fff;
}

.aac-button-primary:hover {
	background-color: var(--aac-accent-color);
	color: #fff;
}

.aac-button-secondary {
	background-color: transparent;
	color: var(--aac-primary-color);
	border: 2px solid var(--aac-primary-color);
}

.aac-button-secondary:hover {
	background-color: var(--aac-primary-color);
	color: #fff;
}

.aac-button-rounded {
	border-radius: 30px;
}

.aac-button-squared {
	border-radius: 4px;
}

.aac-button .cta-main {
	display: block;
}

.aac-button .cta-sub {
	display: block;
	font-size: 12px;
	font-weight: normal;
	opacity: 0.9;
	margin-top: 4px;
}

/* Star Rating */
.aac-star-rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.aac-star-rating .star {
	font-size: 18px;
	color: #ffc107;
	line-height: 1;
}

.aac-star-rating .star-empty {
	color: #ddd;
}

.aac-star-rating .rating-value {
	margin-left: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--aac-text-color);
}

/* Landing Page Styles */
.aac-product-landing {
	max-width: 1200px;
	margin: 0 auto;
}

/* Hero Section */
.aac-hero-section {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	margin-bottom: 40px;
	box-shadow: var(--aac-shadow);
}

.aac-hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 768px) {
	.aac-hero-content {
		grid-template-columns: 1fr;
	}

	.aac-hero-section {
		padding: 20px;
	}
}

.aac-hero-image {
	margin-bottom: 20px;
}

.aac-hero-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Image Slider */
.aac-image-slider {
	position: relative;
	width: 100%;
	max-width: var(--aac-image-width, 600px);
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--aac-shadow);
}

.aac-slider-main {
	position: relative;
	width: 100%;
	height: var(--aac-image-height, 600px);
	overflow: hidden;
}

.aac-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aac-bg-light);
}

.aac-slide.active {
	opacity: 1;
	position: relative;
	z-index: 1;
}

.aac-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.aac-slide img:hover {
	transform: scale(1.05);
}

.aac-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 15px;
	z-index: 10;
	pointer-events: none;
}

.aac-slider-prev,
.aac-slider-next {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 30px;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: all;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aac-primary-color);
	box-shadow: var(--aac-shadow);
}

.aac-slider-prev:hover,
.aac-slider-next:hover {
	background: var(--aac-primary-color);
	color: #fff;
	transform: scale(1.1);
}

.aac-slider-dots {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.aac-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.aac-slider-dot.active,
.aac-slider-dot:hover {
	background: #fff;
	border-color: var(--aac-primary-color);
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.aac-image-slider {
		max-width: 100%;
	}
	
	.aac-slider-main {
		height: 300px;
	}
	
	.aac-slider-prev,
	.aac-slider-next {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

.aac-hero-info {
	display: flex;
	flex-direction: column;
}

.aac-product-title {
	font-size: 32px;
	margin: 0 0 16px 0;
	color: var(--aac-text-color);
	line-height: 1.2;
}

.aac-product-rating {
	margin-bottom: 16px;
}

.aac-product-excerpt {
	font-size: 18px;
	line-height: 1.6;
	color: var(--aac-text-light);
	margin-bottom: 24px;
}

.aac-product-pricing {
	margin-bottom: 24px;
	font-size: 28px;
	font-weight: bold;
}

.aac-product-pricing .price-discount {
	color: var(--aac-error-color);
	margin-right: 12px;
}

.aac-product-pricing .price-regular {
	color: var(--aac-text-light);
	text-decoration: line-through;
	font-size: 20px;
	font-weight: normal;
	margin-left: 8px;
}

.aac-cta-primary {
	margin-top: auto;
}

.aac-cta-primary .aac-button {
	width: 100%;
	font-size: 18px;
	padding: 16px 32px;
}

/* Sections */
.aac-benefits-section,
.aac-pros-cons-section,
.aac-details-section,
.aac-lead-capture-section,
.aac-related-products-section {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	margin-bottom: 40px;
	box-shadow: var(--aac-shadow);
}

.aac-benefits-section h2,
.aac-pros-cons-section h2,
.aac-details-section h2,
.aac-lead-capture-section h2,
.aac-related-products-section h2 {
	font-size: 28px;
	margin: 0 0 24px 0;
	color: var(--aac-text-color);
	border-bottom: 3px solid var(--aac-primary-color);
	padding-bottom: 12px;
}

.aac-benefits-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aac-benefits-list li {
	padding: 12px 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--aac-text-color);
	position: relative;
	padding-left: 32px;
}

.aac-benefits-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--aac-success-color);
	font-size: 24px;
	font-weight: bold;
	line-height: 1;
}

/* Pros & Cons */
.aac-pros-cons-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media (max-width: 768px) {
	.aac-pros-cons-grid {
		grid-template-columns: 1fr;
	}
}

.aac-pros h3,
.aac-cons h3 {
	font-size: 20px;
	margin: 0 0 16px 0;
}

.aac-pros h3 {
	color: var(--aac-success-color);
}

.aac-cons h3 {
	color: var(--aac-error-color);
}

.aac-pros ul,
.aac-cons ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aac-pros li,
.aac-cons li {
	padding: 8px 0;
	font-size: 16px;
	line-height: 1.6;
	position: relative;
	padding-left: 28px;
}

.aac-pros li:before {
	content: "+";
	position: absolute;
	left: 0;
	color: var(--aac-success-color);
	font-weight: bold;
	font-size: 20px;
	line-height: 1;
}

.aac-cons li:before {
	content: "-";
	position: absolute;
	left: 0;
	color: var(--aac-error-color);
	font-weight: bold;
	font-size: 20px;
	line-height: 1;
}

/* Details Section */
.aac-product-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--aac-text-color);
}

.aac-product-content h3 {
	font-size: 22px;
	margin: 24px 0 12px 0;
}

.aac-product-content ul,
.aac-product-content ol {
	margin: 16px 0;
	padding-left: 30px;
}

.aac-product-content p {
	margin: 16px 0;
}

/* Lead Capture */
.aac-lead-capture-form {
	margin-top: 24px;
}

/* Final CTA */
.aac-final-cta-section {
	background: linear-gradient(135deg, var(--aac-primary-color), var(--aac-accent-color));
	color: #fff;
	padding: 60px 40px;
	border-radius: 8px;
	text-align: center;
	margin-bottom: 40px;
}

.aac-cta-box h2 {
	color: #fff;
	border-bottom: none;
	margin-bottom: 16px;
}

.aac-cta-box p {
	font-size: 18px;
	margin-bottom: 32px;
	opacity: 0.95;
}

.aac-final-cta-section .aac-button {
	background: #fff;
	color: var(--aac-primary-color);
	font-size: 20px;
	padding: 18px 40px;
}

.aac-final-cta-section .aac-button:hover {
	background: var(--aac-bg-light);
	transform: scale(1.05);
}

/* Category List */
.aac-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aac-category-list li {
	margin-bottom: 8px;
}

.aac-category-list a {
	color: var(--aac-text-color);
	text-decoration: none;
	font-size: 16px;
	transition: color 0.2s ease;
}

.aac-category-list a:hover {
	color: var(--aac-primary-color);
}

.aac-category-list .count {
	color: var(--aac-text-light);
	font-size: 14px;
}

.aac-category-list .subcategories {
	list-style: none;
	padding-left: 20px;
	margin-top: 8px;
}

.aac-category-list .subcategories li {
	margin-bottom: 4px;
}

.aac-category-list .subcategories a {
	font-size: 14px;
}

/* Video Section */
.aac-video-section {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	margin-bottom: 40px;
	box-shadow: var(--aac-shadow);
}

.aac-video-section h2 {
	font-size: var(--aac-heading-font-size);
	margin: 0 0 24px 0;
	color: var(--aac-text-color);
	border-bottom: 3px solid var(--aac-primary-color);
	padding-bottom: 12px;
}

.aac-video-container {
	position: relative;
	width: 100%;
	max-width: var(--aac-video-width, 800px);
	margin: 0 auto;
}

.aac-youtube-video {
	position: relative;
	width: 100%;
	max-width: var(--aac-video-width, 800px);
	margin: 0 auto;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: var(--aac-shadow);
	background: #000;
}

.aac-youtube-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: none;
	max-width: 100%;
	min-height: 100%;
}

@media (max-width: 768px) {
	.aac-video-container {
		max-width: 100%;
	}
	
	.aac-youtube-video {
		padding-bottom: 56.25%;
	}
}

/* Improved Look & Feel */
.aac-product-landing {
	background: #f5f5f5;
	padding: 20px;
	border-radius: 12px;
}

.aac-hero-section,
.aac-benefits-section,
.aac-pros-cons-section,
.aac-details-section,
.aac-lead-capture-section,
.aac-related-products-section,
.aac-video-section {
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.3s ease;
}

.aac-hero-section:hover,
.aac-benefits-section:hover,
.aac-pros-cons-section:hover,
.aac-details-section:hover,
.aac-lead-capture-section:hover,
.aac-related-products-section:hover,
.aac-video-section:hover {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Smooth Transitions */
.aac-product-card,
.aac-button,
.aac-slide img {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better Spacing */
.aac-product-landing section {
	margin-bottom: 40px;
}

.aac-product-landing section:last-child {
	margin-bottom: 0;
}

/* Vimeo Video */
.aac-vimeo-video {
	position: relative;
	width: 100%;
	max-width: var(--aac-video-width, 800px);
	margin: 0 auto;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: var(--aac-shadow);
	background: #000;
}

.aac-vimeo-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: none;
	max-width: 100%;
	min-height: 100%;
}

/* WordPress Video */
.aac-wordpress-video {
	width: 100%;
	max-width: var(--aac-video-width, 800px);
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--aac-shadow);
}

.aac-wordpress-video video {
	width: 100%;
	height: auto;
	display: block;
}

/* Embed Video */
.aac-video-embed {
	position: relative;
	width: 100%;
	max-width: var(--aac-video-width, 800px);
	margin: 0 auto;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: var(--aac-shadow);
	background: #000;
}

.aac-video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: none;
	max-width: 100%;
	min-height: 100%;
}

/* Social Share Section */
.aac-social-share-section {
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.aac-social-share h3 {
	font-size: 24px;
	margin: 0 0 20px 0;
	color: var(--aac-text-color);
	border-bottom: 2px solid var(--aac-primary-color);
	padding-bottom: 10px;
}

.aac-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.aac-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 2px solid var(--aac-border-color);
	border-radius: 8px;
	background: #fff;
	color: var(--aac-text-color);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	cursor: pointer;
}

.aac-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--aac-shadow);
}

.aac-share-facebook:hover {
	border-color: #1877f2;
	color: #1877f2;
}

.aac-share-twitter:hover {
	border-color: #1da1f2;
	color: #1da1f2;
}

.aac-share-pinterest:hover {
	border-color: #bd081c;
	color: #bd081c;
}

.aac-share-whatsapp:hover {
	border-color: #25d366;
	color: #25d366;
}

.aac-share-copy:hover {
	border-color: var(--aac-primary-color);
	color: var(--aac-primary-color);
}

.aac-share-icon {
	font-size: 20px;
	line-height: 1;
}

.aac-share-text {
	font-size: 14px;
}

.aac-share-special {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--aac-border-color);
}

.aac-share-special p {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: var(--aac-text-light);
}

.aac-copy-link-box {
	display: flex;
	gap: 10px;
	align-items: center;
}

.aac-link-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid var(--aac-border-color);
	border-radius: 4px;
	font-size: 14px;
	background: var(--aac-bg-light);
}

.aac-copy-link-btn {
	padding: 10px 20px;
	background: var(--aac-primary-color);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.aac-copy-link-btn:hover {
	background: var(--aac-accent-color);
}

@media (max-width: 768px) {
	.aac-share-buttons {
		flex-direction: column;
	}
	
	.aac-share-btn {
		width: 100%;
		justify-content: center;
	}
	
	.aac-copy-link-box {
		flex-direction: column;
	}
	
	.aac-copy-link-btn {
		width: 100%;
	}
}
