/* ============================================================
   Santa Fruta · Header & Footer — estilos base
   Replica el diseño del sitio original (estilos.css) usando las
   clases propias del plugin (prefijo sf-). Todo sobreescribible
   desde Elementor con Custom CSS si hace falta.
   ============================================================ */

:root {
	--sf-ink: #0A0A0A;
	--sf-lime: #7AB929;
	--sf-magenta: #E5007E;
	--sf-line: #E3E1DC;
	--sf-line2: #CFCCC5;
	--sf-grey: #6E6B65;
}

/* --- Reset base (igual que el sitio original: *{box-sizing:border-box}) --- */
.sf-header, .sf-header *,
.sf-footer, .sf-footer *,
.sf-wa-float, .sf-wa-float * {
	box-sizing: border-box;
}
.sf-header a, .sf-footer a { text-decoration: none; }
.sf-header button, .sf-footer button { font-family: inherit; }
.sf-header svg, .sf-footer svg { flex-shrink: 0; }

/* --- Contenedor centrado (igual que .wrap del original: max-width 1360px) --- */
.sf-wrap {
	max-width: 1360px;
	margin: 0 auto;
	width: 100%;
}

/* --- Topbar --- */
.sf-topbar {
	background: var(--sf-ink);
	color: #fff;
	font-size: 10.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding: 10px 20px;
	font-weight: 500;
	text-align: center;
	width: 100%;
}
.sf-topbar-item {
	padding: 0 22px;
	border-right: 1px solid rgba(255, 255, 255, .25);
}
.sf-topbar-item:last-child {
	border-right: 0;
}
.sf-topbar-item.is-lime {
	color: var(--sf-lime);
}
@media (max-width: 560px) {
	.sf-topbar-item {
		border-right: 0;
		padding: 2px 12px;
	}
	.sf-cm-badge {
		display: none !important;
	}
}

/* --- Mainbar: franja full-width + contenido centrado a 1360px --- */
.sf-mainbar {
	position: sticky;
	top: 0;
	z-index: 60;
	width: 100%;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--sf-line);
}
.sf-mainbar-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 10px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}
.sf-brand {
	display: flex;
	align-items: center;
	flex: none;
}
.sf-brand img.sf-logo-img {
	width: 104px !important;
	height: auto !important;
	max-width: none !important;
	display: block !important;
}
.sf-logo-text {
	font-size: 20px;
	font-weight: 600;
	color: var(--sf-ink);
}
.sf-header-right {
	display: flex;
	align-items: center;
	gap: 26px;
}
.sf-nav-links {
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sf-nav-links a {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sf-ink);
	font-weight: 500;
}
.sf-nav-links a:hover {
	color: var(--sf-lime);
}
.sf-nav-close {
	display: none !important;
}
.sf-nav-toggle {
	display: none !important;
	flex: none;
	width: 46px !important;
	height: 46px !important;
	min-width: 46px;
	min-height: 46px;
	box-shadow: none !important;
	outline: none;
	text-decoration: none !important;
	border: 1px solid var(--sf-line2) !important;
	border-radius: 0 !important;
	background: #fff !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--sf-ink) !important;
	padding: 0 !important;
	margin: 0;
}
.sf-cm-badge {
	display: flex;
	align-items: center;
	padding-right: 26px;
	border-right: 1px solid var(--sf-line);
	flex: none;
}
.sf-cm-badge img {
	height: 50px !important;
	width: auto !important;
	max-width: none !important;
	display: block !important;
}

/* --- Botón de carrito (compartido con el widget standalone) --- */
.sf-cart {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: none;
	gap: 8px;
	width: 46px !important;
	height: 46px !important;
	min-width: 46px;
	min-height: 46px;
	max-width: none !important;
	line-height: normal !important;
	font-size: 0 !important;
	white-space: nowrap;
	box-shadow: none !important;
	outline: none;
	text-decoration: none !important;
	border: 1px solid var(--sf-line2) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--sf-ink) !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0;
	transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.sf-cart:hover,
.sf-cart:focus-visible {
	border-color: var(--sf-ink) !important;
}
.sf-cart:focus-visible {
	outline: 2px solid var(--sf-lime);
	outline-offset: 2px;
}
.sf-cart svg {
	pointer-events: none;
}
.sf-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	background: var(--sf-magenta);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	display: none; /* oculto hasta que haya al menos 1 producto (lo activa el plugin de Cotización) */
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	padding: 0 5px;
	pointer-events: none;
}
.sf-cart-count:not([data-sf-cart-count="0"]) {
	display: flex;
}

/* --- Responsive: menú hamburguesa en móvil/tablet --- */
@media (max-width: 860px) {
	.sf-mainbar {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: #fff;
	}
	.sf-mainbar-inner {
		padding: 12px 20px;
		gap: 16px;
	}
	.sf-brand img.sf-logo-img {
		height: 44px !important;
		width: auto !important;
	}
	.sf-cm-badge img {
		height: 44px !important;
	}
	.sf-cm-badge {
		padding-right: 16px;
	}
	.sf-nav-toggle {
		display: flex !important;
	}
	.sf-header-right {
		gap: 14px;
	}
	.sf-nav-links {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		left: auto !important;
		height: 100% !important;
		min-height: 100vh;
		width: min(320px, 86%) !important;
		background: #fff !important;
		opacity: 1 !important;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		padding: 88px 30px 30px;
		margin: 0 !important;
		transform: translateX(100%);
		transition: transform .35s cubic-bezier(.2, .8, .2, 1);
		z-index: 9999 !important;
		box-shadow: -16px 0 40px rgba(10, 10, 10, .16);
		overflow-y: auto;
	}
	.sf-nav-links.is-open {
		transform: translateX(0);
	}
	.sf-nav-links a {
		width: 100%;
		padding: 18px 0;
		border-bottom: 1px solid var(--sf-line);
		font-size: 14px;
	}
	.sf-nav-close {
		display: block !important;
		position: absolute;
		top: 16px;
		right: 18px;
		background: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		color: var(--sf-ink) !important;
		cursor: pointer;
		padding: 6px !important;
	}
	.sf-nav-close:hover {
		color: var(--sf-magenta);
	}
}

/* --- Overlay detrás del panel móvil --- */
.sf-nav-overlay {
	position: fixed !important;
	inset: 0 !important;
	background: rgba(10, 10, 10, .5) !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
	z-index: 9998 !important;
}
.sf-nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* --- Footer --- */
.sf-footer {
	background: var(--sf-ink);
	color: rgba(255, 255, 255, .72);
	padding: 80px 32px 34px;
	width: 100%;
}
.sf-footer-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding-bottom: 48px;
	margin-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.sf-footer-top-h {
	color: #fff;
	max-width: 18ch;
	margin: 0;
	font-size: clamp(28px, 4.6vw, 56px);
	line-height: 1.02;
	font-weight: 200;
}
.sf-footer-top-note {
	color: rgba(255, 255, 255, .72);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 12px 0 0;
	max-width: 42ch;
}
.sf-btn-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.sf-btn {
	display: inline-block;
	padding: 16px 32px !important;
	font-size: 12.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 0 !important;
	transition: background-color .25s, color .25s, border-color .25s;
}
.sf-btn-orange {
	background: #EF7D00 !important;
	color: #fff !important;
	border: 0 !important;
}
.sf-btn-orange:hover {
	background: var(--sf-magenta) !important;
	color: #fff !important;
}
.sf-btn-ghost {
	border: 1px solid rgba(255, 255, 255, .62) !important;
	color: #fff !important;
	font-weight: 500;
	padding: 16px 30px !important;
	background: transparent !important;
}
.sf-btn-ghost:hover {
	background: rgba(255, 255, 255, .14) !important;
	color: #fff !important;
}
@media (max-width: 560px) {
	.sf-footer-top {
		padding-bottom: 36px;
		margin-bottom: 36px;
	}
}
.sf-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 44px;
}
.sf-footer-col--brand img.sf-logo-img {
	width: auto !important;
	height: 58px !important;
	max-width: none !important;
	display: block !important;
	margin-bottom: 6px;
}
.sf-footer-cm-badge {
	display: block !important;
	margin-top: 18px;
	height: auto !important;
	width: 120px !important;
	max-width: 120px !important;
	opacity: .92;
}
.sf-footer-desc {
	margin-top: 8px;
	font-size: 13.5px;
	line-height: 1.7;
	max-width: 28ch;
}
.sf-footer-h {
	color: #fff;
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 20px;
}
.sf-footer-links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 13.5px;
	line-height: 1.6;
}
.sf-footer-links a {
	color: rgba(255, 255, 255, .72);
}
.sf-footer-links a:hover {
	color: var(--sf-lime);
}
.sf-social {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.sf-social a {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
	font-size: 13.5px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .72);
	transition: color .2s ease;
}
.sf-social a:last-child {
	border-bottom: 0;
}
.sf-social a:hover {
	color: var(--sf-lime);
}
.sf-social a svg {
	pointer-events: none;
}
.sf-footer-bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
}
.sf-footer-bottom a {
	color: rgba(255, 255, 255, .72);
}
.sf-footer-bottom a:hover {
	color: var(--sf-lime);
}
@media (max-width: 860px) {
	.sf-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.sf-footer-col--brand {
		grid-column: 1 / -1;
	}
}
@media (max-width: 560px) {
	.sf-footer {
		padding: 56px 20px 30px;
	}
	.sf-footer-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Botón flotante de WhatsApp --- */
.sf-wa-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 26px rgba(10, 10, 10, .25);
	z-index: 95;
	transition: transform .2s ease;
}
.sf-wa-float:hover {
	transform: scale(1.06);
}
