/* Bloques de Sonara (slider, galería con filtros, visor). Medidas tomadas de los widgets de Elementor que reemplazan. */

/* ---------- Slider base ---------- */
.sn-slider { position: relative; overflow: hidden; --sn-speed: 600ms; }
.sn-track { display: flex; transition: transform var(--sn-speed) ease; will-change: transform; }
.sn-slider:not(.sn-listo) .sn-track > :not(:first-child) { visibility: hidden; }
.sn-track > * { flex: 0 0 100%; min-width: 0; position: relative; }
.sn-fade .sn-track { display: grid; transition: none; transform: none !important; }
.sn-fade .sn-track > * { grid-area: 1 / 1; opacity: 0; transition: opacity var(--sn-speed) ease; }
.sn-fade .sn-track > .sn-active { opacity: 1; z-index: 1; }
.sn-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: none; border: 0; padding: 0; margin: 0; color: #fff; cursor: pointer; width: var(--sn-arrow, 25px); height: var(--sn-arrow, 25px); line-height: 0; box-shadow: none; }
.sn-arrow:hover, .sn-arrow:focus { background: none; color: #fff; }
.sn-arrow svg { width: 100%; height: 100%; }
.sn-prev { left: 10px; }
.sn-next { right: 10px; }
.sn-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 12px; z-index: 3; }
.sn-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; box-shadow: none; }
.sn-dots button.sn-on { opacity: 1; }

/* ---------- Slider principal (Elementor «Slides») ---------- */
.sn-hero .sn-slide { height: var(--h, 844px); overflow: hidden; background-color: #833ca3; }
.sn-hero .sn-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sn-hero .sn-kb.sn-active .sn-bg { animation: snKenBurns calc(var(--sn-auto, 7000ms) + 1000ms) linear forwards; }
@keyframes snKenBurns { from { transform: scale(1); } to { transform: scale(1.3); } }
.sn-hero .sn-inner { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: flex-start; padding: 100px; text-align: left; color: #fff; }
.sn-hero .sn-slide-link { position: absolute; inset: 0; z-index: 1; }
.sn-hero .sn-inner a, .sn-hero .sn-inner button { pointer-events: auto; }
.sn-hero .sn-contents { max-width: 80%; }
.sn-hero .sn-active .sn-contents { animation: snFadeInRight 1.25s both; }
@keyframes snFadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
.sn-hero .sn-heading { display: inline-block; font-size: 25px; font-weight: 700; line-height: 1; letter-spacing: -.3px; color: #fff; background: #1e1c56; padding: 8px 15px; width: auto; }
.sn-hero .sn-heading:not(:last-child) { margin-bottom: 30px; }
.sn-hero .sn-desc { font-size: 70px; font-weight: 800; line-height: 27px; letter-spacing: -1.3px; color: #fff; }
.sn-hero .sn-desc:not(:last-child) { margin-bottom: 30px; }
.sn-hero .sn-btn { display: inline-block; border: 2px solid #fff; border-radius: 30px; color: #fff; background: transparent; font-size: 15px; font-weight: 500; line-height: 1; padding: 15px 35px; text-decoration: none; }
.sn-hero .sn-btn:hover { background: #fff; color: #000; text-shadow: none; }
.sn-hero .sn-dots button { background: #fff; opacity: .5; width: 6px; height: 6px; }
.sn-hero .sn-dots button.sn-on { opacity: 1; background: #000; }
@media (max-width: 1024px) {
	.sn-hero .sn-slide { height: var(--h-t, 700px); }
	.sn-hero .sn-inner { padding: 60px 50px; }
	.sn-hero .sn-desc { font-size: 56px; line-height: 1.05em; }
}
@media (max-width: 767px) {
	.sn-hero .sn-slide { height: var(--h-m, 600px); }
	.sn-hero .sn-inner { padding: 40px 44px; }
	.sn-hero .sn-contents { max-width: 100%; }
	.sn-hero .sn-heading { font-size: 18px; width: fit-content; max-width: 100%; }
	.sn-hero .sn-desc { font-size: 40px; line-height: 1.05em; }
}

/* ---------- Carrusel de medios (Elementor «Media Carousel») ---------- */
.sn-media .sn-item { height: var(--h, 586px); display: flex; align-items: center; justify-content: center; }
.sn-media .sn-item > a, .sn-media .sn-item > .sn-video { display: block; width: 100%; height: 100%; position: relative; }
.sn-media .sn-item img { display: block; width: 100%; height: 100%; object-fit: var(--fit, contain); }
.sn-media .sn-arrow { color: var(--sn-arrow-c, #fff); }
.sn-media .sn-arrow:hover, .sn-media .sn-arrow:focus { color: var(--sn-arrow-c, #fff); }
.sn-media .sn-video { cursor: pointer; }
.sn-media .sn-video::after { content: ''; position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 44px no-repeat; }
.sn-media .sn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sn-media .sn-video:has(iframe)::after { display: none; }
.sn-media.sn-show .sn-item { height: var(--h, 450px); }
.sn-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.sn-thumbs::-webkit-scrollbar { display: none; }
.sn-thumbs button { flex: 0 0 calc((100% - 30px) / 4); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; box-shadow: none; }
.sn-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Galería con filtros (Premium «Media Grid») ---------- */
.sn-gal-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.sn-gal-filtro { font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.5; color: #1b4541; background: transparent; border: 0; border-radius: 75px; padding: 8px 21px; cursor: pointer; box-shadow: none; text-transform: none; }
.sn-gal-filtro:hover, .sn-gal-filtro:focus { color: #fafafa; background: #2b419a; }
.sn-gal-filtro.sn-on { color: #fafafa; background: #2b419a; }
.sn-gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sn-gal-item[hidden] { display: none; }
.sn-gal-item a { display: block; position: relative; height: 295px; overflow: hidden; border-radius: 5px; }
.sn-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.sn-gal-item a::after { content: ''; position: absolute; inset: 0; background: rgba(43, 65, 154, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fafafa' d='M10 2a8 8 0 016.32 12.9l5.39 5.4-1.41 1.4-5.4-5.39A8 8 0 1110 2zm0 2a6 6 0 100 12 6 6 0 000-12zm1 2v3h3v2h-3v3H9v-3H6V9h3V6z'/%3E%3C/svg%3E") center / 35px no-repeat; opacity: 0; transition: opacity .3s; }
.sn-gal-item a:hover::after { opacity: 1; }
@media (max-width: 1024px) { .sn-gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .sn-gal-grid { grid-template-columns: 1fr; } }

/* ---------- Visor de imágenes ---------- */
.sn-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; }
.sn-lb[hidden] { display: none; }
.sn-lb img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.sn-lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 16px; box-shadow: none; }
.sn-lb button:hover, .sn-lb button:focus { background: none; color: #fff; }
.sn-lb-x { top: 10px; right: 10px; }
.sn-lb-p { left: 10px; top: 50%; transform: translateY(-50%); }
.sn-lb-s { right: 10px; top: 50%; transform: translateY(-50%); }
.sn-lb-n { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }
