/* ==========================================================================
   A la Lluna Circ — estilos del tema
   Paleta del logo: magenta #c0087f · morado #951b81 · noche #662483 · oro #f9b000
   Tipografía: Myriad Pro (si está instalada) o Source Sans 3 (alojada en el tema).
   ========================================================================== */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/ss3-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/ss3-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/ss3-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
	--magenta: #c0087f;
	--morado: #951b81;
	--noche: #662483;
	--noche-2: #4a1762;
	--oro: #f9b000;
	--crema: #fff7e8;
	--tinta: #3b1a4a;
	--tinta-suave: #6b4a78;
	--radio: 22px;
	--fuente: "Myriad Pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--rebote: cubic-bezier(.34, 1.56, .64, 1);
	--suave: cubic-bezier(.22, 1, .36, 1);
	--estrella: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3 7.5 8 .6-6.1 5.2 1.9 7.9L12 18l-6.8 4.2 1.9-7.9L1 9.1l8-.6z' fill='%23f9b000'/%3E%3C/svg%3E");
	--banderines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='44' viewBox='0 0 150 44'%3E%3Cpath d='M0 3 Q75 17 150 3' fill='none' stroke='%23662483' stroke-width='2'/%3E%3Cpath d='M10 6.4 L36 9.2 L21 34z' fill='%23c0087f'/%3E%3Cpath d='M48 10.2 L75 10.6 L61 37z' fill='%23f9b000'/%3E%3Cpath d='M87 10.4 L113 8.8 L99 35z' fill='%23951b81'/%3E%3Cpath d='M124 7.6 L146 4 L134 28z' fill='%23ffffff' stroke='%23c0087f' stroke-width='1.2'/%3E%3C/svg%3E");
	--confeti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg opacity='.16'%3E%3Ccircle cx='20' cy='30' r='4' fill='%23c0087f'/%3E%3Ccircle cx='150' cy='60' r='3' fill='%23f9b000'/%3E%3Crect x='90' y='120' width='8' height='4' rx='2' transform='rotate(30 94 122)' fill='%23951b81'/%3E%3Ccircle cx='190' cy='180' r='4' fill='%23662483'/%3E%3Crect x='40' y='170' width='9' height='4' rx='2' transform='rotate(-25 44 172)' fill='%23f9b000'/%3E%3Cpath d='M120 20l2 5 5 .4-4 3.4 1.3 5-4.3-2.7-4.3 2.7 1.3-5-4-3.4 5-.4z' fill='%23c0087f'/%3E%3Ccircle cx='70' cy='80' r='2.5' fill='%23c0087f'/%3E%3C/g%3E%3C/svg%3E");
	--festo-crema: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='26' viewBox='0 0 80 26'%3E%3Cpath d='M0 26v-6a20 20 0 0 1 40 0 20 20 0 0 1 40 0v6z' fill='%23fff7e8'/%3E%3C/svg%3E");
	--festo-noche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='26' viewBox='0 0 80 26'%3E%3Cpath d='M0 26v-6a20 20 0 0 1 40 0 20 20 0 0 1 40 0v6z' fill='%23662483'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.circo {
	margin: 0;
	font-family: var(--fuente);
	font-size: 17px;
	line-height: 1.6;
	color: var(--tinta);
	background: var(--crema) var(--confeti);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.circo img { max-width: 100%; height: auto; }
body.circo a { color: var(--morado); text-underline-offset: 3px; transition: color .25s ease; }
body.circo a:hover { color: var(--magenta); }
body.circo :focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
body.circo ::selection { background: var(--oro); color: var(--noche); }
.circo h1, .circo h2, .circo h3, .circo h4 { font-family: var(--fuente); color: var(--noche); line-height: 1.15; }

.circo-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.circo-saltar:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	width: auto; height: auto;
	clip: auto; margin: 0;
	padding: 12px 18px;
	background: var(--oro); color: var(--noche);
	z-index: 10000; border-radius: 12px;
	font-weight: 800;
}
.circo-icono { display: inline-block; vertical-align: middle; flex: none; }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.circo-topbar { background: var(--noche); color: #f3e6fb; font-size: 15px; position: relative; z-index: 31; }
.circo-topbar__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.circo-topbar__contacto { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; }
.circo-topbar__contacto a { display: inline-flex; align-items: center; gap: 7px; color: #f3e6fb !important; text-decoration: none; }
.circo-topbar__contacto a:hover { color: var(--oro) !important; }
.circo-topbar__contacto .circo-icono { color: var(--oro); width: 17px; height: 17px; }

.circo-redes { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.circo-red {
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.14);
	color: #fff !important;
	transition: transform .45s var(--rebote), background-color .25s ease, color .25s ease;
}
.circo-red:hover { background: var(--oro); color: var(--noche) !important; transform: translateY(-3px) rotate(-12deg) scale(1.12); }
.circo-redes--mini .circo-red { width: 30px; height: 30px; }
.circo-redes--mini .circo-icono { width: 16px; height: 16px; }
.circo-topbar__derecha { display: flex; align-items: center; gap: 14px; }
.circo-idiomas { display: flex; gap: 4px; margin: 0; padding: 3px; list-style: none; background: rgba(255,255,255,.08); border-radius: 999px; }
.circo-idiomas li { margin: 0; }
.circo-idiomas a { display: block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #f3e6fb !important; text-decoration: none; transition: background-color .2s, color .2s; }
.circo-idiomas a:hover { background: rgba(255,255,255,.14); }
.circo-idiomas a.is-actual { background: var(--oro); color: var(--noche) !important; }
.circo-idiomas a:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.circo-cabecera { position: relative; z-index: 30; background: var(--crema) var(--confeti); }
.circo-cabecera__fila { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding-top: 18px; padding-bottom: 14px; }
.circo-cabecera__logo { line-height: 0; }
.circo-logo, .custom-logo-link { display: inline-block; }
.circo-logo img, .custom-logo { width: min(78vw, 330px); height: auto; transform-origin: 50% 0; }

.circo-cielo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.circo-cielo .estrella { position: absolute; width: 16px; height: 16px; background: var(--estrella) center / contain no-repeat; }
.circo-cielo .luna { position: absolute; width: 54px; height: 54px; right: 6%; top: 18px; }

.circo-menu-boton {
	display: none;
	align-items: center; gap: 8px;
	padding: 10px 16px;
	border: 0; border-radius: 999px;
	background: var(--noche); color: #fff;
	font: 800 15px/1 var(--fuente);
	letter-spacing: .08em; text-transform: uppercase;
	cursor: pointer;
	transition: transform .4s var(--rebote), background-color .2s ease;
}
.circo-menu-boton:hover { background: var(--magenta); transform: rotate(-3deg) scale(1.05); }
.circo-menu-boton__cerrar { display: none; }
.circo-menu-boton[aria-expanded="true"] .circo-menu-boton__abrir { display: none; }
.circo-menu-boton[aria-expanded="true"] .circo-menu-boton__cerrar { display: inline; }

/* Menú */
.circo-nav { background: var(--noche); position: relative; z-index: 3; }
.circo-menu, .circo-menu ul { list-style: none; margin: 0; padding: 0; }
.circo-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 10px 0; }
.circo-menu > li { position: relative; display: flex; align-items: center; }
.circo-menu > li > a {
	display: block;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: #fff !important; text-decoration: none;
	transition: background-color .25s ease, color .25s ease, transform .45s var(--rebote);
}
.circo-menu > li:hover > a,
.circo-menu > li:focus-within > a,
.circo-menu > li.current-menu-item > a,
.circo-menu > li.current-menu-ancestor > a,
.circo-menu > li.current_page_item > a {
	background: var(--oro); color: var(--noche) !important;
	transform: translateY(-2px) rotate(-2deg);
}
.circo-submenu-boton {
	display: grid; place-items: center;
	width: 30px; height: 30px; margin-left: -10px;
	border: 0; border-radius: 50%;
	background: transparent; color: #fff; cursor: pointer;
	transition: transform .3s ease;
}
.circo-submenu-boton .circo-icono { width: 14px; height: 14px; }
.circo-submenu-boton[aria-expanded="true"] { transform: rotate(180deg); }
.circo-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 50%;
	width: 250px; margin-left: -125px; padding: 10px;
	background: #fff; border: 1px solid #ecdcf3; border-radius: 20px;
	box-shadow: 0 18px 40px -12px rgba(102,36,131,.45);
	opacity: 0; visibility: hidden;
	transform: translateY(-8px) scale(.9); transform-origin: 50% 0;
	transition: opacity .2s ease, transform .4s var(--rebote), visibility 0s .4s;
	z-index: 10;
}
.circo-menu > li:hover > .sub-menu,
.circo-menu > li:focus-within > .sub-menu,
.circo-menu > li.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .2s ease, transform .4s var(--rebote), visibility 0s;
}
.circo-menu .sub-menu a {
	display: block; padding: 9px 14px; border-radius: 12px;
	font-size: 14px; font-weight: 800; letter-spacing: .04em;
	color: var(--noche) !important; text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .3s var(--rebote);
}
.circo-menu .sub-menu a:hover, .circo-menu .sub-menu .current-menu-item > a { background: #fde9f4; color: var(--magenta) !important; transform: translateX(4px); }

.circo-banderines {
	position: absolute; left: 0; right: 0; top: 100%;
	height: 44px; pointer-events: none;
	background: var(--banderines) 0 0 / 150px 44px repeat-x;
	transform-origin: 50% 0; z-index: 4;
}

/* --------------------------------------------------------------------------
   Banda de título (páginas interiores)
   -------------------------------------------------------------------------- */
.circo-titulo-pagina {
	position: relative;
	padding: 84px 0 76px;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(249,176,0,.35), transparent 60%),
		repeating-linear-gradient(90deg, var(--magenta) 0 60px, var(--morado) 60px 120px);
	overflow: hidden;
}
.circo-titulo-pagina::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
	background: var(--festo-crema) 0 100% / 80px 26px repeat-x;
}
.circo-titulo-pagina h1 {
	margin: 0;
	font-size: clamp(34px, 6vw, 68px);
	font-weight: 900; line-height: 1.02; letter-spacing: .03em;
	color: #fff;
	text-shadow: 0 4px 0 var(--noche-2), 0 10px 24px rgba(0,0,0,.25);
	text-wrap: balance;
}
.circo-titulo-pagina__fecha { margin: 12px 0 0; display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 14px; }

/* --------------------------------------------------------------------------
   Contenido (bloques)
   -------------------------------------------------------------------------- */
.circo-main { display: block; outline: none; }
.circo-contenido { padding-bottom: 40px; }
.circo-contenido > :first-child:not(.circo-hero) { margin-top: 56px; }
.circo-seccion { padding-top: 26px; padding-bottom: 26px; }

.circo-contenido p { margin: 0 0 1em; }
.circo-contenido h2.wp-block-heading {
	display: table;
	margin: 26px auto 30px !important;
	padding: 12px 38px 14px;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05;
	color: #fff;
	background: var(--magenta);
	clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
	transform: rotate(-1.5deg);
	text-align: center;
	max-width: 100%;
}
.circo-contenido h2.wp-block-heading a { color: #fff !important; text-decoration: none; }
.circo-contenido .circo-seccion:nth-of-type(3n+2) h2.wp-block-heading { background: var(--noche); }
.circo-contenido .circo-seccion:nth-of-type(3n) h2.wp-block-heading { background: var(--oro); color: var(--noche); }
.circo-contenido .circo-seccion:nth-of-type(3n) h2.wp-block-heading a { color: var(--noche) !important; }
.circo-contenido h3.wp-block-heading { font-size: clamp(21px, 2.3vw, 26px); font-weight: 900; color: var(--noche); letter-spacing: .02em; margin: .6em 0 .4em; }
.circo-contenido h3.wp-block-heading a { color: inherit; text-decoration: none; }
.circo-contenido h3.wp-block-heading a:hover { color: var(--magenta); }

.circo-contenido .wp-block-list { padding-left: 0; list-style: none; }
.circo-contenido .wp-block-list li { position: relative; padding-left: 30px; margin: .3em 0; }
.circo-contenido .wp-block-list li::before {
	content: ""; position: absolute; left: 0; top: .32em;
	width: 18px; height: 18px;
	background: var(--estrella) center / contain no-repeat;
}

/* Imágenes sueltas */
.circo-contenido .wp-block-image img { border-radius: 18px; }
.circo-contenido .wp-block-image.size-large img, .circo-contenido .wp-block-image.size-full img { box-shadow: 0 22px 40px -22px rgba(59,26,74,.6); }

/* Galerías: fotos tipo polaroid que bailan */
.circo-contenido .wp-block-gallery.has-nested-images { gap: 18px; margin: 34px auto; }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image {
	background: #fff;
	padding: 8px;
	border-radius: 16px;
	box-shadow: 0 16px 30px -18px rgba(59,26,74,.6);
	transition: transform .5s var(--rebote), box-shadow .3s ease;
}
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 10px; box-shadow: none; }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(4n+1) { transform: rotate(-2deg); }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(4n+2) { transform: rotate(1.5deg); }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(4n+3) { transform: rotate(-1deg); }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(4n) { transform: rotate(2deg); }
.circo-contenido .wp-block-gallery.has-nested-images figure.wp-block-image:hover { transform: scale(1.06) rotate(0); box-shadow: 0 26px 40px -18px rgba(192,8,127,.55); z-index: 2; }

/* Vídeos */
.circo-contenido .wp-block-embed { margin: 20px auto 40px; max-width: 900px; }
.circo-contenido .wp-block-embed__wrapper {
	border-radius: 24px; overflow: hidden;
	box-shadow: 0 0 0 8px var(--oro), 0 30px 60px -24px rgba(59,26,74,.7);
}

/* Botones: entradas doradas */
.circo .wp-block-button__link, .circo .wp-element-button, .circo input[type="submit"] {
	position: relative; overflow: hidden;
	display: inline-block;
	padding: 15px 34px;
	font: 900 15px/1.2 var(--fuente);
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--noche) !important;
	background: var(--oro) !important;
	border: 0; border-radius: 999px;
	box-shadow: 0 10px 22px -8px rgba(249,176,0,.8);
	text-decoration: none; cursor: pointer;
	transition: transform .45s var(--rebote), background-color .2s ease, color .2s ease, box-shadow .3s ease;
}
.circo .wp-block-button__link:hover, .circo .wp-element-button:hover, .circo input[type="submit"]:hover {
	background: var(--magenta) !important; color: #fff !important;
	transform: translateY(-3px) rotate(-2deg) scale(1.05);
	box-shadow: 0 16px 28px -10px rgba(192,8,127,.7);
}
.circo .wp-block-button__link::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
	transform: skewX(-20deg); pointer-events: none;
}
.circo-contenido .wp-block-buttons { margin: 22px 0 10px; }

/* Redes dentro del contenido (página Contacte) */
.circo-contenido .wp-block-social-links { gap: 18px; margin: 30px 0; }
.circo-contenido .wp-block-social-links .wp-social-link {
	background: var(--noche) !important; color: #fff !important;
	transition: transform .45s var(--rebote), background-color .2s ease;
}
.circo-contenido .wp-block-social-links .wp-social-link:hover { transform: translateY(-6px) rotate(-10deg) scale(1.1); background: var(--magenta) !important; }

/* --------------------------------------------------------------------------
   Portada principal con bombillas de feria
   -------------------------------------------------------------------------- */
.circo-contenido .wp-block-cover.circo-hero {
	position: relative;
	min-height: min(78vh, 720px);
	border-radius: 0 0 48px 48px;
	overflow: hidden; isolation: isolate;
	box-shadow: 0 24px 50px -24px rgba(102,36,131,.6);
	padding: 60px 20px;
	margin-top: 0;
}
.circo-hero .wp-block-cover__background { background: radial-gradient(ellipse at center, rgba(59,26,74,.5), rgba(59,26,74,.2) 70%) !important; opacity: 1 !important; }
.circo-hero::before, .circo-hero::after {
	content: ""; position: absolute; inset: 14px;
	border-radius: 0 0 36px 36px; pointer-events: none; z-index: 2;
	--b: radial-gradient(circle, #fff9d6 0 3px, rgba(249,176,0,.85) 4px, rgba(249,176,0,0) 8px);
	background:
		var(--b) 0 0 / 30px 18px repeat-x,
		var(--b) 0 100% / 30px 18px repeat-x,
		var(--b) 0 0 / 18px 30px repeat-y,
		var(--b) 100% 0 / 18px 30px repeat-y;
}
.circo-hero::after { background-position: 15px 0, 15px 100%, 0 15px, 100% 15px; opacity: .25; }
.circo-hero .wp-block-cover__inner-container { position: relative; z-index: 3; color: #fff; }
.circo-hero h1.wp-block-heading {
	margin: 0 0 14px;
	font-size: clamp(50px, 9vw, 112px);
	font-weight: 900; line-height: .95; letter-spacing: .02em;
	color: var(--oro);
	text-shadow: 0 5px 0 var(--magenta), 0 12px 30px rgba(0,0,0,.45);
}
.circo-hero h1 + p { font-size: clamp(18px, 2.6vw, 28px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.5); margin-bottom: 8px; }
.circo-hero p { font-size: clamp(17px, 1.8vw, 22px); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.circo-letra { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   Entradas de circo (columnas de servicios)
   -------------------------------------------------------------------------- */
.circo-tickets .wp-block-columns { gap: 26px; }
.circo-tickets .wp-block-column {
	position: relative;
	padding: 30px 26px 24px;
	text-align: center;
	background: #fff;
	border-radius: var(--radio);
	box-shadow: 0 16px 34px -18px rgba(102,36,131,.45);
	transition: transform .5s var(--rebote), box-shadow .3s ease;
	-webkit-mask:
		radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask:
		radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.circo-tickets .wp-block-column:nth-child(1) { transform: rotate(-2deg); background: var(--magenta); }
.circo-tickets .wp-block-column:nth-child(2) { transform: rotate(1.5deg); background: #662483; }
.circo-tickets .wp-block-column:nth-child(3) { transform: rotate(-1deg); background: var(--oro); }
.circo-tickets .wp-block-column:hover { transform: translateY(-10px) rotate(0) scale(1.03); }
.circo-tickets h3.wp-block-heading,
.circo-tickets h3.wp-block-heading a { color: #fff !important; letter-spacing: .06em; }
.circo-tickets p { color: #fff; margin: 0; }
.circo-tickets .wp-block-column:nth-child(3) h3.wp-block-heading,
.circo-tickets .wp-block-column:nth-child(3) h3.wp-block-heading a { color: #662483 !important; }
.circo-tickets .wp-block-column:nth-child(3) p { color: #3b1a4a; }
.circo-tickets .wp-block-column a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.circo-tickets .circo-icono-ticket { display: block; box-sizing: content-box; width: 52px; height: 52px; padding: 14px; margin: 0 auto 10px; background: #fff; border-radius: 50%; }

/* --------------------------------------------------------------------------
   Carteles colgados (propuestas)
   -------------------------------------------------------------------------- */
.circo-contenido .tarjeta-propuesta { margin: 14px auto 6px; }
.circo-contenido .tarjeta-propuesta > a, .circo-contenido .tarjeta-propuesta > img {
	display: block; position: relative;
	padding: 12px 12px 14px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 34px -18px rgba(59,26,74,.55);
	transform-origin: 50% -30px;
	transition: box-shadow .3s ease;
}
.circo-contenido .tarjeta-propuesta > a::before {
	content: ""; position: absolute; top: -10px; left: 50%;
	width: 20px; height: 20px; margin-left: -10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe79a, var(--oro) 55%, #b97f00);
	box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.circo-contenido .tarjeta-propuesta img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px !important; box-shadow: none !important; width: 100%; }
.circo-contenido .wp-block-column:nth-child(3n+1) .tarjeta-propuesta > a { transform: rotate(-3deg); }
.circo-contenido .wp-block-column:nth-child(3n+2) .tarjeta-propuesta > a { transform: rotate(2deg); }
.circo-contenido .wp-block-column:nth-child(3n+3) .tarjeta-propuesta > a { transform: rotate(-1.5deg); }
.circo-contenido .tarjeta-propuesta > a:hover { box-shadow: 0 30px 44px -18px rgba(192,8,127,.55); }

/* --------------------------------------------------------------------------
   Escola de Circ: lona a rayas con focos
   -------------------------------------------------------------------------- */
.circo-contenido .escola-circ {
	position: relative; overflow: hidden; isolation: isolate;
	margin-top: 40px; margin-bottom: 40px;
	padding-top: 70px; padding-bottom: 70px;
	background: repeating-linear-gradient(90deg, var(--noche) 0 70px, var(--noche-2) 70px 140px);
	color: #fff;
}
.escola-circ::before, .escola-circ::after {
	content: ""; position: absolute; top: -20%;
	width: 60%; height: 140%;
	pointer-events: none; z-index: 0;
	background: radial-gradient(ellipse at 50% 30%, rgba(255,240,180,.38), rgba(255,240,180,0) 60%);
	mix-blend-mode: screen; transform-origin: 50% 0;
}
.escola-circ::before { left: -10%; }
.escola-circ::after { right: -10%; }
.escola-circ > * { position: relative; z-index: 1; }
.escola-circ .wp-block-columns { align-items: center !important; gap: 40px; }
.escola-circ .wp-block-image img {
	border-radius: 42% 58% 52% 48% / 46% 44% 56% 54% !important;
	box-shadow: 0 0 0 10px rgba(249,176,0,.9), 0 30px 60px -20px rgba(0,0,0,.6) !important;
	aspect-ratio: 4 / 3; object-fit: cover;
}
.escola-circ h2.wp-block-heading, .escola-circ h3.wp-block-heading { color: var(--oro) !important; background: none !important; clip-path: none !important; padding: 0 !important; transform: none !important; font-size: clamp(32px, 4.4vw, 52px) !important; letter-spacing: .04em; }
.escola-circ h3 a, .escola-circ h2 a { color: var(--oro) !important; }
.escola-circ p { font-size: 20px; font-weight: 700; color: #fff; }
.escola-circ a { color: var(--oro) !important; }

/* --------------------------------------------------------------------------
   Globos de logos ("Han confiat en nosaltres")
   -------------------------------------------------------------------------- */
.circo-logos .wp-block-columns { flex-wrap: wrap !important; justify-content: center; gap: 22px; }
.circo-logos .wp-block-columns { flex-direction: row; }
.circo-logos .wp-block-columns > .wp-block-column.wp-block-column { flex: 0 0 140px !important; flex-basis: 140px !important; }
.circo-logos .wp-block-image { margin: 0 auto; }
.circo-logos .wp-block-image img {
	display: block;
	width: 140px; height: 140px;
	padding: 22px;
	object-fit: contain;
	background: #fff;
	border-radius: 50% !important;
	border: 1px solid #f1e3f3;
	box-shadow: 0 16px 30px -18px rgba(102,36,131,.5) !important;
	filter: grayscale(1);
	transition: transform .5s var(--rebote), filter .3s ease, box-shadow .3s ease;
}
.circo-logos .wp-block-image img:hover { filter: none; transform: scale(1.12) rotate(-6deg); box-shadow: 0 24px 34px -18px rgba(192,8,127,.6) !important; }

/* --------------------------------------------------------------------------
   Portadas de espectáculos y talleres
   -------------------------------------------------------------------------- */
.circo-contenido .wp-block-cover.circo-portada {
	border-radius: 28px; overflow: hidden; isolation: isolate;
	margin: 30px auto 10px;
	min-height: 380px;
	box-shadow: 0 24px 44px -24px rgba(59,26,74,.7);
	transition: transform .6s var(--rebote), box-shadow .3s ease;
}
.circo-portada .wp-block-cover__background { background: linear-gradient(160deg, rgba(102,36,131,.42), rgba(192,8,127,.18)) !important; opacity: 1 !important; }
.circo-portada .wp-block-cover__image-background { transition: transform 1.2s var(--suave); }
.circo-portada .wp-block-cover__inner-container > * {
	font-size: clamp(30px, 5vw, 56px) !important;
	font-weight: 900; letter-spacing: .04em; line-height: 1.05;
	color: #fff !important;
	text-shadow: 0 4px 0 var(--magenta), 0 10px 24px rgba(0,0,0,.35);
	background: none !important; clip-path: none !important; transform: none;
	margin: 0 auto !important; padding: 0 !important;
	transition: transform .6s var(--rebote);
}
.circo-portada .wp-block-cover__inner-container a { color: #fff !important; text-decoration: none; }
.circo-portada.circo-enlazado { cursor: pointer; }
.circo-portada:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 34px 50px -24px rgba(192,8,127,.6) !important; }
.circo-portada:hover .wp-block-cover__image-background { transform: scale(1.07); }
.circo-portada:hover .wp-block-cover__inner-container > * { transform: scale(1.06) rotate(-2deg); }

/* --------------------------------------------------------------------------
   Listado del blog
   -------------------------------------------------------------------------- */
.circo-listado { padding-top: 56px; padding-bottom: 60px; }
.circo-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.circo-tarjeta__enlace {
	display: block; height: 100%;
	background: #fff; border: 1px solid #f1dfef; border-radius: var(--radio);
	overflow: hidden; text-decoration: none; color: var(--tinta) !important;
	box-shadow: 0 16px 34px -20px rgba(102,36,131,.45);
	transition: transform .5s var(--rebote), box-shadow .3s ease;
}
.circo-tarjeta__enlace:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 26px 40px -20px rgba(192,8,127,.55); }
.circo-tarjeta__imagen img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.circo-tarjeta__texto { display: block; padding: 18px 20px 22px; }
.circo-tarjeta__fecha { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fde9f4; color: var(--magenta); font-size: 13px; font-weight: 800; }
.circo-tarjeta__titulo { display: block; margin-top: 10px; font-size: 21px; font-weight: 900; color: var(--noche); line-height: 1.2; }
.circo-entrada { max-width: 820px; margin: 0 auto; padding: 50px 20px 30px; }
.circo-entrada__imagen { margin: 0 0 30px; }
.circo-entrada__imagen img { border-radius: 22px; }
.circo-entradas-nav { padding-bottom: 40px; }
.circo-entradas-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.circo-entradas-nav a { font-weight: 800; text-decoration: none; }
.circo .pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.circo .pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 800; }
.circo .pagination .page-numbers.current { background: var(--oro); color: var(--noche); }
.circo-404 { text-align: center; padding: 60px 20px 80px; font-size: 22px; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.circo-pie {
	position: relative; margin-top: 70px;
	background: var(--noche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160' viewBox='0 0 260 160'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='20' cy='30' r='1.2' opacity='.7'/%3E%3Ccircle cx='90' cy='110' r='1' opacity='.5'/%3E%3Ccircle cx='160' cy='40' r='1.4' opacity='.8'/%3E%3Ccircle cx='230' cy='120' r='1' opacity='.6'/%3E%3Ccircle cx='200' cy='80' r='.8' opacity='.5'/%3E%3C/g%3E%3Cpath d='M120 70l1.6 4 4.4.3-3.4 2.8 1.1 4.3-3.7-2.3-3.7 2.3 1.1-4.3-3.4-2.8 4.4-.3z' fill='%23f9b000' opacity='.8'/%3E%3C/svg%3E");
	color: #f1e4f7;
}
.circo-pie::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--festo-noche) 0 0 / 80px 26px repeat-x; }
.circo-pie__cuerpo { padding-top: 60px; padding-bottom: 46px; text-align: center; }
.circo-pie__malabares, .circo-404__malabares { display: inline-flex; gap: 10px; height: 60px; align-items: flex-end; margin-bottom: 14px; }
.circo-pie__malabares span, .circo-404__malabares span { width: 18px; height: 18px; border-radius: 50%; display: block; }
.circo-pie__malabares span:nth-child(1), .circo-404__malabares span:nth-child(1) { background: var(--oro); }
.circo-pie__malabares span:nth-child(2), .circo-404__malabares span:nth-child(2) { background: var(--magenta); }
.circo-pie__malabares span:nth-child(3) { background: #fff; }
.circo-404__malabares span:nth-child(3) { background: var(--noche); }
.circo-pie__frase { font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.circo-pie__frase em { color: var(--oro); font-style: normal; display: block; }
.circo-pie__contacto { margin: 0 0 18px; font-size: 17px; }
.circo-pie__contacto a { color: var(--oro) !important; font-weight: 800; text-decoration: none; }
.circo-pie .circo-redes { justify-content: center; }
.circo-redes--pie .circo-red { width: 44px; height: 44px; }
.circo-pie__menu ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0; padding: 0; }
.circo-pie__menu a { color: #f1e4f7 !important; text-decoration: none; font-weight: 700; }
.circo-pie__base { background: var(--noche-2); padding: 16px 0; font-size: 15px; text-align: center; }
.circo-pie__base p { margin: 0; color: #e7d3ef; }

.circo-arriba {
	position: fixed; right: 18px; bottom: 18px; z-index: 50;
	width: 54px; height: 54px; border-radius: 50%;
	background: var(--oro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 3.2A9 9 0 1 0 20.8 15 7 7 0 0 1 15.5 3.2z' fill='%23662483'/%3E%3C/svg%3E") center / 26px no-repeat;
	box-shadow: 0 10px 24px -8px rgba(102,36,131,.6);
	opacity: 0; visibility: hidden; transform: translateY(20px);
	transition: opacity .3s ease, transform .45s var(--rebote), visibility 0s .3s;
}
.circo-arriba.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .45s var(--rebote), visibility 0s; }
.circo-arriba:hover { transform: translateY(-6px) rotate(-14deg) scale(1.08); }

/* Chispas y confeti (circo.js) */
.circo-chispa { position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; z-index: 9999; background: var(--estrella) center / contain no-repeat; }
.circo-confeti { position: fixed; pointer-events: none; z-index: 9999; width: 9px; height: 14px; border-radius: 2px; }

/* ==========================================================================
   Animaciones (solo si no se ha pedido reducir el movimiento)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	@keyframes circo-balanceo { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
	@keyframes circo-flotar { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
	@keyframes circo-titilar { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(40deg); } }
	@keyframes circo-banderines { 0%, 100% { transform: skewX(0) scaleY(1); } 50% { transform: skewX(-4deg) scaleY(1.06); } }
	@keyframes circo-bombillas { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
	@keyframes circo-bombillas-b { 0%, 49% { opacity: .25; } 50%, 100% { opacity: 1; } }
	@keyframes circo-foco-a { 0%, 100% { transform: rotate(-18deg) translateX(-6%); } 50% { transform: rotate(14deg) translateX(18%); } }
	@keyframes circo-foco-b { 0%, 100% { transform: rotate(16deg) translateX(8%); } 50% { transform: rotate(-14deg) translateX(-20%); } }
	@keyframes circo-blob { 0%, 100% { border-radius: 42% 58% 52% 48% / 46% 44% 56% 54%; } 50% { border-radius: 56% 44% 40% 60% / 54% 58% 42% 46%; } }
	@keyframes circo-brillo { 0%, 70% { left: -60%; } 100% { left: 130%; } }
	@keyframes circo-globo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
	@keyframes circo-salto-letra { 0% { opacity: 0; transform: translateY(-80px) rotate(-20deg) scale(.4); } 60% { opacity: 1; transform: translateY(8px) rotate(6deg) scale(1.08); } 100% { opacity: 1; transform: none; } }
	@keyframes circo-ola { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
	@keyframes circo-malabar { 0% { transform: translate(0, 0); } 25% { transform: translate(14px, -48px); } 50% { transform: translate(28px, 0); } 75% { transform: translate(14px, -24px); } 100% { transform: translate(0, 0); } }
	@keyframes circo-cartel { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg) scale(1.03); } }
	@keyframes circo-columpio { 0% { transform: rotate(var(--g, 0deg)); } 20% { transform: rotate(5deg); } 40% { transform: rotate(-4deg); } 60% { transform: rotate(2.5deg); } 80% { transform: rotate(-1.2deg); } 100% { transform: rotate(var(--g, 0deg)); } }

	.circo-logo img, .custom-logo { animation: circo-balanceo 6s ease-in-out infinite; }
	.circo-cielo .estrella { animation: circo-titilar 2.6s ease-in-out infinite; }
	.circo-cielo .luna { animation: circo-flotar 7s ease-in-out infinite; }
	.circo-hero::before { animation: circo-bombillas 1.1s steps(1) infinite; }
	.circo-hero::after { animation: circo-bombillas-b 1.1s steps(1) infinite; opacity: 1; }
	.escola-circ::before { animation: circo-foco-a 9s ease-in-out infinite; }
	.escola-circ::after { animation: circo-foco-b 11s ease-in-out infinite; }
	.escola-circ .wp-block-image img { animation: circo-blob 10s ease-in-out infinite; }
	.circo .wp-block-button__link::after { animation: circo-brillo 3.6s ease-in-out infinite; }
	.circo-logos .wp-block-column:nth-child(odd) .wp-block-image { animation: circo-globo 4s ease-in-out infinite; }
	.circo-logos .wp-block-column:nth-child(even) .wp-block-image { animation: circo-globo 4.6s ease-in-out -2s infinite; }
	.circo-contenido h2.wp-block-heading.is-in { animation: circo-cartel 5s ease-in-out infinite; }
	.circo-pie__malabares span, .circo-404__malabares span { animation: circo-malabar 1.5s ease-in-out infinite; }
	.circo-pie__malabares span:nth-child(2), .circo-404__malabares span:nth-child(2) { animation-delay: -.5s; }
	.circo-pie__malabares span:nth-child(3), .circo-404__malabares span:nth-child(3) { animation-delay: -1s; }
	.circo-contenido .wp-block-column:nth-child(3n+1) .tarjeta-propuesta > a { --g: -3deg; }
	.circo-contenido .wp-block-column:nth-child(3n+2) .tarjeta-propuesta > a { --g: 2deg; }
	.circo-contenido .wp-block-column:nth-child(3n+3) .tarjeta-propuesta > a { --g: -1.5deg; }
	.circo-contenido .tarjeta-propuesta > a:hover { animation: circo-columpio 1.2s ease-in-out; }

	.circo-letra { opacity: 0; animation: circo-salto-letra .9s var(--rebote) forwards, circo-ola 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms), calc(1.2s + var(--i) * 90ms); }

	.circo-js .circo-reveal { opacity: 0; translate: 0 46px; scale: .94; transition: opacity .7s ease, translate .9s var(--rebote), scale .9s var(--rebote); transition-delay: calc(var(--d, 0) * 110ms); }
	.circo-js .circo-reveal.is-in { opacity: 1; translate: none; scale: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.circo-chispa, .circo-confeti { display: none !important; }
}

/* ==========================================================================
   Móvil y tableta
   ========================================================================== */
@media (max-width: 900px) {
	.circo-cabecera__fila { justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
	.circo-logo img, .custom-logo { width: min(58vw, 230px); }
	.circo-menu-boton { display: inline-flex; }
	.circo-cielo .luna { display: none; }
	.circo-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		max-height: 0; overflow: hidden;
		box-shadow: 0 24px 40px -20px rgba(59,26,74,.6);
		transition: max-height .5s var(--suave);
	}
	.circo-nav.is-open { max-height: 85vh; overflow-y: auto; }
	.circo-menu { flex-direction: column; align-items: stretch; padding: 14px 0 20px; }
	.circo-menu > li { flex-wrap: wrap; }
	.circo-menu > li > a { flex: 1; font-size: 17px; }
	.circo-submenu-boton { width: 44px; height: 44px; margin: 0; }
	.circo-menu .sub-menu {
		position: static; width: 100%; margin: 4px 0 8px; display: none;
		opacity: 1; visibility: visible; transform: none; transition: none;
		background: rgba(255,255,255,.08); border: 0; box-shadow: none;
	}
	.circo-menu > li.is-open > .sub-menu { display: block; }
	.circo-menu .sub-menu a { color: #fff !important; }
	.circo-menu .sub-menu a:hover { background: rgba(255,255,255,.12); color: var(--oro) !important; }
	.circo-tickets .wp-block-column { margin: 0 6px; }
	.circo-contenido .wp-block-cover.circo-hero { min-height: 480px; border-radius: 0 0 28px 28px; }
	.circo-hero::before, .circo-hero::after { inset: 8px; border-radius: 0 0 22px 22px; }
	.circo-contenido .wp-block-cover.circo-portada { min-height: 260px; border-radius: 20px; }
	.circo-logos .wp-block-columns { gap: 14px; }
	.circo-logos .wp-block-columns > .wp-block-column.wp-block-column { flex: 0 0 120px !important; flex-basis: 120px !important; }
	.circo-logos .wp-block-image img { width: 120px; height: 120px; padding: 18px; }
}
@media (max-width: 600px) {
	body.circo { font-size: 16px; }
	.circo-topbar__fila { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
	.circo-topbar__contacto { justify-content: center; gap: 14px; }
	.circo-titulo-pagina { padding: 56px 0 58px; }
	.circo-contenido h2.wp-block-heading { padding: 10px 26px 12px; }
	.circo-contenido .escola-circ { padding-top: 50px; padding-bottom: 50px; }
}

.circo-contenido .wp-block-image { margin-bottom: 28px; }
