/* Plantilla Comunidad — réplica visual de la ficha Elementor ERA */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&display=swap');

.era-comunidad,
.era-comunidad-gutenberg,
.era-users-plantilla-gutenberg,
.wp-block-era-ficha {
	--era-red: #c8102e;
	--era-navy: #250e62;
	--era-blue: #0b3279;
	--era-slate: #1e293b;
	--era-muted: #64748b;
	--era-panel: #e2e8f0;
	--era-font: 'Red Hat Display', system-ui, sans-serif;
	font-family: var(--era-font);
	color: var(--era-slate);
	line-height: 1.55;
}

.wp-block-era-ficha {
	max-width: 100%;
}

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

.era-comunidad a {
	color: inherit;
	text-decoration: none;
}

/* —— Barra marca —— */
.era-comunidad__brand {
	background: var(--era-red);
	color: #fff;
	padding: 1.25rem 1.5rem;
}

.era-comunidad__brand-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.era-comunidad__brand-logo {
	display: block;
	height: 72px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.era-comunidad__brand-name {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.era-comunidad__brand .era-ficha-campo--nombre .era-comunidad__nombre,
.era-comunidad__brand .era-comunidad__nombre {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff !important;
	line-height: 1.2;
}

.epmax-site-header .era-ficha-campo--nombre:not(.era-ficha-campo--styled) .era-comunidad__nombre,
.epmax-site-header .era-comunidad__nombre {
	color: #fff !important;
}

/* Estilos del bloque/shortcode (color, tipografía) prevalecen sobre defaults */
.era-ficha-campo--styled .era-comunidad__nombre,
.era-ficha-campo--styled .era-comunidad__agencia,
.era-ficha-campo--styled .era-comunidad__cargo,
.era-ficha-campo--styled .era-comunidad__bio,
.era-ficha-campo--styled .era-comunidad__bio p,
.era-ficha-campo--styled .era-comunidad__tel,
.era-ficha-campo--styled .era-comunidad__tel a,
.era-ficha-campo--styled .era-comunidad__email,
.era-ficha-campo--styled .era-comunidad__idiomas,
.era-ficha-campo--styled .era-comunidad__idiomas p,
.era-ficha-campo--styled .era-comunidad__label,
.era-ficha-campo--styled .era-comunidad__label p,
.era-ficha-campo--styled .era-comunidad__resena,
.era-ficha-campo--styled .era-comunidad__resena p,
.era-ficha-campo--styled .era-comunidad__red-link,
.era-ficha-campo--styled .era-comunidad__casafari-kicker {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	text-align: inherit !important;
}

.era-ficha-campo--styled.era-ficha-campo--email .era-comunidad__email {
	background-color: inherit !important;
	background: inherit !important;
}

.era-ficha-campo--styled.era-ficha-campo--resena_1 .era-comunidad__resena,
.era-ficha-campo--styled.era-ficha-campo--resena_2 .era-comunidad__resena,
.era-ficha-campo--styled.era-ficha-campo--resena_3 .era-comunidad__resena {
	background-color: inherit !important;
	background: inherit !important;
}

.era-comunidad__brand .wp-block-era-ficha {
	width: auto;
}

.era-comunidad__perfil .wp-block-columns {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	align-items: end;
}

.era-comunidad__perfil .era-ficha-campo--agencia .era-comunidad__agencia {
	text-align: right;
}

.era-ficha-campo--agencia .era-comunidad__agencia {
	margin: 0 0 1rem;
}

.era-comunidad__redes-row,
.era-ficha-campo--linkedin,
.era-ficha-campo--facebook,
.era-ficha-campo--instagram,
.era-ficha-campo--tiktok,
.era-ficha-campo--youtube,
.era-ficha-campo--twitter,
.era-ficha-campo--landing {
	display: inline-block;
	margin: 0.35rem 0.75rem 0.35rem 0;
}

.era-comunidad__red-link {
	color: var(--era-blue) !important;
	text-decoration: underline !important;
	text-transform: lowercase;
}

.era-comunidad__videos-row .wp-block-columns {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.era-comunidad__resenas-row {
	padding: 2rem 1.5rem;
	background: #fff;
}

.era-comunidad__resenas-row .wp-block-columns {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

/* —— Casafari —— */
.era-comunidad__casafari {
	padding: 2rem 1.5rem 2.5rem;
	background: #fff;
}

.era-comunidad__casafari-inner {
	max-width: 960px;
	margin: 0 auto;
}

.era-comunidad__casafari-kicker {
	margin: 0 0 0.75rem;
	color: var(--era-red);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.era-comunidad__casafari-frame {
	width: 100%;
	min-height: 600px;
	border: 0;
	border-radius: 4px;
	background: #f8fafc;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.era-comunidad__casafari-mount {
	width: 100%;
	min-height: 600px;
	border-radius: 4px;
	background: #f8fafc;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.era-comunidad__casafari-mount .js-casafari-iframe {
	width: 100% !important;
	min-height: 600px;
	border: 0;
	display: block;
}

.era-comunidad__casafari-mount .js-casafari-loader {
	padding: 2rem 1rem;
	text-align: center;
	color: #64748b;
}

/* —— Perfil —— */
.era-comunidad__perfil {
	background: var(--era-panel);
	padding: 2.5rem 1.5rem 3rem;
}

.era-comunidad__perfil-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(240px, 0.85fr) minmax(0, 2.15fr);
	gap: 1.5rem 2.5rem;
	align-items: end;
}

.era-comunidad__foto {
	margin: 0;
	text-align: center;
	align-self: end;
	min-height: 200px;
}

.era-comunidad__foto img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.era-comunidad__perfil-body {
	align-self: center;
	min-width: 0;
}

.era-comunidad__perfil-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 0.35rem;
}

.era-comunidad__nombre {
	margin: 0;
	color: var(--era-red) !important;
	font-size: clamp(1.5rem, 2.4vw, 2.05rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
}

.era-comunidad__agencia {
	margin: 0;
	color: var(--era-blue) !important;
	font-size: 1.35rem;
	font-weight: 500;
}

.era-comunidad__cargo {
	margin: 0 0 1rem;
	color: var(--era-slate) !important;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.era-comunidad__bio,
.era-comunidad__bio p {
	font-size: 1rem;
	color: #334155 !important;
}

.era-comunidad__bio p {
	margin: 0 0 0.85rem;
}

.era-comunidad__bio p:last-child {
	margin-bottom: 0;
}

.era-comunidad__divider {
	border: 0;
	border-top: 1px solid #cbd5e1;
	margin: 1.25rem 0 1.1rem;
}

.era-comunidad__contacto {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.5rem;
	align-items: start;
}

.era-comunidad__label,
.era-comunidad__label p {
	margin: 0 0 0.25rem;
	color: var(--era-muted) !important;
	font-size: 0.95rem;
}

.era-comunidad__tel,
.era-comunidad__tel a {
	margin: 0;
	color: var(--era-red) !important;
	font-size: 1.25rem !important;
	font-weight: 600;
	text-decoration: none !important;
}

.era-comunidad__email {
	display: inline-block;
	background: var(--era-navy) !important;
	color: #fff !important;
	padding: 0.85rem 1.4rem;
	border-radius: 3px;
	font-size: 1rem;
	font-weight: 500;
	word-break: break-word;
	text-decoration: none !important;
}

.era-comunidad__idiomas,
.era-comunidad__idiomas p {
	margin: 0.85rem 0 0;
	color: var(--era-muted) !important;
	font-size: 0.95rem;
}

/* —— Reseñas —— */
.era-comunidad__resenas {
	padding: 2.75rem 1.5rem 2.5rem;
	background: #fff;
}

.era-comunidad__resenas-inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
}

.era-comunidad__resenas-track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.era-comunidad__resena {
	position: relative;
	background-color: #c8102e !important;
	background: #c8102e !important;
	color: #fff !important;
	border-radius: 12px;
	padding: 1.5rem 1.25rem 1.75rem;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.45;
	min-height: 180px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: none;
	border: 0;
	margin: 0 0 1rem;
}

.era-comunidad__resena::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -12px;
	transform: translateX(-50%);
	border: 12px solid transparent;
	border-top-color: #c8102e;
	border-bottom: 0;
}

.era-ficha-campo--resena_1,
.era-ficha-campo--resena_2,
.era-ficha-campo--resena_3 {
	padding: 0.5rem 1.5rem;
	background: #fff;
}

.era-comunidad__resena p,
.era-comunidad__resena span,
.era-comunidad__resena a {
	margin: 0;
	color: #fff !important;
}

.era-comunidad__resenas-nav {
	display: none;
}

/* —— Agencia + vídeos —— */
.era-comunidad__agencia-block {
	padding: 0.5rem 1.5rem 0;
	background: #fff;
}

.era-comunidad__agencia-block-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.era-comunidad__agencia-title {
	margin: 0 0 1rem;
	color: var(--era-blue) !important;
	font-size: 1.4rem;
	font-weight: 500;
}

.era-comunidad__videos {
	padding: 0 1.5rem 3rem;
	background: #fff;
}

.era-comunidad__videos-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.era-comunidad__videos-inner--one {
	grid-template-columns: 1fr;
	max-width: 720px;
}

.era-comunidad__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0f172a;
	border-radius: 4px;
	overflow: hidden;
}

.era-comunidad__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.era-comunidad__redes {
	padding: 0 1.5rem 2.5rem;
	background: #fff;
}

.era-comunidad__redes-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.era-comunidad__redes a {
	color: var(--era-blue) !important;
	font-weight: 600;
	text-transform: capitalize;
}

.era-comunidad__redes a:hover {
	color: var(--era-red) !important;
}

@media (max-width: 900px) {
	.era-comunidad__perfil-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.era-comunidad__foto img {
		max-width: 280px;
	}

	.era-comunidad__resenas-track,
	.era-comunidad__videos-inner {
		grid-template-columns: 1fr;
	}

	.era-comunidad__contacto {
		grid-template-columns: 1fr;
	}

	.era-comunidad__brand-logo {
		height: 56px;
	}
}
