/* ============================= */
/* SOCIOS APROMT-CLM */
/* ============================= */

.apromt-socios {
	padding: 40px 0;
}

.apromt-socios-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.apromt-socio-card {
	background: #ffffff;
	border: 1px solid rgba(91, 77, 154, 0.14);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(24, 35, 70, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	max-width: 420px;
	margin: 0 auto;
}

.apromt-socio-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 42px rgba(24, 35, 70, 0.13);
}

.apromt-socio-imagen {
	position: relative;
	width: 100%;
	height: 420px;
	overflow: hidden;
	background: #f3f0fa;
}

.apromt-socio-imagen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.apromt-socio-contenido {
	padding: 24px;
}

.apromt-socio-nombre {
	margin: 0 0 12px;
	color: #6865ad;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: none;
}

.apromt-socio-cargo,
.apromt-socio-rol {
	margin: 0 0 12px;
	color: #183653;
	font-weight: 700;
}

.apromt-socio-especialidad {
	margin: 18px 0;
	color: #183653;
	line-height: 1.6;
	font-weight: 600;
}

.apromt-socio-centro {
	margin: 0 0 6px;
	color: #183653;
	font-style: italic;
}

.apromt-socio-localidad {
	margin: 0 0 20px;
	color: #183653;
}

.apromt-socio-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid #6865ad;
	border-radius: 999px;
	color: #6865ad;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}

.apromt-socio-boton:hover {
	background: #6865ad;
	color: #ffffff;
}

/* Tablets Vertical */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

	#main .wp-block-group {
		display: flex;
		flex-wrap: wrap !important;
		justify-content: center;
	}

	#post-335 hr {
		margin-top: 1rem !important;
	}

	.entry-content .wp-block-spacer {
		display: none;
	}

	.apromt-socios-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Tablets Apaisado */
@media (min-width: 1025px) and (max-width: 1279px) and (orientation: landscape) {

	#nav_menu-3 {
		margin-bottom: 10px;
	}

	#block-13 .is-style-wide {
		border: 1px solid #FFF;
		width: 100px;
	}

	#block-16 .is-style-wide {
		border: 1px solid #FFF;
		width: 100px;
	}

	#block-20 .is-style-wide {
		border: 1px solid #FFF;
		width: 100px;
	}
}

/* Móviles Vertical */
@media (max-width: 480px) and (orientation: portrait) {

	h1,
	h2 {
		font-size: 1.8rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	#main .wp-block-group {
		display: flex;
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-spacer {
		display: none;
	}

	#block-28 {
		display: none;
	}

	.ct-pagination {
		margin: 3rem 1rem;
	}

	.entry-header {
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	.entry-meta {
		font-size: 0.70rem;
	}

	.widget-area-3 {
		justify-self: center;
	}

	.wp-block-group {
		padding-top: 0rem;
	}

	.separador {
		margin-top: 2rem;
		margin-bottom: 2rem;
	}

	.apromt-socios-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.apromt-socio-contenido {
		padding: 20px;
	}
}

/* Móviles Apaisado */
@media (max-width: 767px) and (orientation: landscape) {

	h1,
	h2 {
		font-size: 1.8rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	#main .wp-block-group {
		display: flex;
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-spacer {
		display: none;
	}

	#block-28 {
		display: none;
	}

	.ct-pagination {
		margin: 3rem 1rem;
	}

	.entry-header {
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	.entry-meta {
		font-size: 0.70rem;
	}

	.widget-area-3 {
		justify-self: center;
	}

	.wp-block-group {
		padding-top: 0rem;
	}

	.separador {
		margin-top: 2rem;
		margin-bottom: 2rem;
	}

	.apromt-socios-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.apromt-socio-contenido {
		padding: 20px;
	}
}

.apromt-socio-redes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 18px 0 20px;
}

.apromt-socio-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f3f0fa;
	color: #6865ad;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
	transition: all 0.2s ease;
}

.apromt-socio-redes a:hover {
	background: #6865ad;
	color: #ffffff;
	transform: translateY(-2px);
}

.apromt-bloque-socios {
	margin-bottom: 80px;
}

.apromt-socios-titulo {
	margin-bottom: 36px;
	font-size: 2rem;
	font-weight: 800;
	color: #6865ad;
	text-shadow: none;
	letter-spacing: -1px;
}

.apromt-provincia-bloque {
	margin-top: 48px;
}

.apromt-provincia-titulo {
	margin-bottom: 28px;
	font-size: 1.55rem;
	font-weight: 800;
	color: #183653;
	text-shadow: none;
}

/* ==============================
   APROMT - Iconos redes socios
   ============================== */

.apromt-socio-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
}

.apromt-socio-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f7f4fb;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(75, 61, 120, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.apromt-socio-red svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* Colores propios por red */

.apromt-socio-red--email {
    color: #4b3d78 !important;
}

.apromt-socio-red--web {
    color: #4b3d78 !important;
}

.apromt-socio-red--whatsapp {
    color: #25d366 !important;
}

.apromt-socio-red--instagram {
    color: #e1306c !important;
}

.apromt-socio-red--facebook {
    color: #1877f2 !important;
}

.apromt-socio-red--linkedin {
    color: #0a66c2 !important;
}

/* Hover común */

.apromt-socio-red:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(75, 61, 120, 0.22);
}

/* Fondo de marca al pasar el ratón */

.apromt-socio-red--email:hover,
.apromt-socio-red--web:hover {
    background: #4b3d78;
}

.apromt-socio-red--whatsapp:hover {
    background: #25d366;
}

.apromt-socio-red--instagram:hover {
    background: #e1306c;
}

.apromt-socio-red--facebook:hover {
    background: #1877f2;
}

.apromt-socio-red--linkedin:hover {
    background: #0a66c2;
}

/* ==============================
   APROMT - Detalle individual de Socios
   ============================== */

.apromt-socio-single {
    background: #ffffff;
}

.apromt-socio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
}

.apromt-socio-hero__contenido {
    max-width: 680px;
}

.apromt-socio-hero__etiqueta {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: #f7f4fb;
    color: #4b3d78;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apromt-socio-hero__titulo {
    margin: 0 0 1rem;
    color: #2c174d !important;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    font-style: normal !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em;
    text-shadow: none !important;
}

.apromt-socio-hero__rol {
    margin: 0 0 0.55rem;
    color: #4b3d78;
    font-size: 1.25rem;
    font-weight: 800;
}

.apromt-socio-hero__especialidad {
    margin: 0 0 1.7rem;
    color: #25364f;
    font-size: 1.1rem;
    line-height: 1.55;
    font-weight: 500;
}

.apromt-socio-hero__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.apromt-socio-hero__boton,
.apromt-socio-info__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    background: #4b3d78;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(75, 61, 120, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.apromt-socio-hero__boton:hover,
.apromt-socio-info__boton:hover {
    background: #36295f;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(75, 61, 120, 0.28);
}

.apromt-socio-hero__boton--secundario {
    background: #ffffff;
    color: #4b3d78 !important;
    border: 1px solid rgba(75, 61, 120, 0.28);
}

.apromt-socio-hero__boton--secundario:hover {
    background: #f7f4fb;
    color: #36295f !important;
}

.apromt-socio-hero__imagen {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(75, 61, 120, 0.16);
    background: #f7f4fb;
}

.apromt-socio-hero__imagen img {
    display: block;
    width: 100%;
    height: auto;
}

.apromt-socio-contenedor {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 3rem;
    max-width: 1180px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.apromt-socio-info {
    align-self: start;
    position: sticky;
    top: 120px;
    padding: 1.6rem;
    border-radius: 24px;
    background: #f7f4fb;
    box-shadow: 0 14px 35px rgba(75, 61, 120, 0.1);
}

.apromt-socio-info h2,
.apromt-socio-contenido h2,
.apromt-socio-contacto h2 {
    margin: 0 0 1.2rem;
    color: #2c174d !important;
    font-size: 1.45rem;
    line-height: 1.25;
    font-style: normal !important;
    font-weight: 850 !important;
    text-shadow: none !important;
}

.apromt-socio-info__grid {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.apromt-socio-info__item {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(75, 61, 120, 0.16);
}

.apromt-socio-info__item span {
    display: block;
    margin-bottom: 0.25rem;
    color: #6b5f89;
    font-size: 0.84rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apromt-socio-info__item strong {
    display: block;
    color: #25364f;
    font-size: 1rem;
    line-height: 1.45;
}

.apromt-socio-single-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.apromt-socio-contenido {
    color: #25364f;
    font-size: 1.05rem;
    line-height: 1.8;
}

.apromt-socio-contenido__texto p {
    margin-bottom: 1.1rem;
}

.apromt-socio-contacto {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(75, 61, 120, 0.14);
    box-shadow: 0 12px 32px rgba(75, 61, 120, 0.08);
}

.apromt-socio-contacto a {
    color: #4b3d78;
    font-weight: 800;
    text-decoration: none;
}

.apromt-socio-contacto a:hover {
    text-decoration: underline;
}

.apromt-socio-volver {
    margin-top: 2.5rem;
}

.apromt-socio-volver a {
    color: #4b3d78;
    font-weight: 800;
    text-decoration: none;
}

.apromt-socio-volver a:hover {
    text-decoration: underline;
}

/* Responsive detalle Socios */

@media (max-width: 960px) {
    .apromt-socio-hero,
    .apromt-socio-contenedor {
        grid-template-columns: 1fr;
    }

    .apromt-socio-info {
        position: static;
    }
}

@media (max-width: 680px) {
    .apromt-socio-hero {
        margin-top: 2.5rem;
        gap: 2rem;
    }

    .apromt-socio-contenedor {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .apromt-socio-info,
    .apromt-socio-contacto {
        padding: 1.25rem;
    }

    .apromt-socio-hero__titulo {
        font-size: clamp(2rem, 12vw, 3rem);
    }
}

/* ==============================
   APROMT - Igualar anchura cards socios
   ============================== */

.apromt-socios-grid,
.apromt-provincia-socios,
.apromt-socios-listado {
    width: 100%;
}

.apromt-socios-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.apromt-socio-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1024px) {
    .apromt-socios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Móvil */
@media (max-width: 680px) {
    .apromt-socios-grid {
        grid-template-columns: 1fr;
    }

    .apromt-socio-card {
        width: 100%;
        max-width: 100%;
    }
}