:root {
	--waa-primary: #ff9900; /* Color oficial y reconocible de Amazon / Alta Conversión */
	--waa-primary-hover: #e68a00;
	--waa-gold: #ffbe00;
	--waa-text-dark: #111827;
	--waa-text-muted: #6b7280;
	--waa-bg-light: #f9fafb;
	--waa-bg-white: #ffffff;
	--waa-border: #e5e7eb;
	--waa-success: #10b981;
	--waa-danger: #ef4444;
	--waa-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--waa-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--waa-shadow-lg: 0 10px 15px -3px rgba(255, 153, 0, 0.2), 0 4px 6px -2px rgba(255, 153, 0, 0.1);
	--waa-radius: 12px;
	--waa-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   1. PLANTILLA VISUAL AUTOMÁTICA (EDITORIAL REVIEW TEMPLATE)
   ========================================================================== */
.waa-editorial-template {
	font-family: var(--waa-font);
	color: var(--waa-text-dark);
	line-height: 1.75;
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Aviso legal superior de Afiliado (Transparencia FTC & RGPD) */
.waa-legal-disclaimer-top {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	padding: 12px 18px;
	border-radius: var(--waa-radius);
	font-size: 0.85rem;
	margin-bottom: 2rem;
	box-shadow: var(--waa-shadow-sm);
}

.waa-legal-disclaimer-top .waa-icon {
	font-size: 1.2rem;
	flex-shrink: 0;
}

/* Estilo de los encabezados autogenerados en la plantilla */
.waa-editorial-template h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--waa-primary);
	color: #1a202c;
}

.waa-editorial-template h3 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 1.8rem 0 0.8rem;
	color: #374151;
}

.waa-editorial-template p {
	margin-bottom: 1.4rem;
	font-size: 1.1rem;
	color: #374151;
}

/* ==========================================================================
   2. CAJAS DE CONVERSIÓN DE PRODUCTO [waa_box] (PRODUCT CARDS PREMIUM)
   ========================================================================== */
.waa-product-card {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	background: var(--waa-bg-white);
	border: 2px solid var(--waa-border);
	border-radius: var(--waa-radius);
	padding: 2rem;
	margin: 2.5rem 0;
	box-shadow: var(--waa-shadow-md);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.waa-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-color: #fed7aa;
}

/* Insignia "Mejor Valor" / "Destacado" */
.waa-badge-featured {
	position: absolute;
	top: 16px;
	right: 16px;
	background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 6px 12px;
	border-radius: 9999px;
	box-shadow: var(--waa-shadow-sm);
}

.waa-product-media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--waa-bg-light);
	border-radius: calc(var(--waa-radius) - 4px);
	text-align: center;
}

.waa-product-media img {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.waa-product-card:hover .waa-product-media img {
	transform: scale(1.06);
}

.waa-product-details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.waa-product-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--waa-text-dark);
	margin-top: 0;
	margin-bottom: 0.75rem;
	line-height: 1.3;
	text-decoration: none;
}

.waa-product-title:hover {
	color: var(--waa-primary);
}

/* Valoración en Estrellas */
.waa-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 1.25rem;
}

.waa-stars {
	color: var(--waa-gold);
	font-size: 1.2rem;
	letter-spacing: 2px;
	text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.waa-rating-num {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--waa-text-dark);
}

/* Pros y Contras integrados en la caja */
.waa-pros-cons-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 1.2rem 0;
	padding: 1rem;
	background-color: #f8fafc;
	border-radius: var(--waa-radius);
	border: 1px solid #f1f5f9;
}

.waa-pro-list, .waa-con-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
}

.waa-pro-list li, .waa-con-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
	line-height: 1.4;
}

.waa-pro-icon { color: var(--waa-success); font-weight: bold; font-size: 1.1rem; }
.waa-con-icon { color: var(--waa-danger); font-weight: bold; font-size: 1.1rem; }

/* Sección de Precio y Botón CTA de alta conversión */
.waa-action-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--waa-border);
}

.waa-price-tag {
	display: flex;
	flex-direction: column;
}

.waa-price-label {
	font-size: 0.75rem;
	color: var(--waa-text-muted);
	text-transform: uppercase;
	font-weight: 600;
}

.waa-price-amount {
	font-size: 1.6rem;
	font-weight: 900;
	color: #047857; /* Verde confianza y oferta */
}

.waa-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
	color: #ffffff !important;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 9999px;
	box-shadow: var(--waa-shadow-lg);
	transition: all 0.25s ease;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.waa-cta-button:hover {
	background: linear-gradient(135deg, #e68a00 0%, #e65c00 100%);
	transform: scale(1.03);
	box-shadow: 0 12px 20px -5px rgba(255, 153, 0, 0.4);
}

/* ==========================================================================
   3. TABLA COMPARATIVE RESPONSIVE [waa_grid]
   ========================================================================== */
.waa-comparison-table-wrap {
	overflow-x: auto;
	margin: 2.5rem 0;
	border: 1px solid var(--waa-border);
	border-radius: var(--waa-radius);
	box-shadow: var(--waa-shadow-sm);
}

.waa-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	text-align: center;
}

.waa-comparison-table th {
	background: #f1f5f9;
	color: var(--waa-text-dark);
	font-weight: 800;
	padding: 1rem;
	font-size: 0.95rem;
	text-transform: uppercase;
	border-bottom: 2px solid var(--waa-border);
}

.waa-comparison-table td {
	padding: 1.25rem 1rem;
	border-bottom: 1px solid var(--waa-border);
	vertical-align: middle;
}

.waa-comparison-table tr:hover td {
	background: #fffbeb;
}

.waa-table-img {
	max-width: 90px;
	max-height: 90px;
	object-fit: contain;
}

.waa-winner-row td {
	background-color: #fffdf2;
	font-weight: bold;
}

.waa-badge-medal {
	display: inline-block;
	background: #f59e0b;
	color: #fff;
	font-size: 0.75rem;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 6px;
	margin-bottom: 5px;
}

/* ==========================================================================
   4. SECCIÓN DE PREGUNTAS FRECUENTES ACCORDION (FAQ AUTO-TEMPLATE)
   ========================================================================== */
.waa-faq-section {
	margin: 3.5rem 0 2rem;
	padding: 2.5rem;
	background: #f8fafc;
	border-radius: var(--waa-radius);
	border: 1px solid #e2e8f0;
}

.waa-faq-title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--waa-text-dark);
	margin-top: 0;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 12px;
}

.waa-faq-item {
	border-bottom: 1px solid #e2e8f0;
	padding: 1.2rem 0;
}

.waa-faq-item:last-child {
	border-bottom: none;
}

.waa-faq-q {
	font-weight: 700;
	font-size: 1.15rem;
	color: #1e293b;
	margin: 0 0 0.6rem 0;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
}

.waa-faq-a {
	color: #475569;
	font-size: 1.05rem;
	margin: 0;
	line-height: 1.6;
}

/* ==========================================================================
   5. DISEÑO ADAPTABLE A MÓVILES (100% RESPONSIVE PARA TRÁFICO SMARTPHONE)
   ========================================================================== */
@media (max-width: 768px) {
	.waa-product-card {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1.5rem;
	}
	
	.waa-pros-cons-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.waa-action-footer {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.waa-cta-button {
		width: 100%;
		box-sizing: border-box;
	}
}
