/*
Theme Name: Iglesia Cuadrangular Iquitos
Description: Tema a medida para la Iglesia Cuadrangular de Iquitos. Conserva la identidad visual del sitio anterior (azul, morado y crema; Roboto Condensed) con un diseño adaptable a móviles, eventos con cuenta regresiva, prédicas, galería y videos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: icq
*/

/* ---------- Base ---------- */
:root {
	--azul: #005ba4;
	--azul-osc: #00467f;
	--morado: #49326f;
	--morado-osc: #382558;
	--crema: #f8f7f3;
	--crema-2: #eceae4;
	--borde: #e4e1d9;
	--texto: #5c5c5c;
	--titulo: #333;
	--suave: #8d8d8d;
	--ancho: 1080px;
	--radio: 4px;
	--sombra: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(40, 30, 60, .07);
	--cond: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 400 16px/1.65 Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--texto);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--azul); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--morado); }
:focus-visible { outline: 3px solid rgba(0, 91, 164, .45); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--titulo); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; } h4 { font-size: 1.1rem; } h5 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--borde); margin: 2rem 0; }
blockquote {
	margin: 0 0 1.4em; padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--morado);
	font: italic 1.05rem/1.7 Volkhov, Georgia, serif; color: #6d6d6d;
}
blockquote p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; max-width: 100%; }
th, td { border: 1px solid var(--borde); padding: .6em .9em; }
th { background: var(--crema); color: var(--titulo); }
.container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; left: 10px; top: 10px; background: #fff; padding: 10px 16px; border-radius: var(--radio); }
.meta-data { display: block; color: var(--suave); font: italic .85rem Volkhov, Georgia, serif; }
.meta-data .fa { font-style: normal; margin-right: 3px; }

/* ---------- Botones y formularios ---------- */
.btn, input[type=submit], button[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.3em; border: 1px solid transparent; border-radius: var(--radio);
	font: 700 .8rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .12em;
	cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary, input[type=submit], button[type=submit] { background: var(--morado); color: #fff; box-shadow: 0 2px 0 var(--morado-osc); }
.btn-primary:hover, input[type=submit]:hover, button[type=submit]:hover { background: var(--azul); color: #fff; box-shadow: 0 2px 0 var(--azul-osc); }
.btn-default { background: #fff; color: var(--titulo); border-color: #cfcbc2; }
.btn-default:hover { border-color: var(--morado); color: var(--morado); }
.btn-light { background: #fff; color: var(--titulo); }
.btn-light:hover { background: var(--crema-2); color: var(--morado); }
.btn-lg { padding: 1.05em 1.8em; font-size: .9rem; }
.btn-sm { padding: .5em .9em; font-size: .68rem; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=tel], textarea, select {
	width: 100%; padding: .7em .9em; font: inherit; color: var(--titulo);
	border: 1px solid #d4d0c7; border-radius: var(--radio); background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--azul); outline: 0; box-shadow: 0 0 0 3px rgba(0, 91, 164, .15); }
.buscador { display: flex; width: 100%; max-width: 380px; }
.buscador input { border-radius: var(--radio) 0 0 var(--radio); border-right: 0; }
.buscador button { border-radius: 0 var(--radio) var(--radio) 0; padding: 0 1.1em; box-shadow: none; font-size: 1rem; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: #fff; border-bottom: 1px solid var(--borde); position: relative; z-index: 2; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.logo { margin: 0; line-height: 0; }
.logo img { max-height: 48px; width: auto; }
.top-navigation { display: flex; list-style: none; margin: 0; padding: 0; }
.top-navigation li + li::before { content: '/'; color: #b9b5ab; margin: 0 .9em; }
.top-navigation a { color: #666; font: 700 .72rem var(--cond); text-transform: uppercase; letter-spacing: .2em; }
.top-navigation a:hover { color: var(--azul); }
.menu-toggle { display: none; background: none; border: 1px solid var(--borde); border-radius: var(--radio); width: 44px; height: 44px; font-size: 1.2rem; color: var(--titulo); cursor: pointer; }

.main-menu-wrapper { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; }
.navigation { background: rgba(248, 247, 243, .97); border: 1px solid var(--borde); border-top: 0; border-radius: 0 0 6px 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.sf-menu, .sf-menu ul { list-style: none; margin: 0; padding: 0; }
.sf-menu { display: flex; justify-content: center; flex-wrap: wrap; }
.sf-menu > li { position: relative; }
.sf-menu > li > a { display: block; padding: 0 22px; line-height: 50px; color: #555; font: 400 1rem/50px var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.sf-menu > li.menu-item-has-children > a::after { content: '\f107'; font-family: FontAwesome; margin-left: 6px; font-size: .8em; opacity: .7; }
.sf-menu > li:hover > a, .sf-menu > li:focus-within > a, .sf-menu > li.current-menu-item > a, .sf-menu > li.current-menu-ancestor > a, .sf-menu > li.current_page_parent > a { color: var(--azul); }
.sf-menu ul {
	position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 5;
	background: #fff; border-top: 3px solid var(--morado); border-radius: 0 0 var(--radio) var(--radio);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s;
}
.sf-menu li:hover > ul, .sf-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.sf-menu ul a { display: block; padding: 11px 18px; color: #555; font-size: .92rem; border-bottom: 1px solid #f1efea; }
.sf-menu ul li:last-child a { border-bottom: 0; }
.sf-menu ul a:hover, .sf-menu ul .current-menu-item > a { background: var(--crema); color: var(--azul); padding-left: 22px; }

/* ---------- Portada: carrusel ---------- */
.hero-slider { position: relative; background: #fbfaf8; height: clamp(200px, 50vw, 600px); overflow: hidden; border-bottom: 1px solid var(--borde); }
.hero-slider--estatico { background-color: #1d1830; }
.hero-slider .slides { list-style: none; margin: 0; padding: 0; height: 100%; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slider .slide.is-active { opacity: 1; z-index: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide a { display: block; height: 100%; }
.slider-nav {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .85); color: var(--morado); font-size: 1.4rem; cursor: pointer;
	opacity: 0; transition: opacity .2s, background-color .2s;
}
.hero-slider:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.slider-nav:hover { background: #fff; }
.slider-nav--prev { left: 18px; } .slider-nav--next { right: 18px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border: 2px solid var(--morado); border-radius: 50%; background: rgba(255, 255, 255, .8); cursor: pointer; }
.slider-dots button.is-active { background: var(--morado); }
.hero-slider--estatico { background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slider--estatico::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 25, 70, .75), rgba(0, 60, 110, .35)); }
.hero-texto { position: relative; color: #fff; padding-top: 50px; }
.hero-texto h1 { color: #fff; font: 700 clamp(1.8rem, 4.5vw, 3.2rem)/1.1 var(--cond); text-transform: uppercase; margin-bottom: .3em; }
.hero-texto p { font: italic 1.15rem Volkhov, Georgia, serif; margin: 0; max-width: 34em; }

/* ---------- Portada: próximo evento ---------- */
.notice-bar { background: var(--crema); border-bottom: 1px solid var(--borde); padding: 22px 0; }
.notice-bar__in { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto auto; align-items: center; gap: 30px; }
.notice-bar-title { display: flex; align-items: center; gap: 14px; color: var(--titulo); }
.notice-bar-title-icon { font-size: 2.6rem; color: #6b6b6b; }
.title-note { display: inline-block; background: var(--morado); color: #fff; font: 700 .62rem var(--cond); text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border-radius: 3px; }
.notice-bar-title strong { display: block; font: 700 1rem var(--cond); text-transform: uppercase; letter-spacing: .15em; }
.notice-bar-event-title h5 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 500; }
.notice-bar-event-title h5 a { color: var(--titulo); }
.notice-bar-event-title h5 a:hover { color: var(--azul); }
.counter { display: flex; gap: 6px; }
.timer-col { min-width: 62px; text-align: center; }
.timer-col span:first-child { display: block; font: 700 1.9rem/1 var(--cond); color: var(--morado); font-variant-numeric: tabular-nums; }
.timer-type { font-size: .72rem; color: var(--suave); }
.notice-bar-horario { font: 700 .95rem var(--cond); color: var(--morado); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Estructura ---------- */
.main { padding: 50px 0 60px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 34px; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.layout-sidebar .sidebar { min-width: 240px; }

/* Bloques destacados */
.featured-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.featured-block { position: relative; display: block; padding: 6px; background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); transition: transform .2s, box-shadow .2s; }
.featured-block img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; display: block; }
.featured-block strong { position: absolute; left: -6px; bottom: 30px; background: var(--morado); color: #fff; padding: 7px 30px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: background-color .2s; }
.featured-block .more { position: absolute; right: 16px; bottom: 16px; color: #fff; font: 700 .7rem var(--cond); text-transform: uppercase; letter-spacing: .14em; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.featured-block:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.featured-block:hover strong { background: var(--azul); }
.featured-block:hover .more { opacity: 1; }

/* Listados */
.listing { margin-bottom: 38px; }
.listing-header { border-bottom: 1px solid var(--borde); box-shadow: 0 3px 0 var(--crema); margin-bottom: 0; }
.listing-header h3 { font-size: 1.45rem; margin: 0; padding-bottom: 16px; }
.listing-cont { list-style: none; margin: 0; padding: 0; }
.listing-cont > .item { border-bottom: 1px solid var(--borde); padding: 14px 0; }

.event-item { display: flex; align-items: center; gap: 16px; }
.event-date { flex: 0 0 48px; text-align: center; color: var(--titulo); }
.event-date .date { display: block; font: 700 2rem/1 var(--cond); }
.event-date .month { display: block; font: 700 .7rem var(--cond); text-transform: uppercase; letter-spacing: .2em; color: var(--suave); }
.event-date--vacia { font-size: 1.5rem; color: #c8c4ba; }
.event-detail { flex: 1; min-width: 0; }
.event-detail h4 { margin: 0; font-size: 1.05rem; }
.event-detail h4 a { color: var(--azul); }
.event-detail h4 a:hover { color: var(--morado); }

.post-listing .item.post { display: flex; gap: 24px; padding: 22px 0; }
.post-thumb { flex: 0 0 200px; }
.post-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; padding: 5px; background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); transition: opacity .2s; }
.post-thumb:hover img { opacity: .85; }
.post-body { flex: 1; min-width: 0; }
.post-body h2 { font-size: 1.15rem; margin: 0 0 4px; }
.post-body h2 a, .post-body h5 a { color: #4a4a4a; }
.post-body h2 a:hover, .post-body h5 a:hover { color: var(--azul); }
.post-body p { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f0eee8; font-size: .93rem; }
.post-listing--mini .item.post { gap: 12px; padding: 14px 0; }
.post-listing--mini .post-thumb { flex-basis: 68px; }
.post-listing--mini .post-thumb img { aspect-ratio: 1; padding: 3px; }
.post-listing--mini h5 { font-weight: 400; font-size: .9rem; margin: 0 0 4px; }
.thumb-vacia { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); }
.thumb-vacia img { width: 36px !important; height: auto !important; aspect-ratio: auto !important; padding: 0 !important; border: 0 !important; background: none !important; opacity: .5; }

/* En qué creemos */
.creemos .item { border: 0; padding: 0; margin-top: 22px; }
.creemos a { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 30px 26px 26px; background: var(--crema); border-radius: var(--radio); transition: background-color .2s, transform .2s; }
.creemos a::after { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 20px 20px 0; border-color: #fff #fff var(--crema-2) var(--crema-2); }
.creemos a:hover { background: var(--crema-2); transform: translateX(4px); }
.creemos img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.creemos h4 { margin: 0; color: var(--azul); font: 700 .95rem/1.5 var(--cond); text-transform: uppercase; letter-spacing: .14em; }

/* Franja de galería */
.featured-gallery { background: var(--morado); padding: 46px 0; color: #fff; }
.featured-gallery__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; align-items: center; }
.featured-gallery h4 { color: #fff; font: 700 .95rem/1.6 var(--cond); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; }
.featured-gallery__intro .btn { margin: 0 4px 6px 0; }
.featured-gallery__item { position: relative; display: block; border-radius: var(--radio); overflow: hidden; background: #000; }
.featured-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .35s, opacity .35s; }
.featured-gallery__item:hover img { transform: scale(1.06); opacity: .7; }
.featured-gallery__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.media-box { position: relative; display: block; }
.media-box__play { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--morado); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.grid-item--video .media-box__play, a:hover > .media-box__play { opacity: 1; }

/* ---------- Páginas interiores ---------- */
.nav-backed-header { position: relative; background: #2a2340 center / cover no-repeat; padding: 86px 0 34px; }
.nav-backed-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20, 15, 35, .35), rgba(20, 15, 35, .6)); }
.nav-backed-header .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: #fff; font-size: .9rem; }
.breadcrumb li + li::before { content: '/'; margin: 0 .7em; opacity: .7; }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-header { background: var(--crema); border-bottom: 1px solid var(--borde); padding: 20px 0; }
.page-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-header h1 { margin: 0; color: var(--azul); font: 400 2.2rem/1.15 var(--cond); text-transform: uppercase; }

.single-post-header { margin-bottom: 22px; }
.post-title { font-size: 1.7rem; margin-bottom: 6px; }
.entrada__img { margin: 0 0 26px; }
.entrada__img img { width: 100%; border-radius: var(--radio); }
.post-content { overflow-wrap: break-word; }
.post-content::after, .entrada::after { content: ''; display: block; clear: both; }
.post-content h2 { font-size: 1.5rem; margin-top: 1.2em; }
.post-content > h2:first-child, .post-content > div:first-child h2 { margin-top: 0; }
.post-content h3 { margin-top: 1.4em; }
.post-content h4 { font-weight: 700; margin-top: 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content iframe { display: block; width: 100%; border: 0; border-radius: var(--radio); }
.post-content .wp-block-embed, .post-content p > iframe { margin-bottom: 1.4em; }
.wp-block-embed__wrapper, .entrada .post-content > p:first-child:has(iframe) { position: relative; }
.wp-embed-aspect-16-9 iframe, .single-video .post-content iframe { aspect-ratio: 16 / 9; height: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; } .alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; } .wp-caption-text, figcaption { font-size: .85rem; color: var(--suave); text-align: center; padding-top: 6px; }

.panel { border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: 26px; overflow: hidden; max-width: 560px; }
.panel-title { background: var(--crema); margin: 0; padding: 12px 18px; font: 700 .85rem var(--cond); text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--borde); }
.info-table { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.info-table li { padding: 10px 18px; border-top: 1px solid #f0eee8; display: flex; gap: 10px; align-items: baseline; }
.info-table li:first-child { border-top: 0; }
.info-table .fa { color: var(--morado); width: 16px; text-align: center; flex: none; }

.post-meta { margin-top: 26px; padding: 12px 16px; background: var(--crema); border-radius: var(--radio); font-size: .9rem; }
.compartir { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--borde); }
.compartir__t { font-weight: 700; color: var(--titulo); margin-right: 8px; }
.compartir__b { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d4d0c7; border-radius: var(--radio); color: var(--morado); font-size: 1.1rem; }
.compartir__b:hover { background: var(--morado); border-color: var(--morado); color: #fff; }

.subpaginas { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.subpaginas a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; background: var(--crema); border-left: 3px solid var(--morado); border-radius: var(--radio); color: var(--titulo); font: 700 .95rem var(--cond); text-transform: uppercase; letter-spacing: .08em; }
.subpaginas a:hover { background: var(--crema-2); color: var(--azul); border-color: var(--azul); }

/* ---------- Cuadrícula de tarjetas ---------- */
.grid-holder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.grid-item-inner { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.grid-holder .grid-item-inner:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 34px rgba(40, 30, 60, .14); }
.grid-item .media-box img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.grid-item .thumb-vacia { border: 0; border-radius: 0; }
.grid-content { padding: 20px 22px; flex: 1; }
.grid-content h3 { font-size: 1.12rem; margin-bottom: 6px; }
.grid-content h3 a { color: var(--titulo); }
.grid-content h3 a:hover { color: var(--azul); }
.grid-content p { font-size: .92rem; margin: 10px 0 0; }
.grid-item .info-table { border-top: 1px solid var(--borde); background: #fcfbf9; }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d4d0c7; border-radius: var(--radio); color: var(--titulo); font-weight: 500; }
.page-numbers.current, a.page-numbers:hover { background: var(--morado); border-color: var(--morado); color: #fff; }
.vacio { text-align: center; padding: 50px 20px; max-width: 520px; margin: 0 auto; }
.vacio > .fa { font-size: 3rem; color: #cfcbc2; margin-bottom: 14px; }
.vacio .buscador { margin: 0 auto 20px; }

/* ---------- Galería de fotos (shortcode nativo) + visor ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item a { display: block; overflow: hidden; border-radius: var(--radio); background: #000; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .35s, opacity .35s; }
.gallery-item a:hover img { transform: scale(1.06); opacity: .8; }
.icq-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 10, 25, .93); display: flex; align-items: center; justify-content: center; padding: 50px 60px; }
.icq-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radio); box-shadow: 0 10px 50px rgba(0, 0, 0, .6); }
.icq-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; cursor: pointer; }
.icq-lightbox button:hover { background: rgba(255, 255, 255, .28); }
.icq-lightbox .lb-x { top: 16px; right: 16px; } .icq-lightbox .lb-p { left: 10px; top: 50%; margin-top: -23px; } .icq-lightbox .lb-n { right: 10px; top: 50%; margin-top: -23px; }

/* ---------- Lectura del día ---------- */
.lectura { background: var(--crema); border-left: 4px solid var(--morado); border-radius: var(--radio); padding: 20px 24px; margin: 0 0 1.4em; }
.lectura__fecha { font: 700 .8rem var(--cond); text-transform: uppercase; letter-spacing: .16em; color: var(--suave); margin-bottom: 6px; }
.lectura__lista { list-style: none; padding: 0; margin: 0 0 14px; font-size: 1.15rem; color: var(--titulo); }
.lectura__nota { font: italic .95rem Volkhov, Georgia, serif; margin: 0 0 10px; }
.lectura p:last-child { margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--crema); border-top: 1px solid var(--borde); padding: 46px 0 30px; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-widget-title { font: 700 .85rem var(--cond); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 20px; }
.footer-lema { margin: 18px 0 0; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul:not(.footer-datos) li { border-bottom: 1px solid var(--borde); }
.footer-widget ul:not(.footer-datos) a { display: block; padding: 8px 0; color: var(--texto); }
.footer-widget ul:not(.footer-datos) a:hover { color: var(--azul); padding-left: 5px; }
.footer-datos li { display: flex; gap: 12px; margin-bottom: 12px; }
.footer-datos .fa { color: var(--morado); width: 16px; text-align: center; margin-top: 5px; flex: none; }
.site-footer-bottom { background: var(--crema-2); padding: 18px 0; font-size: .82rem; }
.footer-bottom__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer-bottom p { margin: 0; }
.social-icons { display: flex; gap: 6px; }
.social-icons a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--morado); color: #fff; font-size: .85rem; }
.social-icons a:hover { background: var(--azul); color: #fff; }
#back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 42px; height: 42px; border-radius: var(--radio); background: var(--morado); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: all .2s; }
#back-to-top.is-visible { opacity: .9; visibility: visible; }
#back-to-top:hover { opacity: 1; background: var(--azul); }

/* ---------- Compatibilidad con el contenido migrado (clases del sitio anterior) ---------- */
.post-content .row { margin: 0 -12px; }
.post-content .row::after, .post-content [class*='col-']::after, .clearfix::after { content: ''; display: block; clear: both; }
.post-content [class*='col-'] { float: left; width: 100%; padding: 0 12px; min-height: 1px; }
.spacer-20 { height: 20px; } .spacer-30 { height: 30px; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.text-center { text-align: center; }
.post-content .grid-item { margin-bottom: 24px; }
.post-content .staff-item .media-box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-content .staff-item .grid-content h3 { margin-top: 0; font-size: 1.35rem; }
.post-content .staff-item .social-icons { margin-bottom: 14px; }
.post-content .staff-item .grid-content p { margin: 0; }
.post-content .col-md-6 > .col-sm-4 img, .post-content .col-md-6 > .col-md-3 img { width: 56px; margin: 6px auto 12px; display: block; }
.post-content h5[style*='center'] { text-align: left !important; color: var(--azul); font: 700 .95rem var(--cond); text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 600px) {
	.post-content .col-sm-3 { width: 25%; } .post-content .col-sm-4 { width: 33.333%; } .post-content .col-sm-6 { width: 50%; }
	.post-content .col-sm-8 { width: 66.666%; } .post-content .col-sm-9 { width: 75%; } .post-content .col-sm-12 { width: 100%; }
}
@media (min-width: 900px) {
	.post-content .col-md-3 { width: 25%; } .post-content .col-md-4 { width: 33.333%; } .post-content .col-md-6 { width: 50%; }
	.post-content .col-md-8 { width: 66.666%; } .post-content .col-md-9 { width: 75%; } .post-content .col-md-12 { width: 100%; }
}

/* ---------- Adaptable ---------- */
@media (max-width: 1000px) {
	.notice-bar__in { grid-template-columns: auto 1fr; gap: 18px 24px; }
	.notice-bar__in > .btn { justify-self: start; }
	.layout-sidebar { grid-template-columns: 1fr; }
	.layout-sidebar .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 34px; }
	.grid-holder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.featured-gallery__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.top-navigation { display: none; }
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.topbar__in { min-height: 66px; }
	.main-menu-wrapper .container { padding: 0; }
	.navigation { display: none; border-radius: 0; border-left: 0; border-right: 0; max-height: calc(100vh - 66px); overflow-y: auto; background: #fff; }
	.navigation.is-open { display: block; }
	.sf-menu { display: block; }
	.sf-menu > li > a { line-height: 48px; padding: 0 20px; border-bottom: 1px solid #f1efea; }
	.sf-menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: var(--crema); }
	.sf-menu ul a { padding-left: 38px; }
	.sf-menu ul a:hover { padding-left: 42px; }
	.nav-backed-header { padding: 34px 0 26px; }
	.home-cols { grid-template-columns: 1fr; gap: 10px; }
	.creemos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-cols > :first-child { grid-column: 1 / -1; }
	.page-header h1 { font-size: 1.8rem; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.main { padding: 34px 0 44px; }
	.featured-blocks { grid-template-columns: 1fr; gap: 20px; }
	.featured-block strong { bottom: 22px; }
	.notice-bar__in { grid-template-columns: 1fr; text-align: left; }
	.grid-holder, .creemos, .footer-cols, .gallery { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-listing:not(.post-listing--mini) .item.post { flex-direction: column; gap: 14px; }
	.post-listing:not(.post-listing--mini) .post-thumb { flex-basis: auto; }
	.event-item .btn { display: none; }
	.page-header__in { flex-direction: column; align-items: flex-start; }
	.compartir { justify-content: flex-start; flex-wrap: wrap; }
	.icq-lightbox { padding: 60px 10px; }
	.footer-bottom__in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .site-footer-bottom, .sidebar, .no-print, #back-to-top, .nav-backed-header { display: none !important; }
	.layout-sidebar { display: block; }
}
