/*
Theme Name: JJ&P Consultores Tributarios
Author: JJ&P Consultores Tributarios
Description: Tema de bloques nativo para JJ&P Consultores Tributarios, compatible con el editor de bloques (Gutenberg) y el Editor del sitio.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jjp-consultores
Tags: full-site-editing, wide-blocks, editor-style
*/

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

/* Fondo unico gris muy claro para toda la pagina (tarjetas y formulario quedan blancos) */
:root {
	--jjp-fondo: #f5f5f7;
}
body,
.jjp-hero,
.jjp-section-servicios,
.jjp-blog-contacto,
.jjp-contacto-seccion {
	background: var(--jjp-fondo) !important;
}

/* Sin franja blanca entre secciones: se anula el espacio automatico (blockGap) */
.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ===== Encabezado ===== */
.jjp-header .jjp-nav a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 500;
	font-size: 15.5px;
	padding: 12px 0 8px;
	border-bottom: 3px solid transparent;
}
.jjp-header .jjp-nav a:hover {
	color: var(--wp--preset--color--primary);
}
.jjp-header .jjp-nav .is-active > a,
.jjp-header .jjp-nav .current-menu-item > a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	border-bottom-color: var(--wp--preset--color--primary);
}
.jjp-header .jjp-social a {
	width: 44px;
	height: 44px;
}
/* ===== Encabezado responsive =====
   Escritorio (1025px o mas): logo | menu | redes en una sola fila.
   Tablet (600-1024px): fila 1 = logo a la izquierda y redes a la derecha; fila 2 = menu centrado a todo el ancho.
   Celular (hasta 599px): una sola fila = logo | redes | menu hamburguesa. */
.jjp-header-right {
	align-items: center;
}
@media (min-width: 600px) and (max-width: 1024px) {
	.jjp-header-right {
		display: contents !important;
	}
	.jjp-header > .alignwide {
		align-items: center;
		row-gap: 0 !important;
	}
	.jjp-header > .alignwide > .jjp-logo-horizontal {
		order: 1;
	}
	/* logo un poco mas compacto y filas mas bajas: el encabezado fijo no debe ocupar demasiada pantalla */
	.jjp-header .jjp-logo-horizontal img {
		width: clamp(200px, 27vw, 235px);
	}
	.jjp-header .jjp-nav a {
		padding: 8px 0 6px;
	}
	.jjp-header .jjp-header-actions {
		order: 2;
		flex: 0 0 auto !important;
		margin-left: auto;
		justify-content: flex-end !important;
		flex-wrap: nowrap !important;
	}
	.jjp-header .jjp-nav {
		order: 3;
		flex: 1 1 100%;
		width: 100%;
		justify-content: center;
		border-top: 1px solid #e6e9ef;
		margin-top: 2px;
	}
	.jjp-header .jjp-nav .wp-block-navigation__container {
		justify-content: center;
		width: 100%;
		gap: 4px 34px;
	}
}
@media (max-width: 599px) {
	.jjp-header .wp-block-group.alignwide {
		padding-left: 16px !important;
		padding-right: 16px !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 8px !important;
	}
	.jjp-header-right {
		display: contents !important;
	}
	.jjp-header > .alignwide > .jjp-logo-horizontal {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
	}
	.jjp-header .jjp-logo-horizontal img {
		width: clamp(128px, 38vw, 200px);
		margin: -6px 0;
	}
	.jjp-header .jjp-header-actions {
		order: 2;
		flex: 0 0 auto !important;
		margin-left: auto;
		flex-wrap: nowrap !important;
		justify-content: flex-end !important;
		gap: 0 !important;
	}
	.jjp-header .jjp-header-actions .jjp-social {
		flex-wrap: nowrap;
	}
	.jjp-header .jjp-header-actions .jjp-social a {
		width: 32px;
		height: 44px;
	}
	.jjp-header .jjp-nav {
		order: 3;
		flex: 0 0 auto;
		margin-left: 0;
	}
}
@media (max-width: 359px) {
	.jjp-header .jjp-logo-horizontal img {
		width: clamp(116px, 36vw, 130px);
	}
	.jjp-header .jjp-header-actions .jjp-social a {
		width: 27px;
	}
}
/* Redes sociales mas juntas (todas las pantallas) */
.jjp-header .jjp-social {
	gap: 0;
}
.jjp-header .jjp-social a {
	width: 36px;
	height: 44px;
}

/* Al ir a una seccion, el encabezado fijo no debe taparla */
section[id],
[id="inicio"],
[id="contacto"] {
	scroll-margin-top: var(--jjp-header-h, 0px);
}

/* Menu desplegable (celular): panel bajo el encabezado con los colores de la marca
   (vino #7c0a28 y azul marino #0b1d3a); la pagina queda visible, atenuada, detras. */
.jjp-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--jjp-header-h, 0px) !important;
	background-color: rgba(11, 29, 58, 0.5) !important;
	padding: 0;
}
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	position: relative;
	align-items: stretch;
	background: #ffffff;
	padding: 60px 20px 20px;
	border-top: 3px solid #7c0a28;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 24px 40px rgba(11, 29, 58, 0.28);
	/* en pantallas muy bajas (celular horizontal) el panel hace scroll en vez de salirse */
	max-height: calc(100vh - var(--jjp-header-h, 0px));
	overflow-y: auto;
	box-sizing: border-box;
}
/* rotulo "Menu" en la misma franja que el boton de cerrar */
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-content::before {
	content: "Menú";
	position: absolute;
	top: 20px;
	left: 22px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #7c0a28;
}
/* lema al pie del panel */
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-content::after {
	content: "Tu crecimiento es nuestro compromiso";
	order: 4; /* la lista de WordPress tiene order: 3 */
	align-self: stretch;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eceef2;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 15px;
	color: #7c0a28;
}
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 11px;
	right: 14px;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f4f1f2;
	color: #0b1d3a;
	transition: background-color 0.2s, color 0.2s;
}
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-close:hover {
	background: #7c0a28;
	color: #ffffff;
}
.jjp-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
}
.jjp-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 4px;
	width: 100%;
}
.jjp-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 0;
}
.jjp-nav .is-menu-open .wp-block-navigation-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	font-size: 17.5px;
	font-weight: 600;
	color: #0b1d3a;
	padding: 14px 16px !important;
	border-radius: 12px;
	border-bottom: 0;
	transition: background-color 0.2s, color 0.2s;
}
.jjp-nav .is-menu-open .wp-block-navigation-item a::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	opacity: 0.5;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jjp-nav .is-menu-open .wp-block-navigation-item a:hover,
.jjp-nav .is-menu-open .wp-block-navigation-item a:focus-visible {
	background: #f8eef1;
	color: #7c0a28;
}
.jjp-nav .is-menu-open .wp-block-navigation-item.is-active > a,
.jjp-nav .is-menu-open .wp-block-navigation-item.current-menu-item > a {
	background: #f8eef1;
	color: #7c0a28;
	font-weight: 700;
	box-shadow: inset 3px 0 0 #7c0a28;
	border-bottom: 0;
}
.jjp-nav .is-menu-open a:focus {
	outline: none;
}
/* ===== Botones ===== */
.btn-wine .wp-block-button__link,
.btn-wine.wp-block-button__link {
	transition: filter 0.2s;
}
.btn-wine .wp-block-button__link:hover,
.btn-wine.wp-block-button__link:hover {
	filter: brightness(0.9);
	color: #ffffff;
}
.btn-line .wp-block-button__link {
	transition: background-color 0.2s, color 0.2s;
}
.btn-line .wp-block-button__link:hover {
	background: #7c0a28 !important;
	color: #ffffff !important;
}
.has-icon-whatsapp .wp-block-button__link,
.has-icon-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.has-icon-whatsapp .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.7 13.6L3 21l4.5-1.2A9 9 0 1 0 12 3z'/%3E%3Cpath d='M9 8.5c0 3.5 3 6.5 6.5 6.5l1-1.5-2-1-1 1c-1.2-.5-2.5-1.8-3-3l1-1-1-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.7 13.6L3 21l4.5-1.2A9 9 0 1 0 12 3z'/%3E%3Cpath d='M9 8.5c0 3.5 3 6.5 6.5 6.5l1-1.5-2-1-1 1c-1.2-.5-2.5-1.8-3-3l1-1-1-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.has-icon-arrow .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== Banner principal ===== */
.jjp-hero {
	background-color: #ececef;
	width: 100%;
	min-height: 470px;
}
@media (min-width: 1025px) {
	.jjp-hero {
		/* Banner delgado (4:1): la altura es el 25% del ancho; si el texto necesita mas, crece lo justo.
		   La foto es 3:1 y se recorta por arriba y abajo (object-position). */
		min-height: clamp(340px, 25vw, 1100px) !important;
		padding-top: 34px !important;
		padding-bottom: 26px !important;
	}
	/* el recorte conserva el rotulo completo de la pared (arriba) y el vaso, el portatil y la pluma (abajo) */
	.jjp-hero .wp-block-cover__image-background {
		object-position: 50% 28% !important;
	}
	/* degradado claro a la izquierda: el texto siempre tiene fondo limpio, aunque la foto traiga ventanal y plantas */
	.jjp-hero .wp-block-cover__gradient-background {
		background: linear-gradient(90deg, rgba(248, 248, 250, 0.95) 0%, rgba(248, 248, 250, 0.9) 28%, rgba(248, 248, 250, 0.72) 42%, rgba(248, 248, 250, 0.3) 54%, rgba(248, 248, 250, 0) 64%) !important;
		opacity: 1 !important;
	}
	/* texto compacto para el banner delgado */
	.jjp-hero h1 {
		font-size: clamp(2rem, 3.1vw, 3.1rem) !important;
	}
	.jjp-hero .jjp-hero-lead {
		font-size: clamp(1rem, 1.3vw, 1.25rem) !important;
	}
	.jjp-hero .jjp-hero-inner > * + * {
		margin-block-start: 12px !important;
	}
	.jjp-hero .wp-block-buttons {
		margin-top: 4px !important;
	}
	.jjp-hero .wp-block-button__link {
		min-height: 46px !important;
		padding-top: 11px !important;
		padding-bottom: 11px !important;
		font-size: 15px !important;
	}
	.jjp-hero .jjp-trust-row {
		padding-top: 4px;
	}
}
/* Monitores muy grandes (2200px o mas): el texto del banner crece para no verse pequeno */
@media (min-width: 2200px) {
	.jjp-hero h1 {
		font-size: 3.55rem !important;
	}
	.jjp-hero .jjp-hero-lead {
		font-size: 1.45rem !important;
	}
	.jjp-hero .jjp-hero-inner {
		max-width: 1500px;
	}
	.jjp-hero .wp-block-button__link {
		min-height: 54px !important;
		padding-top: 14px !important;
		padding-bottom: 14px !important;
		font-size: 17px !important;
	}
	.jjp-hero .jjp-trust-item {
		font-size: 17px;
	}
}
.jjp-hero-inner {
	width: 100%;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.jjp-hero-lead {
	max-width: 560px;
}
.jjp-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 50px;
	padding-top: 10px;
}
.jjp-trust-item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
.jjp-hero {
	isolation: isolate;
}
/* CAPAS DECORATIVAS DEL HERO */
.jjp-hero::before,
.jjp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* CURVA PRINCIPAL CONCHO DE VINO */
.jjp-hero::after {
    z-index: 1;

    background: linear-gradient(
        145deg,
        rgba(165, 18, 62, calc(0.75 * var(--jjp-vino-alfa, 0.68))) 0%,
        rgba(135, 8, 45, calc(0.82 * var(--jjp-vino-alfa, 0.68))) 45%,
        rgba(75, 3, 25, calc(0.88 * var(--jjp-vino-alfa, 0.68))) 100%
    );

    -webkit-clip-path: url(#heroCurveClip);
    clip-path: url(#heroCurveClip);
}

/* FILO GRIS PLOMO TRANSPARENTE */
.jjp-hero::before {
    z-index: 2;

    background: linear-gradient(
        145deg,
        rgba(220, 223, 228, calc(0.75 * var(--jjp-vino-alfa, 0.68))) 0%,
        rgba(145, 150, 160, calc(0.80 * var(--jjp-vino-alfa, 0.68))) 50%,
        rgba(235, 238, 242, calc(0.85 * var(--jjp-vino-alfa, 0.68))) 100%
    );

    -webkit-clip-path: url(#heroCurveHighlightClip);
    clip-path: url(#heroCurveHighlightClip);
}

/* El hero es la referencia de posicion */
.jjp-hero {
    position: relative;
    isolation: isolate;
}

/* Transparencia de la concha de vino segun la resolucion
   (1 = como era antes; menor = mas transparente). */
/* Mas baja = mas transparente (1 = opacidad original del vino). Las ondas de la foto se ven a traves. */
/* Mismo vino que la curva de "Quienes somos": 64% / 70% / 78% de opacidad. */
.jjp-hero { --jjp-vino-alfa: 0.853; }
@media (max-width: 1024px) { .jjp-hero { --jjp-vino-alfa: 0.76; } }

/* Contenedor del contenido: static para que la leyenda se posicione contra el
   banner; z-index por encima de las capas decorativas (curva 1, filo 2). */
.jjp-hero > .wp-block-cover__inner-container {
    position: static;
    z-index: 3 !important;
}


/* ESLOGAN RESPONSIVE DENTRO DEL VINO */
.jjp-hero .hero-script {
    position: absolute;
    z-index: 10;

    right: 3%;
    bottom: 3%;

    width: clamp(210px, 19vw, 350px);
    min-width: 0;
    max-width: none;
    height: auto;

    margin: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: none;

    filter: drop-shadow(0 1px 2px rgba(30, 0, 12, 0.9)) drop-shadow(0 2px 5px rgba(30, 0, 12, 0.55));
}

/* TEXTO BLANCO */
.jjp-hero .hero-script-line {
    font-family: "La Belle Aurore", "Segoe Script", cursive;
    font-size: 37px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.06em;
    word-spacing: 0.12em;
    fill: #ffffff;
    opacity: 1;
    stroke: none;
    paint-order: stroke fill;
}

/* PANTALLAS GRANDES */
@media (min-width: 1600px) {
    .jjp-hero .hero-script {
        right: 2.5%;
        bottom: 2%;
        width: clamp(280px, 15vw, 360px);
    }
}

/* PANTALLAS MEDIANAS */
@media (min-width: 1025px) and (max-width: 1599px) {
    .jjp-hero .hero-script {
        right: 2.5%;
        bottom: 1.5%;
        width: clamp(200px, 16vw, 300px);
    }
}

/* TABLET Y TELEFONO: la misma concha del escritorio, reducida de forma
   proporcional (caja anclada abajo a la derecha con la misma relacion de aspecto).
   --jjp-cw es el ancho de la concha; la leyenda y el borde escalan con ella. */
@media (max-width: 1024px) {
    .jjp-hero {
        --jjp-cw: clamp(300px, 46vw, 440px);
        padding-bottom: calc(var(--jjp-cw) * 0.16 + 24px) !important;
    }
    .jjp-hero::before,
    .jjp-hero::after {
        inset: auto 0 0 auto;
        width: var(--jjp-cw);
        height: auto;
        aspect-ratio: 2.04 / 1;
    }
    /* Mismo tono que el escritorio: alli la concha solo muestra el tramo final
       (60%-100%) del degradado del banner, aqui la caja es solo la concha. */
    .jjp-hero::after {
        background: linear-gradient(145deg, rgba(120, 7, 40, calc(0.84 * var(--jjp-vino-alfa, 0.68))) 0%, rgba(75, 3, 25, calc(0.88 * var(--jjp-vino-alfa, 0.68))) 100%);
        -webkit-clip-path: url(#heroBoxClip);
        clip-path: url(#heroBoxClip);
    }
    .jjp-hero::before {
        background: linear-gradient(145deg, rgba(163, 168, 176, calc(0.81 * var(--jjp-vino-alfa, 0.68))) 0%, rgba(235, 238, 242, calc(0.85 * var(--jjp-vino-alfa, 0.68))) 100%);
        -webkit-clip-path: url(#heroBoxHighlightClip);
        clip-path: url(#heroBoxHighlightClip);
    }
    .jjp-hero .hero-script {
        right: calc(var(--jjp-cw) * 0.0714);
        bottom: calc(var(--jjp-cw) * 0.0147);
        width: calc(var(--jjp-cw) * 0.461);
        min-width: 0;
    }
    .jjp-hero .wp-block-cover__gradient-background {
        background: linear-gradient(180deg, rgba(240, 240, 243, 0.92) 0%, rgba(240, 240, 243, 0.8) 60%, rgba(240, 240, 243, 0.55) 100%) !important;
    }
}
@media (max-width: 700px) {
    .jjp-hero {
        --jjp-cw: clamp(220px, 66vw, 300px);
    }
}

/* TABLET Y CELULAR: imagen propia con el logo (hero-banner-tablet.jpg y hero-banner-movil.jpg).
   El texto queda arriba y la imagen anclada abajo: el espacio inferior deja ver el logo sin que
   el texto lo tape. --jjp-img-h es el alto que ocupa la imagen al ajustarse al ancho de pantalla. */
@media (max-width: 1024px) {
    .jjp-hero {
        --jjp-img-h: calc(100vw / 1.557);
        --jjp-fade: 0.05; /* parte alta de la imagen que se funde con el fondo (antes del rotulo) */
        background-color: #f1f1f4 !important;
        background-image:
            linear-gradient(180deg, #f1f1f4 0%, #f1f1f4 35%, rgba(241, 241, 244, 0) 100%),
            url("/wp-content/themes/jjp-consultores/assets/images/hero-banner-tablet.jpg?v=4") !important;
        background-size: 100% calc(var(--jjp-img-h) * var(--jjp-fade)), 100% auto !important;
        background-position: center calc(100% - var(--jjp-img-h) * (1 - var(--jjp-fade))), center bottom !important;
        background-repeat: no-repeat !important;
        /* la imagen se ajusta al ancho y queda abajo; el rotulo del logo empieza al 6% de su alto,
           asi que el texto termina justo antes y no lo tapa */
        padding-bottom: calc(var(--jjp-img-h) * 0.94 + 14px) !important;
    }
    .jjp-hero .wp-block-cover__image-background {
        display: none;
    }
    .jjp-hero .wp-block-cover__gradient-background {
        background: none !important;
    }
}
@media (max-width: 700px) {
    .jjp-hero {
        --jjp-img-h: calc(100vw / 0.819);
        --jjp-fade: 0.08;
        background-image:
            linear-gradient(180deg, #f1f1f4 0%, #f1f1f4 35%, rgba(241, 241, 244, 0) 100%),
            url("/wp-content/themes/jjp-consultores/assets/images/hero-banner-movil.jpg?v=4") !important;
        /* el rotulo empieza al 11% de la imagen */
        padding-bottom: calc(var(--jjp-img-h) * 0.9 + 14px) !important;
    }
}

/* CELULAR / TABLET EN HORIZONTAL (pantalla ancha pero baja): se usa el banner del escritorio
   (texto a la izquierda sobre la foto) en vez de apilar, y el encabezado deja de ser fijo
   para no comerse un tercio de la pantalla. */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
	.jjp-hero {
		background-image: none !important;
		min-height: clamp(330px, 36vw, 400px) !important;
		padding-top: 24px !important;
		padding-bottom: 22px !important;
	}
	.jjp-hero .wp-block-cover__image-background {
		display: block !important;
		object-position: 50% 28% !important;
	}
	.jjp-hero .wp-block-cover__gradient-background {
		background: linear-gradient(90deg, rgba(248, 248, 250, 0.95) 0%, rgba(248, 248, 250, 0.9) 34%, rgba(248, 248, 250, 0.7) 50%, rgba(248, 248, 250, 0.25) 62%, rgba(248, 248, 250, 0) 72%) !important;
		opacity: 1 !important;
	}
	.jjp-hero h1 {
		font-size: clamp(1.55rem, 3.7vw, 2.3rem) !important;
	}
	.jjp-hero .jjp-hero-lead {
		font-size: clamp(0.88rem, 1.7vw, 1.05rem) !important;
		max-width: 52% !important;
	}
	.jjp-hero .jjp-hero-inner > * + * {
		margin-block-start: 10px !important;
	}
	.jjp-hero .wp-block-button__link {
		min-height: 40px !important;
		padding: 8px 16px !important;
		font-size: 13px !important;
	}
	.jjp-hero .jjp-trust-row {
		gap: 10px 22px;
		padding-top: 2px;
	}
	.jjp-hero .jjp-trust-item {
		font-size: 12px;
		gap: 8px;
	}
}
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
	.jjp-header {
		position: static !important;
	}
}

input::placeholder,
textarea::placeholder {
	color: #6b7380;
}

/* ===== Servicios ===== */
.jjp-underline {
	display: block;
	width: 60px;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
}
.jjp-servicios-lead {
	flex: 0 1 600px;
}
.jjp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}
.lift:hover {
	box-shadow: 0 22px 44px rgba(11, 29, 58, 0.16) !important;
	transform: translateY(-3px);
}
.jjp-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 226 / 77;
}
.jjp-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
/* degradado inferior hacia el fondo blanco de la tarjeta (antes era una mascara sobre la foto,
   que al pasar el mouse hacia que el navegador la rasterizara en baja resolucion y se pixelara) */
.jjp-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.8) 100%);
}
.jjp-card-badge {
	z-index: 2;
	position: absolute;
	left: 50%;
	top: 55%;
	transform: translate(-50%, -50%);
	width: 30%;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(11, 29, 58, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}
.jjp-card-badge > span {
	width: 84%;
	height: 84%;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* Tarjeta Declaraciones: misma estructura que las demas; la ilustracion se encuadra en la franja */
.jjp-card-media--declaraciones {
	overflow: hidden;
}
.jjp-card-media--declaraciones img:not(.jjp-badge-sri) {
	object-position: 50% 42%;
}
.jjp-card-media .jjp-badge-sri {
	width: 78%;
	height: auto;
	-webkit-mask-image: none;
	mask-image: none;
	object-fit: contain;
}
.jjp-card-body {
	padding: 30px 24px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
	width: 100%;
	box-sizing: border-box;
}
.jjp-card-body h3,
.jjp-card-body p {
	margin: 0;
}
.jjp-card-body p {
	flex: 1;
}
.jjp-card-arrow {
	margin-top: 6px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #7c0a28;
	color: #7c0a28;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* ===== Quienes somos ===== */
.jjp-nosotros {
	position: relative;
	overflow: hidden;
	background: var(--jjp-fondo);
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 44px;
	padding-right: 44px;
	box-sizing: border-box;
}
.jjp-nosotros-photo {
	position: relative;
	flex: 0 1 50%;
	min-width: 340px;
	aspect-ratio: 480 / 230;
	align-self: stretch;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 16px 38px rgba(11, 29, 58, 0.22);
	z-index: 2;
}
.jjp-nosotros-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}
/* Barra vino con las tres burbujas: va al final de "Quienes somos", debajo del texto,
   en todas las pantallas. La foto queda sola. */
.jjp-nosotros-text {
	overflow: visible;
	margin-top: 0 !important; /* sin el espacio automatico de arriba */
}
.jjp-nosotros-band {
	order: 2; /* despues del texto */
	position: static;
	width: 100%;
	align-self: stretch;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	background: linear-gradient(145deg, rgba(165, 18, 62, 0.85) 0%, rgba(75, 3, 25, 0.9) 100%);
	border-radius: 14px;
	margin: 6px 0 0;
}
/* ESCRITORIO: franja vino con curva y filo plateado, a la derecha del texto (la foto queda sola).
   En tablet y celular se usa la barra de arriba. */
@media (min-width: 1201px) {
	.jjp-nosotros {
		--jjp-band-w: clamp(360px, 27vw, 410px);
	}
	/* la columna tiene una altura minima para que la curva tenga espacio para las burbujas;
	   la franja termina justo en el borde derecho del contenido (como las tarjetas de abajo) */
	.jjp-nosotros .jjp-nosotros-text {
		overflow: visible;
		min-height: 440px;
	}
	/* mismo contorno que la curva del banner principal; las burbujas se apilan abajo a la derecha */
	.jjp-nosotros .jjp-nosotros-band {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		width: var(--jjp-band-w);
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-end;
		gap: 8px;
		padding: 0 22px 10px 0;
		box-sizing: border-box;
		order: 0;
		align-self: auto;
		background: none;
		border-radius: 0;
		margin: 0;
	}
	.jjp-nosotros-band::before,
	.jjp-nosotros-band::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
	}
	.jjp-nosotros-band::after {
		z-index: 1;
		background: linear-gradient(145deg, rgba(165, 18, 62, 0.64) 0%, rgba(135, 8, 45, 0.7) 45%, rgba(75, 3, 25, 0.78) 100%);
		-webkit-clip-path: url(#nosotrosCurveClip);
		clip-path: url(#nosotrosCurveClip);
	}
	/* filo plateado con brillo: nace muy fino arriba y se ensancha hacia abajo */
	.jjp-nosotros-band::before {
		z-index: 2;
		background: linear-gradient(165deg, #ffffff 0%, rgba(240, 242, 246, 0.98) 18%, rgba(170, 176, 186, 0.92) 50%, rgba(246, 247, 250, 0.98) 72%, rgba(188, 194, 204, 0.95) 100%);
		-webkit-clip-path: url(#nosotrosRimClip);
		clip-path: url(#nosotrosRimClip);
	}
	.jjp-nosotros .jjp-nosotros-badge {
		position: relative;
		left: auto !important; /* ignora las posiciones en linea de la version anterior */
		top: auto !important;
		transform: none;
		z-index: 3;
		flex: none;
		min-width: 0;
		width: max-content;
		padding: 0;
	}
	/* todas pegadas a la derecha y cada texto en una sola linea: las de abajo, que tienen mas espacio
	   porque la curva se abre, se extienden hacia la izquierda siguiendo el contorno */
	.jjp-nosotros .jjp-nosotros-badge em {
		white-space: nowrap;
	}
	/* la ultima (Asesoria) se corre a la izquierda hasta el contorno de la curva */
	.jjp-nosotros .jjp-nosotros-badge:nth-of-type(3) {
		margin-right: 92px;
	}
	.jjp-nosotros .jjp-nosotros-badge strong {
		font-size: clamp(14px, 0.95vw, 15.5px);
	}
	.jjp-nosotros .jjp-nosotros-badge em {
		font-size: clamp(11px, 0.8vw, 12.5px);
	}
	/* la franja es diagonal: arriba deja mucho espacio libre, asi que el texto avanza casi hasta ella */
	.jjp-nosotros .jjp-nosotros-inner {
		/* en pantallas mas angostas (hasta ~1300px) el texto se aparta un poco mas de la curva */
		padding-right: calc(var(--jjp-band-w) - 250px + clamp(0px, (1300px - 100vw) * 0.3, 40px)) !important;
	}
	/* titulo y parrafo juntos arriba; el boton abajo, alineado con la ultima burbuja de la franja */
	.jjp-nosotros .jjp-nosotros-inner {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		flex: 1 1 auto;
		padding-top: 30px !important;
		padding-bottom: 30px !important; /* mismo margen que arriba del titulo */
	}
	.jjp-nosotros .jjp-nosotros-inner > .wp-block-group,
	.jjp-nosotros .jjp-nosotros-inner > p,
	.jjp-nosotros .jjp-nosotros-inner > .wp-block-buttons {
		margin: 0 !important;
		max-width: none;
	}
	.jjp-nosotros .jjp-nosotros-inner > p {
		margin-top: 14px !important;
	}
	.jjp-nosotros .jjp-nosotros-inner > .wp-block-buttons {
		margin-top: auto !important;
	}
	/* centrada en el area del texto: entre el margen izquierdo (24px) y el inicio de la franja */
	.jjp-nosotros .jjp-nosotros-inner::before {
		left: calc(24px + (100% - 24px - (var(--jjp-band-w) - 250px)) / 2) !important;
	}
}
/* portatiles pequenos: la cola de la curva baja hasta la esquina del boton, asi que el boton se achica un poco */
@media (min-width: 1201px) and (max-width: 1290px) {
	.jjp-nosotros .jjp-nosotros-inner .wp-block-button__link {
		padding-left: 16px !important;
		padding-right: 16px !important;
		font-size: 14.5px !important;
	}
}
.jjp-nosotros-inner {
	padding-left: 24px !important;
	padding-right: 0 !important;
}
.jjp-nosotros-inner h2 {
	white-space: nowrap; /* el titulo siempre en una sola linea */
}
/* el boton separado del parrafo */
.jjp-nosotros-inner .wp-block-buttons {
	margin-top: 20px !important;
}
.jjp-nosotros-badge {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #ffffff;
	flex: 1 1 0;
	min-width: 0;
	padding: 16px 18px;
}
.jjp-nosotros-badge span {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.jjp-nosotros-badge strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(14px, 1.1vw, 17px);
	font-weight: 700;
}
.jjp-nosotros-badge em {
	font-style: normal;
	font-size: clamp(11px, 0.95vw, 14px);
	color: #f6dde3;
}
.jjp-nosotros-text {
	position: relative;
	flex: 1 1 480px;
	min-width: 0;
	background: var(--jjp-fondo);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.jjp-nosotros-inner::before {
	content: "";
	position: absolute;
	z-index: -1; /* detras del texto */
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%); /* centrada en el bloque de texto */
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: url("/wp-content/themes/jjp-consultores/assets/images/logo-jjp.png") center / cover;
	opacity: 0.09;
	filter: saturate(0.6);
	mix-blend-mode: multiply;
	pointer-events: none;
}
.jjp-nosotros-inner {
	position: relative;
	isolation: isolate; /* para que la marca de agua quede detras del texto */
}
/* ===== Pie de página ===== */
.jjp-footer-inner {
	width: 100%;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 44px 0;
	box-sizing: border-box;
}
.fgrid {
	display: grid;
	grid-template-columns: 1.55fr 0.95fr 1.25fr 1.35fr 0.85fr 1.35fr;
	gap: 32px 24px;
	align-items: start;
	padding-bottom: 40px;
}
@media (max-width: 1100px) {
	.fgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.fgrid {
		grid-template-columns: minmax(0, 1fr);
	}
}
.jjp-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}
.jjp-footer-brand-row {
	display: flex;
	align-items: center;
	gap: 14px;
}
.jjp-footer-logo {
	flex: none;
	width: 94px;
	height: 94px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #ffffff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.jjp-footer-wordmark {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.jjp-footer-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 21px;
	line-height: 1.12;
	color: #ffffff;
	letter-spacing: 0.02em;
}
.jjp-footer-cia {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 12px;
	letter-spacing: 0.28em;
	color: #ffffff;
}
.jjp-footer-cia span {
	width: 20px;
	height: 1px;
	background: #c0213a;
}
.jjp-footer-tagline {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 17px;
	color: #ffffff;
}
.flink {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14.5px;
}
.flink a {
	color: #d3dae6;
	text-decoration: none;
}
.flink a:hover {
	color: #ffffff;
}
.jjp-footer-heading {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
}
.jjp-footer-contact,
.jjp-footer-social {
	gap: 11px;
}
.jjp-footer-contact a,
.jjp-footer-contact span,
.jjp-footer-social a {
	display: flex;
	align-items: center;
	gap: 10px;
}
.jjp-footer-contact span {
	align-items: flex-start;
}
.jjp-footer-contact svg,
.jjp-footer-social svg {
	flex: none;
}
.jjp-footer-map {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.jjp-map-placeholder {
	position: relative;
	height: 150px;
	border-radius: 6px;
	overflow: hidden;
	border: 3px solid #ffffff;
	background-color: #e8eef3;
	background-image: repeating-linear-gradient(28deg, transparent 0 22px, rgba(255, 255, 255, 0.95) 22px 26px),
		repeating-linear-gradient(-62deg, transparent 0 34px, rgba(255, 255, 255, 0.9) 34px 37px),
		linear-gradient(120deg, #dce7ef 0%, #e9eedf 55%, #cde3f3 100%);
}
.jjp-map-placeholder svg {
	position: absolute;
	left: 50%;
	top: 42%;
	transform: translate(-50%, -50%);
}
.jjp-map-placeholder span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #0b1d3a;
}
.jjp-footer-legal {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

/* ===== Franja corporativa ===== */
.jjp-franja {
	background-color: #5e0b24;
}
.jjp-franja-inner {
	width: 100%;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	padding: 24px 44px;
	box-sizing: border-box;
	align-items: center;
	gap: 20px 32px;
	min-height: 150px;
}
@media (max-width: 900px) {
	.jjp-franja-inner {
		flex-direction: column;
		align-items: flex-start !important;
		padding: 32px 24px;
	}
}

/* ===== Blog y Contacto ===== */
.jjp-blog-lead {
	flex: 1 1 340px;
	max-width: 480px;
	margin: 0;
}
.jjp-blog-col {
	flex: 3 1 760px;
	min-width: 0;
}
.jjp-blog-grid {
	gap: 20px;
}
.jjp-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}
.jjp-blog-media {
	position: relative;
}
.jjp-blog-media img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}
.jjp-blog-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	margin: 0;
	background: #ffffff;
	color: var(--wp--preset--color--contrast);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.jjp-blog-tag a {
	color: inherit;
	text-decoration: none;
}
.jjp-blog-body .wp-block-post-date,
.jjp-blog-body .wp-block-post-title,
.jjp-blog-body .wp-block-post-excerpt,
.jjp-blog-body .wp-block-read-more {
	margin: 0;
}
.jjp-blog-body .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}
.jjp-blog-body .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	margin-top: auto;
	padding-top: 4px;
}
.jjp-blog-body .wp-block-read-more::after {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.jjp-contact-card {
	flex: 1 1 300px;
	min-width: 0;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(11, 29, 58, 0.12);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
}
/* Seccion de contacto independiente (debajo del blog) */
.jjp-contacto-seccion .alignwide > .alignwide {
	justify-content: center;
}
.jjp-contacto-seccion .jjp-contact-card {
	flex: 0 1 640px;
	width: 100%;
	max-width: 640px;
	padding: 30px;
}
.jjp-contact-card h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.1;
	color: var(--wp--preset--color--primary);
}
.jjp-contact-card > p {
	margin: 0 0 4px;
	font-size: 14.5px;
	color: #2e3646;
}
.jjp-contact-card label {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #d9dce3;
	border-radius: 6px;
	padding: 0 12px;
	min-height: 46px;
	color: #6b7380;
	background: #ffffff;
}
.jjp-contact-card label.jjp-contact-textarea {
	align-items: flex-start;
	padding: 12px 12px 4px;
}
.jjp-contact-card label svg {
	flex: none;
}
.jjp-contact-card input,
.jjp-contact-card textarea {
	flex: 1;
	min-width: 0;
	border: 0;
	outline-offset: 4px;
	font: inherit;
	font-size: 15px;
	color: #1c2433;
	background: transparent;
	padding: 11px 0;
}
.jjp-contact-card textarea {
	padding: 0 0 6px;
	resize: vertical;
}
.jjp-contact-card button {
	margin-top: 4px;
	font: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(180deg, #8c0f2f 0%, #6e0822 100%);
	color: #ffffff;
	border: 0;
	font-weight: 700;
	font-size: 16px;
	padding: 13px 20px;
	border-radius: 6px;
	min-height: 50px;
	cursor: pointer;
	transition: filter 0.2s;
}
.jjp-contact-card button:hover {
	filter: brightness(0.9);
}
.jjp-contact-card button::after {
	content: "";
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1200px) {
	.jjp-nosotros-photo {
		flex: 0 0 100%;
		min-width: 0;
		aspect-ratio: 2.4 / 1;
	}
	.jjp-nosotros-text {
		flex-basis: 100%;
	}
	.jjp-nosotros-inner {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	/* tablet: la barra ocupa todo el ancho; las burbujas bajan de fila si no caben */
	.jjp-nosotros-badge {
		min-width: 190px;
	}
	.jjp-nosotros-badge strong {
		font-size: clamp(13px, 1.85vw, 17px);
	}
	.jjp-nosotros-badge em {
		font-size: clamp(11px, 1.5vw, 13px);
	}
}
@media (max-width: 700px) {
	.jjp-nosotros-photo {
		aspect-ratio: auto;
		min-width: 0;
		flex-basis: 100%;
	}
	.jjp-nosotros-photo img {
		position: static;
		height: 220px;
	}
	.jjp-nosotros-band {
		flex-direction: column;
		border-radius: 12px;
		margin: 6px 0 0;
	}
	.jjp-nosotros-badge {
		flex: none;
		min-width: 0;
		padding: 14px 20px;
	}
	.jjp-nosotros-badge:not(:last-child) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}
}

.jjp-nosotros-badge > svg {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
}

/* ===== Mision, Vision y Valores (dentro de Quienes somos) ===== */
.jjp-mvv {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 36px 0 28px;
	scroll-margin-top: var(--jjp-header-h, 0px);
}
.jjp-mvv-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.jjp-mvv-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 30px 32px;
	box-shadow: 0 10px 28px rgba(11, 29, 58, 0.07);
	border-top: 4px solid #7c0a28;
}
.jjp-mvv-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f6e9ed;
	color: #7c0a28;
}
.jjp-mvv-card h3 {
	margin: 14px 0 10px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 26px;
	line-height: 1.1;
	color: #0b1d3a;
}
.jjp-mvv-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #4a5464;
}
.jjp-mvv-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.jjp-mvv-head h3 {
	margin: 0;
}
.jjp-valores-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px 32px;
}
.jjp-valores-lista li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 16px;
	border-left: 3px solid #7c0a28;
}
.jjp-valores-lista strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	color: #0b1d3a;
}
.jjp-valores-lista span {
	font-size: 15px;
	line-height: 1.55;
	color: #4a5464;
}
@media (max-width: 900px) {
	.jjp-mvv-row {
		grid-template-columns: 1fr;
	}
	.jjp-valores-lista {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.jjp-mvv-card {
		padding: 24px 20px;
	}
	.jjp-valores-lista {
		grid-template-columns: 1fr;
	}
}

.jjp-footer-map .jjp-map {
	display: block;
	width: 100%;
	height: 150px;
	border: 3px solid #ffffff;
	border-radius: 6px;
	background: #e8eef3;
}

/* Logo horizontal (encabezado y pie) */
.jjp-logo-horizontal a {
	display: block;
	line-height: 0;
}
.jjp-logo-horizontal img {
	display: block;
	width: clamp(240px, 25vw, 330px);
	height: auto;
	margin: -8px 0;
}
.jjp-footer-logo-h {
	display: block;
	width: min(100%, 270px);
	box-sizing: border-box;
	background: #ffffff;
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/* Recorta los margenes transparentes del PNG para que la placa abrace el logo */
.jjp-footer-logo-crop {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1240 / 1060;
}
.jjp-footer-logo-crop img {
	position: absolute;
	width: 108.14%;
	max-width: none;
	height: auto;
	left: -3.71%;
	top: -5.47%;
}

/* Franja corporativa: mas compacta y con el vino mas transparente (se ve la foto) */
.jjp-franja {
	min-height: 104px !important;
}
.jjp-franja .wp-block-cover__background {
	opacity: 0.5 !important;
}
.jjp-franja-inner {
	min-height: 104px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.jjp-franja h2 {
	font-size: clamp(1.4rem, 2.1vw, 1.9rem) !important;
}
.jjp-franja p {
	font-size: clamp(0.95rem, 1.15vw, 1.1rem) !important;
}
.jjp-franja .wp-block-button__link {
	min-height: 52px !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	font-size: 15px !important;
}
@media (max-width: 900px) {
	.jjp-franja-inner {
		padding: 22px 24px;
	}
}

/* ===== Pie de pagina: ajustes de diseno ===== */
.jjp-footer-inner {
	padding-top: 46px;
}
.fgrid {
	padding-bottom: 36px;
}
.jjp-footer-heading {
	display: block;
	position: relative;
	margin-bottom: 14px;
	padding-bottom: 11px;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.jjp-footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: #c0213a;
}
.flink {
	gap: 11px;
}
.flink a {
	transition: color 0.15s;
}
.jjp-footer-logo-h {
	width: min(100%, 230px);
	border-radius: 10px; /* mismo radio y borde fino que el mapa */
	padding: 8px 12px;
	box-shadow: none;
	border: 1px solid rgba(255, 255, 255, 0.28);
}
/* Escritorio (6 columnas): el logo mide lo mismo que el mapa y comparte su misma base */
@media (min-width: 1101px) {
	.fgrid > .jjp-footer-brand {
		align-self: end;
		gap: 14px; /* mismo espacio titulo-contenido que la columna del mapa */
	}
	.jjp-footer-logo-h {
		width: auto;
		height: 178px; /* igual que el mapa (176px + borde) */
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.jjp-footer-logo-h .jjp-footer-logo-crop {
		height: 160px;
		flex: none;
	}
}
.jjp-footer-map .jjp-map {
	height: 176px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
}
.jjp-franja-inner {
	padding-top: 20px;
	padding-bottom: 20px;
}
.jjp-footer-heading {
	white-space: nowrap;
	font-size: 12.5px;
	letter-spacing: 0.08em;
}

/* Formulario de contacto: consentimiento, mensajes y campo trampa */
.jjp-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.jjp-contact-card label.jjp-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	min-height: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #4a5464;
	cursor: pointer;
}
.jjp-contact-card .jjp-consent input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #7c0a28;
}
.jjp-contact-card .jjp-consent a {
	color: #7c0a28;
	font-weight: 600;
}
.jjp-form-status {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}
.jjp-form-status:empty {
	display: none;
}
.jjp-form-status.ok {
	color: #1b6b3a;
	font-weight: 600;
}
.jjp-form-status.error {
	color: #b3261e;
	font-weight: 600;
}
.jjp-contact-card button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ===== Ventana emergente: Nuestra historia ===== */
html.jjp-historia-abierta {
	overflow: hidden;
}
.jjp-historia {
	width: min(920px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #ffffff;
	color: #4a5464;
	box-shadow: 0 30px 80px rgba(11, 29, 58, 0.35);
	overflow: hidden;
}
.jjp-historia::backdrop {
	background: rgba(11, 29, 58, 0.62);
}
.jjp-historia[open] {
	display: flex;
	flex-direction: column;
}
.jjp-historia-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: calc(100vh - 48px);
	border-top: 5px solid #7c0a28;
}
.jjp-historia-cerrar {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f4eef0;
	color: #7c0a28;
	cursor: pointer;
}
.jjp-historia-cerrar:hover {
	background: #7c0a28;
	color: #ffffff;
}
.jjp-historia-cabecera {
	padding: 30px 64px 18px 36px;
}
.jjp-historia-cabecera h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	color: #0b1d3a;
}
.jjp-historia-cabecera h2 span {
	color: #7c0a28;
}
.jjp-historia-lema {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: clamp(16px, 1.7vw, 19px);
	line-height: 1.4;
	color: #7c0a28;
}
.jjp-historia-cuerpo {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 32px;
	padding: 8px 36px 34px;
	overflow-y: auto;
	min-height: 0;
}
.jjp-historia-foto {
	position: sticky;
	top: 0;
	align-self: start;
	margin: 0;
	text-align: center;
}
.jjp-historia-foto img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 14px;
	border: 4px solid #ffffff;
	box-shadow: 0 0 0 2px #7c0a28, 0 14px 30px rgba(11, 29, 58, 0.25);
}
.jjp-historia-foto.sin-foto img {
	display: none;
}
.jjp-historia-foto.sin-foto::before {
	content: "";
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	box-shadow: 0 0 0 2px #7c0a28;
	background: #f4eef0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c0a28' stroke-width='1' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / 55% no-repeat;
}
.jjp-historia-foto figcaption {
	margin-top: 12px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	font-weight: 700;
	color: #0b1d3a;
}
.jjp-historia-texto p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.7;
}
.jjp-historia-texto strong {
	color: #7c0a28;
}
.jjp-historia-texto .jjp-historia-cierre {
	margin: 22px 0 0;
	padding: 14px 0 14px 18px;
	border-left: 4px solid #7c0a28;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-style: italic;
	line-height: 1.5;
	color: #0b1d3a;
}
@media (max-width: 720px) {
	.jjp-historia {
		max-height: calc(100vh - 24px);
		width: calc(100vw - 20px);
	}
	.jjp-historia-panel {
		max-height: calc(100vh - 24px);
	}
	.jjp-historia-cabecera {
		padding: 24px 60px 12px 20px;
	}
	.jjp-historia-cuerpo {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 6px 20px 26px;
	}
	.jjp-historia-foto {
		position: static;
		justify-self: center;
		width: 150px;
	}
}

/* Ventana de historia: siempre centrada, sin importar la resolucion */
.jjp-historia {
	position: fixed;
	inset: 50% auto auto 50%;
	margin: 0;
	transform: translate(-50%, -50%);
	width: min(920px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
}
.jjp-historia-panel {
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
}
@media (max-width: 720px) {
	.jjp-historia {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}
	.jjp-historia-panel {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}
}

/* Foto del fundador: mismo marco 4:5; la foto horizontal se encuadra sobre su rostro */
.jjp-historia-foto img {
	object-position: 28% 50%;
}

/* Foto del fundador: horizontal completa, al inicio del texto */
.jjp-historia-cuerpo {
	display: block;
}
.jjp-historia-foto {
	position: static;
	width: min(100%, 560px);
	margin: 6px auto 24px;
}
.jjp-historia-foto img {
	aspect-ratio: 1538 / 1023;
	object-fit: cover;
	object-position: center;
}
.jjp-historia-foto.sin-foto::before {
	aspect-ratio: 1538 / 1023;
}
@media (max-width: 720px) {
	.jjp-historia-foto {
		width: 100%;
		justify-self: auto;
		margin: 4px 0 18px;
	}
}

/* Pantallas intermedias (1025-1280px): estadisticas de "Quienes somos" un poco mas compactas */
@media (min-width: 1025px) and (max-width: 1280px) {
	.jjp-nosotros-badge {
		gap: 7px;
	}
	.jjp-nosotros-badge > svg {
		width: 22px;
		height: 22px;
	}
	.jjp-nosotros-badge strong {
		font-size: 13px;
	}
	.jjp-nosotros-badge em {
		font-size: 10.5px;
	}
}

/* ===== Noticias: pagina de lista, categorias y detalle ===== */
.jjp-noticias-pagina,
.jjp-noticia,
.jjp-noticias-cabecera {
	background: var(--jjp-fondo);
}
.jjp-pills {
	margin-top: 8px;
}
/* Linea roja del encabezado: separada del titulo y de las categorias */
.jjp-noticias-cabecera .jjp-underline {
	margin: 14px 0 16px !important;
}
.jjp-noticias-cabecera .wp-block-query-title {
	margin: 0;
	padding-bottom: 2px;
}
.jjp-noticias-cabecera .jjp-pills {
	margin-top: 4px !important;
}
.jjp-pills ul,
.jjp-pills.wp-block-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.jjp-pills a {
	display: inline-block;
	padding: 7px 16px;
	border: 1.5px solid #7c0a28;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: #7c0a28;
	text-decoration: none;
	background: #ffffff;
}
.jjp-pills a:hover {
	background: #7c0a28;
	color: #ffffff;
}
.jjp-paginacion {
	grid-column: 1 / -1;
	margin-top: 18px;
	gap: 10px;
}
.jjp-paginacion a,
.jjp-paginacion .page-numbers {
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	color: #7c0a28;
}
.jjp-paginacion .page-numbers.current {
	background: #7c0a28;
	color: #ffffff;
}
.jjp-volver {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #7c0a28;
	text-decoration: none;
}
.jjp-volver:hover {
	text-decoration: underline;
}
.jjp-noticia-categoria a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f6e9ed;
	font-size: 13px;
	font-weight: 700;
	color: #7c0a28;
	text-decoration: none;
}
.jjp-noticia-imagen img {
	width: 100%;
	height: auto;
	object-fit: cover;
	box-shadow: 0 12px 30px rgba(11, 29, 58, 0.12);
}
.jjp-noticia-cuerpo .wp-block-post-content {
	font-size: 18px;
	line-height: 1.75;
	color: #2d3646;
}
.jjp-noticia-cuerpo .wp-block-post-content > * + * {
	margin-top: 1.1em;
}
.jjp-noticia-cuerpo .wp-block-post-content h2,
.jjp-noticia-cuerpo .wp-block-post-content h3 {
	margin-top: 1.6em;
	color: #0b1d3a;
}
.jjp-noticia-cuerpo .wp-block-post-content a {
	color: #7c0a28;
}
.jjp-noticia-cta-caja {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 24px 28px;
	border-radius: 14px;
	background: #5e0b24;
	color: #ffffff;
}
.jjp-noticia-cta-caja strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 400;
}
.jjp-noticia-cta-caja span {
	display: block;
	margin-top: 4px;
	opacity: 0.9;
}
.jjp-noticia-cta-boton {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	background: #ffffff;
	font-weight: 700;
	color: #0b1d3a;
	text-decoration: none;
}
.jjp-relacionadas:not(:has(.wp-block-post)) {
	display: none;
}
.jjp-relacionadas-titulo {
	grid-column: 1 / -1;
	margin: 0 0 6px;
}
.jjp-noticias-pagina .jjp-blog-grid .wp-block-post-featured-image img {
	height: 180px;
	object-fit: cover;
	width: 100%;
}
.jjp-noticia-cabecera .jjp-volver {
	display: flex;
	width: 100%;
}

/* Encabezado fijo: el contenedor (template part) es el que se queda pegado arriba al hacer scroll */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

/* Noticias: mismos margenes laterales que el resto de la web (inicio, encabezado y pie) */
.jjp-noticias-pagina > .alignfull {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.jjp-noticias-pagina .alignwide {
	box-sizing: border-box;
	padding-left: 44px;
	padding-right: 44px;
}
.jjp-noticias-pagina .alignwide .alignwide {
	padding-left: 0;
	padding-right: 0;
}
.jjp-noticias-pagina .jjp-noticias-cabecera {
	padding-bottom: 6px !important;
}
.jjp-noticias-pagina > .alignfull:last-child {
	padding-top: 6px !important;
}
.jjp-relacionadas {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.jjp-relacionadas .alignwide {
	box-sizing: border-box;
	padding-left: 44px;
	padding-right: 44px;
}
@media (max-width: 700px) {
	.jjp-noticias-pagina .alignwide,
	.jjp-relacionadas .alignwide {
		padding-left: 24px;
		padding-right: 24px;
	}
}
.jjp-noticias-cabecera .jjp-volver {
	margin-bottom: 4px;
}

/* Noticias en horizontal: 3 tarjetas por fila (2 en tablet, 1 en celular) */
.jjp-blog-grid.wp-block-query {
	display: block;
}
.jjp-blog-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: none;
	width: 100%;
}
.jjp-blog-grid .wp-block-post-template > li {
	margin: 0;
	display: flex;
}
.jjp-blog-grid .wp-block-post-template .jjp-blog-card {
	width: 100%;
}
@media (max-width: 900px) {
	.jjp-blog-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.jjp-blog-grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}
.jjp-blog-grid .wp-block-query-pagination,
.jjp-blog-grid .wp-block-query-no-results {
	margin-top: 20px;
}
