/* One Page: enlace activo y hover del menú en naranja (secondary) */
.one-page #header .header-nav-main nav>ul>li>a.active {
	color: var(--secondary) !important;
}

.one-page #header .header-nav-main nav>ul>li>a:hover,
.one-page #header .header-nav-main nav>ul>li>a:focus,
.one-page #header .header-nav-main nav>ul>li>a.active:hover,
.one-page #header .header-nav-main nav>ul>li>a.active:focus {
	color: var(--secondary) !important;
}

/* One Page: hero a pantalla completa bajo header transparente */
.one-page #header.header-transparent {
	height: 0 !important;
	min-height: 0 !important;
	overflow: visible;
}

html:not(.sticky-header-active) .one-page #header.header-transparent .header-body {
	background: transparent !important;
	border-top-color: transparent !important;
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}

.one-page .main>section#home {
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.one-page .main>section#plantas {
	min-height: 80vh;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* Parallax: cubrir sección sin repetir */
.one-page #home .parallax-background,
.one-page #plantas .parallax-background {
	background-size: cover !important;
	background-repeat: no-repeat !important;
	height: 110% !important;
	min-height: 100%;
}

.one-page #home .parallax-background {
	background-position: center center !important;
}

.one-page #plantas .parallax-background {
	background-position: center center !important;
}

@media (max-width: 767px) {
	.one-page .main > section#home,
	.one-page .main > section#plantas {
		position: relative;
		overflow: hidden;
		width: 100%;
		background-attachment: scroll !important;
	}

	.one-page .main > section#plantas {
		min-height: 80vh;
		min-height: 80svh;
	}

	.one-page #home.parallax,
	.one-page #plantas.parallax,
	.one-page #home.section-parallax,
	.one-page #plantas.section-parallax {
		background-attachment: scroll !important;
		background-image: none !important;
	}

	.one-page #home .parallax-bg-mobile-img,
	.one-page #plantas .parallax-bg-mobile-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
		z-index: 0;
		pointer-events: none;
	}

	.one-page #home .parallax-background,
	.one-page #plantas .parallax-background {
		display: none !important;
	}
}

.one-page #contacto .google-map {
	position: relative;
	min-height: 400px;
	height: 100%;
	margin: 0 !important;
}

.one-page #contacto .google-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Header Logo Styles */
#header .header-logo {
	padding: 15px 20px;
}

#header .header-logo a {
	display: block;
	transition: opacity 0.3s ease;
}

#header .header-logo a:hover {
	opacity: 0.85;
}

#header .header-logo img.header-logo-img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Responsive Logo */
@media (max-width: 991px) {
	#header .header-logo {
		padding: 12px 15px;
	}

	#header .header-logo img.header-logo-img {
		width: 200px;
		height: auto;
	}
}

@media (max-width: 575px) {
	#header .header-logo {
		padding: 10px 12px;
	}

	#header .header-logo img.header-logo-img {
		width: 160px;
		height: auto;
	}
}

/* Cookie Banner Styles - Adaptado al diseño Porto */
.cookie-banner {
	position: fixed !important;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--tertiary);
	color: var(--light);
	padding: 20px 0;
	z-index: 99999 !important;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: none;
	/* Oculto por defecto, el JS lo mostrará si es necesario */
	visibility: visible;
}

.cookie-banner-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cookie-text {
	flex: 1;
	min-width: 250px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--light);
}

.cookie-text a {
	color: var(--secondary);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.cookie-text a:hover {
	color: var(--secondary--100);
}

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cookie-accept,
.cookie-reject,
.cookie-configure {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cookie-accept {
	background-color: var(--primary);
	color: var(--light);
}

.cookie-accept:hover {
	background-color: var(--primary-100);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-reject {
	background-color: transparent;
	color: var(--light);
	border: 2px solid var(--light);
}

.cookie-reject:hover {
	background-color: var(--light);
	color: var(--tertiary);
}

.cookie-configure {
	background-color: var(--secondary);
	color: var(--light);
}

.cookie-configure:hover {
	background-color: var(--secondary-100);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cookie Modal Styles - Adaptado al diseño Porto */
.cookie-modal-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(5px);
}

.cookie-modal-backdrop[style*="flex"] {
	display: flex !important;
}

.cookie-modal {
	background-color: var(--light);
	border-radius: 8px;
	padding: 40px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	position: relative;
}

.cookie-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 24px;
	color: var(--default);
	cursor: pointer;
	padding: 5px 10px;
	line-height: 1;
	transition: color 0.3s ease;
	z-index: 10;
}

.cookie-modal-close:hover {
	color: var(--primary);
}

.cookie-modal-close:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.cookie-modal h2 {
	color: var(--primary);
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
	text-align: center;
}

.cookie-category {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--grey-300);
}

.cookie-category:last-of-type {
	border-bottom: none;
	margin-bottom: 20px;
}

.cookie-category h3 {
	color: var(--tertiary);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.cookie-category p {
	color: var(--default);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 0;
}

/* Switch Toggle Styles */
.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin-top: 10px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.switch span {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--grey-600);
	transition: 0.3s;
	border-radius: 34px;
}

.switch span:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: var(--light);
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked+span {
	background-color: var(--primary);
}

.switch input:focus+span {
	box-shadow: 0 0 1px var(--primary);
}

.switch input:checked+span:before {
	transform: translateX(26px);
}

.switch input:disabled+span {
	background-color: var(--grey-400);
	cursor: not-allowed;
	opacity: 0.6;
}

.switch input:disabled+span:before {
	background-color: var(--grey-200);
}

/* Cookie Modal Buttons */
.cookie-modal-buttons {
	display: flex;
	gap: 15px;
	justify-content: flex-end;
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid var(--grey-300);
}

.cookie-save,
.cookie-cancel {
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 140px;
}

.cookie-save {
	background-color: var(--primary);
	color: var(--light);
}

.cookie-save:hover {
	background-color: var(--primary-100);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-cancel {
	background-color: transparent;
	color: var(--default);
	border: 2px solid var(--grey-500);
}

.cookie-cancel:hover {
	background-color: var(--grey-100);
	border-color: var(--grey-600);
}

/* Responsive */
@media (max-width: 768px) {
	.cookie-banner-inner {
		flex-direction: column;
		text-align: center;
	}

	.cookie-actions {
		width: 100%;
		justify-content: center;
	}

	.cookie-accept,
	.cookie-reject,
	.cookie-configure {
		flex: 1;
		min-width: 120px;
	}

	.cookie-modal {
		padding: 30px 20px;
		margin: 10px;
	}

	.cookie-modal h2 {
		font-size: 24px;
	}

	.cookie-modal-buttons {
		flex-direction: column;
	}

	.cookie-save,
	.cookie-cancel {
		width: 100%;
	}
}