/* ==========================================================================
   ANPD Theme - main.css
   Paleta: Azul institucional #0C3B6E / Dorado #E0A526
   ========================================================================== */

:root {
	--anpd-blue: #0C3B6E;
	--anpd-blue-dark: #082A50;
	--anpd-gold: #E0A526;
	--anpd-gold-dark: #3A2600;
	--anpd-text: #1B2530;
	--anpd-text-muted: #6B7684;
	--anpd-border: #E4E8EC;
	--anpd-bg-light: #F6F8FA;
	--anpd-success-bg: #E9F7EF;
	--anpd-success-text: #1E7A45;
	--anpd-radius: 8px;
	--anpd-container: 1200px;
	--anpd-logo-height: 56px;
	--anpd-footer-logo-height: 60px;
	--anpd-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--anpd-font-heading: 'Poppins', var(--anpd-font);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--anpd-font);
	color: var(--anpd-text);
	line-height: 1.6;
	background: #fff;
}

h1, h2, h3, h4 {
	font-family: var(--anpd-font-heading);
	margin: 0 0 0.5em;
	line-height: 1.25;
}

a { color: var(--anpd-blue); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.anpd-container {
	max-width: var(--anpd-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Botones ---------- */
.anpd-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--anpd-radius);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: transform .15s ease, opacity .15s ease;
}
.anpd-btn:hover { transform: translateY(-1px); opacity: .92; }
.anpd-btn--gold { background: var(--anpd-gold); color: var(--anpd-gold-dark); }
.anpd-btn--primary { background: var(--anpd-blue); color: #fff; }
.anpd-btn--outline { background: transparent; border: 1.5px solid var(--anpd-blue); color: var(--anpd-blue); }
.anpd-btn--block { display: block; width: 100%; text-align: center; }

.anpd-badge {
	display: inline-block;
	background: var(--anpd-gold);
	color: var(--anpd-gold-dark);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.anpd-eyebrow {
	display: block;
	text-align: center;
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--anpd-text-muted);
	font-weight: 600;
	margin-bottom: 6px;
}

.anpd-section { padding: 60px 0; }
.anpd-section__title { text-align: center; font-size: 28px; margin-bottom: 32px; }
.anpd-section__title--left { text-align: left; font-size: 20px; color: var(--anpd-blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.anpd-header {
	border-bottom: 1px solid var(--anpd-border);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 100;
}
.anpd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 24px;
	position: relative;
}
.anpd-header__logo img { max-height: var(--anpd-logo-height); width: auto; }
.anpd-header__logo-text { font-family: var(--anpd-font-heading); font-weight: 700; font-size: 20px; color: var(--anpd-blue); }

.anpd-menu {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}
.anpd-menu li { position: relative; }
.anpd-menu li a {
	color: var(--anpd-text);
	font-weight: 500;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.anpd-menu li a:hover {
	color: var(--anpd-blue);
	border-bottom-color: var(--anpd-blue);
}
.anpd-menu li.current-menu-item > a {
	color: var(--anpd-blue);
}

/* Submenús (páginas hijas / dropdowns del menú de WordPress):
   ocultos por defecto, solo aparecen al pasar el mouse por encima
   del item padre. */
.anpd-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--anpd-border);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.08);
	min-width: 200px;
	padding: 8px;
	list-style: none;
	z-index: 200;
}
.anpd-menu li:hover > .sub-menu {
	display: block;
}
.anpd-menu .sub-menu li { position: relative; }
.anpd-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-bottom: none;
	border-radius: 6px;
	font-size: 13px;
	white-space: nowrap;
}
.anpd-menu .sub-menu a:hover {
	background: var(--anpd-bg-light);
	border-bottom: none;
}
.anpd-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	padding-left: 6px;
}

.anpd-header__actions { display: flex; align-items: center; gap: 12px; }
.anpd-search-toggle,
.anpd-menu-toggle {
	background: none; border: none; cursor: pointer; font-size: 20px; color: var(--anpd-blue);
}
.anpd-menu-toggle { display: none; }

.anpd-search-form {
	display: none;
	position: absolute;
	top: 100%; right: 24px;
	background: #fff;
	border: 1px solid var(--anpd-border);
	border-radius: var(--anpd-radius);
	padding: 8px;
	gap: 8px;
}
.anpd-search-form.is-open { display: flex; }
.anpd-search-form__input { border: none; outline: none; padding: 6px; font-size: 14px; }
.anpd-search-form__submit { background: var(--anpd-blue); color: #fff; border: none; border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* ==========================================================================
   Hero / Slider
   ========================================================================== */
.anpd-hero { position: relative; overflow: hidden; }
.anpd-slide {
	position: relative;
	min-height: 460px;
	background-size: cover;
	background-position: center;
	background-color: var(--anpd-blue-dark);
	display: none;
}
.anpd-slide.is-active { display: block; }
.anpd-slide__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to right, var(--anpd-blue) 40%, rgba(12,59,110,0.15) 70%, transparent 100%);
}
.anpd-slide__content {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 90px 0;
	max-width: 620px;
}
.anpd-slide__title { font-size: 40px; color: #fff; margin-bottom: 20px; }
.anpd-slide__text { font-size: 14px; color: #D6E1EC; margin-top: 16px; line-height: 1.7; }

.anpd-slider__dots {
	position: absolute;
	bottom: 20px; left: 50%;
	transform: translateX(-50%);
	display: flex; gap: 8px;
	z-index: 2;
}
.anpd-slider__dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: rgba(255,255,255,0.4);
	border: none; cursor: pointer;
}
.anpd-slider__dot.is-active { background: var(--anpd-gold); }

/* ==========================================================================
   Servicios
   ========================================================================== */
.anpd-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.anpd-service-card {
	border: 1px solid var(--anpd-border);
	border-radius: 12px;
	padding: 32px 20px;
	text-align: center;
	transition: box-shadow .2s ease;
}
.anpd-service-card:hover { box-shadow: 0 8px 24px rgba(12,59,110,0.08); }
.anpd-service-card i { font-size: 34px; color: var(--anpd-blue); margin-bottom: 12px; }
.anpd-service-card h3 { font-size: 17px; }
.anpd-service-card p { color: var(--anpd-text-muted); font-size: 14px; margin: 0; }

/* ==========================================================================
   Noticias + Comunicados
   ========================================================================== */
.anpd-news-press { background: var(--anpd-bg-light); }
.anpd-news-press__grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 40px;
}
.anpd-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.anpd-news-card__image { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--anpd-border); }
.anpd-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.anpd-news-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--anpd-text-muted); font-size: 28px; }
.anpd-news-card__date { font-size: 12px; color: var(--anpd-text-muted); display: block; margin-top: 10px; }
.anpd-news-card__title { font-size: 15px; margin: 6px 0 8px; }
.anpd-news-card__title a { color: var(--anpd-text); }
.anpd-news-card__excerpt { font-size: 13px; color: var(--anpd-text-muted); margin: 0 0 10px; line-height: 1.5; }
.anpd-news-card__link { font-size: 13px; font-weight: 600; color: var(--anpd-blue); }
.anpd-news-card__autor { display: block; font-size: 12px; color: var(--anpd-text-muted); margin-bottom: 8px; }
.anpd-news-card__autor:hover { color: var(--anpd-blue); }
.anpd-news__grid--historial { padding: 40px 24px; }

.anpd-press__grid {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.anpd-press-card {
	background: var(--anpd-blue);
	color: #fff;
	border-radius: 10px;
	padding: 22px;
	flex: 1.4;
}
.anpd-press-card h3 { font-size: 16px; margin: 0 0 8px; }
.anpd-press-card h3 a { color: #fff; }
.anpd-press-card p { color: #C9D6E5; font-size: 13px; }
.anpd-press-card__pdf { color: var(--anpd-gold); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

.anpd-press-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.anpd-press-list li { padding-bottom: 10px; border-bottom: 1px solid var(--anpd-border); }
.anpd-press-list time { display: block; font-size: 11px; color: var(--anpd-text-muted); }
.anpd-press-list h4 { font-size: 13px; font-weight: 500; margin: 4px 0 6px; line-height: 1.4; }
.anpd-press-list h4 a { color: var(--anpd-text); }
.anpd-press-list h4 a:hover { color: var(--anpd-blue); }
.anpd-press-list__link { font-size: 12px; font-weight: 600; color: var(--anpd-blue); }

/* ==========================================================================
   Sobre nosotros
   ========================================================================== */
.anpd-about__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.4fr;
	gap: 32px;
	align-items: center;
	background: var(--anpd-bg-light);
	border-radius: 14px;
	padding: 32px;
}
.anpd-about__image {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16/10;
	background: var(--anpd-border);
}
.anpd-about__image img { width: 100%; height: 100%; object-fit: cover; }
.anpd-about__image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--anpd-text-muted); font-size: 32px; }
.anpd-about__content h2 { font-size: 22px; margin-bottom: 10px; }
.anpd-about__content p { color: var(--anpd-text-muted); margin-bottom: 14px; }
.anpd-about__link { font-weight: 600; color: var(--anpd-blue); display: inline-flex; align-items: center; gap: 6px; }
.anpd-about__link i { font-size: 16px; }

/* ==========================================================================
   Directorio de miembros
   ========================================================================== */
.anpd-directory__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.anpd-member-card { text-align: center; }
.anpd-member-card__avatar {
	width: 88px; height: 88px;
	border-radius: 50%;
	background: var(--anpd-bg-light);
	margin: 0 auto 12px;
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px;
	color: var(--anpd-text-muted);
}
.anpd-member-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.anpd-member-card__name { font-size: 14px; margin: 0 0 2px; }
.anpd-member-card__role { font-size: 12px; color: var(--anpd-text-muted); margin: 0 0 10px; }
.anpd-member-card__social { display: flex; justify-content: center; gap: 8px; }
.anpd-social-icon {
	width: 26px; height: 26px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--anpd-bg-light);
	color: var(--anpd-blue);
	font-size: 13px;
}
.anpd-directory__cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   Acceso a miembros
   ========================================================================== */
.anpd-member-access__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}
.anpd-member-access__form {
	background: #fff;
	border: 1px solid var(--anpd-border);
	border-radius: 12px;
	padding: 24px;
}
.anpd-form-field {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--anpd-border);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 12px;
}
.anpd-form-field input, .anpd-form-field select, .anpd-form-field textarea { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; font-family: inherit; }
.anpd-form-error { color: #C0392B; font-size: 13px; margin-bottom: 12px; }

/* ==========================================================================
   Verificación de periodistas
   ========================================================================== */
.anpd-verification {
	background: var(--anpd-blue);
	padding: 50px 0;
}
.anpd-verification__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.anpd-verification__icon { font-size: 34px; color: var(--anpd-gold); margin-bottom: 12px; display: block; }
.anpd-verification__title { color: #fff; font-size: 22px; margin-bottom: 6px; }
.anpd-verification__subtitle { color: #C9D6E5; font-size: 14px; margin-bottom: 24px; }

.anpd-verificador { max-width: 480px; margin: 0 auto; }
.anpd-verificador__form { display: flex; gap: 10px; margin-bottom: 20px; }
.anpd-verificador__form input {
	flex: 1;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
}
.anpd-verificador__form .anpd-btn--primary { background: var(--anpd-gold); color: var(--anpd-gold-dark); }
.anpd-verificador__resultado {
	background: rgba(255,255,255,0.08);
	border-radius: 8px;
	padding: 18px;
	color: #fff;
	text-align: left;
}
.anpd-verificador__resultado .anpd-form-error { color: #FFD3D3; margin: 0; }
.anpd-verificador__aviso { font-size: 11px; font-style: italic; color: #E0A526; margin-top: 8px; }
.anpd-verificador__multiple-aviso { font-size: 12px; color: #C9D6E5; margin: 0 0 10px; }
.anpd-verificador__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anpd-verificador__lista-item {
	width: 100%;
	text-align: left;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.15);
	color: #fff;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
}
.anpd-verificador__lista-item:hover { background: rgba(255,255,255,0.15); }
.anpd-verificador__link-tarjeta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--anpd-gold);
}
.anpd-verificador__link-tarjeta:hover { color: #fff; }

/* Cuando el shortcode [anpd_verificador] se usa solo (sin la sección del
   home alrededor), por ejemplo en la página dedicada "Verificación de
   Periodistas", esta clase le da la misma caja azul + ícono + título. */
.anpd-verificador-wrap--full {
	background: var(--anpd-blue);
	padding: 50px 24px;
	border-radius: 12px;
	text-align: center;
	max-width: 700px;
	margin: 40px auto;
}
.anpd-verificador-wrap--full .anpd-verification__icon { font-size: 34px; color: var(--anpd-gold); margin-bottom: 12px; display: block; }
.anpd-verificador-wrap--full .anpd-verification__title { color: #fff; font-size: 22px; margin-bottom: 6px; }
.anpd-verificador-wrap--full .anpd-verification__subtitle { color: #C9D6E5; font-size: 14px; margin-bottom: 24px; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.anpd-cta-band { background: var(--anpd-blue); padding: 50px 0; text-align: center; }
.anpd-cta-band h2 { color: #fff; margin-bottom: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.anpd-footer { background: var(--anpd-blue-dark); color: #C9D6E5; }
.anpd-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding: 48px 24px;
}
.anpd-footer h3 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.anpd-footer__logo-img { max-height: var(--anpd-footer-logo-height); width: auto; margin-bottom: 12px; }
.anpd-footer__brand-name { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.anpd-footer__brand-desc { font-size: 12px; color: #A9BCD1; line-height: 1.6; max-width: 320px; }
.anpd-footer-menu, .anpd-footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.anpd-footer-menu a, .anpd-footer-contact a { color: #C9D6E5; }
.anpd-footer-menu a:hover, .anpd-footer-contact a:hover { color: #fff; }
.anpd-footer-contact li { display: flex; align-items: center; gap: 8px; }
.anpd-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.anpd-footer-social a {
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #fff; font-size: 14px;
}
.anpd-footer-social a:hover { background: var(--anpd-gold); color: var(--anpd-gold-dark); }
.anpd-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.anpd-footer__bottom-inner {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
	padding: 16px 24px; font-size: 12px; color: #8FA6C2;
}
.anpd-footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.anpd-footer-legal a { color: #8FA6C2; }
.anpd-footer-legal a:hover { color: #fff; }
.anpd-footer__credito { color: #8FA6C2; text-decoration: none; margin-left: 4px; }
.anpd-footer__credito:hover { color: #fff; }

/* ==========================================================================
   Páginas internas / genéricas
   ========================================================================== */
.anpd-content-page { padding: 60px 0; }
.anpd-post__title { font-size: 32px; }
.anpd-post__date { color: var(--anpd-text-muted); font-size: 13px; }
.anpd-post__thumb { margin: 20px 0; border-radius: 10px; overflow: hidden; }
.anpd-archive__title { font-size: 28px; margin-bottom: 32px; }
.anpd-404 { text-align: center; }
.anpd-404 h1 { font-size: 80px; color: var(--anpd-blue); }

/* ==========================================================================
   Formulario de Inscripción a Capacitaciones
   ========================================================================== */
.anpd-inscripcion-form {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px;
}
.anpd-inscripcion-form form { display: flex; flex-direction: column; gap: 14px; }

/* ==========================================================================
   Formulario de Noticias de Agremiados
   ========================================================================== */
.anpd-noticia-form {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px;
}
.anpd-noticia-form form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.anpd-noticia-form [data-anpd-paso] > p { color: var(--anpd-text-muted); font-size: 14px; margin-bottom: 16px; }
.anpd-noticia-form .anpd-form-field { margin-bottom: 0; }
.anpd-noticia-form [data-anpd-btn-paso1],
.anpd-noticia-form [data-anpd-btn-paso2] { margin-top: 16px; }
.anpd-inscripcion-precio {
	background: var(--anpd-bg-light);
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
	color: var(--anpd-text);
}
.anpd-inscripcion-precio strong { color: var(--anpd-blue); font-size: 16px; }
.anpd-inscripcion-exito {
	background: var(--anpd-success-bg);
	color: var(--anpd-success-text);
	border-radius: 8px;
	padding: 18px;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.anpd-inscripcion-exito i { font-size: 20px; flex-shrink: 0; }
.anpd-inscripcion-aviso {
	background: #FEF3E2;
	color: #B9770E;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}
.anpd-inscripcion-hint { font-size: 12px; color: var(--anpd-text-muted); margin: -6px 0 4px; }
.anpd-inscripcion-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: #25D366; }
.anpd-inscripcion-wa:hover { opacity: 0.9; color: #fff; }

/* ==========================================================================
   Certificado Digital
   ========================================================================== */
.anpd-certificado-page {
	background: var(--anpd-bg-light);
	padding: 50px 20px;
	min-height: 100vh;
}
.anpd-certificado-acciones { text-align: center; margin-bottom: 30px; }

.anpd-certificado {
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.anpd-certificado__borde {
	position: relative;
	border: 3px solid var(--anpd-blue);
	outline: 1px solid var(--anpd-gold);
	outline-offset: -10px;
	padding: 50px;
	overflow: hidden;
}
/* Adornos de esquina, estilo diploma clásico */
.anpd-certificado__borde::before,
.anpd-certificado__borde::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	border: 2px solid var(--anpd-gold);
}
.anpd-certificado__borde::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.anpd-certificado__borde::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.anpd-certificado__marca-agua {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 380px;
	max-width: 60%;
	height: auto;
	opacity: 0.06;
	pointer-events: none;
	z-index: 0;
}

.anpd-certificado__contenido { position: relative; z-index: 1; text-align: center; }

.anpd-certificado__logo { max-height: 64px; margin: 0 auto 16px; }
.anpd-certificado__nombre-org { font-family: var(--anpd-font-heading); font-weight: 700; font-size: 20px; color: var(--anpd-blue); margin-bottom: 16px; }

.anpd-certificado__linea-decorativa {
	width: 70px;
	height: 3px;
	background: var(--anpd-gold);
	margin: 0 auto 22px;
	border-radius: 2px;
}

.anpd-certificado__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--anpd-gold); font-weight: 700; margin-bottom: 22px; }
.anpd-certificado__intro { font-size: 14px; color: var(--anpd-text-muted); margin-bottom: 8px; }
.anpd-certificado__nombre { font-family: var(--anpd-font-heading); font-size: 36px; color: var(--anpd-blue); margin: 0 0 24px; }
.anpd-certificado__texto { font-size: 14px; color: var(--anpd-text-muted); margin-bottom: 8px; }
.anpd-certificado__programa { font-size: 22px; color: var(--anpd-text); margin: 0 0 10px; }
.anpd-certificado__horas { font-size: 13px; color: var(--anpd-text-muted); margin-bottom: 30px; }

.anpd-certificado__footer {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: 20px;
	align-items: end;
	margin-top: 50px;
	padding-top: 20px;
	border-top: 1px solid var(--anpd-border);
	font-size: 11px;
	color: var(--anpd-text-muted);
}
.anpd-certificado__firma { text-align: center; }
.anpd-certificado__sello-firma { width: 56px; height: auto; margin: 0 auto 8px; opacity: 0.92; }
.anpd-certificado__linea-firma { border-top: 1px solid var(--anpd-text); width: 80%; margin: 0 auto 6px; }
.anpd-certificado__codigo { text-align: right; }
.anpd-certificado__qr { width: 60px; height: 60px; display: block; margin: 0 0 6px auto; }

.anpd-certificado-nota { max-width: 600px; margin: 24px auto 0; text-align: center; font-size: 12px; color: var(--anpd-text-muted); }

/* Al imprimir / guardar como PDF: solo se ve el certificado, sin
   header, footer, botones ni fondo de la página. */
@media print {
	.anpd-no-print,
	.anpd-header,
	.anpd-footer,
	.anpd-whatsapp-float { display: none !important; }
	.anpd-certificado-page { background: #fff; padding: 0; }
	.anpd-certificado { box-shadow: none; max-width: 100%; }
	.anpd-certificado__borde { padding: 40px; }
}

/* ==========================================================================
   Convenios
   ========================================================================== */
.anpd-convenios__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 50px 24px;
}
.anpd-convenio-card {
	border: 1px solid var(--anpd-border);
	border-radius: 12px;
	padding: 24px;
	text-align: left;
}
.anpd-convenio-card__logo { border-radius: 8px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/9; background: var(--anpd-bg-light); }
.anpd-convenio-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.anpd-convenio-card__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 12px;
	background: var(--anpd-bg-light);
	color: var(--anpd-blue);
}
.anpd-convenio-card__title { font-size: 16px; color: var(--anpd-blue); margin-bottom: 8px; }
.anpd-convenio-card__desc { font-size: 13px; color: var(--anpd-text-muted); margin-bottom: 10px; }
.anpd-convenio-card__vigencia { font-size: 12px; color: var(--anpd-text-muted); margin-bottom: 10px; }
.anpd-convenio-card__vigencia i { color: var(--anpd-blue); margin-right: 4px; }
.anpd-convenio-card__link { font-size: 13px; font-weight: 600; color: var(--anpd-blue); display: inline-flex; align-items: center; gap: 4px; }

.anpd-convenio-detalle { max-width: 760px; margin: 0 auto; }
.anpd-convenio-detalle__titulo { font-size: 30px; margin: 12px 0 8px; }
.anpd-convenio-detalle__vigencia { font-size: 13px; color: var(--anpd-text-muted); margin-bottom: 20px; }
.anpd-convenio-detalle__vigencia i { color: var(--anpd-blue); margin-right: 4px; }
.anpd-convenio-detalle__imagen-principal { border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.anpd-convenio-detalle__imagen-principal img { width: 100%; height: auto; display: block; }
.anpd-convenio-detalle__resumen { font-size: 17px; font-weight: 500; color: var(--anpd-text); margin-bottom: 16px; }
.anpd-convenio-detalle__texto { font-size: 15px; color: var(--anpd-text-muted); line-height: 1.8; margin-bottom: 28px; }
.anpd-convenio-detalle__galeria {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 28px;
}
.anpd-convenio-detalle__galeria-item { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; display: block; }
.anpd-convenio-detalle__galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.anpd-convenio-detalle__video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin-bottom: 28px; }
.anpd-convenio-detalle__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Capacitaciones
   ========================================================================== */
.anpd-capacitaciones__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	padding: 50px 24px;
}
.anpd-capacitacion-card {
	border: 1px solid var(--anpd-border);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}
.anpd-capacitacion-card__imagen { display: block; aspect-ratio: 16/9; background: var(--anpd-bg-light); }
.anpd-capacitacion-card__imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anpd-capacitacion-card__body { padding: 28px; }
.anpd-capacitacion-card__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--anpd-bg-light);
	color: var(--anpd-text-muted);
}
.anpd-capacitacion-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.anpd-capacitacion-card__badge--abiertas { background: var(--anpd-success-bg); color: var(--anpd-success-text); }
.anpd-capacitacion-card__badge--proximamente { background: #FEF3E2; color: #B9770E; }
.anpd-capacitacion-card__badge--cerrado { background: #F1F1F1; color: #888; }
.anpd-capacitacion-card__badge--gratis { background: var(--anpd-success-bg); color: var(--anpd-success-text); }
.anpd-capacitacion-card__badge--pago { background: #FEF3E2; color: #B9770E; }
.anpd-capacitacion-card__title { font-size: 18px; color: var(--anpd-blue); margin-bottom: 10px; }
.anpd-capacitacion-card__title a { color: inherit; }
.anpd-capacitacion-card__title a:hover { text-decoration: underline; }
.anpd-capacitacion-card__desc { font-size: 14px; color: var(--anpd-text-muted); margin-bottom: 16px; }
.anpd-capacitacion-card__meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--anpd-text-muted); margin-bottom: 14px; }
.anpd-capacitacion-card__meta i { color: var(--anpd-blue); margin-right: 6px; }
.anpd-capacitacion-card__meta a { color: var(--anpd-blue); font-weight: 600; }
.anpd-capacitacion-card__cta { display: inline-block; font-size: 13px; padding: 10px 20px; }
.anpd-capacitacion-card__cta-info { display: block; margin-top: 10px; font-size: 12px; color: var(--anpd-text-muted); text-align: center; text-decoration: underline; }
.anpd-capacitacion-card__cta-info:hover { color: var(--anpd-blue); }

.anpd-capacitacion-detalle { max-width: 760px; margin: 0 auto; }
.anpd-capacitacion-detalle__imagen { border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.anpd-capacitacion-detalle__imagen img { width: 100%; height: auto; display: block; }
.anpd-capacitacion-detalle__titulo { font-size: 28px; margin: 4px 0 14px; }
.anpd-capacitacion-detalle__desc { font-size: 16px; color: var(--anpd-text-muted); line-height: 1.7; margin-bottom: 20px; }
.anpd-capacitacion-detalle__meta { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--anpd-text-muted); margin-bottom: 28px; }
.anpd-capacitacion-detalle__meta i { color: var(--anpd-blue); margin-right: 6px; }
.anpd-capacitacion-detalle__meta a { color: var(--anpd-blue); font-weight: 600; }
.anpd-capacitacion-detalle__cta { display: inline-block; margin-bottom: 6px; }

/* ==========================================================================
   Filiales
   ========================================================================== */
.anpd-filiales__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
	padding: 50px 24px;
}
.anpd-filial-card {
	border: 1px solid var(--anpd-border);
	border-radius: 12px;
	padding: 24px;
}
.anpd-filial-card__image { border-radius: 8px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/10; }
.anpd-filial-card__image img { width: 100%; height: 100%; object-fit: cover; }
.anpd-filial-card__title { font-size: 17px; color: var(--anpd-blue); margin-bottom: 12px; }
.anpd-filial-card p { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--anpd-text-muted); margin: 0 0 8px; }
.anpd-filial-card p i { color: var(--anpd-blue); margin-top: 2px; }
.anpd-filial-card__mapa { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--anpd-blue); margin-top: 8px; }

/* ==========================================================================
   Tarjeta Digital (link in bio)
   ========================================================================== */
.anpd-tarjeta {
	position: relative;
	min-height: 100vh;
	background-color: #0B0B0D;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}
.anpd-tarjeta__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.95));
}
.anpd-tarjeta__card {
	position: relative;
	z-index: 1;
	max-width: 420px;
	width: 100%;
	text-align: center;
	color: #fff;
}
.anpd-tarjeta__logo { margin-bottom: 28px; }
.anpd-tarjeta__logo img { max-height: 50px; width: auto; margin: 0 auto; }

.anpd-tarjeta__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
	margin-bottom: 20px;
}
.anpd-tarjeta__foto {
	width: 170px; height: 170px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: #1a1a1d;
	font-size: 52px;
	color: #666;
}
.anpd-tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; }
.anpd-tarjeta__titulo h1 { font-size: 20px; color: #fff; margin: 0 0 4px; }
.anpd-tarjeta__titulo p { font-size: 13px; color: var(--anpd-gold); margin: 0; font-weight: 600; }
.anpd-tarjeta__cargo { color: var(--anpd-gold) !important; }
.anpd-tarjeta__dni { color: #999 !important; font-weight: 400 !important; margin-top: 2px !important; font-size: 12px !important; }

.anpd-tarjeta__badge {
	display: inline-block;
	border: 1.5px solid;
	border-radius: 30px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 10px;
}
.anpd-tarjeta__vigencia { font-size: 11px; color: #999; margin-bottom: 18px; }

.anpd-tarjeta__descripcion { font-size: 13px; color: #C9C9CC; line-height: 1.7; margin-bottom: 24px; }

.anpd-tarjeta__social { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.anpd-tarjeta__social a {
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--anpd-gold);
	color: var(--anpd-gold-dark);
	display: flex; align-items: center; justify-content: center;
	font-size: 18px;
}
.anpd-tarjeta__social a:hover { opacity: 0.85; }

.anpd-tarjeta__botones { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.anpd-tarjeta__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.15);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 14px 32px;
	border-radius: 30px;
	min-width: 260px;
}
.anpd-tarjeta__boton:hover { background: rgba(255,255,255,0.12); color: #fff; }
.anpd-tarjeta__boton i { font-size: 18px; color: var(--anpd-gold); }

.anpd-tarjeta__card--bloqueada { padding: 20px 0; }
.anpd-tarjeta__lock-icon {
	width: 70px; height: 70px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center;
	font-size: 28px;
	color: var(--anpd-gold);
	margin: 0 auto 20px;
}
.anpd-tarjeta__card--bloqueada h1 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.anpd-tarjeta__bloqueo-msg { color: #C9C9CC; font-size: 14px; line-height: 1.6; margin-bottom: 26px; }

/* Oculta el aviso/ícono flotante de cookies (de plugins comunes de
   terceros) solo en las páginas de Tarjeta Digital, donde no aplica. */
body.anpd-tarjeta-page #cookie-law-info-bar,
body.anpd-tarjeta-page .cli-modal-backdrop,
body.anpd-tarjeta-page .cmplz-cookiebanner,
body.anpd-tarjeta-page .cmplz-manage-consent,
body.anpd-tarjeta-page .cky-consent-container,
body.anpd-tarjeta-page .cky-btn-revisit-wrapper,
body.anpd-tarjeta-page .wp-gdpr-cookie-notice,
body.anpd-tarjeta-page .cookie-notice-container,
body.anpd-tarjeta-page #catapult-cookie-bar,
body.anpd-tarjeta-page .moove_gdpr_cookie_info_bar,
body.anpd-tarjeta-page .moove-gdpr-body-content-cookie-icon,
body.anpd-tarjeta-page #wpgdprc-consent-bar,
body.anpd-tarjeta-page #borlabs-cookie-box,
body.anpd-tarjeta-page #BorlabsCookieBox,
body.anpd-tarjeta-page .iubenda-cs-widget,
body.anpd-tarjeta-page .iub-widget-fixed {
	display: none !important;
}

@media (max-width: 480px) {
	.anpd-tarjeta { padding: 24px 16px; align-items: flex-start; }
	.anpd-tarjeta__card { max-width: 100%; margin-top: 10px; }
	.anpd-tarjeta__header { gap: 18px; margin-bottom: 16px; }
	.anpd-tarjeta__foto { width: 140px; height: 140px; font-size: 42px; }
	.anpd-tarjeta__titulo h1 { font-size: 17px; }
	.anpd-tarjeta__cargo { font-size: 12px !important; }
	.anpd-tarjeta__badge { font-size: 11px; padding: 5px 12px; }
	.anpd-tarjeta__vigencia { font-size: 10px; }
	.anpd-tarjeta__social a { width: 38px; height: 38px; font-size: 16px; }
	.anpd-tarjeta__boton { font-size: 13px; padding: 12px 24px; min-width: 0; width: auto; }
}
.anpd-page-banner {
	position: relative;
	background: var(--anpd-blue);
	background-size: cover;
	background-position: center;
	padding: 70px 0;
}
.anpd-page-banner__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(12,59,110,0.92), rgba(12,59,110,0.75));
}
.anpd-page-banner__content { position: relative; z-index: 1; }
.anpd-breadcrumb { font-size: 13px; color: #C9D6E5; margin-bottom: 12px; }
.anpd-breadcrumb a { color: #C9D6E5; }
.anpd-breadcrumb a:hover { color: #fff; }
.anpd-breadcrumb span { margin: 0 6px; }
.anpd-page-banner__title { color: #fff; font-size: 34px; margin: 0; }

/* Las páginas armadas con Elementor no llevan el padding del theme */
.anpd-main--elementor { padding: 0; }

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.anpd-whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 30px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	z-index: 999;
	transition: transform .2s ease;
}
.anpd-whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.anpd-menu { display: none; }
	.anpd-menu-toggle { display: block; }
	.anpd-news-press__grid { grid-template-columns: 1fr; }
	.anpd-press__grid { flex-direction: column; }
	.anpd-about__inner { grid-template-columns: 1fr; padding: 20px; }
	.anpd-directory__grid { grid-template-columns: repeat(2, 1fr); }
	.anpd-filiales__grid { grid-template-columns: repeat(2, 1fr); }
	.anpd-capacitaciones__grid { grid-template-columns: 1fr; }
	.anpd-convenios__grid { grid-template-columns: repeat(2, 1fr); }
	.anpd-services__grid { grid-template-columns: 1fr; }
	.anpd-news__grid { grid-template-columns: 1fr; }
	.anpd-footer__inner { grid-template-columns: 1fr; }
	.anpd-member-access__grid { grid-template-columns: 1fr; }
	.anpd-slide__content { padding: 60px 0; max-width: 100%; }
	.anpd-page-banner { padding: 44px 0; }
	.anpd-page-banner__title { font-size: 24px; }
	.anpd-slide__title { font-size: 28px; }

	/* El logo nunca supera 48px en tablet/móvil, sin importar lo que se
	   configure en el Personalizador para escritorio, así evitamos que
	   se desborde o empuje al resto del header. */
	.anpd-header__logo img { max-height: min(var(--anpd-logo-height), 48px); }
	.anpd-footer__logo-img { max-height: min(var(--anpd-footer-logo-height), 52px); }
	.anpd-footer__bottom-inner { flex-direction: column; text-align: center; }
	.anpd-footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
	.anpd-header__logo img { max-height: min(var(--anpd-logo-height), 38px); }
	.anpd-footer__logo-img { max-height: min(var(--anpd-footer-logo-height), 44px); }
	.anpd-whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 16px; right: 16px; }
	.anpd-filiales__grid { grid-template-columns: 1fr; }
	.anpd-convenios__grid { grid-template-columns: 1fr; }
	.anpd-convenio-detalle__galeria { grid-template-columns: repeat(2, 1fr); }
	.anpd-certificado__borde { padding: 30px 20px; }
	.anpd-certificado__nombre { font-size: 24px; }
	.anpd-certificado__programa { font-size: 17px; }
	.anpd-certificado__footer { grid-template-columns: 1fr; text-align: center; gap: 14px; }
	.anpd-certificado__codigo { text-align: center; }
	.anpd-certificado__qr { margin: 0 auto 6px; }
}

/* Menú móvil abierto (JS agrega .is-open) */
@media (max-width: 960px) {
	.anpd-menu.is-open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		padding: 20px 24px;
		border-bottom: 1px solid var(--anpd-border);
		gap: 14px;
	}
}
