:root {
	/* Modern Color Palette */
	--primary-color: #f79263;
	--primary-hover: #fb6c29;
	--secondary-color: #182042;
	--text-color: #2d3436;
	--text-dark: #1e272e;
	--text-medium: #485460;
	--text-light: #808e9b;
	--bg-light: #f9f9f9;
	--white: #ffffff;
	--border-color: rgba(0, 0, 0, 0.08);
	--glass-bg: rgba(255, 255, 255, 0.8);
	--glass-border: rgba(255, 255, 255, 0.18);
	--card-bg: rgba(255, 255, 255, 0.9);
	--shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--border-radius: 20px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-light);
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#content {
	flex: 1 0 auto;
}

footer {
	flex-shrink: 0;
}

/* Landing Page Specific */
body:not(.nolanding) {
	color: var(--white);
}

#background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-size: cover;
	background-position: center;
	transition: var(--transition);
	filter: brightness(0.6);
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 1000;
	background: transparent;
	transition: var(--transition);
}

nav.scrolled {
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-soft);
	padding: 1rem 5%;
}

nav #logo {
	font-weight: 800;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
}

nav #logo img {
	height: 35px;
	margin-right: 10px;
}

nav #logo span {
	background: var(--primary-color);
	color: var(--white);
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 5px;
	text-transform: uppercase;
}

nav ul#enlaces {
	display: flex;
	list-style: none;
	gap: 1.5rem;
	align-items: center;
}

nav ul#enlaces li a {
	color: var(--white);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: var(--transition);
	opacity: 0.8;
}

nav.scrolled ul#enlaces li a {
	color: var(--secondary-color);
}

nav ul#enlaces li a:hover {
	opacity: 1;
	color: var(--primary-color);
}

/* Hero background on secondary pages is now dark consistently */


/* Content Sections */
#content {
	margin-top: 0;
}

/* Hero Section */
.hero {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 10%;
	position: relative;
}

.hero h1 {
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: -1px;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	max-width: 800px;
	margin-bottom: 2.5rem;
	opacity: 0.9;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-button {
	background: var(--primary-color);
	color: var(--white);
	padding: 1.2rem 2.5rem;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	transition: var(--transition);
	box-shadow: 0 10px 20px rgba(247, 146, 99, 0.3);
}

.cta-button:hover {
	background: var(--primary-hover);
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(247, 146, 99, 0.4);
}

/* Features Section */
.features {
	padding: 6rem 10%;
	background: var(--white);
	color: var(--text-color);
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-header h2 {
	font-size: 2.5rem;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.feature-card {
	padding: 3rem 2rem;
	border-radius: 20px;
	background: var(--bg-light);
	transition: var(--transition);
	border: 1px solid transparent;
}

.feature-card:hover {
	background: var(--white);
	box-shadow: var(--shadow-soft);
	transform: translateY(-10px);
	border-color: var(--primary-color);
}

.feature-icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}

.feature-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--secondary-color);
}

.feature-card p {
	color: var(--text-light);
}

/* Modals & Forms (Login/Register) */
#loginbox,
#registerbox,
#recoverbox {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 450px;
	background: #ffffff !important;
	border-radius: 20px;
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
	z-index: 9999;
	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
	display: none;
	/* Asegurar ocultación inicial */
}

body.modal-open {
	overflow: hidden !important;
	height: 100vh;
}

#modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	z-index: 2050;
	display: none;
}

.modal-header {
	background: var(--secondary-color);
	padding: 2rem;
	text-align: center;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 1.2rem;
	transition: var(--transition);
}

.modal-close:hover {
	color: var(--white);
	transform: rotate(90deg);
}

.modal-header h1 {
	color: var(--white);
	font-size: 1.5rem;
	margin: 0;
}

form {
	padding: 2.5rem;
	background: var(--white);
}

input[type="email"],
input[type="password"],
input[type="text"] {
	width: 100%;
	padding: 1rem;
	margin-bottom: 1.5rem;
	border: 1.5px solid #eee;
	border-radius: 12px;
	font-size: 1rem;
	transition: var(--transition);
}

input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(247, 146, 99, 0.1);
}

button,
.btn {
	width: 100%;
	padding: 1.2rem;
	background: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

button:hover,
.btn:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
}

/* Footer */
footer {
	padding: 4rem 10% 2rem;
	background: var(--secondary-color);
	color: rgba(255, 255, 255, 0.7);
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-logo img {
	height: 30px;
	margin-bottom: 1rem;
}

.footer-links {
	flex: 1;
}

.footer-links ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	font-size: 0.9rem;
}

.footer-links a:hover {
	color: var(--primary-color);
}

.footer-bottom a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 700;
}

.footer-bottom a:hover {
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
	text-align: center;
	font-size: 0.9rem;
}

/* Cookie Bar */
#cookie-law-info-bar {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	max-width: 90%;
	background: #182042;
	border-radius: 12px;
	padding: 0.8rem 1.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	z-index: 10000;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-law-info-bar span {
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 500;
}

#cookie-law-info-bar .cookie-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

#cookie_action_close_header {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 6px 15px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	width: auto;
	margin: 0;
}

#cookie-law-info-bar a {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 14px;
	border: 1px solid rgba(255, 107, 107, 0.4);
	border-radius: 8px;
	transition: all 0.3s ease;
	margin-left: 5px;
}

#cookie-law-info-bar a:hover {
	background: rgba(255, 107, 107, 0.1);
	border-color: var(--primary-color);
	transform: translateY(-1px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	nav {
		padding: 1rem 5%;
	}

	nav ul#enlaces {
		display: none;
	}

	.hero h1 {
		font-size: 3rem;
	}

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

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* --- PRICING PAGE --- */
.pricing {
	padding: 120px 20px 60px;
	max-width: 1200px;
	margin: 0 auto;
}

.pricing h1 {
	text-align: center;
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 50px;
	color: var(--secondary-color);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

.pricing-card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 40px;
	text-align: center;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.pricing-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
	border: 2px solid var(--primary-color);
	background: rgba(255, 107, 0, 0.03);
}

.pricing-card.recommended::before {
	content: 'BEST VALUE';
	position: absolute;
	top: 20px;
	right: -30px;
	background: var(--primary-color);
	color: white;
	padding: 5px 40px;
	transform: rotate(45deg);
	font-size: 0.8rem;
	font-weight: 700;
}

.pricing-card h2 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	color: var(--primary-color);
}

.pricing-card .price {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 30px;
	color: var(--secondary-color);
}

.pricing-card .price span {
	font-size: 1.2rem;
	color: var(--text-light);
	font-weight: 400;
}

.pricing-card .btn.disabled {
	background: var(--secondary-color);
	opacity: 0.8;
}

.pricing-active-btn {
	background: #e9ecef;
	color: var(--text-medium) !important;
	font-size: 1.1rem;
	cursor: default;
}

.pricing-active-btn:hover {
	transform: none !important;
	background: #e9ecef !important;
}

/* Legal Pages Styling */
.legal-content {
	background: var(--white);
	padding: 60px;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-soft);
	margin-top: 40px;
	color: var(--text-medium);
}

.legal-content h2 {
	color: var(--secondary-color);
	margin: 30px 0 15px;
}

.legal-content p {
	margin-bottom: 20px;
}

.legal-content ul {
	margin-bottom: 20px;
	padding-left: 20px;
}

/* --- CONTACT PAGE --- */
.contact-container {
	padding: 120px 20px 60px;
	max-width: 800px;
	margin: 0 auto;
}

.contact-container h1 {
	text-align: center;
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 30px;
	color: var(--secondary-color);
}

.contact-form {
	background: var(--card-bg);
	padding: 40px;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-soft);
}

.contact-form .input-group {
	margin-bottom: 25px;
}

.contact-form label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: var(--secondary-color);
}

.contact-form textarea {
	width: 100%;
	min-height: 150px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	border: 1.5px solid #eee;
	border-radius: 12px;
	font-size: 1rem;
	font-family: inherit;
	transition: var(--transition);
	resize: vertical;
}

.contact-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(247, 146, 99, 0.1);
}

.contact-msgsent {
	text-align: center;
	padding: 40px;
	background: rgba(0, 200, 0, 0.05);
	border-radius: var(--border-radius);
	color: #1e7e34;
}

/* --- TOUR PAGE --- */
.tour {
	padding: 120px 20px 60px;
	max-width: 1200px;
	margin: 0 auto;
}

.tour h1 {
	text-align: center;
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	margin-bottom: 80px;
	color: var(--secondary-color);
}

.tour-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 120px;
}

.tour-section:nth-child(even) {
	direction: rtl;
}

.tour-section:nth-child(even) .tour-content {
	direction: ltr;
}

.tour-content h2 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin-bottom: 25px;
	color: var(--primary-color);
}

.tour-content p {
	font-size: 1.2rem;
	line-height: 1.8;
	margin-bottom: 30px;
	color: var(--text-medium);
}

.tour-image {
	background: var(--white);
	padding: 40px;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-color);
}

.tour-image img {
	max-width: 100%;
	border-radius: 8px;
}

@media (max-width: 900px) {
	.tour-section {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}

	.tour-section:nth-child(even) {
		direction: ltr;
	}
}

/* Final CTA Section */
.final-cta {
	padding: 100px 10%;
	background: transparent;
	text-align: center;
	color: var(--white);
}

.cta-content h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 20px;
}

.cta-content p {
	font-size: 1.2rem;
	opacity: 0.8;
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Explore / Mosaic Enhancements */
.mosaic {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
	padding: 120px 5% 60px;
}

.mosaic .card {
	background: var(--white);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.mosaic .card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mosaic .card-header img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.mosaic .card-descrip {
	padding: 25px;
}

.mosaic .card-descrip h1 {
	font-size: 1.4rem;
	color: var(--secondary-color);
	margin-bottom: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mosaic .card-descrip .date {
	color: var(--primary-color);
	font-size: 0.9rem;
	margin-bottom: 15px;
}

.mosaic .card-descrip .descrip {
	color: var(--text-medium);
	font-size: 0.95rem;
	margin-bottom: 20px;
	display: -webkit-box;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mosaic .sharestatus {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}

.mosaic .sharestatus img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.mosaic .username {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-dark);
}

.mosaic .card-footer {
	padding: 0 25px 25px;
}

.mosaic .card-footer-slider {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 5px;
}

.mosaic .card-footer-slider img {
	border-radius: 8px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.final-cta {
		padding: 60px 5%;
	}
}

/* --- RESTORE PRICING & ABOUT US --- */
.pricing-features {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 40px !important;
	text-align: left;
	flex-grow: 1;
}

.pricing-features li {
	padding: 12px 0 12px 30px !important;
	position: relative;
	color: var(--text-medium);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	font-size: 0.95rem;
}

.pricing-features li::before {
	content: '\f00c';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	left: 0;
	color: var(--primary-color);
}

.pricing-features li.disabled {
	color: #ccc;
	text-decoration: line-through;
}

.pricing-features li.disabled::before {
	content: '\f00d';
	color: #ccc;
}

/* --- PAGE HERO (Generic) --- */
.page-hero,
.about-hero {
	background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a6c 100%);
	padding: 160px 10% 80px !important;
	text-align: center;
	color: var(--white);
}

.page-hero h1,
.about-hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	color: var(--white) !important;
}

.page-hero p,
.about-hero p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto;
}

.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 60px;
	padding: 80px 10%;
	align-items: center;
	background: var(--white);
}


.about-image img {
	width: 100%;
	border-radius: 20px;
	box-shadow: var(--shadow-soft);
}

.about-text h2 {
	color: var(--secondary-color);
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
}

.about-text p {
	color: var(--text-medium);
	line-height: 1.8;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.footer-social a i {
	font-size: 1.6rem;
	color: rgba(255, 255, 255, 0.6);
	transition: all 0.3s ease;
}

.footer-social a:hover i {
	color: var(--primary-color);
	transform: translateY(-3px);
}

/* Animations */
.animate-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.visible {
	opacity: 1;
	transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* SEO Content Expanded */
.seo-expanded {
	padding: 80px 20px;
	background: var(--bg-light);
	text-align: center;
	border-top: 1px solid var(--border-color);
}

.seo-expanded h2 {
	font-size: 2.2rem;
	color: var(--secondary-color);
	margin-bottom: 30px;
}

.seo-expanded p {
	max-width: 800px;
	margin: 0 auto 20px;
	font-size: 1.1rem;
	color: var(--text-medium);
	line-height: 1.8;
}

/* Public Travels SEO */
.public-seo-section {
    padding: 60px 20px;
    background: var(--white);
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.public-seo-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.public-seo-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-medium);
}