:root {
	--dark-red: #8c1c13;
	--bittersweet-shimmer: #bf4342;
	--almond: #e7d7c1;
	--beaver: #a78a7f;
	--liver: #735751;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	overflow-x: hidden;
}

.hero-container {
	min-height: 100vh;
	background: linear-gradient(135deg, var(--almond) 0%, #f2e6d0 25%, var(--almond) 50%, #ede0c8 75%, var(--almond) 100%);
	position: relative;
	overflow: hidden;
}

.background-shapes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: linear-gradient(45deg, rgba(140, 28, 19, 0.1), rgba(191, 67, 66, 0.1));
	animation: float 20s ease-in-out infinite;
}

.shape-1 {
	width: 300px;
	height: 300px;
	top: 10%;
	left: -5%;
	animation-delay: 0s;
}

.shape-2 {
	width: 200px;
	height: 200px;
	top: 60%;
	right: -3%;
	animation-delay: 5s;
}

.shape-3 {
	width: 150px;
	height: 150px;
	top: 80%;
	left: 20%;
	animation-delay: 10s;
}

.shape-4 {
	width: 250px;
	height: 250px;
	top: 30%;
	right: 15%;
	animation-delay: 15s;
}

.floating-elements {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.floating-heart {
	position: absolute;
	font-size: 2rem;
	animation: heartFloat 8s ease-in-out infinite;
	opacity: 0.7;
}

.floating-heart-1 { top: 15%; left: 20%; animation-delay: 0s; }
.floating-heart-2 { top: 10%; left: 90%; animation-delay: 2s; }
.floating-heart-3 { top: 70%; left: 10%; animation-delay: 4s; }
.floating-heart-4 { top: 50%; right: 10%; animation-delay: 6s; }
.floating-heart-5 { top: 85%; right: 30%; animation-delay: 1s; }

@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	33% { transform: translateY(-30px) rotate(5deg); }
	66% { transform: translateY(15px) rotate(-3deg); }
}

@keyframes heartFloat {
	0%, 100% { transform: translateY(0px) scale(1); }
	50% { transform: translateY(-20px) scale(1.1); }
}

.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 3;
	padding: 2rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	max-width: 1400px;
	width: 100%;
	align-items: center;
}

.photo-section {
	display: flex;
	justify-content: center;
	position: relative;
	perspective: 1200px;
	perspective-origin: 50% 50%;
}

/* Contenedor 3D del libro */
.book-3d {
	position: relative;
	width: 450px;
	height: 600px;
	transform-style: preserve-3d;
	transform: rotateY(-25deg) rotateX(10deg);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	animation: bookIntro 2s ease-out;
}

@keyframes bookIntro {
	0% { 
		transform: rotateY(0deg) rotateX(0deg) scale(0.8);
		opacity: 0;
	}
	100% { 
		transform: rotateY(-25deg) rotateX(10deg) scale(1);
		opacity: 1;
	}
}

/* Cubierta frontal */
.book-front-cover {
	position: absolute;
	width: 450px;
	height: 600px;
	background: linear-gradient(135deg, var(--dark-red), var(--bittersweet-shimmer));
	border-radius: 0 12px 12px 0;
	transform-origin: left center;
	z-index: 10;
	box-shadow: 
		8px 8px 30px rgba(0, 0, 0, 0.3),
		inset -3px 0 12px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.book-front-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 12px 12px 0;
}

/* Páginas del libro */
.book-pages {
	position: absolute;
	width: 450px;
	height: 600px;
	transform-origin: left center;
	z-index: 5;
}

.page {
	position: absolute;
	width: 447px;
	height: 594px;
	background: linear-gradient(to right, #fafafa 0%, #f0f0f0 50%, #fafafa 100%);
	border: 1px solid #e0e0e0;
	border-radius: 0 10px 10px 0;
	border-left: none;
	box-shadow: 
		3px 0 12px rgba(0, 0, 0, 0.1),
		inset -1px 0 3px rgba(0, 0, 0, 0.05);
}

.page-1 { 
	transform: translateX(3px) translateZ(-1px);
	background: linear-gradient(to right, #f8f8f8 0%, #eeeeee 50%, #f8f8f8 100%);
}

.page-2 { 
	transform: translateX(6px) translateZ(-2px);
	background: linear-gradient(to right, #f6f6f6 0%, #ececec 50%, #f6f6f6 100%);
}

.page-3 { 
	transform: translateX(9px) translateZ(-3px);
	background: linear-gradient(to right, #f4f4f4 0%, #eaeaea 50%, #f4f4f4 100%);
}

.page-4 { 
	transform: translateX(12px) translateZ(-4px);
	background: linear-gradient(to right, #f2f2f2 0%, #e8e8e8 50%, #f2f2f2 100%);
}

.page-5 { 
	transform: translateX(15px) translateZ(-5px);
	background: linear-gradient(to right, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
}

/* Cubierta trasera */
.book-back-cover {
	position: absolute;
	width: 450px;
	height: 600px;
	background: linear-gradient(135deg, 
		#6d1610 0%, 
		var(--dark-red) 30%, 
		#4a0e0a 100%);
	border-radius: 12px 0 0 12px;
	transform: translateZ(-30px);
	z-index: 1;
	box-shadow: 
		-8px 8px 30px rgba(0, 0, 0, 0.4),
		inset 3px 0 12px rgba(0, 0, 0, 0.3);
}

/* Lomo del libro */
.book-spine {
	position: absolute;
	width: 30px;
	height: 600px;
	background: linear-gradient(to right, 
		var(--dark-red) 0%, 
		var(--bittersweet-shimmer) 20%, 
		var(--dark-red) 40%,
		#4a0e0a  60%,
		var(--dark-red) 80%,
		var(--bittersweet-shimmer) 100%);
	transform: translateX(-15px) translateZ(-15px) rotateY(90deg);
	transform-origin: left center;
	z-index: 3;
	box-shadow: 
		0 0 15px rgba(0, 0, 0, 0.5),
		inset 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Overlay de la cubierta */
.cover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, 
		rgba(140, 28, 19, 0.85) 0%, 
		rgba(191, 67, 66, 0.75) 50%,
		rgba(140, 28, 19, 0.85) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	border-radius: 0 12px 12px 0;
	backdrop-filter: blur(2px);
}

.open-indicator {
	text-align: center;
	color: var(--almond);
	transform: translateY(20px);
	transition: transform 0.4s ease;
}

.open-text {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 15px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.book-icon {
	font-size: 3.2rem;
	animation: bookIconFloat 2s ease-in-out infinite;
}

@keyframes bookIconFloat {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50% { transform: scale(1.1) rotate(5deg); }
}

/* Efectos de hover para simular apertura del libro */
.book-3d:hover {
	transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}

.book-3d:hover .book-front-cover {
	transform: rotateY(-25deg);
}

.book-3d:hover .cover-overlay {
	opacity: 1;
}

.book-3d:hover .open-indicator {
	transform: translateY(0);
}

.book-3d:hover .page-1 {
	transform: translateX(3px) translateZ(-1px) rotateY(-5deg);
}

.book-3d:hover .page-2 {
	transform: translateX(6px) translateZ(-2px) rotateY(-3deg);
}

.book-3d:hover .page-3 {
	transform: translateX(9px) translateZ(-3px) rotateY(-2deg);
}

.book-3d:hover .page-4 {
	transform: translateX(12px) translateZ(-4px) rotateY(-1deg);
}

.book-3d:hover .page-5 {
	transform: translateX(15px) translateZ(-5px) rotateY(-0.5deg);
}

.text-section {
	text-align: center;
	color: var(--dark-red);
}

.title-container {
	margin-bottom: 3rem;
	position: relative;
}

.title-emojis {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.emoji {
	position: absolute;
	font-size: 2.5rem;
	animation: emojiFloat 4s ease-in-out infinite;
	z-index: 10;
}

.emoji-top-left {
	top: -10px;
	left: 50px;
	animation-delay: 0s;
}

.emoji-top-right {
	top: -10px;
	right: 50px;
	animation-delay: 1s;
}

.emoji-bottom-left {
	bottom: 20px;
	left: 50px;
	animation-delay: 2s;
}

.emoji-bottom-right {
	bottom: 20px;
	right: 50px;
	animation-delay: 3s;
}

@keyframes emojiFloat {
	0%, 100% { transform: translateY(0px) scale(1); }
	50% { transform: translateY(-8px) scale(1.1); }
}

.main-title {
	font-family: 'Playfair Display', serif;
	font-size: 8rem;
	font-weight: 800;
	line-height: 0.9;
	margin-bottom: 1rem;
	position: relative;
}

.letter-l, .letter-k {
	display: inline-block;
	animation: letterGlow 3s ease-in-out infinite alternate;
}

.letter-l {
	color: var(--dark-red);
	animation-delay: 0s;
}

.letter-k {
	color: var(--bittersweet-shimmer);
	animation-delay: 1.5s;
}

.ampersand {
	font-family: 'Dancing Script', cursive;
	font-size: 4rem;
	color: var(--beaver);
	margin: 0 1rem;
	vertical-align: middle;
}

@keyframes letterGlow {
	0% { text-shadow: 0 0 20px rgba(140, 28, 19, 0.5); }
	100% { text-shadow: 0 0 40px rgba(191, 67, 66, 0.8), 0 0 60px rgba(140, 28, 19, 0.4); }
}

.title-underline {
	width: 200px;
	height: 4px;
	background: linear-gradient(90deg, var(--dark-red), var(--bittersweet-shimmer), var(--dark-red));
	margin: 0 auto;
	border-radius: 2px;
}

.names-container {
	margin-bottom: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.name {
	font-family: 'Dancing Script', cursive;
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--liver);
}

.heart-divider {
	font-size: 2rem;
	animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

.quote-container {
	margin-bottom: 3rem;
	position: relative;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 0;
}

.quote-mark {
	font-family: 'Playfair Display', serif;
	font-size: 2.5rem;
	color: var(--bittersweet-shimmer);
	line-height: 1;
	opacity: 0.8;
	display: inline;
	vertical-align: top;
}

.quote-mark.opening {
	margin-right: 5px;
}

.quote-mark.closing {
	margin-left: 5px;
}

.romantic-quote {
	font-family: 'Dancing Script', cursive;
	font-size: 1.8rem;
	font-weight: 500;
	color: var(--liver);
	font-style: italic;
	line-height: 1.4;
	margin: 0;
	display: inline;
}

/* Enlace del libro */
.photo-link {
	text-decoration: none;
	display: block;
}

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: var(--liver);
	animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	opacity: 0.8;
}

.scroll-arrow {
	font-size: 1.5rem;
}

@keyframes bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-10px); }
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.main-content {
	background: var(--almond);
	padding: 80px 0;
}

.intro-section {
	text-align: center;
	margin-bottom: 60px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.intro-section h2 {
	font-family: 'Playfair Display', serif;
	font-size: 2.5rem;
	color: var(--dark-red);
	margin-bottom: 20px;
}

.intro-section p {
	font-size: 1.1rem;
	color: var(--liver);
	line-height: 1.6;
}

.preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-top: 40px;
}

.preview-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(115, 87, 81, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
}

.preview-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 25px 60px rgba(140, 28, 19, 0.2);
}

.card-image {
	height: 250px;
	position: relative;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(140, 28, 19, 0.8), rgba(191, 67, 66, 0.6));
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.preview-card:hover .card-overlay {
	opacity: 1;
}

.card-icon {
	font-size: 3rem;
	color: white;
	animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.preview-card:hover .card-image img {
	transform: scale(1.1);
}

.preview-card h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	color: var(--dark-red);
	padding: 25px 25px 15px;
}

.preview-card p {
	color: var(--liver);
	padding: 0 25px 25px;
	font-size: 1rem;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 60px;
		text-align: center;
	}

	.book-3d {
		width: 350px;
		height: 480px;
		transform: rotateY(-20deg) rotateX(8deg);
	}

	.book-front-cover,
	.book-pages,
	.book-back-cover {
		width: 350px;
		height: 480px;
	}

	.page {
		width: 347px;
		height: 474px;
	}

	.book-spine {
		width: 25px;
		height: 480px;
		transform: translateX(-12px) translateZ(-12px) rotateY(90deg);
	}

	.main-title {
		font-size: 6rem;
	}

	.open-text {
		font-size: 1.5rem;
	}

	.book-icon {
		font-size: 2.8rem;
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding: 1rem;
	}

	.book-3d {
		width: 280px;
		height: 380px;
		transform: rotateY(-15deg) rotateX(5deg);
	}

	.book-front-cover,
	.book-pages,
	.book-back-cover {
		width: 280px;
		height: 380px;
	}

	.page {
		width: 277px;
		height: 374px;
	}

	.book-spine {
		width: 20px;
		height: 380px;
		transform: translateX(-10px) translateZ(-10px) rotateY(90deg);
	}

	.main-title {
		font-size: 4rem;
	}

	.emoji {
		font-size: 1.8rem;
	}

	.emoji-top-left,
	.emoji-bottom-left {
		left: -5px;
	}

	.emoji-top-right,
	.emoji-bottom-right {
		right: -5px;
	}

	.name {
		font-size: 2rem;
	}

	.romantic-quote {
		font-size: 1.4rem;
	}

	.names-container {
		flex-direction: column;
		gap: 1rem;
	}

	.preview-grid {
		grid-template-columns: 1fr;
	}

	.open-text {
		font-size: 1.2rem;
	}

	.book-icon {
		font-size: 2rem;
	}

	.book-3d:hover {
		transform: rotateY(-10deg) rotateX(3deg) scale(1.02);
	}
} 