/**
 * Global site-wide styling — renders on every page. Covers the footer
 * (template-parts/footer/footer.php) and the main navbar. Tokens shared
 * with main.css so all sections read as one system.
 */

/* ================= NAVBAR ================= */
.header-nav-main .nav-top-link {
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #fd4883;
	letter-spacing: 0.3px;
}

.header-nav-main .nav-top-link:hover {
	color: #2b56c0;
}

/* ================= FOOTER ================= */
.footer-2 {
	background: #fdeaf3 !important;
	padding: 50px 24px 30px;
}

/* Single source of spacing between the 4 footer quadrants — replaces
   Flatsome's default per-column padding/margin so only the parent
   (.footer-2 padding above, .row gap below) controls the layout rhythm. */
.footer-2 .row {
	gap: 32px;
}

.footer-2 .row > .col {
	flex-basis: calc(25% - 24px);
	max-width: calc(25% - 24px);
}

/* Newsletter column is hidden below (not built yet — TODO) — collapse the
   grid to the remaining 3 columns instead of leaving its slot as blank
   space. Revert both rules together once the newsletter ships. */
.footer-2 .row > .col:nth-child(4) {
	display: none;
}

.footer-2 .row > .col:nth-child(-n+3) {
	flex-basis: calc(33.333% - 21.34px);
	max-width: calc(33.333% - 21.34px);
}

.footer-2 .widget_text {
	color: #6b6f7a;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

.footer-2 .widget-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.5px;
	color: #2b56c0;
	margin: 0 0 16px;
}

.footer-2 .widget-title::before {
	content: '';
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #fd4883;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5L12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-9'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E");
	flex-shrink: 0;
}

.footer-2 .widget_text:nth-of-type(2) {
	position: relative;
}

/* Vertical divider between ACERCA and AYUDA, centered in the row gap. */
.footer-2 .widget_text:nth-of-type(2)::after {
	content: '';
	position: absolute;
	top: 0;
	right: -16px;
	width: 1px;
	height: 100%;
	background: rgba(0, 0, 0, 0.1);
}

.footer-2 .widget_text:nth-of-type(3) .widget-title::before {
	background-color: #44aaec;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.8.4-1.5 1-1.5 2.2'/%3E%3Cline x1='12' y1='17' x2='12' y2='17.01'/%3E%3C/svg%3E");
}

.footer-2 .textwidget span {
	display: block;
	margin-bottom: 10px;
}

.footer-2 .textwidget a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Baloo 2', sans-serif;
	font-size: 14px;
	color: #6b6f7a;
	text-decoration: none;
}

.footer-2 .textwidget a:hover {
	color: #fd4883;
}

.footer-help-contact {
	display: block;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-help-contact a::before {
	content: '';
	width: 16px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M4 6l8 7 8-7'/%3E%3C/svg%3E") no-repeat center / contain;
	flex-shrink: 0;
}

.footer-help-contact a::after {
	display: none;
}

/* ================= BRAND COLUMN ================= */
.footer-brand__logo {
	width: 96px;
	height: auto;
	margin-bottom: 12px;
}

.footer-brand__tagline {
	font-family: 'Baloo 2', sans-serif;
	font-size: 13px;
	line-height: 13.5px;
	/* !important: Flatsome's ".dark p" rule (color:#f1f1f1) outranks a plain
	   class selector by specificity. */
	color: #6b6f7a !important;
	margin: 0 0 16px;
	max-width: 220px;
}

.footer-brand__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-brand__social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(32px, 8vw, 50px);
	height: clamp(32px, 8vw, 50px);
	flex-shrink: 0;
	border-radius: 4px;
	border: 1px solid #D0D0D0;
}
.footer-brand__social-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ================= NEWSLETTER COLUMN ================= */
.footer-2 .widget_text:nth-of-type(4) {
	background: transparent;
}

.footer-newsletter { /* TODO: Quitar cuando funcione el newsletter */
	display: none !important;
}

.footer-newsletter__title {
	font-family: 'Lilita One', cursive;
	font-size: 20px;
	font-weight: 500;
	/* !important: Flatsome's ".dark h4" rule (color:#fff) outranks a plain
	   class selector by specificity (element + class beats class alone). */
	color: #fd4883 !important;
	margin: 0 0 8px;
}

.footer-newsletter__subtitle {
	font-family: 'Baloo 2', sans-serif;
	font-size: 13px;
	color: #6b6f7a !important;
	margin: 0 0 16px;
}

.footer-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 240px;
}

.footer-newsletter__input {
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	padding: 10px 16px;
	font-family: 'Baloo 2', sans-serif;
	font-size: 13px;
}

.footer-newsletter__input:focus {
	outline: none;
	border-color: #fd4883;
}

.footer-newsletter__button {
	background: #fd4883;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 10px 16px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.footer-newsletter__button:hover {
	background: #e13d73;
}

/* ================= PAYMENT / COPYRIGHT BAR ================= */
.absolute-footer.dark {
	/* Continues the pink of .footer-2 above it — the white card below is what
	   actually reads as the "bar", inset with pink showing around it. */
	background: #fdeaf3 !important;
	border-top: none;
	padding: 0 24px 40px;
}

.absolute-footer .container.clearfix {
	background: #fff;
	border: 2px solid var(--home-salmon);
	border-radius: 20px;
	padding: 14px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

/* Flatsome hardcodes payment info as "pull-right" and copyright as
   "pull-left" in its own template; flex + order lets us swap the visual
   position (payment/label on the left, copyright on the right) without
   touching that parent-theme markup. */
.absolute-footer .footer-secondary,
.absolute-footer .footer-primary {
	float: none;
}

.absolute-footer .footer-secondary {
	order: 1;
}

.absolute-footer .footer-primary {
	order: 2;
}

.absolute-footer .footer-payment-label {
	display: block;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: #2b56c0;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.absolute-footer .payment-icons {
	display: flex;
	gap: 8px;
}

.absolute-footer .payment-icon img {
	display: block;
	width: 40px;
	height: 20px;
	object-fit: contain;
}

.absolute-footer .copyright-footer,
.absolute-footer .copyright-footer * {
	color: #6b6f7a !important;
	font-family: 'Baloo 2', sans-serif;
	font-size: 13px;
}

@media (max-width: 850px) {
	.footer-2 .row.large-columns-4 {
		flex-wrap: wrap;
	}

	.footer-2 .row > .col,
	.footer-2 .widget_text {
		flex-basis: calc(50% - 16px);
		max-width: calc(50% - 16px);
	}

	/* At this width ACERCA (2) sits next to the brand column (1), not AYUDA
	   (3), so the divider no longer lines up between the two — hide it. */
	.footer-2 .widget_text:nth-of-type(2)::after {
		display: none;
	}

	.absolute-footer .container.clearfix {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.absolute-footer .footer-secondary,
	.absolute-footer .footer-primary {
		float: none;
		text-align: center;
	}

	.absolute-footer .payment-icons {
		justify-content: center;
	}
}
