/* ===========================
   1. CSS Variables
   =========================== */
:root {
	/* Colors - From book cover palette */
	--color-primary: #0B0C1F;
	--color-accent: #00A8CC;
	--color-text: #2C2C2C;
	--color-text-light: #4A4A4A;
	--color-bg: #FFFFFF;
	--color-bg-light: #F9F9F9;
	--color-overlay: rgba(0, 0, 0, 0.5);

	/* Typography */
	--font-heading: 'Inter', sans-serif;
	--font-body: 'Merriweather', serif;

	/* Spacing (8px grid) */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 48px;
	--space-xl: 80px;

	/* Layout */
	--max-width: 1200px;
	--content-width: 720px;
}

/* ===========================
   2. Reset & Base Styles
   =========================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text);
	background-color: #d4af37;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===========================
   3. Typography
   =========================== */
h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: var(--space-md);
	color: var(--color-text);
}

h1 {
	font-size: 32px;
}

h2 {
	font-size: 28px;
}

h3 {
	font-size: 22px;
}

p {
	margin-bottom: var(--space-md);
}

/* ===========================
   4. Utility Classes
   =========================== */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-primary);
	color: var(--color-bg);
	padding: var(--space-xs);
	z-index: 100;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

/* ===========================
   5. Button Component
   =========================== */
.button {
	display: inline-block;
	padding: 16px 32px;
	font-size: 16px;
	font-family: var(--font-heading);
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	text-align: center;
	cursor: pointer;
	border: none;
}

.button--primary {
	background-color: transparent;
	border: 2px solid var(--color-text);
	color: var(--color-text);
}

.button--primary:hover,
.button--primary:focus {
	background-color: var(--color-text);
	color: var(--color-bg);
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* ===========================
   6. Hero Section
   =========================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a2332;
	background-image: url('../images/FINAL Book cover 5 - CUANDO EL CUERPO DEJA DE LUCHAR.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 40px 20px;
	text-align: center;
}

.hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-overlay);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}

.hero__title {
	font-size: 32px;
	font-weight: 700;
	color: var(--color-bg);
	margin-bottom: var(--space-lg);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
	font-size: 18px;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-bg);
	margin-bottom: 80px;
	line-height: 1.6;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__description {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	margin-bottom: var(--space-lg);
}

.hero .button--primary {
	border-color: var(--color-bg);
	color: var(--color-bg);
}

.hero .button--primary:hover,
.hero .button--primary:focus {
	background-color: var(--color-bg);
	color: var(--color-primary);
}

/* ===========================
   7. Book Section
   =========================== */
.book-section {
	padding: 80px 20px;
	background-color: var(--color-bg-light);
}

.book-section__container {
	max-width: var(--content-width);
	margin: 0 auto;
}

.book-section__content {
	text-align: center;
}

.book-section__title {
	font-size: 36px;
	margin-bottom: var(--space-sm);
}

.book-section__subtitle {
	font-size: 20px;
	font-style: italic;
	color: var(--color-text-light);
	margin-bottom: var(--space-lg);
}

.book-section__description {
	max-width: var(--content-width);
	margin: 0 auto var(--space-xl);
	text-align: left;
}

.book-section__description p {
	font-size: 18px;
	line-height: 1.8;
}

/* ===========================
   8. Audience Section
   =========================== */
.audience-section {
	padding: 80px 20px;
	background-color: var(--color-bg);
}

.audience-section__container {
	max-width: 800px;
	margin: 0 auto;
}

.audience-section__title {
	text-align: center;
	margin-bottom: var(--space-lg);
}

.audience-section__list {
	list-style: none;
	padding: 0;
}

.audience-section__item {
	position: relative;
	padding-left: 40px;
	margin-bottom: var(--space-md);
	font-size: 18px;
	line-height: 2.0;
}

.audience-section__item::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-size: 32px;
	line-height: 1;
}

/* ===========================
   9. Conferences Section
   =========================== */
.conferences-section {
	padding: 80px 20px;
	background-color: var(--color-primary);
	color: #FFFFFF;
}

.conferences-section__container {
	max-width: var(--content-width);
	margin: 0 auto;
	text-align: center;
}

.conferences-section__intro {
	font-style: italic;
	font-size: 18px;
	color: var(--color-accent);
	margin-bottom: var(--space-md);
}

.conferences-section__title {
	color: #FFFFFF;
	margin-bottom: var(--space-lg);
}

.conferences-section__content {
	font-size: 18px;
	line-height: 1.8;
	text-align: left;
}

.conferences-section__content p {
	margin-bottom: var(--space-md);
	color: rgba(255, 255, 255, 0.85);
}

.conferences-section__highlight {
	color: #FFFFFF !important;
	font-weight: 600;
}

.conferences-section__cta {
	margin-top: var(--space-lg);
}

.conferences-section__email {
	display: inline-block;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--color-accent);
	padding: 16px 32px;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.conferences-section__email:hover {
	background-color: var(--color-accent);
	color: var(--color-primary);
}

/* ===========================
   10. Author Section
   =========================== */
.author-section {
	padding: 80px 20px;
	background-color: var(--color-bg-light);
}

.author-section__container {
	max-width: var(--content-width);
	margin: 0 auto;
}

.author-section__title {
	text-align: center;
	margin-bottom: var(--space-lg);
}

.author-section__content {
	font-size: 18px;
	line-height: 1.8;
}

.author-section__content p {
	margin-bottom: var(--space-md);
}

/* ===========================
   11. Newsletter Section
   =========================== */
.newsletter {
	padding: 80px 20px;
	background-color: var(--color-bg);
}

.newsletter__container {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.newsletter__heading {
	margin-bottom: var(--space-md);
}

.newsletter__description {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: var(--space-sm);
	color: var(--color-text-light);
}

.newsletter__form {
	margin-top: var(--space-lg);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.newsletter__input {
	padding: 16px;
	font-size: 16px;
	font-family: var(--font-body);
	border: 2px solid var(--color-text-light);
	border-radius: 4px;
	width: 100%;
	transition: border-color 0.3s ease;
}

.newsletter__input:focus {
	outline: none;
	border-color: var(--color-accent);
}

.newsletter__submit {
	width: 100%;
}

/* Mailchimp Overrides */
#mc_embed_signup {
	background: transparent !important;
	clear: none;
	font: inherit;
	width: 100%;
}

#mc_embed_signup form {
	padding: 0;
	text-align: inherit;
}

#mc_embed_signup_scroll {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#mc_embed_signup .response {
	margin: var(--space-sm) 0 0;
	padding: var(--space-md);
	font-size: 15px;
	font-family: var(--font-heading);
	border-radius: 4px;
	font-weight: 500;
	line-height: 1.5;
}

#mc_embed_signup #mce-success-response {
	color: #1b5e20;
	background-color: #e8f5e9;
	border: 2px solid #4caf50;
}

#mc_embed_signup #mce-error-response {
	color: #b71c1c;
	background-color: #ffebee;
	border: 2px solid #f44336;
}

/* ===========================
   11. Mentoría Section
   =========================== */
.mentoria-section {
	padding: 100px 20px;
	background-color: #0B0C1F;
	text-align: center;
}

.mentoria-section__container {
	max-width: 700px;
	margin: 0 auto;
}

.mentoria-section__title {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 32px;
}

.mentoria-section__content {
	margin-bottom: 40px;
}

.mentoria-section__content p {
	font-size: 18px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 16px;
}

.mentoria-section .button--primary {
	border-color: #ffffff;
	color: #ffffff;
}

.mentoria-section .button--primary:hover,
.mentoria-section .button--primary:focus {
	background-color: #ffffff;
	color: #0B0C1F;
}

/* ===========================
   12. Closing Section
   =========================== */
.closing-section {
	padding: 100px 20px;
	background-color: var(--color-bg-light);
}

.closing-section__container {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.closing-section__quote {
	font-size: 24px;
	font-style: italic;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0;
}

/* ===========================
   12. Footer Section
   =========================== */
.footer {
	padding: 40px 20px;
	background-color: var(--color-primary);
	text-align: center;
}

.footer__container {
	max-width: var(--content-width);
	margin: 0 auto;
}

.footer__contact {
	font-size: 16px;
	color: var(--color-bg);
	margin-bottom: var(--space-sm);
}

.footer__link {
	color: var(--color-bg);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
	color: var(--color-accent);
	text-decoration: underline;
}

/* ===========================
   13. Media Queries
   =========================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
	h1 {
		font-size: 48px;
	}

	h2 {
		font-size: 36px;
	}

	h3 {
		font-size: 24px;
	}

	.hero__title {
		font-size: 48px;
	}

	.hero__subtitle {
		font-size: 28px;
		margin-bottom: 96px;
	}

	.hero__description {
		font-size: 20px;
	}



	#mc_embed_signup_scroll {
		flex-direction: row;
		align-items: stretch;
	}

	.newsletter__input {
		flex: 1;
		min-width: 0;
		/* Prevent flex item from overflowing or resizing unpredictably */
		width: 100%;
		/* Ensure full width in its flex context */
	}

	.newsletter__submit {
		width: auto;
		padding-left: 40px;
		padding-right: 40px;
	}

	.closing-section__quote {
		font-size: 28px;
	}
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
	.hero__subtitle {
		margin-bottom: 120px;
	}

	.hero__description {
		font-size: 22px;
	}

	.book-section {
		padding: 100px 40px;
	}

	.audience-section {
		padding: 100px 40px;
	}

	.author-section {
		padding: 100px 40px;
	}

	.newsletter {
		padding: 100px 40px;
	}

	.closing-section {
		padding: 120px 40px;
	}
}

/* ===========================
   Amazon Banner Sticky
   =========================== */
.amazon-banner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(135deg, #d4af37 0%, #c9a536 100%);
	/* Dorado más elegante */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	transition: all 0.3s ease;
}

.amazon-banner__container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0;
}

.amazon-banner__toggle {
	width: 100%;
	background: transparent;
	border: none;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	color: #0B0C1F;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	text-align: left;
	transition: all 0.2s ease;
}

.amazon-banner__toggle:hover,
.amazon-banner__toggle:focus {
	background: rgba(255, 255, 255, 0.15);
	outline: 2px solid rgba(255, 255, 255, 0.3);
	outline-offset: -2px;
}

.amazon-banner__title {
	flex: 1;
	line-height: 1.4;
}

.amazon-banner__icon {
	margin-left: 12px;
	font-size: 10px;
	transition: transform 0.3s ease;
	display: inline-block;
}

.amazon-banner__toggle[aria-expanded="true"] .amazon-banner__icon {
	transform: rotate(180deg);
}

.amazon-banner__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	background: #ffffff;
	color: var(--color-text);
	padding: 0 20px;
}

.amazon-banner__content:not([hidden]) {
	max-height: 600px;
	padding: 24px 20px;
	border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.amazon-banner__content h3 {
	font-size: 16px;
	margin-bottom: 16px;
	color: var(--color-primary);
	font-weight: 600;
}

.amazon-banner__content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
}

.amazon-banner__content li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.6;
}

.amazon-banner__content li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #d4af37;
	font-weight: bold;
	font-size: 16px;
}

.amazon-banner__content p {
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 12px;
}

.amazon-banner__content p:last-child {
	margin-bottom: 0;
}

.amazon-banner__content strong {
	color: #d4af37;
	font-weight: 600;
}

/* Ajuste para que el hero no quede debajo del banner */
.hero {
	margin-top: 48px;
	/* Altura exacta del banner cerrado */
}

/* Tablet y Desktop */
@media (min-width: 768px) {
	.amazon-banner__toggle {
		font-size: 15px;
		padding: 16px 40px;
		position: relative;
	}

	/* Efecto hover más visible en desktop */
	.amazon-banner__toggle::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%) scaleX(0);
		width: 90%;
		height: 2px;
		background: rgba(255, 255, 255, 0.4);
		transition: transform 0.3s ease;
	}

	.amazon-banner__toggle:hover::after {
		transform: translateX(-50%) scaleX(1);
	}

	.amazon-banner__content {
		padding: 0 40px;
	}

	.amazon-banner__content:not([hidden]) {
		padding: 32px 40px;
	}

	.amazon-banner__content h3 {
		font-size: 18px;
	}

	.amazon-banner__content li,
	.amazon-banner__content p {
		font-size: 16px;
	}

	.hero {
		margin-top: 52px;
	}
}

/* ===========================
   Mentoria Popup Sticky
   =========================== */
.mentoria-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: linear-gradient(135deg, #0B0C1F 0%, #1a2332 100%);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	padding: 24px;
	max-width: 320px;
	z-index: 999;
	opacity: 0;
	transform: translateY(100px) scale(0.9);
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	pointer-events: none;
}

.mentoria-popup[aria-hidden="false"] {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: all;
}

.mentoria-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.2s ease;
}

.mentoria-popup__close:hover,
.mentoria-popup__close:focus {
	color: #ffffff;
	outline: none;
}

.mentoria-popup__content {
	color: #ffffff;
}

.mentoria-popup__title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #ffffff;
}

.mentoria-popup__subtitle {
	font-size: 14px;
	margin: 0 0 20px 0;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.5;
}

.mentoria-popup__cta {
	width: 100%;
	display: block;
	text-align: center;
	background: #00A8CC;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.mentoria-popup__cta:hover,
.mentoria-popup__cta:focus {
	background: #0095b3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

/* Desktop ajustes */
@media (min-width: 768px) {
	.mentoria-popup {
		bottom: 32px;
		right: 32px;
		max-width: 360px;
		padding: 28px;
	}

	.mentoria-popup__title {
		font-size: 22px;
	}

	.mentoria-popup__subtitle {
		font-size: 15px;
	}
}

/* Mobile - Centrado y más ancho */
@media (max-width: 767px) {
	.mentoria-popup {
		left: 20px;
		right: 20px;
		bottom: 20px;
		max-width: none;
	}
}
