/*
 Theme Name:   JCP Photography (Hello Elementor Child)
 Theme URI:    https://jcpphotography.com
 Description:  Child theme of Hello Elementor for JCP Photography. Built by Digital Checkmark on the wp-base-digitalchk kit.
 Author:       Digital Checkmark
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ============================================================================
   Que hay aqui y que NO
   ============================================================================
   Solo lo que Elementor gratis no puede hacer: la cabecera y el pie (tema),
   el selector de idioma, el 404, el blog y los ajustes de Bit Form y Popup Maker.
   Colores y tipografias de las paginas viven en Elementor > Ajustes del sitio
   (globales, desde tokens.json). Las variables de abajo son los MISMOS valores
   para que cabecera y pie hagan juego: si cambia un token, se cambia aqui tambien.
   Origen: tema hijo de Superior (sept-2026), sin colores ni textos de Superior. */

:root {
	--dk-marca:          #D08A5F;   /* tokens: accent. Acentos grandes, lineas, iconos */
	--dk-primario:       #AC613A;   /* tokens: primary. Botones con texto blanco (>= 4,5:1) */
	--dk-primario-hover: #8A4D2E;   /* el primario un 20 % mas oscuro */
	--dk-oscuro:         #000000;   /* tokens: dark */
	--dk-oscuro-2:       #1C1C1C;   /* tokens: dark2 */
	--dk-barra:          #000000;   /* barra de utilidad, un punto mas oscura que la cabecera */
	--dk-texto:          #1A1A1A;   /* tokens: text */
	--dk-gris:           #5E5E5E;   /* tokens: muted */
	--dk-linea:          #DADAD7;   /* tokens: line */
	--dk-alterno:        #EFEFED;   /* tokens: alt */
	--dk-resalte:        #3F5B3A;   /* tokens: highlight. Foco del teclado y un solo detalle */
	--dk-titulos:        "Bricolage Grotesque", system-ui, sans-serif;   /* tokens: tipos disp/h/h3 */
	--dk-cuerpo:         "Bricolage Grotesque", system-ui, sans-serif;   /* tokens: tipo body */
}

html { scroll-padding-top: 96px; }
body { font-family: var(--dk-cuerpo); color: var(--dk-texto); }

.dk-caja { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* foco visible en todo el sitio (teclado) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--dk-resalte);
	outline-offset: 2px;
}

/* Salto al contenido (lo imprime el tema padre) */
.skip-link.screen-reader-text:focus { background: #FFFFFF; color: var(--dk-oscuro); z-index: 1000; }

/* ------------------------------------------------------------ botones */
.dk-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--dk-cuerpo);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	padding: 14px 26px;
	border-radius: 4px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dk-btn--primario { background: var(--dk-primario); color: #FFFFFF; }
.dk-btn--primario:hover { background: var(--dk-primario-hover); color: #FFFFFF; }
.dk-btn--linea { border-color: rgb(255 255 255 / .55); color: #FFFFFF; }
.dk-btn--linea:hover { background: #FFFFFF; color: var(--dk-oscuro); }
.dk-btn--oscuro { border-color: var(--dk-oscuro); color: var(--dk-oscuro); }
.dk-btn--oscuro:hover { background: var(--dk-oscuro); color: #FFFFFF; }

/* ------------------------------------------------- barra de utilidad */
.dk-topbar {
	background: var(--dk-barra);
	color: rgb(255 255 255 / .78);
	font-size: 14px;
	line-height: 1;
}
.dk-topbar__in {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 40px;
}
.dk-topbar__tel {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: .01em;
}
.dk-topbar__tel svg { color: var(--dk-marca); }
.dk-topbar__tel:hover { color: var(--dk-resalte); }
.dk-topbar__lic { flex: 1 1 auto; }

.dk-langs { display: inline-flex; border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; overflow: hidden; }
.dk-lang {
	color: rgb(255 255 255 / .75);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	padding: 6px 10px;
}
.dk-lang abbr { text-decoration: none; cursor: inherit; }
.dk-lang:hover { color: #FFFFFF; background: rgb(255 255 255 / .1); }
.dk-lang--actual { background: #FFFFFF; color: var(--dk-oscuro); }
.dk-lang--actual:hover { background: #FFFFFF; color: var(--dk-oscuro); }

@media (max-width: 767px) {
	.dk-topbar__lic { display: none; }
	.dk-topbar__in { justify-content: space-between; }
}

/* ------------------------------------------------------------ cabecera */
.site-header {
	background: var(--dk-oscuro);
	border-bottom: 3px solid var(--dk-marca);
	padding-block: 0;
	z-index: 200;
}
#site-header.site-header { position: sticky; top: 0; padding-block: 0; }
#site-header.site-header .header-inner,
.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1200px;
	width: 100%;
	margin-inline: auto;
	padding: 14px 24px;
	transition: padding .22s ease;
}
.site-header .site-branding { flex: 0 0 auto; }
.site-header .site-branding img { max-height: 58px; width: auto; display: block; transition: max-height .22s ease; }
#site-header.site-header.dchk-compacta .header-inner { padding-block: 8px; }
#site-header.site-header.dchk-compacta .site-branding img { max-height: 42px; }

.site-header .site-navigation { flex: 1 1 auto; }
.site-header .site-navigation ul.menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--dk-titulos);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .01em;
}
.site-header .site-navigation ul.menu li { display: flex; position: relative; }
.site-header .site-navigation a {
	color: rgb(255 255 255 / .88);
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
}
.site-header .site-navigation a:hover { color: #FFFFFF; border-bottom-color: var(--dk-marca); }
.site-header .site-navigation .current-menu-item > a,
.site-header .site-navigation .current-menu-ancestor > a { color: #FFFFFF; border-bottom-color: var(--dk-marca); }

/* Elemento del menu con clase menu-cta: boton primario */
.site-header .site-navigation .menu-cta > a {
	background: var(--dk-primario);
	color: #FFFFFF;
	border: 0;
	border-radius: 4px;
	padding: 11px 20px;
	font-family: var(--dk-cuerpo);
	font-size: 15px;
}
.site-header .site-navigation .menu-cta > a:hover { background: var(--dk-primario-hover); }
.site-header .menu-cta::after { display: none !important; }

/* submenus */
.site-header .site-navigation ul.menu li.menu-item-has-children { padding-inline-end: 14px; }
.site-header .site-navigation ul.menu li.menu-item-has-children::after { color: rgb(255 255 255 / .6); font-size: .7em; transition: transform .18s ease; }
.site-header .site-navigation ul.menu li.menu-item-has-children.itr-abierto::after { transform: rotate(180deg); }
.site-header .site-navigation ul.menu li ul {
	display: block;
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 80;
	min-width: 260px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #FFFFFF;
	border-top: 3px solid var(--dk-marca);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 18px 40px rgb(0 0 0 / .2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-.3rem);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	font-family: var(--dk-cuerpo);
	font-size: 16px;
	font-weight: 500;
}
.site-header .site-navigation ul.menu li ul li { display: block; }
.site-header .site-navigation ul.menu li ul a {
	display: block;
	white-space: nowrap;
	padding: 10px 14px;
	border-radius: 4px;
	border: 0;
	color: var(--dk-texto);
}
.site-header .site-navigation ul.menu li ul a:hover { background: var(--dk-alterno); color: var(--dk-primario); }
.site-header .site-navigation ul.menu li.menu-item-has-children.itr-abierto > ul,
.site-header .site-navigation ul.menu li.menu-item-has-children:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
	.site-header .site-navigation ul.menu li.menu-item-has-children:hover > ul { opacity: 1; visibility: visible; transform: none; }
}

/* boton movil y desplegable */
.site-header .site-navigation-toggle-holder { display: none; }
.site-header .site-navigation-toggle {
	background: transparent;
	border: 2px solid rgb(255 255 255 / .35);
	border-radius: 4px;
	padding: 10px;
	color: #FFFFFF;
}

@media (max-width: 1024px) {
	#site-header.site-header .site-navigation { display: none !important; }
	#site-header.site-header .site-navigation-toggle-holder { display: flex !important; }
	.site-header .site-branding img { max-height: 46px; }
}
.site-navigation-dropdown ul.menu { background: #FFFFFF; }
.site-navigation-dropdown ul.menu li a {
	text-decoration: none;
	color: var(--dk-texto);
	background: #FFFFFF;
	box-shadow: inset 0 -1px 0 var(--dk-linea);
	font-weight: 600;
	padding: 16px 24px;
}
.site-navigation-dropdown ul.menu li.current-menu-item > a { background: var(--dk-alterno); color: var(--dk-primario); }
.site-navigation-dropdown ul.sub-menu,
.site-navigation-dropdown ul.menu li ul { display: none; margin: 0; padding-left: 16px; list-style: none; border-left: 3px solid var(--dk-marca); }
.site-navigation-dropdown .menu-item-has-children.itr-abierto > ul { display: block; }
.site-navigation-dropdown .menu-cta > a { color: var(--dk-primario); }

@media (prefers-reduced-motion: reduce) {
	.site-header .header-inner,
	.site-header .site-branding img,
	.site-header .site-navigation ul.menu li ul,
	.site-header .site-navigation ul.menu li.menu-item-has-children::after { transition: none; }
}

/* ------------------------------------------------------------ pie */
.dk-pie { background: var(--dk-oscuro); color: rgb(255 255 255 / .74); font-size: 16px; }
.dk-pie a { color: rgb(255 255 255 / .86); text-decoration: none; }
.dk-pie a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.dk-pie__cta { background: var(--dk-primario); color: #FFFFFF; }
.dk-pie__cta-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	flex-wrap: wrap;
	padding-block: 40px;
}
.dk-pie .dk-pie__cta-tit {
	font-family: var(--dk-titulos);
	font-weight: 700;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.1;
	color: #FFFFFF;
	margin: 0 0 6px;
	max-width: 640px;
}
.dk-pie__cta-sub { margin: 0; color: rgb(255 255 255 / .9); }
.dk-pie__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dk-pie__cta .dk-btn--primario { background: #FFFFFF; color: var(--dk-primario); }
.dk-pie__cta .dk-btn--primario:hover { background: var(--dk-oscuro); color: #FFFFFF; text-decoration: none; }
/* Boton "Call" de la franja del pie: ".dk-pie a:hover" (0,2,1) ganaba a ".dk-btn--linea:hover" (0,2,0) y dejaba el texto
   blanco sobre el fondo blanco del hover; en el celular el hover se queda pegado tras tocarlo (The Retreat, 12-oct-2026) */
.dk-pie__cta .dk-btn--linea:hover,
.dk-pie__cta .dk-btn--linea:focus-visible { background: #FFFFFF; color: var(--dk-oscuro); text-decoration: none; }

.dk-pie__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-block: 56px 40px;
}
.dk-pie__logo { width: 200px; height: auto; margin-bottom: 18px; }
.dk-pie__col p { margin: 0 0 14px; line-height: 1.6; }
.dk-pie .dk-pie__h {
	font-family: var(--dk-titulos);
	font-weight: 600;
	font-size: 20px;
	color: #FFFFFF;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--dk-marca);
	display: inline-block;
}
.dk-pie__col ul { list-style: none; margin: 0; padding: 0; }
.dk-pie__col li { margin-bottom: 10px; }
.dk-pie__lic strong { color: #FFFFFF; letter-spacing: .03em; }
.dk-pie__dir { font-style: normal; line-height: 1.6; margin: 0 0 14px; }
.dk-pie__tel { font-family: var(--dk-titulos); font-size: 24px; font-weight: 700; color: #FFFFFF !important; }
.dk-pie__social { display: inline-flex; align-items: center; gap: 8px; }

.dk-pie__base { border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }
.dk-pie__base-in { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 18px; }

@media (max-width: 960px) { .dk-pie__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dk-pie__cols { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------ 404 */
.dk-404 { min-height: 56vh; display: flex; align-items: center; padding: 72px 24px; }
.dk-404__in { max-width: 640px; margin-inline: auto; }
.dk-404__codigo {
	display: inline-block;
	font-family: var(--dk-titulos);
	font-weight: 600;
	letter-spacing: .08em;
	background: var(--dk-alterno);
	color: var(--dk-primario);
	padding: 6px 12px;
	border-radius: 3px;
	margin: 0 0 18px;
}
.dk-404 h1 { font-family: var(--dk-titulos); font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; color: var(--dk-oscuro); }
.dk-404__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* La pagina sin titulo de Hello (todo es Elementor) y sin desborde lateral en movil */
.page-header .entry-title { box-sizing: border-box; }
main.site-main { box-sizing: border-box !important; margin-left: auto !important; margin-right: auto !important; }

/* Aviso de idioma (mu-plugin dchk-sugerencia-idioma). Aqui el resalte es oscuro: texto blanco, no --dk-oscuro */
.dchk-idioma {
	display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap;
	padding: 10px 16px; background: var(--dk-resalte); color: #FFFFFF; font-size: 15px;
}
.dchk-idioma__txt { margin: 0; font-weight: 500; }
.dchk-idioma__acciones { display: flex; gap: 10px; align-items: center; }
.dchk-idioma__si { background: var(--dk-oscuro); color: #FFFFFF !important; border-radius: 4px; padding: 6px 16px; font-weight: 600; text-decoration: none; }
.dchk-idioma button.dchk-idioma__no {
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	color: #FFFFFF !important; text-decoration: underline; cursor: pointer;
	font: inherit !important; padding: 5px 4px !important; text-transform: none !important;
}

/* ------------------------------------------------ ayudas de las paginas */
/* Iconos pixel art (si el diseno los usa): que no se suavicen al escalar */
.dk-pixel img { image-rendering: pixelated; }
.dk-grid .elementor-image-box-title a { color: inherit; text-decoration: none; }
.dk-grid .elementor-image-box-title a:hover { color: var(--dk-primario); }
/* Pasos del proceso: linea superior que une los pasos */
.dk-step { border-top: 3px solid var(--dk-linea); }
.dk-step:first-child { border-top-color: var(--dk-marca); }
/* Logos de marcas: misma altura visual */
.dk-logo img { max-height: 56px; width: auto !important; object-fit: contain; }
/* Pie de foto */
.elementor-widget-image .widget-image-caption { font-size: 14px; color: var(--dk-gris); margin-top: 10px; }

/* ------------------------------------------------------------ blog */
.dk-blog__hero { background: var(--dk-oscuro); color: #FFFFFF; padding: 80px 0 72px; }
.dk-blog__hero h1 { font-family: var(--dk-titulos); font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; color: #FFFFFF; margin: 0 0 16px; max-width: 900px; }
.dk-blog__hero p { font-size: 20px; line-height: 1.5; color: rgb(255 255 255 / .86); margin: 0; max-width: 720px; }
.dk-blog__hero .dk-blog__meta { font-size: 15px; margin: 0 0 14px; }
.dk-blog__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--dk-gris); margin: 0 0 10px; }
.dk-blog__hero .dk-blog__meta { color: rgb(255 255 255 / .7); }
.dk-blog__cat { font-weight: 600; color: var(--dk-primario); text-decoration: none; }
.dk-blog__hero .dk-blog__cat { color: var(--dk-resalte); }
.dk-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 72px 32px; }
.dk-blog__card { background: #FFFFFF; border: 1px solid var(--dk-linea); border-top: 3px solid var(--dk-marca); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.dk-blog__img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.dk-blog__body { padding: 22px 24px 26px; }
.dk-blog__title { font-family: var(--dk-titulos); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 10px; }
.dk-blog__title a { color: var(--dk-oscuro); text-decoration: none; }
.dk-blog__title a:hover { color: var(--dk-primario); }
.dk-blog__excerpt { margin: 0; font-size: 16px; line-height: 1.55; color: var(--dk-texto); }
.dk-blog__pag { padding-bottom: 72px; }
.dk-blog__pag .nav-links { display: flex; gap: 12px; }
@media (max-width: 1024px) { .dk-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dk-blog__grid { grid-template-columns: 1fr; padding-block: 48px 24px; } .dk-blog__hero { padding: 56px 0 48px; } }

.dk-post__body { max-width: 808px; margin: 0 auto; padding: 56px 24px 72px; }
.dk-post__img { margin: 0 0 40px; }
.dk-post__img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.dk-post__content { font-size: 18px; line-height: 1.7; }
.dk-post__content h2 { font-family: var(--dk-titulos); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--dk-oscuro); margin: 44px 0 14px; }
.dk-post__content ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.dk-post__content li { margin-bottom: .5em; }
.dk-post__content a { color: var(--dk-primario); }
.dk-post__content .has-small-font-size { font-size: 14px; color: var(--dk-gris); border-top: 1px solid var(--dk-linea); padding-top: 16px; margin-top: 40px; }
.dk-post__back { margin: 40px 0 0; font-weight: 600; }
.dk-post__back a { color: var(--dk-oscuro); }
/* Blog: la cabecera grafito a todo el ancho (Hello limita .site-main al contenedor) */
main.site-main.dk-blog, main.site-main.dk-post { max-width: none; width: 100%; padding: 0; }
/* Movil: mismo margen lateral (16px) en cabecera, barra y contenido */
@media (max-width: 767px) {
	.dk-caja { padding-inline: 16px; }
	#site-header.site-header .header-inner { padding: 12px 16px; }
}
.site-navigation-dropdown ul.menu li.menu-cta > a { color: var(--dk-primario); font-weight: 700; }

/* ------------------------------------------- formularios (Bit Form) */
/* Bit Form trae azul por defecto en la barra de pasos y el foco: se pasan a la marca */
[class*="_frm-b"][class*="-progress-fill"] { background-color: var(--dk-primario) !important; }
[class*="_frm-b"] input:focus, [class*="_frm-b"] textarea:focus, [class*="_frm-b"] select:focus { border-color: var(--dk-oscuro) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dk-resalte) 35%, transparent) !important; }
[class*="_frm-b"] input[type="checkbox"]:checked, [class*="_frm-b"] input[type="radio"]:checked { accent-color: var(--dk-primario); }

/* ============================================================================
   JCP Photography (7-oct-2026): lo que Elementor gratis no hace. Plan en 04-nueva/DISENO.md.
   ============================================================================ */

/* El objetivo del logo como ventana: la foto de portada en un circulo con anillo terracota.
   Unica pieza circular de la web. Gira una vez al cargar (enfoque); quieto con reduced motion. */
.dk-lente { position: relative; width: min(calc(100% - 28px), 520px); margin-inline: auto; }   /* margen para los anillos exteriores */
.dk-lente img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
	border: clamp(14px, 2.6vw, 26px) solid var(--dk-primario); box-shadow: 0 0 0 clamp(6px, 1vw, 10px) #000, 0 0 0 calc(clamp(6px, 1vw, 10px) + 2px) var(--dk-marca); }
.dk-lente::after { content: ""; position: absolute; width: 8%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--dk-primario);
	top: 7.5%; left: 7.5%; box-shadow: inset 0 0 0 4px #000; }   /* sobre el anillo, como el punto del logo */
@media (prefers-reduced-motion: no-preference) {
	.dk-lente img { animation: dk-enfoque 0.7s cubic-bezier(.2,.7,.2,1) 0.15s both; }
	@keyframes dk-enfoque { from { transform: rotate(-28deg) scale(.94); filter: blur(6px); } to { transform: none; filter: none; } }
}
/* Pase de fotos del objetivo (13-oct-2026, Juan Carlos en BugSmash). El widget Imagen (la foto del LCP) y el widget HTML
   con las otras 3 se apilan en la misma celda; las 3 se piden tras "load" y el JS pone .dk-pase-on cuando han llegado.
   Sin JS o con reduced motion se queda la primera. 4 fotos, 6 s cada una (ciclo de 24 s): si cambia el numero, cambiar los retardos. */
.dk-pase { display: grid !important; }
.dk-pase > .elementor-element { grid-area: 1 / 1; width: 100%; }
.dk-pase__fotos { position: relative; width: 100%; aspect-ratio: 1 / 1; pointer-events: none; }
.dk-pase__fotos img { position: absolute; inset: 0; height: 100%; opacity: 0; animation: none; }
@media (prefers-reduced-motion: no-preference) {
	.dk-pase__fotos.dk-pase-on img { animation: dk-pase 24s linear infinite both; }
	.dk-pase__fotos.dk-pase-on img:nth-child(1) { animation-delay: 2s; }
	.dk-pase__fotos.dk-pase-on img:nth-child(2) { animation-delay: 8s; }
	.dk-pase__fotos.dk-pase-on img:nth-child(3) { animation-name: dk-pase-fin; animation-delay: 14s; }
	/* Entra en 1,2 s y se corta cuando la siguiente ya la tapa; la ultima se funde para descubrir la primera */
	@keyframes dk-pase { 0% { opacity: 0; } 5% { opacity: 1; } 30% { opacity: 1; } 30.01% { opacity: 0; } 100% { opacity: 0; } }
	@keyframes dk-pase-fin { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
}
/* Eslogan bajo el titular de portada ("Building Memories" / "Construyendo Memorias") */
.dk-lema { margin-top: -10px; }
.dk-lema p { margin: 0; }

/* Fotos de contenido: esquinas rectas, sin sombra */
.dk-foto img, .dk-galeria img, .elementor-image-gallery img { border-radius: 0 !important; box-shadow: none !important; }
/* Galerias: rejilla real (la galeria de WordPress flota y en el celular quedaba a 1 columna) */
.elementor-image-gallery .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 !important; }
.elementor-image-gallery .gallery br { display: none; }
.elementor-image-gallery .gallery-item { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; }
.elementor-image-gallery .gallery-item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; display: block; }
.elementor-image-gallery .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.elementor-image-gallery .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.elementor-image-gallery .gallery-columns-1 { grid-template-columns: 1fr; }
/* Galerias de fotos apaisadas (8-oct): 3:2 en vez de 4:5, para no cortar gente por los lados */
.dk-gal-h .elementor-image-gallery .gallery-item img, .dk-gal-h.elementor-widget-image-gallery .gallery-item img { aspect-ratio: 3 / 2; }
/* Dos fotos verticales a todo el ancho quedaban de 750 px de alto: se limitan como si fueran tres columnas */
.elementor-widget-image-gallery:not(.dk-gal-h) .gallery-columns-2 { max-width: 800px; }
@media (max-width: 767px) {
	.elementor-image-gallery .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	/* Numero impar de fotos: la primera a lo ancho, para no dejar una sola en la ultima fila */
	.elementor-image-gallery .gallery-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
	.elementor-image-gallery .gallery-item:first-child:nth-last-child(odd) img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
}

/* Fotos sueltas verticales: como mucho 640 px de alto (8-oct; la del arbol en casa ocupaba 800) */
.dk-foto img { max-height: 640px; object-fit: cover; width: 100%; }

/* Filas de sesiones: misma proporcion para todas (el collage vertical ocupaba tres pantallas) */
.dk-fila .dk-foto img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 8%; width: 100%; height: auto; }

/* Resenas literales */
.dk-resena { margin: 0; border-left: 3px solid var(--dk-primario); padding-left: 20px; }
.dk-resena p { font-size: 1.3rem; line-height: 1.4; margin: 0 0 10px; color: var(--dk-oscuro); }
.dk-resena footer { font-size: .95rem; color: var(--dk-gris); }
.dk-cita .dk-resena p { font-size: 1.5rem; }

/* Mientras gira, el cuadrado rotado de la imagen asoma por los lados: se recorta solo en horizontal
   (clip no crea barra de scroll ni corta los anillos arriba y abajo). Lo detecto qa.mjs a 390 px. */
.dk-hero { overflow-x: clip; }
