/* =========================================================
   Biopharvet Theme - Global styles
   Variables, reset, tipografía, container, botones, header/footer.
   Cada sección de WPBakery añade su propio CSS encolado aparte.
   ========================================================= */

:root {
	/* Marca */
	--bp-navy: #043f9d;
	--bp-navy-dark: #032f78;
	--bp-navy-light: #0550bd;
	--bp-blue: #043f9d;
	--bp-blue-dark: #032f78;
	--bp-green: #31a432;
	--bp-green-dark: #268127;

	/* Neutros */
	--bp-white: #ffffff;
	--bp-bg: #f4f6f8;
	--bp-bg-soft: #fafbfc;
	--bp-border: #e3e7ec;
	--bp-heading: #1c1c1c;
	--bp-text: #3a3a3a;
	--bp-text-soft: #4b5563;
	--bp-text-muted: #6b7280;

	/* Footer */
	--bp-footer-bg: #2e3236;
	--bp-footer-bottom: #1f2226;

	/* Tipografía */
	--bp-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Layout */
	--bp-container: 1240px;
	--bp-container-narrow: 1100px;
	--bp-radius: 6px;
	--bp-radius-lg: 12px;

	/* Transiciones */
	--bp-trans: 0.2s ease;
}

/* ---------- Reset ligero ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--bp-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bp-text);
	background: var(--bp-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bp-navy);
	text-decoration: none;
	transition: color var(--bp-trans);
}

a:hover {
	color: var(--bp-blue);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bp-font);
	color: var(--bp-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

/* ---------- Layout ---------- */
.bp-container {
	width: 100%;
	max-width: var(--bp-container);
	margin: 0 auto;
	padding: 0 20px;
}

.bp-container--narrow {
	max-width: var(--bp-container-narrow);
}

.bp-main {
	min-height: 60vh;
}

/* ---------- Botones reusables ---------- */
.bp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-family: var(--bp-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bp-white);
	background: var(--bp-green);
	border: 2px solid var(--bp-green);
	border-radius: var(--bp-radius);
	cursor: pointer;
	transition: background var(--bp-trans), border-color var(--bp-trans), color var(--bp-trans);
}

.bp-btn:hover {
	background: var(--bp-green-dark);
	border-color: var(--bp-green-dark);
	color: var(--bp-white);
}

.bp-btn--outline {
	background: transparent;
	color: var(--bp-green);
}

.bp-btn--outline:hover {
	background: var(--bp-green);
	color: var(--bp-white);
}

.bp-btn--outline-light {
	background: transparent;
	color: var(--bp-white);
	border-color: var(--bp-white);
}

.bp-btn--outline-light:hover {
	background: var(--bp-white);
	color: var(--bp-green);
	border-color: var(--bp-white);
}

.bp-btn--navy {
	background: var(--bp-navy);
	border-color: var(--bp-navy);
}

.bp-btn--navy:hover {
	background: var(--bp-navy-dark);
	border-color: var(--bp-navy-dark);
}

/* ---------- Header ---------- */
.bp-header {
	background: var(--bp-white);
	position: relative;
	z-index: 50;
}

/* Barra superior: logo + búsqueda + toggle móvil */
.bp-header__top {
	background: var(--bp-white);
}

.bp-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 20px;
}

.bp-header__brand {
	flex-shrink: 0;
}

.bp-header__brand img {
	max-height: 27px;
	width: auto;
}

.bp-header__brand-text {
	font-size: 22px;
	font-weight: 800;
	color: var(--bp-navy);
	letter-spacing: 0.02em;
}

.bp-header__search {
	display: flex;
	align-items: center;
	background: var(--bp-bg);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 4px 6px 4px 12px;
	min-width: 260px;
}

.bp-header__search input {
	border: 0;
	background: transparent;
	flex: 1;
	font-family: var(--bp-font);
	font-size: 14px;
	color: var(--bp-text);
	outline: none;
	padding: 6px 0;
}

.bp-header__search button {
	border: 0;
	background: var(--bp-blue);
	color: var(--bp-white);
	width: 32px;
	height: 32px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var(--bp-trans);
}

.bp-header__search button:hover {
	background: var(--bp-blue-dark);
}

/* Sub-barra inferior: menú principal */
.bp-header__bar {
	background: var(--bp-bg-soft);
	border-top: 1px solid var(--bp-border);
	border-bottom: 1px solid var(--bp-border);
}

.bp-header__nav {
	width: 100%;
	display: flex;
	justify-content: center;
}

.bp-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 4px;
}

.bp-header__menu a {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bp-text);
	padding: 14px 18px;
	transition: color var(--bp-trans), background var(--bp-trans);
}

.bp-header__menu a:hover {
	color: var(--bp-green);
}

.bp-header__menu .current-menu-item > a,
.bp-header__menu .current_page_item > a,
.bp-header__menu .current-menu-ancestor > a {
	background: var(--bp-green);
	color: var(--bp-white);
}

.bp-header__toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 8px;
}

.bp-header__toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--bp-navy);
	margin: 4px 0;
	transition: transform var(--bp-trans), opacity var(--bp-trans);
}

/* ---------- Footer ---------- */
.bp-footer {
	background: var(--bp-footer-bg);
	color: rgba(255, 255, 255, 0.72);
	padding-top: 56px;
}

.bp-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.4fr;
	gap: 40px;
	padding-bottom: 40px;
}

.bp-footer__brand img {
	max-height: 35px;
	width: auto;
	margin-bottom: 16px;
	filter: brightness(0) invert(1);
}

.bp-footer__brand-text {
	font-size: 22px;
	font-weight: 800;
	color: var(--bp-white);
	display: block;
	margin-bottom: 16px;
}

.bp-footer__desc {
	color: rgba(255, 255, 255, 0.68);
	font-size: 14px;
	max-width: 380px;
}

.bp-footer__title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bp-white);
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bp-green);
	display: inline-block;
}

.bp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: 14px;
}

.bp-footer__list li {
	position: relative;
	padding-left: 16px;
}

.bp-footer__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bp-green);
}

.bp-footer__list a {
	color: rgba(255, 255, 255, 0.72);
}

.bp-footer__list a:hover {
	color: var(--bp-green);
}

.bp-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.bp-footer__contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.bp-footer__contact a {
	color: inherit;
}

.bp-footer__contact a:hover {
	color: var(--bp-white);
}

.bp-footer__contact svg {
	flex-shrink: 0;
	color: var(--bp-green);
	margin-top: 3px;
}

.bp-footer__bottom {
	background: var(--bp-footer-bottom);
	color: rgba(255, 255, 255, 0.6);
	margin-top: 20px;
}

.bp-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 13px;
}

/* ---------- Utilidades ---------- */
.bp-section {
	padding: 80px 0;
}

.bp-section--sm { padding: 48px 0; }
.bp-section--lg { padding: 120px 0; }

.bp-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-blue);
	margin-bottom: 12px;
}

.bp-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--bp-heading);
	margin: 0 0 24px;
}

.bp-title--center { text-align: center; }

.bp-screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bp-header__top-inner { gap: 16px; }
	.bp-header__menu a { padding: 14px 12px; }
	.bp-header__search { min-width: 200px; }
	.bp-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.bp-header__toggle { display: block; order: 3; }
	.bp-header__search { display: none; }
	.bp-header__bar {
		display: none;
	}
	.bp-header__bar.is-open {
		display: block;
	}
	.bp-header__menu {
		flex-direction: column;
		gap: 0;
		padding: 8px 0;
	}
	.bp-header__menu a {
		width: 100%;
		padding: 14px 0;
		border-bottom: 1px solid var(--bp-border);
	}
	.bp-header__menu li:last-child a {
		border-bottom: 0;
	}
	.bp-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.bp-title { font-size: 28px; }
	.bp-section { padding: 56px 0; }
}
