/* Nota: las reglas de tipografía repiten la clase (.pw.pw) para pesar más que
   "body:not(.woocommerce-page) .site-inner h2/h3" del tema, que si no impone sus tamaños.

 Portada del blog de Petsworld — estilos propios.
   Tokens tomados del manual de marca (ver design_handoff_portada_blog_petsworld/README.md). */

@font-face {
	font-family: "InterPW";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fuentes/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "InterPW";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fuentes/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* El tema deja 5rem de aire antes del pie (.site-inner). En la portada sobra: la última
   sección es la banda verde, que va de borde a borde y tiene que tocar el pie. */
.petsworld-portada.petsworld-portada .site-inner { padding-bottom: 0; }

.pw {
	--azul: #012B7F;
	--azul-hover: #2d59b2;
	--azul-activo: #011F60;
	--cian: #008EE0;
	--verde: #44B134;
	--celeste: #B8E8FF;
	--texto: #293133;
	--texto-2: #5A6468;
	--texto-3: #8A94A6;
	--crema: #FEFDF9;
	--borde: #E4E0D6;
	--regla: #B9C3D9;
	--hover-2: #D9E6FF;
	--gutter: 120px;

	font-family: "InterPW", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--texto);
	-webkit-font-smoothing: antialiased;
}

/* Las bandas sangran de borde a borde aunque el tema limite el ancho del contenido. */
.pw-banda {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	max-width: 100vw;
}
.pw-interior { max-width: 1440px; margin: 0 auto; padding: 72px var(--gutter); }

.pw a { text-decoration: none; }
.pw *:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; }
.pw img { display: block; max-width: 100%; height: auto; }
.pw h1, .pw h2, .pw h3, .pw h4, .pw p, .pw span, .pw a, .pw div {
	font-family: "InterPW", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pw.pw h1, .pw.pw h2, .pw.pw h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; text-transform: none; }
.pw p { margin: 0; }
.pw ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 1. Hero ---------- */
.pw-hero { position: relative; height: 400px; overflow: hidden; background: var(--azul); }
.pw-hero picture, .pw-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-hero::after { content: ""; position: absolute; inset: 0; background: rgba(1, 43, 127, 0.52); pointer-events: none; }
.pw-hero__texto {
	position: relative; z-index: 1; height: 100%; max-width: 1440px; margin: 0 auto;
	padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.pw.pw .pw-hero h1 {
	font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
	text-transform: uppercase; max-width: 780px; color: #fff;
}
.pw.pw .pw-hero__sub { margin-top: 20px; font-size: 19px; font-weight: 500; line-height: 1.5; max-width: 620px; }

/* ---------- Cabecera de sección ---------- */
.pw-cab { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.pw.pw .pw-cab h2 { font-size: 32px; color: var(--azul); white-space: nowrap; }
.pw-cab__regla { flex: 1; height: 1px; background: var(--regla); }
.pw-cab__link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--azul); white-space: nowrap; transition: color 140ms ease; }
.pw-cab__link:hover { color: var(--cian); }
.pw-cab__link svg { width: 17px; height: 17px; }

/* ---------- 2. Últimos artículos ---------- */
.pw-claro { background: var(--crema); }
.pw-rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pw-tarjeta {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde);
	border-radius: 12px; overflow: hidden; transition: border-color 140ms ease;
}
.pw-tarjeta:hover { border-color: var(--azul); }
.pw.pw .pw-tarjeta__img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: #E7ECF4; }
.pw-tarjeta__cuerpo { padding: 22px 22px 24px; }
/* Varias categorías seguidas (artículos de perro y gato a la vez). */
.pw-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-cat {
	display: inline-block; padding: 4px 9px; border-radius: 6px; background: #E6EDF9; color: var(--azul);
	font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.pw.pw .pw-tarjeta h3 { margin: 14px 0 10px; font-size: 19px; line-height: 1.3; color: var(--texto); text-wrap: pretty; letter-spacing: 0; }
.pw.pw .pw-tarjeta__extracto { font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--texto-2); }
/* Recorte a 3 líneas: así todas las tarjetas de una fila quedan a la misma altura. */
.pw-tarjeta__extracto--3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pw-fecha { display: block; margin-top: 14px; font-size: 12px; font-weight: 500; color: var(--texto-3); }

/* ---------- 3. Elige tu mascota ---------- */
.pw-mascotas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.pw-mascota { display: block; text-align: center; }
.pw-mascota__caja { border-radius: 20px; overflow: hidden; }
.pw-mascota__caja img { width: 100%; height: auto; }
.pw.pw .pw-mascota__nombre { display: block; margin-top: 12px; font-size: 17px; font-weight: 500; color: var(--texto); transition: font-weight 120ms ease; }
.pw-mascota:hover .pw-mascota__nombre { font-weight: 700; }
.pw-mascota__num { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--texto-3); }
.pw-temas { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pw-temas__titulo { font-size: 14px; font-weight: 600; color: var(--texto-2); }
.pw-tema {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--azul);
	border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--azul); transition: background-color 140ms ease;
}
.pw-tema:hover { background: var(--hover-2); }
.pw-tema span { font-weight: 500; color: var(--texto-2); }

/* ---------- 4. Banda azul ---------- */
.pw-azul { background: var(--azul); color: #fff; }
.pw-azul .pw-interior { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.pw.pw .pw-antetitulo { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--celeste); }
.pw.pw .pw-azul h2 { margin-top: 12px; font-size: 32px; line-height: 1.2; color: #fff; }
.pw.pw .pw-azul__p { margin-top: 18px; font-size: 16px; font-weight: 400; line-height: 1.6; max-width: 440px; }
.pw-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.pw-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 6px;
	font-size: 15px; font-weight: 700; transition: background-color 140ms ease;
}
.pw-btn--claro { background: #fff; color: var(--azul); }
.pw-btn--claro:hover { background: var(--hover-2); }
.pw-btn--borde { background: #fff; color: var(--azul); border: 2px solid var(--azul); }
.pw-btn--borde:hover { background: var(--hover-2); }
.pw-btn--borde:active { background: #C9DBFF; }
.pw-btn svg { width: 18px; height: 18px; }
.pw-filas { display: flex; flex-direction: column; }
.pw-fila {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
	border-top: 1px solid rgba(184, 232, 255, 0.35); transition: opacity 140ms ease;
}
.pw-fila:last-child { border-bottom: 1px solid rgba(184, 232, 255, 0.35); }
.pw-fila:hover { opacity: 0.75; }
.pw.pw .pw-fila h3 { font-size: 19px; line-height: 1.35; color: #fff; letter-spacing: 0; }
.pw-fila__meta { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--celeste); }
.pw-fila svg { flex: none; width: 22px; height: 22px; color: var(--celeste); }

/* ---------- 5. Antes de comprar ---------- */
.pw-guias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pw-guia {
	display: flex; gap: 18px; padding: 16px; background: #fff; border: 1px solid var(--borde);
	border-radius: 12px; transition: border-color 140ms ease;
}
.pw-guia:hover { border-color: var(--azul); }
.pw.pw .pw-guia__img { flex: none; width: 118px; height: 118px; border-radius: 6px; object-fit: cover; background: #E7ECF4; }
.pw-guia__texto { min-width: 0; }
.pw-guia__etiqueta {
	display: inline-block; padding: 3px 8px; border-radius: 6px; background: #FFF1DE; color: #A8530C;
	font-size: 10px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap;
}
.pw.pw .pw-guia h3 { margin: 10px 0 8px; font-size: 17px; line-height: 1.3; color: var(--texto); text-wrap: pretty; letter-spacing: 0; }
.pw-guia__meta { font-size: 12px; font-weight: 500; color: var(--texto-3); }

/* ---------- 6. Banda verde ---------- */
.pw-verde { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.pw-verde__texto { background: var(--verde); color: #fff; padding: 72px 64px 72px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
.pw.pw .pw-verde h2 { font-size: 32px; line-height: 1.2; color: #fff; }
.pw.pw .pw-verde__p { margin-top: 18px; font-size: 16px; line-height: 1.6; max-width: 460px; }
.pw-pastillas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pw-pastilla {
	display: inline-block; padding: 10px 18px; border: 2px solid #fff; border-radius: 6px;
	font-size: 14px; font-weight: 600; color: #fff; transition: background-color 140ms ease;
}
.pw-pastilla:hover { background: rgba(255, 255, 255, 0.16); }
.pw-verde__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 15px 26px; border-radius: 6px; background: #fff; color: var(--azul); font-size: 16px; font-weight: 700; transition: background-color 140ms ease; }
.pw-verde__cta:hover { background: var(--hover-2); }
.pw-verde__foto { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center; }

/* ---------- Aviso de vista previa ---------- */
.pw-aviso {
	width: 100vw; margin-left: calc(50% - 50vw); background: #FFF1DE; color: #A8530C;
	font-size: 14px; font-weight: 600; text-align: center; padding: 10px 20px;
}

/* ---------- Puntos de ruptura ---------- */
@media (max-width: 1100px) {
	.pw { --gutter: 48px; }
	.pw-rejilla-3, .pw-guias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pw-mascotas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pw-azul .pw-interior { grid-template-columns: 1fr; gap: 40px; }
	.pw.pw .pw-hero h1 { font-size: 40px; }
}
@media (max-width: 700px) {
	.pw { --gutter: 20px; }
	.pw-interior { padding: 36px var(--gutter); }
	.pw-hero { height: 280px; }
	.pw.pw .pw-hero h1 { font-size: 30px; line-height: 1.12; }
	.pw.pw .pw-hero__sub { font-size: 15px; margin-top: 14px; }
	.pw-cab { gap: 14px; margin-bottom: 20px; }
	.pw.pw .pw-cab h2 { font-size: 24px; white-space: normal; }
	.pw-rejilla-3, .pw-guias { grid-template-columns: 1fr; gap: 20px; }
	.pw-mascotas { gap: 14px; }
	.pw-mascota__caja { border-radius: 16px; }
	.pw.pw .pw-mascota__nombre { font-size: 15px; }
	.pw.pw .pw-azul h2, .pw .pw-verde h2 { font-size: 24px; }
	.pw.pw .pw-fila h3 { font-size: 16px; }
	.pw-botones { flex-direction: column; gap: 12px; }
	.pw-btn { width: 100%; justify-content: center; }
	.pw-temas { flex-direction: column; align-items: stretch; }
	.pw-tema { justify-content: space-between; min-height: 44px; }
	.pw.pw .pw-guia__img { width: 92px; height: 92px; }
	.pw.pw .pw-guia h3 { font-size: 15px; }
	.pw-verde { grid-template-columns: 1fr; }
	.pw-verde__texto { padding: 32px var(--gutter); order: 2; }
	.pw-verde__foto { min-height: 0; height: 200px; order: 1; }
	.pw-verde__cta { width: 100%; justify-content: center; }
}

/* ---------- Variantes de texto por tamaño de pantalla ---------- */
.pw-solo-movil { display: none; }
@media (max-width: 700px) {
	.pw-solo-escritorio { display: none; }
	.pw-solo-movil { display: inline; }
	p.pw-solo-movil { display: block; }
}
