/* ==========================================================
   Taller Sant Camil – estilos del tema
   Colores del logotipo: #F8A924 (taronja) · #746103 · #C9A800
   ========================================================== */

:root {
	--sc-orange: #F8A924;
	--sc-gold-dark: #746103;
	--sc-gold: #C9A800;
	--sc-text: #595959;
	--sc-light: #FFF8EC;
	--sc-radius: 12px;
	--sc-shadow: 0 10px 28px rgba(0, 0, 0, .12);
	--sc-header-h: 84px;
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--sc-gold-dark);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Cabecera ---------- */
.sc-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 4px solid var(--sc-orange);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
body.admin-bar .sc-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sc-site-header { top: 0; } }

.sc-topbar { font-size: .9rem; }
.sc-topbar .sc-contact { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.sc-topbar a { color: #000; text-decoration: none; font-weight: 600; }
.sc-topbar a:hover { color: var(--sc-gold-dark); text-decoration: underline; }
.sc-contact a::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .4em;
	vertical-align: -.15em; background: var(--sc-gold-dark);
	-webkit-mask: var(--sc-icon) center / contain no-repeat; mask: var(--sc-icon) center / contain no-repeat;
}
.sc-contact__tel { --sc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.sc-contact__mail { --sc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.sc-contact__fb { --sc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8V6c0-.9.6-1 1-1h3V1h-4c-3.6 0-5 2.6-5 5.5V8H6v4h3v11h5V12h3.6l.4-4z'/%3E%3C/svg%3E"); }

.sc-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.sc-langs li { margin: 0; }
.sc-langs a {
	display: inline-block; padding: .2rem .6rem; border-radius: 999px;
	font-weight: 600; text-decoration: none; color: var(--sc-gold-dark);
}
.sc-langs .current-lang a { background: var(--sc-orange); color: #000; }

.sc-header__inner { min-height: var(--sc-header-h); gap: 1.5rem; }
.sc-logo { display: block; line-height: 0; flex-shrink: 0; }
.sc-logo img { height: 64px; width: auto; }

/* Menú escritorio */
.sc-nav { display: flex; align-items: center; }
.sc-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem; }
.sc-menu li { margin: 0; position: relative; }
.sc-menu a {
	display: block; padding: .55rem .7rem; text-decoration: none;
	color: var(--sc-gold-dark); font-weight: 600; font-size: .98rem; border-radius: 6px;
	position: relative;
}
.sc-menu a::after {
	content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 3px;
	background: var(--sc-orange); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.sc-menu a:hover::after,
.sc-menu .current-menu-item > a::after,
.sc-menu .current_page_item > a::after { transform: scaleX(1); }
.sc-menu a:hover { color: #000; }
.sc-menu .current-menu-item > a, .sc-menu .current_page_item > a { color: #000; }
.sc-menu .sub-menu { display: none; }
.sc-nav .sc-langs { display: none; }

.sc-burger { display: none; }

/* ---------- Menú móvil / tablet (≤1200px) ---------- */
@media (max-width: 1200px) {
	:root { --sc-header-h: 70px; }
	.sc-logo img { height: 52px; }
	.sc-burger {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; border: 0; border-radius: 8px;
		background: var(--sc-orange); cursor: pointer; flex-shrink: 0;
	}
	.sc-burger__bars, .sc-burger__bars::before, .sc-burger__bars::after {
		display: block; width: 24px; height: 3px; background: #000; border-radius: 2px;
		position: relative; transition: transform .25s, opacity .25s;
	}
	.sc-burger__bars::before, .sc-burger__bars::after { content: ""; position: absolute; left: 0; }
	.sc-burger__bars::before { top: -7px; }
	.sc-burger__bars::after { top: 7px; }
	.sc-burger[aria-expanded="true"] .sc-burger__bars { background: transparent; }
	.sc-burger[aria-expanded="true"] .sc-burger__bars::before { transform: translateY(7px) rotate(45deg); }
	.sc-burger[aria-expanded="true"] .sc-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.sc-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--sc-orange); padding: .5rem clamp(1rem, 4vw, 2rem) 1.25rem;
		flex-direction: column; align-items: stretch;
		box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
		max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.sc-nav.is-open { display: flex; }
	.sc-header, .sc-header__inner { position: static; }
	.sc-site-header { position: sticky; }
	.sc-menu { flex-direction: column; gap: 0; }
	.sc-menu a {
		color: #000; font-size: 1.1rem; padding: .85rem .25rem;
		border-bottom: 1px solid rgba(0, 0, 0, .15); border-radius: 0;
	}
	.sc-menu a::after { display: none; }
	.sc-menu .current-menu-item > a, .sc-menu .current_page_item > a { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
	.sc-nav .sc-langs { display: flex; margin-top: 1rem; gap: .5rem; }
	.sc-nav .sc-langs a { color: #000; border: 2px solid #000; padding: .45rem 1rem; }
	.sc-nav .sc-langs .current-lang a { background: #000; color: #fff; }
	.sc-langs--top { display: none; }
}

@media (max-width: 600px) {
	.sc-topbar .sc-contact { justify-content: center; width: 100%; gap: .2rem 1rem; }
	.sc-topbar__inner { justify-content: center !important; }
	.sc-logo img { height: 46px; }
}

/* ---------- Contenido ---------- */
.sc-main { min-height: 50vh; }
.sc-main p, .sc-main li { color: var(--sc-text); }
.sc-main h2 strong, .sc-main h3 strong { font-weight: inherit; }

.sc-main .wp-block-image img,
.is-style-sc-rounded img { border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }

.sc-main .wp-block-separator { height: 2px; opacity: 1; margin-block: var(--wp--preset--spacing--40); }

.sc-main .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }

/* Columna lateral (Facebook) */
.sc-aside {
	background: var(--sc-light); border-radius: var(--sc-radius);
	padding: 1rem; border-top: 4px solid var(--sc-orange);
}
.fb-page, .fb-page > span, .fb-page iframe { width: 100% !important; max-width: 100% !important; }

/* ---------- Carrusel ---------- */
.sc-slider {
	position: relative; display: grid; border-radius: var(--sc-radius);
	overflow: hidden; box-shadow: var(--sc-shadow);
}
.sc-slider > .sc-slide {
	grid-area: 1 / 1; margin: 0 !important; opacity: 0; visibility: hidden;
	transition: opacity .8s ease, visibility .8s; min-height: clamp(300px, 42vw, 540px) !important;
}
.sc-slider > .sc-slide.is-active,
.sc-slider:not(.is-ready) > .sc-slide:first-child { opacity: 1; visibility: visible; }
.sc-slide .wp-block-cover__inner-container { max-width: 900px; margin-inline: auto; padding: 1rem 3.5rem 2.5rem; }
.sc-slide, .sc-slide h2, .sc-slide p { color: #fff !important; text-align: center; }
.sc-slide .sc-slide-title { font-size: var(--wp--preset--font-size--xx-large); margin-bottom: .5rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.sc-slide h2:not(.sc-slide-title) { font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 400; line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.sc-slider__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .9); color: #000; font-size: 1.6rem; line-height: 1;
	display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.sc-slider__btn:hover { background: var(--sc-orange); }
.sc-slider__btn--prev { left: 12px; }
.sc-slider__btn--next { right: 12px; }
.sc-slider__dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.sc-slider__dots button {
	width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; padding: 0;
	background: transparent; cursor: pointer;
}
.sc-slider__dots button[aria-current="true"] { background: var(--sc-orange); border-color: var(--sc-orange); }
@media (max-width: 600px) {
	.sc-slide .wp-block-cover__inner-container { padding: 1rem 1rem 2.75rem; }
	.sc-slider__btn { width: 40px; height: 40px; top: auto; bottom: 6px; transform: none; font-size: 1.3rem; }
}

/* ---------- Formularios (Contact Form 7) ---------- */
.wpcf7 form p { margin-block: 0 1rem; }
.wpcf7 label { display: block; font-weight: 600; color: #000; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea, .wpcf7 select {
	width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
	padding: .8rem .9rem; border: 1px solid var(--sc-orange); border-radius: 6px; background: #fff;
}
.wpcf7 input[type="submit"], .wpcf7 button {
	background: var(--sc-orange); color: #000; border: 0; border-radius: 6px;
	padding: .85rem 2rem; font: inherit; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--sc-gold-dark); color: #fff; }

/* ---------- Pie ---------- */
.sc-footer p { margin-block: .35rem; }
.sc-footer a { color: #000; font-weight: 600; }
.sc-footer__social a { display: inline-block; padding: .4rem 1rem; border: 2px solid #000; border-radius: 999px; text-decoration: none; }
.sc-footer__social a:hover { background: #000; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Neutralizar Easy Google Fonts (tipografía del tema anterior) ---------- */
.wp-site-blocks p, .wp-site-blocks li, .wp-site-blocks h1, .wp-site-blocks h2,
.wp-site-blocks h3, .wp-site-blocks h4, .wp-site-blocks h5, .wp-site-blocks h6 {
	font-family: inherit; background-color: transparent; font-style: normal;
}
.wp-site-blocks p, .wp-site-blocks li { font-size: inherit; line-height: 1.7; }
.sc-main p, .sc-main li { font-size: var(--wp--preset--font-size--medium); }
.wp-site-blocks h1 { font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; line-height: 1.25; }
.wp-site-blocks h2 { font-size: var(--wp--preset--font-size--x-large); font-weight: 700; line-height: 1.3; }
.wp-site-blocks h3 { font-size: var(--wp--preset--font-size--large); font-weight: 700; line-height: 1.35; }
.wp-site-blocks h4 { font-size: 1.15rem; font-weight: 700; }
.sc-header__inner > p, .sc-topbar__inner > p:empty { margin: 0; }
.sc-header__inner > p { display: contents; }


/* ---------- Botón flotante Editar ---------- */
.sc-edit-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 999;
	background: #000; color: #fff !important; text-decoration: none; font-weight: 700;
	padding: .75rem 1.15rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.sc-edit-fab:hover { background: var(--sc-orange); color: #000 !important; }

body:has(.sc-nav.is-open) .sc-edit-fab { display: none; }

/* ==========================================================
   v1.1 – Pie responsive, portada a pantalla completa, popups y editor en directo
   ========================================================== */
body { overflow-x: clip; }

/* ---------- Pie de página fluido ---------- */
.sc-footer { font-size: clamp(.85rem, .78rem + .35vw, 1.05rem); text-wrap: balance; }
.sc-footer .has-large-font-size { font-size: clamp(1.05rem, .95rem + .7vw, 1.45rem) !important; line-height: 1.3; }
.sc-footer .sc-footer__info { line-height: 1.8; }
.sc-footer .sc-footer__info a { white-space: nowrap; }
.sc-footer__social a { font-size: clamp(.85rem, .8rem + .25vw, 1rem); }
@media (max-width: 600px) {
	.sc-footer { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* ---------- Portada: carrusel a pantalla completa ---------- */
.wp-block-post-content > .sc-slider:first-child {
	width: 100vw !important; max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; margin-top: 0 !important;
	border-radius: 0; box-shadow: none;
}
.sc-main:has(> .wp-block-post-content > .sc-slider:first-child) { padding-top: 0 !important; }
.wp-block-post-content > .sc-slider:first-child > .sc-slide {
	min-height: calc(100svh - var(--sc-hdr, 140px)) !important;
}
.wp-block-post-content > .sc-slider:first-child .sc-slide-title { font-size: clamp(2rem, 1.2rem + 4vw, 4.25rem); }
.wp-block-post-content > .sc-slider:first-child .sc-slide h2:not(.sc-slide-title) { font-size: clamp(1.1rem, .9rem + 1.4vw, 2rem); }
.wp-block-post-content > .sc-slider:first-child .wp-block-cover__inner-container { max-width: 1000px; }
.wp-block-post-content > .sc-slider:first-child + * { margin-top: var(--wp--preset--spacing--50) !important; }

/* ---------- Ventana emergente centrada ---------- */
.sc-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 1rem; }
.sc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.sc-modal__box {
	position: relative; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	max-width: min(92vw, 640px); max-height: 90vh; overflow: auto; padding: 1.5rem;
	transform: scale(.94) translateY(10px); opacity: 0; transition: transform .22s ease, opacity .22s ease;
	border-top: 5px solid var(--sc-orange);
}
.sc-modal.is-open .sc-modal__backdrop { opacity: 1; }
.sc-modal.is-open .sc-modal__box { transform: none; opacity: 1; }
.sc-modal__x {
	position: absolute; top: .5rem; right: .5rem; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: #f2f2f2; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #000;
}
.sc-modal__x:hover { background: var(--sc-orange); }
.sc-modal--media .sc-modal__box { max-width: 94vw; padding: .5rem; background: #111; border-top: 0; }
.sc-modal__img { display: block; max-width: 100%; max-height: 84vh; margin: auto; border-radius: 10px; }
.sc-modal--frame .sc-modal__box { width: min(94vw, 1100px); max-width: none; padding: 2.5rem 1rem 1rem; }
.sc-modal__frame { width: 100%; height: 75vh; border: 0; border-radius: 8px; background: #fff; }
.sc-modal__open { text-align: right; margin: .5rem 0 0; font-size: .9rem; }
.sc-popup a, a.sc-popup { cursor: zoom-in; }
.sc-zoom img { cursor: zoom-in; }
@media (prefers-reduced-motion: reduce) { .sc-modal__box, .sc-modal__backdrop { transition: none; } }

/* ---------- Editor en directo ---------- */
.sc-livebar {
	position: fixed; right: 16px; bottom: 16px; z-index: 99990; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
	background: #000; color: #fff; padding: .45rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	font: 600 .9rem/1.2 "Open Sans", Arial, sans-serif; max-width: calc(100vw - 32px);
}
.sc-livebar button, .sc-livebar a {
	border: 0; border-radius: 999px; padding: .6rem 1rem; cursor: pointer; font: inherit; text-decoration: none;
	background: #222; color: #fff;
}
.sc-livebar__toggle { background: var(--sc-orange) !important; color: #000 !important; }
.sc-livebar__save { background: #2e7d32 !important; }
.sc-livebar__save:disabled { opacity: .45; cursor: default; }
.sc-livebar__save b { display: inline-block; min-width: 1.4em; padding: 0 .3em; margin-left: .2em; border-radius: 999px; background: rgba(255,255,255,.25); }
.sc-livebar__hint, .sc-livebar__save, .sc-livebar__discard, .sc-livebar__full { display: none; }
.sc-livebar.is-on .sc-livebar__save, .sc-livebar.is-on .sc-livebar__discard, .sc-livebar.is-on .sc-livebar__full { display: inline-block; }
.sc-livebar.is-on .sc-livebar__hint { display: inline; padding: 0 .5rem; font-weight: 400; opacity: .85; }
@media (max-width: 700px) { .sc-livebar.is-on .sc-livebar__hint { display: none; } .sc-livebar { border-radius: 16px; } }

body.sc-live [contenteditable="true"] { outline: 2px dashed transparent; outline-offset: 4px; border-radius: 4px; cursor: text; transition: outline-color .15s; }
body.sc-live [contenteditable="true"]:hover { outline-color: var(--sc-gold); }
body.sc-live [contenteditable="true"]:focus { outline: 2px solid var(--sc-orange); background: rgba(248, 169, 36, .06); }
body.sc-live .sc-main [data-sc-block="core/image"], body.sc-live .sc-main [data-sc-block="core/cover"] { position: relative; cursor: pointer; }
body.sc-live .sc-main [data-sc-block="core/image"]::after {
	content: "\270E  Canviar / Cambiar"; position: absolute; top: 10px; left: 10px; z-index: 5;
	background: var(--sc-orange); color: #000; font: 700 .85rem/1 "Open Sans", Arial, sans-serif; padding: .5rem .75rem; border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0,0,0,.2); pointer-events: none;
}
body.sc-live .sc-main [data-sc-block="core/image"]:hover img, body.sc-live .sc-main [data-sc-block="core/cover"]:hover { outline: 3px solid var(--sc-orange); outline-offset: 2px; }
body.sc-live .sc-main [data-sc-block="core/cover"]::before {
	content: "\270E  Imatge de fons"; position: absolute; top: 10px; left: 10px; z-index: 5; background: var(--sc-orange); color: #000;
	font: 700 .85rem/1 "Open Sans", Arial, sans-serif; padding: .5rem .75rem; border-radius: 999px; pointer-events: none;
}
body.sc-live .sc-live-new { outline: 2px dashed #2e7d32; outline-offset: 4px; }

.sc-mini {
	position: absolute; z-index: 99991; display: none; gap: 2px; background: #000; border-radius: 8px; padding: 3px;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.sc-mini.is-on { display: flex; }
.sc-mini button { border: 0; background: transparent; color: #fff; padding: .4rem .6rem; border-radius: 6px; cursor: pointer; font: 600 .85rem/1 "Open Sans", Arial, sans-serif; }
.sc-mini button:hover { background: var(--sc-orange); color: #000; }

/* Formularios dentro de la ventana */
.sc-form { display: grid; gap: .8rem; min-width: min(80vw, 480px); font-family: "Open Sans", Arial, sans-serif; }
.sc-form h3 { margin: 0 2.5rem .25rem 0; font-size: 1.25rem; color: #000; }
.sc-form label { display: grid; gap: .3rem; font-weight: 600; color: #000; font-size: .95rem; }
.sc-form input[type="text"], .sc-form input[type="url"] {
	font: inherit; font-size: 16px; padding: .7rem .8rem; border: 1px solid #ccc; border-radius: 8px; width: 100%; box-sizing: border-box;
}
.sc-form input:focus { border-color: var(--sc-orange); outline: 2px solid var(--sc-orange); outline-offset: 0; }
.sc-form .sc-check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.sc-form .sc-check input { width: 20px; height: 20px; accent-color: var(--sc-orange); }
.sc-form__preview { background: repeating-conic-gradient(#f3f3f3 0 25%, #fff 0 50%) 0 0 / 20px 20px; border-radius: 10px; padding: .5rem; text-align: center; }
.sc-form__preview img { max-height: 220px; max-width: 100%; border-radius: 8px; }
.sc-form__row, .sc-form__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sc-form__status { margin: 0; min-height: 1.2em; color: var(--sc-gold-dark); font-weight: 600; }
.sc-btn {
	display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #ccc; background: #fff; color: #000;
	padding: .65rem 1rem; border-radius: 8px; cursor: pointer; font: 600 .92rem/1.1 "Open Sans", Arial, sans-serif;
}
.sc-btn:hover { border-color: var(--sc-orange); background: var(--sc-light); }
.sc-btn--primary { background: var(--sc-orange); border-color: var(--sc-orange); }
.sc-btn--primary:hover { background: var(--sc-gold-dark); color: #fff; }
.sc-btn--danger { color: #b3261e; }

body:has(.sc-livebar) .sc-footer { padding-bottom: 96px !important; }


/* ---------- Carrusel en iPad y móvil: foto entera, sin recortes ---------- */
@media (max-width: 1024px) {
	.sc-slider > .sc-slide,
	.wp-block-post-content > .sc-slider:first-child > .sc-slide {
		min-height: 0 !important; display: flex !important; flex-direction: column; align-items: stretch;
		justify-content: flex-start; padding: 0 !important; overflow: hidden;
	}
	.sc-slider > .sc-slide > .wp-block-cover__image-background {
		position: static !important; inset: auto !important; width: 100% !important; height: auto !important;
		max-height: none !important; object-fit: contain !important; display: block;
	}
	.sc-slider > .sc-slide > .wp-block-cover__background { display: none !important; }
	.sc-slider > .sc-slide > .wp-block-cover__inner-container {
		position: static !important; width: 100% !important; max-width: none !important; margin: 0 !important;
		background: #000; padding: 1.1rem 1.1rem 3.6rem !important;
	}
	.sc-slider > .sc-slide .sc-slide-title { font-size: clamp(1.5rem, 1rem + 2.5vw, 2.4rem) !important; text-shadow: none; }
	.sc-slider > .sc-slide h2:not(.sc-slide-title) { font-size: clamp(1rem, .9rem + .8vw, 1.35rem) !important; text-shadow: none; }
	.sc-slider { background: #000; }
	.sc-slider__btn { top: auto; bottom: 8px; transform: none; width: 40px; height: 40px; font-size: 1.3rem; }
	.sc-slider__dots { bottom: 20px; }
}


/* Sin espacio entre la cabecera y el contenido (hero pegado a la cabecera) */
.wp-site-blocks > .sc-main, .wp-site-blocks > header + * { margin-block-start: 0 !important; }


/* Franja de texto del carrusel en iPad y móvil: naranja del logo y texto negro */
@media (max-width: 1024px) {
	.sc-slider { background: var(--sc-orange); }
	.sc-slider > .sc-slide > .wp-block-cover__inner-container {
		box-sizing: border-box; background: var(--sc-orange) !important; left: auto !important; right: auto !important;
	}
	.sc-slider > .sc-slide .wp-block-cover__inner-container,
	.sc-slider > .sc-slide .wp-block-cover__inner-container * { color: #000 !important; text-shadow: none !important; }
	.sc-slider > .sc-slide .wp-block-cover__inner-container > * { max-width: 100% !important; box-sizing: border-box; overflow-wrap: anywhere; }
	.sc-slider__dots button { border-color: #000; }
	.sc-slider__dots button[aria-current="true"] { background: #000; border-color: #000; }
	.sc-slider__btn { background: #fff; }
}


/* ---------- Manos translúcidas animadas sobre la franja naranja (iPad y móvil) ---------- */
:root {
	--sc-hand-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 84'%3E%3Cg fill='%23ffffff'%3E%3Crect x='14' y='34' width='38' height='40' rx='17'/%3E%3Crect x='15' y='10' width='8.5' height='36' rx='4.25'/%3E%3Crect x='25.5' y='3' width='8.5' height='42' rx='4.25'/%3E%3Crect x='36' y='5' width='8.5' height='40' rx='4.25'/%3E%3Crect x='46' y='14' width='8' height='32' rx='4'/%3E%3Crect x='3' y='40' width='8.5' height='26' rx='4.25' transform='rotate%28-38 7.25 53%29'/%3E%3C/g%3E%3C/svg%3E");
	--sc-hand-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 84'%3E%3Cg fill='%23000000'%3E%3Crect x='14' y='34' width='38' height='40' rx='17'/%3E%3Crect x='15' y='10' width='8.5' height='36' rx='4.25'/%3E%3Crect x='25.5' y='3' width='8.5' height='42' rx='4.25'/%3E%3Crect x='36' y='5' width='8.5' height='40' rx='4.25'/%3E%3Crect x='46' y='14' width='8' height='32' rx='4'/%3E%3Crect x='3' y='40' width='8.5' height='26' rx='4.25' transform='rotate%28-38 7.25 53%29'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 1024px) {
	.sc-slider > .sc-slide > .wp-block-cover__inner-container { position: relative !important; isolation: isolate; overflow: hidden; }
	.sc-slider > .sc-slide > .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::before,
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::after {
		content: ""; position: absolute; inset: -20% -10%; z-index: 1; pointer-events: none; background-repeat: no-repeat;
	}
	/* Capa 1: manos blancas grandes que saludan */
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::before {
		background-image: var(--sc-hand-w), var(--sc-hand-w), var(--sc-hand-w), var(--sc-hand-w);
		background-size: 90px auto, 64px auto, 110px auto, 56px auto;
		background-position: 4% 70%, 30% 105%, 78% 85%, 97% 30%;
		opacity: .26;
		animation: sc-hands-wave 5.5s ease-in-out infinite alternate;
		transform-origin: 50% 100%;
	}
	/* Capa 2: manos oscuras pequeñas que flotan hacia arriba */
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::after {
		background-image: var(--sc-hand-b), var(--sc-hand-b), var(--sc-hand-b), var(--sc-hand-b), var(--sc-hand-b);
		background-size: 40px auto, 52px auto, 34px auto, 46px auto, 30px auto;
		background-position: 16% 20%, 48% 75%, 62% 10%, 88% 65%, 38% 35%;
		opacity: .08;
		animation: sc-hands-float 9s ease-in-out infinite;
	}
}
@keyframes sc-hands-wave {
	0%   { transform: rotate(-4deg) translateY(4px); }
	50%  { transform: rotate(3deg) translateY(-6px); }
	100% { transform: rotate(-2deg) translateY(2px); }
}
@keyframes sc-hands-float {
	0%   { transform: translateY(14px) rotate(0deg); opacity: .05; }
	50%  { transform: translateY(-10px) rotate(6deg); opacity: .11; }
	100% { transform: translateY(14px) rotate(0deg); opacity: .05; }
}
@media (prefers-reduced-motion: reduce) {
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::before,
	.sc-slider > .sc-slide > .wp-block-cover__inner-container::after { animation: none; }
}


/* Logo más grande y legible en iPad y móvil */
@media (max-width: 1200px) { .sc-logo img { height: 76px !important; } :root { --sc-header-h: 92px; } }
@media (max-width: 600px)  { .sc-logo img { height: 62px !important; max-width: calc(100vw - 110px); object-fit: contain; object-position: left center; } :root { --sc-header-h: 80px; } }
@media (max-width: 360px)  { .sc-logo img { height: 54px !important; } }


/* Pie de página: texto negro en iPad y móvil para mejor lectura */
@media (max-width: 1200px) {
  .sc-footer, .sc-footer p, .sc-footer span, .sc-footer strong, .sc-footer h1, .sc-footer h2, .sc-footer h3, .sc-footer h4, .sc-footer a:not(.wp-block-button__link) { color: #000000 !important; text-shadow: none !important; }
}


/* Logo móvil un poco más grande (v2) */
@media (max-width: 600px)  { .sc-logo img { height: 70px !important; } :root { --sc-header-h: 88px; } }
@media (max-width: 360px)  { .sc-logo img { height: 60px !important; } }
