/*
Theme Name: Polipel 2026 (Twenty Sixteen Child)
Theme URI: https://www.polipel.com/
Template: twentysixteen
Description: Rediseño de polipel.com alineado con el nuevo logo (azul marino, azul acero, naranja, celeste). Child theme de Twenty Sixteen.
Version: 3.0.5
Text Domain: polipel
*/

/* ==========================================================
   1. PALETA (tomada del logo nuevo)
   ========================================================== */
:root {
	--pp-navy:      #1f3f73;  /* "POLIPEL" */
	--pp-navy-dark: #142a4f;
	--pp-blue:      #2f6fb5;  /* azul medio / enlaces */
	--pp-steel:     #4f87b8;  /* "embalajes" */
	--pp-sky:       #e6f1f9;  /* celeste del centro del banner */
	--pp-sky-2:     #f4f8fc;
	--pp-orange:    #e8792b;  /* naranja de los triángulos */
	--pp-orange-dk: #c95a12;
	--pp-text:      #2a3442;
	--pp-muted:     #5d6b7c;
	--pp-border:    #d6e2ee;
	--pp-white:     #ffffff;
	--pp-font:      Montserrat, "Helvetica Neue", Arial, sans-serif;
	--pp-radius:    10px;
	--pp-shadow:    0 10px 30px rgba(20, 42, 79, .10);
}

/* ==========================================================
   2. BASE — reemplaza el esquema oscuro y la serif
   ========================================================== */
html body,
body.custom-background {
	background: linear-gradient(180deg, var(--pp-sky) 0%, #dbe7f2 100%) fixed !important;
	color: var(--pp-text) !important;
	font-family: var(--pp-font) !important;
}

body,
button, input, select, textarea,
.entry-content, .entry-summary, .page-content,
.widget, .site-description, blockquote, cite {
	font-family: var(--pp-font) !important;
}

.entry-content, .entry-summary, .page-content, .comment-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--pp-text) !important;
}

.site {
	background: var(--pp-white) !important;
	box-shadow: var(--pp-shadow);
	border-radius: 0 0 var(--pp-radius) var(--pp-radius);
	overflow: hidden;
}
.site-inner { max-width: 1240px; }

@media screen and (min-width: 44.375em) {
	body:not(.custom-background-image):before,
	body:not(.custom-background-image):after { background: transparent !important; }
	.site { margin: 0 auto 32px !important; }
}

a { color: var(--pp-blue) !important; text-decoration: none; transition: color .2s; }
a:hover, a:focus, a:active { color: var(--pp-orange) !important; }
.entry-content a, .entry-summary a, .widget a {
	box-shadow: 0 1px 0 0 currentColor !important;
}
.entry-content a:hover, .widget a:hover { box-shadow: 0 2px 0 0 var(--pp-orange) !important; }

::selection { background: var(--pp-orange); color: #fff; }

/* ==========================================================
   3. ENCABEZADO — banner del logo a todo el ancho + barra de menú
   ========================================================== */
.site-header {
	padding: 0 !important;
	background: var(--pp-white);
}
.site-header-main {
	display: block !important;
}
.site-branding {
	margin: 0 !important;
	width: 100%;
	max-width: none !important;
}
.custom-logo-link { display: block !important; line-height: 0; box-shadow: none !important; }
.custom-logo {
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
	border-radius: 0 !important;
	display: block;
}
/* el título y la bajada ya están en el banner: se ocultan visualmente (se mantienen para Google y lectores de pantalla) */
.site-branding .site-title,
.site-branding .site-description {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* Barra de navegación */
.site-header-menu {
	margin: 0 !important;
	background: var(--pp-navy);
	border-bottom: 4px solid var(--pp-orange);
}
@media screen and (min-width: 56.875em) {
	.site-header-menu {
		display: flex !important;
		justify-content: center;
		width: 100%;
	}
	.main-navigation { margin: 0 !important; }
	.main-navigation .primary-menu > li > a {
		padding: 18px 22px !important;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: .02em;
		text-transform: uppercase;
		color: #fff !important;
		box-shadow: none !important;
		position: relative;
	}
	.main-navigation .primary-menu > li > a:after {
		content: "";
		position: absolute;
		left: 22px; right: 22px; bottom: 10px;
		height: 3px;
		background: var(--pp-orange);
		transform: scaleX(0);
		transition: transform .25s ease;
	}
	.main-navigation .primary-menu > li > a:hover:after,
	.main-navigation .primary-menu > .current-menu-item > a:after { transform: scaleX(1); }
	.main-navigation .primary-menu > li > a:hover,
	.main-navigation .primary-menu > .current-menu-item > a { color: #fff !important; }
}

/* Menú móvil */
@media screen and (max-width: 56.8125em) {
	.menu-toggle { display: block; }
}
@media screen and (min-width: 56.875em) {
	.menu-toggle { display: none !important; }
}
.menu-toggle {
	margin: 14px auto !important;
	background: var(--pp-orange) !important;
	border: 0 !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 10px 26px !important;
	font-weight: 700;
	text-transform: uppercase;
}
.menu-toggle.toggled-on { background: var(--pp-navy) !important; }
@media screen and (max-width: 56.8125em) {
	.site-header-menu.toggled-on { padding: 6px 20px 14px; }
	.main-navigation a { color: #fff !important; border-color: rgba(255,255,255,.15) !important; }
	.main-navigation .current-menu-item > a { color: var(--pp-orange) !important; }
}

/* ==========================================================
   4. CONTENIDO
   ========================================================== */
.site-content { padding-top: 48px; }

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title {
	font-family: var(--pp-font) !important;
	color: var(--pp-navy) !important;
}
.entry-title {
	font-size: 2.4rem !important;
	font-weight: 800 !important;
	letter-spacing: -.01em;
	margin-bottom: 1.4rem !important;
	-webkit-hyphens: none !important;
	hyphens: none !important;
	word-wrap: normal !important;
}
@media screen and (max-width: 44.375em) {
	.entry-title { font-size: 1.9rem !important; }
	.site-content { padding-top: 28px; }
}
.entry-title:after {
	content: "";
	display: block;
	width: 64px; height: 5px;
	margin-top: 14px;
	background: var(--pp-orange);
	border-radius: 3px;
}
.entry-content h2 { font-size: 1.6rem; font-weight: 700; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--pp-blue) !important; }

.entry-content p:first-of-type,
.entry-content blockquote {
	font-size: 1.15rem;
}
blockquote,
.entry-content blockquote,
.wp-block-quote {
	border-left: 5px solid var(--pp-orange) !important;
	background: var(--pp-sky-2);
	color: var(--pp-navy) !important;
	padding: 18px 24px !important;
	margin-left: 0 !important;
	border-radius: 0 var(--pp-radius) var(--pp-radius) 0;
	font-style: normal !important;
}
blockquote p, blockquote cite { color: var(--pp-navy) !important; }

hr, .wp-block-separator { background: var(--pp-border) !important; border: 0; height: 1px; }

.entry-content img, .wp-block-image img { border-radius: var(--pp-radius); }

/* Ocultar "Editar" y meta innecesaria en páginas */
.page .entry-footer { display: none; }

/* ==========================================================
   5. BOTONES Y FORMULARIOS
   ========================================================== */
button:not(.customize-partial-edit-shortcut-button), input[type="button"], input[type="reset"], input[type="submit"],
.wp-block-button__link, .wp-element-button {
	background: var(--pp-orange) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 12px 28px !important;
	font-family: var(--pp-font) !important;
	font-weight: 700 !important;
	letter-spacing: .03em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(232, 121, 43, .35) !important;
	transition: background .2s, transform .2s;
}
button:not(.customize-partial-edit-shortcut-button):hover, input[type="submit"]:hover,
.wp-block-button__link:hover, .wp-element-button:hover {
	background: var(--pp-orange-dk) !important;
	transform: translateY(-1px);
}
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], input[type="password"], textarea, select {
	background: var(--pp-sky-2) !important;
	color: var(--pp-text) !important;
	border: 1px solid var(--pp-border) !important;
	border-radius: 8px !important;
	padding: 12px 14px !important;
}
input:focus, textarea:focus, select:focus {
	border-color: var(--pp-blue) !important;
	background: #fff !important;
	outline: 3px solid rgba(47, 111, 181, .18);
}
label { color: var(--pp-navy); font-weight: 600; }

/* ==========================================================
   6. BARRA LATERAL — tarjetas
   ========================================================== */
.sidebar .widget,
.widget-area .widget {
	background: var(--pp-sky-2);
	border: 1px solid var(--pp-border) !important;
	border-top: 5px solid var(--pp-orange) !important;
	border-radius: var(--pp-radius);
	padding: 24px 24px 20px !important;
	margin-bottom: 28px !important;
	color: var(--pp-text) !important;
}
.widget-title {
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 16px !important;
}
.widget strong, .widget b { color: var(--pp-navy); }
.widget p { margin-bottom: 12px; }

/* ==========================================================
   7. PIE DE PÁGINA
   ========================================================== */
.site-footer {
	background: var(--pp-navy-dark) !important;
	color: rgba(255,255,255,.8) !important;
	padding: 34px 7.6923% !important;
	margin-top: 0;
	border-top: 4px solid var(--pp-orange);
}
.site-footer a,
.site-footer .main-navigation a { color: #fff !important; box-shadow: none !important; }
.site-footer a:hover { color: var(--pp-orange) !important; }
.site-info, .site-info a { color: rgba(255,255,255,.65) !important; font-size: 13px; }
.site-info .site-title { font-family: var(--pp-font) !important; font-weight: 700; }
.site-info .site-title:after { content: " \00b7  Librería, Papelera y Artículos de Embalaje desde 1967"; font-weight: 400; }
.site-footer .site-title a { color: #fff !important; }
/* oculta "Funciona gracias a WordPress" */
.site-info > a:last-child, .site-info .imprint { display: none !important; }

/* ==========================================================
   8. DETALLES
   ========================================================== */
/* Botón WhatsApp (Joinchat) un poco más arriba en móviles */
@media (max-width: 600px) { .joinchat { --bottom: 18px; } }

/* Tablas */
table { border-color: var(--pp-border) !important; }
th { background: var(--pp-navy); color: #fff; }
td, th { border-color: var(--pp-border) !important; padding: 10px 12px !important; }
tr:nth-child(even) td { background: var(--pp-sky-2); }

/* ==========================================================
   9. AJUSTES DE ESPACIADO Y MAPA (Contacto)
   ========================================================== */
.site-main { margin-bottom: 48px !important; }
.sidebar, .widget-area { margin-bottom: 48px !important; }
.map-responsive { margin: 8px 0 0; line-height: 0; }
.map-responsive iframe {
	display: block;
	width: 100% !important;
	height: 420px;
	margin: 0 !important;
	border-radius: var(--pp-radius);
	box-shadow: var(--pp-shadow);
}

/* ==========================================================
   10. NOTAS (entradas): texto justificado solo en pantallas grandes
   ========================================================== */
@media screen and (min-width: 56.875em) {
	article.type-post .entry-content p {
		text-align: justify !important;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}
article.type-post .wp-caption {
	margin-right: 28px !important;
	margin-bottom: 16px !important;
}
article.type-post .wp-caption-text {
	font-size: 13px;
	color: var(--pp-muted);
	font-style: normal;
}

/* Interlineado parejo en notas pegadas desde Word */
article.type-post .entry-content p { line-height: 1.75 !important; }
