/*
Theme Name: JP Rebuild
Description: Code-based rebuild theme for Almacenes Jose Puebla.
Version: 0.1.0
Author: JP
*/

:root {
	--jp-blue: #25316b;
	--jp-gray: #484948;
	--jp-card: #3f3f3f;
	--jp-accent: #0095db;
	--jp-white: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	color: #222;
	background: #ffffff;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-header {
	background: var(--jp-blue);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 20px;
}

.site-brand img {
	display: block;
	max-height: 64px;
	height: 64px;
	width: auto;
	max-width: 260px;
}

.site-brand a {
	color: var(--jp-white);
	font-weight: 700;
	display: flex;
	align-items: center;
	line-height: 0;
}

.site-nav ul {
	display: flex;
	gap: 17px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--jp-white);
	font-weight: 300;
	font-size: 16px;
}

.site-main {
	padding: 0 0 40px;
}

.full-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.locations-row {
	padding: 18px 0 22px;
}

.locations-row--hero {
	margin-bottom: 24px;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 4px;
	background: rgba(244, 246, 251, 0.78);
}

.locations-row--hero .locations-grid {
	max-width: 1200px;
	margin: 0 auto;
}

.locations-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.locations-note {
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #6b7280;
	display: block;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	text-align: right;
	line-height: 1;
}

.providers-hero {
	background: linear-gradient(135deg, #f5f7fb 0%, #e7eef8 100%);
	padding: 40px 0 24px;
}

.providers-hero h1 {
	margin: 0 0 10px;
	font-size: 36px;
	color: #1f2a5c;
}

.providers-hero p {
	margin: 0;
	color: #4b536b;
	max-width: 820px;
}

.providers-grid-section {
	padding: 24px 0 40px;
}

.providers-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.provider-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e1e6f2;
	padding: 18px;
	text-align: center;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.provider-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.provider-image {
	width: 100%;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.provider-image img {
	max-height: 100px;
	max-width: 100%;
	object-fit: contain;
	filter: saturate(1.05);
}

.provider-card h3 {
	margin: 0;
	font-size: 16px;
	color: #2d3342;
}

.providers-contact {
	margin-top: 26px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #f4f6fb;
	border: 1px solid #e1e6f2;
}

.providers-contact a {
	color: #2f3d88;
	font-weight: 600;
	text-decoration: underline;
}

.location-card {
	background: #ffffff;
	border: 1px solid #e2e7f1;
	border-radius: 16px;
	padding: 14px;
	text-align: center;
	color: #1f2430;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	will-change: transform;
	text-decoration: none;
}

.location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
	border-color: #d1d9ea;
}

.location-card .label {
	color: #2d3342;
	font-family: Work Sans, sans-serif;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}

.location-card .label .fa-phone {
	margin-left: 6px;
	color: #2f3d88;
	font-size: 14px;
}

.location-card .line {
	font-size: 16px;
	text-align: center;
	color: #2d3342;
}

.location-card .line .fa-whatsapp {
	color: #25d366;
	margin-right: 6px;
}

.location-card .line .jp-line-whatsapp {
	color: #1b7a4f;
	text-decoration: underline;
	font-size: 13px;
	font-weight: 400;
}

.location-card .line .jp-line-whatsapp:hover {
	color: #14643f;
}


.location-card .line small {
	font-size: 14px;
}

.jp-phone-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #ffffff;
	text-decoration: none;
	width: 100%;
}

.jp-phone-link:hover {
	text-decoration: underline;
}

.jp-phone-link i {
	color: #25d366;
	font-size: 16px;
}

.jp-inline-icon {
	display: inline-flex;
	align-items: center;
	margin-right: 4px;
}

.jp-inline-icon .fa-phone {
	color: #d7dde2;
	font-size: 14px;
}

.jp-ext {
	font-size: 12px;
	opacity: 0.85;
}

.hero-image {
	background-size: cover;
	background-position: calc(50%) calc(35%);
	padding: 190px 0 150px;
	text-align: center;
	position: relative;
}


.hero-title {
	font-size: 50px;
	font-weight: 700;
	color: #111a2b;
	margin: 24px 0 0;
	text-shadow: 0 8px 18px rgba(214, 218, 227, 0.2), 0 0 2px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.7);
	background: none;
	font-style: italic;
	-webkit-text-fill-color: #b6b7b5;
}

.hero-subtitle {
	font-size: 30px;
	color: #1f2430;
	margin: -16px 0px 50px 105px;
	line-height: 1.15;
	text-shadow: 0 6px 16px rgba(255, 255, 255, 0.75);
}

.hero-image h1,
.hero-image p {
	text-align: center;
}

.icon-cards {
	padding: 30px 0 10px;
}

.icon-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	text-align: center;
}

.icon-card img {
	width: 200px;
	height: auto;
}

.icon-card h3 {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 10px 0 6px;
}

.section-title {
	text-align: center;
	font-family: "Advent Pro", sans-serif;
	font-size: 40px;
	font-weight: 700;
	color: var(--jp-accent);
	text-decoration: underline;
	margin: 30px 0 20px;
}

.jp-carousel {
	position: relative;
	margin-bottom: 30px;
}

.jp-carousel-track {
	display: flex;
	gap: 60px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 10px 0 20px;
	scrollbar-width: none;
	width: 100%;
}

.jp-carousel-track::-webkit-scrollbar {
	display: none;
}

.jp-carousel-track::-webkit-scrollbar-thumb {
	background: #c3c6d0;
	border-radius: 999px;
}

.product-card {
	flex: 0 0 calc((100% - 180px) / 4);
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid #e1e1e1;
	border-radius: 30px;
	padding: 0 0 16px;
	text-align: center;
}

.product-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.product-card img {
	width: 100%;
	height: auto;
	border-radius: 30px;
	display: block;
}

.product-card h4 {
	color: #80badc;
	margin: 12px 0 6px;
	font-weight: 600;
}

.product-card .excerpt {
	font-size: 14px;
	color: #666;
}

.jp-carousel-controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	padding: 0 6px;
	transform: translateY(-50%);
	pointer-events: none;
}

.jp-carousel-button {
	background: #ffffff;
	border: 1px solid #d3d6df;
	border-radius: 999px;
	width: 42px;
	height: 42px;
	cursor: pointer;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	color: #25316b;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	pointer-events: auto;
}

.jp-carousel-button:hover {
	background: #f5f6fa;
}

@media (max-width: 980px) {
	.product-card {
		flex: 0 0 calc((100% - 60px) / 2);
	}
}

@media (max-width: 640px) {
	.product-card {
		flex: 0 0 100%;
	}
}

.site-footer {
	background: var(--jp-blue);
	color: var(--jp-white);
	text-align: center;
	padding: 20px 0;
	font-size: 13px;
}

.catalog-hero {
	background: linear-gradient(120deg, #1f2a5c, #2f3d88);
	color: #ffffff;
	padding: 48px 0;
}

.catalog-hero h1 {
	margin: 0 0 6px;
	font-size: 34px;
}

.catalog-hero p {
	margin: 0;
	opacity: 0.85;
}

.catalog-layout {
	display: grid;
	grid-template-columns: minmax(240px, 280px) 1fr;
	gap: 24px;
	padding: 32px 0 60px;
}

.catalog-sidebar {
	position: sticky;
	top: 20px;
	align-self: start;
	background: #ffffff;
	border: 1px solid #e6e8ef;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 10px 24px rgba(12, 18, 52, 0.08);
}

.catalog-filters h3 {
	margin: 0 0 16px;
	font-size: 18px;
}

.catalog-filters label {
	display: block;
	font-size: 13px;
	color: #445066;
	margin-bottom: 14px;
}

.catalog-filters input,
.catalog-filters select {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #cdd4e3;
	font-size: 14px;
}

.catalog-apply {
	display: inline-block;
	width: 100%;
	border: none;
	background: #25316b;
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 600;
}

.catalog-content {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e6e8ef;
	padding: 20px 24px 32px;
	box-shadow: 0 10px 24px rgba(12, 18, 52, 0.08);
}

.catalog-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.catalog-count {
	font-weight: 600;
	color: #2c3563;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.catalog-card {
	border: 1px solid #e8ebf4;
	border-radius: 18px;
	padding: 16px;
	background: #fdfdff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 26px rgba(27, 33, 79, 0.12);
}

.catalog-image {
	background: #f5f6fb;
	border-radius: 14px;
	padding: 8px;
	margin-bottom: 12px;
}

.catalog-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.catalog-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
	color: #25316b;
}

.catalog-price {
	font-weight: 600;
	color: #111827;
}

.catalog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 16px 0 0;
	margin: 0;
}

.catalog-pagination a,
.catalog-pagination span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 10px;
	border: 1px solid #cfd6e5;
	color: #25316b;
}

.catalog-pagination .current {
	background: #25316b;
	color: #ffffff;
}

@media (max-width: 980px) {
	.catalog-layout {
		grid-template-columns: 1fr;
	}

	.catalog-sidebar {
		position: static;
	}
}

@media (max-width: 980px) {
	.locations-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.icon-grid,
	.product-grid {
		grid-template-columns: 1fr;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-subtitle {
		font-size: 20px;
	}

	.providers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.locations-grid {
		grid-template-columns: 1fr;
	}

	.providers-grid {
		grid-template-columns: 1fr;
	}
}

/* Contactenos */
.contact-hero {
	background: linear-gradient(140deg, #f7f5ef 0%, #e7eefb 100%);
	border-bottom: 1px solid #e5e7eb;
	padding: 64px 0 40px;
}

.contact-hero h1 {
	margin: 0 0 10px;
	font-size: 40px;
	color: #1f2a44;
}

.contact-hero p {
	margin: 0 0 18px;
	max-width: 680px;
	color: #5b6b87;
	font-size: 18px;
}

.contact-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25316b;
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(37, 49, 107, 0.25);
}

.contact-section {
	background: #f8fafc;
	padding: 48px 0 80px;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 24px;
	align-items: start;
}

.contact-card {
	background: #ffffff;
	border-radius: 22px;
	padding: 24px;
	border: 1px solid #e6ebf4;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.contact-card h2 {
	margin: 0 0 10px;
	font-size: 22px;
	color: #1f2a44;
}

.contact-card p {
	margin: 0 0 18px;
	color: #4b5563;
}

.contact-form-wrap .wpcf7 form {
	display: grid;
	gap: 12px;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
	width: 100%;
	border-radius: 12px;
	border: 1px solid #d8e0ec;
	padding: 10px 12px;
	font-size: 14px;
	background: #f9fbff;
}

.contact-form-wrap textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form-wrap input[type="submit"] {
	background: #25316b;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	justify-self: start;
	box-shadow: 0 10px 24px rgba(37, 49, 107, 0.25);
}

.contact-form-wrap .wpcf7-not-valid-tip,
.contact-form-wrap .wpcf7-response-output {
	font-size: 13px;
}

.contact-map-embed {
	border-radius: 16px;
	overflow: hidden;
	background: #eef2f7;
	min-height: 320px;
}

.contact-map-embed iframe,
.contact-map-embed .wpgmza_map {
	border-radius: 16px;
}

.contact-map-note {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

@media (max-width: 980px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.contact-hero h1 {
		font-size: 32px;
	}
}

/* Promociones */
.promos-hero {
	background: linear-gradient(120deg, #f9f7f1 0%, #eef3ff 100%);
	border-bottom: 1px solid #e5e7eb;
	padding: 64px 0 40px;
}

.promos-hero h1 {
	margin: 0 0 10px;
	font-size: 40px;
	color: #1f2a44;
}

.promos-hero p {
	margin: 0;
	max-width: 620px;
	color: #5b6b87;
	font-size: 18px;
}

.promos-section {
	background: #f8fafc;
	padding: 48px 0 80px;
}

.promo-block {
	background: #ffffff;
	border-radius: 24px;
	padding: 28px;
	border: 1px solid #eef2f7;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	margin-bottom: 32px;
}

.promo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.promo-date {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b95a7;
}

.promo-header h2 {
	margin: 0;
	font-size: 26px;
	color: #1f2a44;
}

.promo-poster {
	flex: 0 0 200px;
	width: 200px;
	border-radius: 18px;
	overflow: hidden;
	background: #f3f4f6;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.promo-poster img {
	display: block;
	width: 100%;
	height: auto;
}

.promo-winners {
	margin-top: 20px;
	background: #f5f7fb;
	border-radius: 18px;
	padding: 18px 20px;
	border: 1px solid #e2e8f0;
}

.promo-winners h3 {
	margin: 0 0 12px;
	font-size: 18px;
	color: #1f2a44;
}

.promo-winners ul {
	margin: 0;
	padding-left: 18px;
	color: #334155;
}

.promo-winners li {
	margin-bottom: 6px;
}

.promo-gallery {
	margin-top: 22px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.promo-photo {
	border-radius: 16px;
	overflow: hidden;
	background: #e5e7eb;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.promo-photo img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.promo-photo:hover img {
	transform: scale(1.04);
}

@media (min-width: 900px) {
	.promo-winners ul {
		column-count: 2;
		column-gap: 24px;
	}
}

@media (max-width: 800px) {
	.promos-hero {
		padding: 48px 0 32px;
	}

	.promos-hero h1 {
		font-size: 32px;
	}

	.promo-header h2 {
		font-size: 22px;
	}

	.promo-poster {
		width: 160px;
		flex-basis: 160px;
	}
}

@media (max-width: 640px) {
	.promo-block {
		padding: 22px;
	}

	.promo-poster {
		width: 100%;
		flex-basis: 100%;
	}

	.promo-photo img {
		height: 140px;
	}
}
