/*
Theme Name: OSPL
Theme URI: https://ospl.ar/
Author: OSPL
Description: Tema personalizado para Obra Social del Personal Ladrillero (OSPL), desarrollado desde cero sin dependencia de plugins.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ospl
*/

:root {
	--ospl-blue: #008fd1;
	--ospl-blue-alt: #008fd3;
	--ospl-nav: #3498db;
	--ospl-blue-dark: #0a537c;
	--ospl-orange: #ff7012;
	--ospl-orange-hover: #e55e06;
	--ospl-heading: #181b31;
	--ospl-text: #5a5d6c;
	--ospl-muted: #808291;
	--ospl-bg-light: #ededed;
	--ospl-bg-alt: #eaeaea;
	--ospl-footer-top: #e0e0e0;
	--ospl-border: #e5e7eb;
	--ospl-white: #ffffff;
	--ospl-radius: 10px;
	--ospl-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--ospl-container: 1170px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--ospl-text);
	background-color: var(--ospl-white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--ospl-blue);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
	color: var(--ospl-orange);
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	color: var(--ospl-heading);
	font-weight: 600;
	line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.125rem; }

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ================= HEADER ================= */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--ospl-white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-topbar {
	background: var(--ospl-white);
	padding: 10px 0;
}

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

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.site-logo img {
	max-height: 86px;
	width: auto;
}

.header-info-group {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.header-info-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 18px;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.header-info-item:first-child {
	border-left: none;
	padding-left: 0;
}

.header-info-icon {
	width: 24px;
	height: 24px;
	color: var(--ospl-blue);
	flex-shrink: 0;
}

.header-info-text strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--ospl-heading);
	line-height: 1.3;
}

.header-info-text span {
	display: block;
	font-size: 12.5px;
	color: var(--ospl-muted);
	line-height: 1.3;
}

/* Navbar */
.header-navbar {
	background-color: var(--ospl-nav);
}

.header-navbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	position: relative;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--ospl-white);
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}

.main-nav {
	display: flex;
	align-items: center;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.main-nav li a {
	display: block;
	padding: 14px 14px;
	color: var(--ospl-white);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
	color: #e6f4fc;
	background: rgba(255, 255, 255, 0.14);
}

.header-social {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-social a {
	color: rgba(255, 255, 255, 0.85);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.header-social a:hover {
	color: var(--ospl-white);
	background: rgba(255, 255, 255, 0.16);
}

/* ================= HERO / SLIDER ================= */
.hero-slider {
	position: relative;
	width: 100%;
	background: #f4f6f9;
	overflow: hidden;
}

.hero-slide {
	position: relative;
	width: 100%;
	display: none;
}

.hero-slide.is-active {
	display: block;
}

.hero-slide-media {
	overflow: hidden;
	line-height: 0;
	background: #0b2144;
}

.hero-slide-img {
	width: 100%;
	height: auto;
	margin-top: -4.2%;
	margin-bottom: -5.6%;
}

.hero-slide-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 40px 8%;
	pointer-events: none;
}

.hero-slide-caption {
	display: none;
}

.hero-slide-btn {
	pointer-events: auto;
	display: inline-block;
	background: rgba(0, 143, 209, 0.92);
	color: var(--ospl-white);
	padding: 12px 26px;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-slide-btn:hover {
	background: var(--ospl-orange);
	color: var(--ospl-white);
	transform: translateY(-2px);
}

/* ================= INFO STRIP (HOME) ================= */
.info-strip {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
	padding: 40px 0;
}

.info-strip-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.info-strip-card {
	text-align: center;
	padding: 16px 20px;
}

.info-strip-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.info-strip-icon {
	width: 44px;
	height: 44px;
	margin: 0;
	color: var(--ospl-white);
}

.info-strip-card h3 {
	color: var(--ospl-white);
	font-size: 21px;
	font-weight: 600;
	margin-bottom: 8px;
}

.info-strip-card p,
.info-strip-card a {
	color: rgba(255, 255, 255, 0.95);
	margin: 0;
	font-size: 16px;
}

.info-strip-card a:hover {
	text-decoration: underline;
}

/* ================= FLIP / ACTION CARDS (HOME) ================= */
.quick-cards-section {
	background-color: var(--ospl-bg-light);
	padding: 55px 0 65px;
}

.quick-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 36px;
	max-width: 900px;
	margin: 0 auto;
}

.quick-card-wrap h4 {
	text-align: center;
	color: #333333;
	margin-bottom: 16px;
	font-size: 22px;
}

.flip-card {
	position: relative;
	height: 260px;
	border-radius: var(--ospl-radius);
	overflow: hidden;
	box-shadow: var(--ospl-shadow);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flip-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 83, 124, 0.28);
	transition: background 0.3s ease;
}

.flip-card:hover::before {
	background: rgba(10, 83, 124, 0.88);
}

.flip-card-action {
	position: relative;
	z-index: 2;
	opacity: 0.96;
	transform: translateY(4px);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.flip-card:hover .flip-card-action {
	opacity: 1;
	transform: translateY(0);
}

/* ================= BUTTONS ================= */
.btn {
	display: inline-block;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	text-align: center;
}

.btn-blue {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
}

.btn-blue:hover {
	background-color: var(--ospl-blue-dark);
	color: var(--ospl-white);
}

.btn-dark-blue {
	background-color: var(--ospl-blue-dark);
	color: var(--ospl-white);
}

.btn-dark-blue:hover {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
}

.btn-orange {
	background-color: var(--ospl-orange);
	color: var(--ospl-white);
}

.btn-orange:hover {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
}

.btn-white {
	background-color: var(--ospl-white);
	color: var(--ospl-blue);
	border-radius: 50px;
}

.btn-white:hover {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
}

/* ================= BLOG / NOVEDADES ================= */
.news-section {
	padding: 60px 0 70px;
}

.section-heading-orange {
	text-align: center;
	color: var(--ospl-orange);
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 38px;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.news-card {
	background: var(--ospl-white);
	border-radius: var(--ospl-radius);
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
	border: 1px solid #eef0f4;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.11);
}

.news-card-media {
	aspect-ratio: 16 / 10;
	background: #f0f4f8;
	overflow: hidden;
}

.news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.news-card-title {
	font-size: 19px;
	line-height: 1.35;
	margin-bottom: 10px;
}

.news-card-title a {
	color: var(--ospl-heading);
}

.news-card-title a:hover {
	color: var(--ospl-blue);
}

.news-card-excerpt {
	font-size: 14.5px;
	color: var(--ospl-muted);
	margin: 0 0 16px;
	flex: 1;
}

.news-card-more {
	font-size: 14px;
	font-weight: 700;
	color: var(--ospl-blue);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ================= PAGE BANNER & SECTIONS ================= */
.page-banner {
	background-color: var(--ospl-blue-alt);
	padding: 46px 20px 34px;
	text-align: center;
}

.page-banner h1 {
	color: var(--ospl-white);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.page-section {
	padding: 65px 0;
}

.page-section-gray {
	background-color: var(--ospl-bg-alt);
	padding: 65px 0;
}

.cta-orange-band {
	background-color: var(--ospl-orange);
	padding: 28px 0;
	color: var(--ospl-white);
}

.cta-orange-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cta-orange-inner h3,
.cta-orange-inner h6 {
	color: var(--ospl-white);
	font-size: 22px;
	font-weight: 600;
	margin: 0;
}

/* Parallax / Hero Banner Section (Nosotros & Copagos) */
.dark-photo-band {
	position: relative;
	padding: 80px 0;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: var(--ospl-white);
	text-align: center;
}

.dark-photo-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.54);
}

.dark-photo-band .container {
	position: relative;
	z-index: 2;
}

.dark-photo-band h3 {
	color: var(--ospl-white);
}

.dark-photo-band a {
	color: #b7e6ff;
	text-decoration: underline;
}

/* Cartilla rows */
.cartilla-list {
	max-width: 960px;
	margin: 30px auto 0;
}

.cartilla-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--ospl-border);
}

.cartilla-row:last-child {
	border-bottom: none;
}

.cartilla-row-title {
	font-size: 18px;
	font-weight: 400;
	color: #505050;
	margin: 0;
}

.two-col-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	align-items: center;
}

/* PDF / Document links */
.doc-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	gap: 14px;
}

.doc-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f8fafc;
	border: 1px solid var(--ospl-border);
	border-radius: 8px;
}

.doc-item svg {
	width: 24px;
	height: 24px;
	color: var(--ospl-orange);
	flex-shrink: 0;
}

.doc-item a {
	font-weight: 600;
	color: var(--ospl-heading);
}

.doc-item a:hover {
	color: var(--ospl-blue);
}

/* Contact Page */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.contact-info-list {
	display: grid;
	gap: 22px;
}

.contact-info-box {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.contact-info-box-icon {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: rgba(255, 112, 18, 0.1);
	color: var(--ospl-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-info-box h4 {
	margin: 0 0 4px;
	color: var(--ospl-blue);
	font-size: 18px;
}

.contact-info-box p {
	margin: 0;
}

.ospl-form {
	background: #f8fafc;
	padding: 30px;
	border-radius: var(--ospl-radius);
	border: 1px solid var(--ospl-border);
}

.ospl-form .form-group {
	margin-bottom: 18px;
}

.ospl-form label {
	display: block;
	font-weight: 600;
	color: var(--ospl-heading);
	margin-bottom: 6px;
	font-size: 15px;
}

.ospl-form input[type="text"],
.ospl-form input[type="email"],
.ospl-form input[type="tel"],
.ospl-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	background: var(--ospl-white);
	color: var(--ospl-heading);
}

.ospl-form input:focus,
.ospl-form textarea:focus {
	outline: none;
	border-color: var(--ospl-blue);
	box-shadow: 0 0 0 3px rgba(0, 143, 209, 0.15);
}

.form-alert {
	padding: 14px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-weight: 500;
}

.form-alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

.form-alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Single Post */
.single-article {
	max-width: 840px;
	margin: 0 auto;
}

.single-featured {
	margin-bottom: 28px;
	border-radius: var(--ospl-radius);
	overflow: hidden;
}

.single-content img {
	border-radius: 8px;
	margin: 20px auto;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--ospl-border);
	border-radius: 6px;
	color: var(--ospl-heading);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--ospl-blue);
	color: var(--ospl-white);
	border-color: var(--ospl-blue);
}

/* ================= FOOTER ================= */
.footer-sssalud {
	background-color: var(--ospl-footer-top);
	padding: 22px 20px;
	text-align: center;
}

.footer-sssalud img {
	margin: 0 auto;
	max-height: 75px;
	width: auto;
}

.footer-bottom {
	background-color: var(--ospl-blue);
	color: var(--ospl-white);
	padding: 16px 20px;
	text-align: center;
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25d366;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:hover {
	background-color: #1ebe5d;
	color: #ffffff;
	transform: scale(1.06);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
	.info-strip-grid,
	.news-grid,
	.two-col-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.quick-cards-grid {
		grid-template-columns: 1fr;
	}

	.header-info-group {
		gap: 12px;
	}

	.header-info-item {
		border-left: none;
		padding-left: 0;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 14.5px;
	}

	.header-topbar {
		padding: 6px 0;
	}

	.header-topbar-inner {
		gap: 8px 14px;
		justify-content: space-between;
	}

	.site-logo img {
		max-height: 52px;
	}

	.header-info-group {
		gap: 6px 12px;
		flex: 1 1 220px;
	}

	.header-info-item {
		gap: 6px;
	}

	.header-info-icon {
		width: 16px;
		height: 16px;
	}

	.header-info-text strong {
		font-size: 12.5px;
	}

	.header-info-text span {
		font-size: 11px;
	}

	.header-navbar-inner {
		min-height: 44px;
	}

	.nav-toggle {
		display: inline-flex;
		padding: 5px 10px;
		font-size: 14px;
	}

	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ospl-nav);
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-nav li a {
		padding: 11px 18px;
		font-size: 14.5px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.hero-slider {
		background: var(--ospl-white);
		padding-bottom: 14px;
	}

	.hero-slide-img {
		width: 100%;
		height: auto;
		margin-top: -4.2%;
		margin-bottom: -5.6%;
	}

	.hero-slide-overlay {
		position: static;
		background: linear-gradient(180deg, #0b2144 0%, #081834 100%);
		padding: 12px 14px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		pointer-events: auto;
	}

	.hero-slide-caption {
		display: block;
		color: rgba(255, 255, 255, 0.95);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.3;
	}

	.hero-slide-btn {
		padding: 7px 14px;
		font-size: 13px;
		white-space: nowrap;
		flex-shrink: 0;
		box-shadow: none;
	}

	.info-strip {
		padding: 18px 0;
	}

	.info-strip-grid {
		gap: 10px;
	}

	.info-strip-card {
		display: flex;
		align-items: center;
		gap: 14px;
		text-align: left;
		padding: 12px 14px;
		background: rgba(255, 255, 255, 0.12);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 10px;
	}

	.info-strip-icon-wrap {
		width: 42px;
		height: 42px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.16);
		margin: 0;
		flex-shrink: 0;
	}

	.info-strip-icon {
		width: 22px;
		height: 22px;
	}

	.info-strip-body {
		min-width: 0;
	}

	.info-strip-card h3 {
		font-size: 16px;
		margin-bottom: 2px;
	}

	.info-strip-card p,
	.info-strip-card a {
		font-size: 14px;
		word-break: break-word;
	}

	.quick-cards-section {
		padding: 28px 0 34px;
	}

	.quick-cards-grid {
		gap: 22px;
	}

	.quick-card-wrap h4 {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.flip-card {
		height: 185px;
	}

	.news-section,
	.page-section,
	.page-section-gray {
		padding: 34px 0;
	}

	.section-heading-orange {
		margin-bottom: 22px;
	}

	.page-banner {
		padding: 26px 16px 22px;
	}

	.dark-photo-band {
		background-attachment: scroll;
		padding: 48px 0;
	}

	.cartilla-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.whatsapp-float {
		width: 46px;
		height: 46px;
		right: 14px;
		bottom: 14px;
	}
}
