/* ==========================================================================
   Escuela Sulayr · Galería y Contacto
   Reutiliza el sistema de la home (.sul-home / .sx-*) y añade componentes .pg-*
   ========================================================================== */

.sul-pg .sx-sec h3 { font-family: "Open Sans", system-ui, sans-serif; text-transform: none; padding-bottom: 0; margin: 0; }
.pg-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.sul-pg .sx-sec .pg-sec { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 150px) 28px; }
.sx-sec .pg-pre { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--sx-or); }
.sx-sec .pg-pre::after { content: ""; width: 48px; height: 2px; background: currentColor; opacity: .6; }
.sx-sec .pg-h2 { font-size: clamp(34px, 5vw, 74px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: var(--sx-ink); text-wrap: balance; }
.sx-sec .pg-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; color: var(--sx-mute); }
.pg-sep { display: block; width: 90px; height: 5px; margin: 22px 0; border-radius: 4px; background: linear-gradient(90deg, var(--sx-c), var(--sx-or)); }
.sx-sec a.sx-btn--wa { color: #fff; background: linear-gradient(135deg, #3be07c 0%, #25d366 45%, #12a150 100%); box-shadow: 0 18px 34px -14px rgba(18, 161, 80, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* insignia de WhatsApp (misma que Sierra Nevada) */
.pg-badge { position: relative; display: block; flex: 0 0 auto; width: var(--bd, 150px); aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 18px 22px rgba(0, 50, 30, .45)); animation: pgBob 5s ease-in-out infinite; transition: transform .5s var(--sx-ease); }
.pg-badge img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.pg-badge::before { content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .75); animation: pgRing 2.4s infinite; }
.sx-sec a.pg-badge:hover { animation: none; transform: scale(1.1) rotate(-6deg); }
.sx-sec a.pg-badge:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes pgBob { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes pgRing { 70% { box-shadow: 0 0 0 24px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- hero compacto ---------- */
.sx-hero.pg-hero { min-height: 0; padding-bottom: 170px; }
.pg-hero__in { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pg-hero__in > * { animation: sxFade 1s var(--sx-ease) backwards; }
.pg-hero__txt { display: grid; justify-items: start; }
.pg-hero__txt > .sx-eyebrow { animation: sxFade 1s var(--sx-ease) .1s backwards; }
.sx-sec .sx-hero__h1.pg-h1 { margin: 24px 0 26px; font-size: clamp(46px, 7.4vw, 118px); line-height: .92; }
.sx-w:nth-child(3) > span { animation-delay: .59s; }
.sx-sec .pg-hero .sx-hero__card { max-width: 600px; margin: 0; }
.pg-hero__txt .sx-hero__btns { margin-top: 26px; }
.pg-hero__art { position: relative; justify-self: end; width: clamp(200px, 22vw, 300px); animation-delay: .6s; }
.pg-hero__art .pg-badge { --bd: 100%; }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.pg-gal { --pg-gap: clamp(10px, 1.4vw, 20px); background: linear-gradient(180deg, #f1faff 0%, #fff 100%); }
.pg-gal::before { content: "GALERÍA"; position: absolute; right: -1vw; top: clamp(20px, 3vw, 50px); pointer-events: none; user-select: none; font-size: clamp(90px, 18vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(0, 178, 227, .14); }
.pg-gal__head { position: relative; max-width: 760px; margin-bottom: clamp(30px, 4vw, 56px); }
.pg-grid { --pg-row: calc((min(100vw - 56px, 1240px) - 3 * var(--pg-gap)) / 4); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--pg-row); gap: var(--pg-gap); }
.sx-sec .pg-ph { position: relative; display: block; overflow: hidden; padding: 0; margin: 0; border: 0; cursor: zoom-in; border-radius: clamp(22px, 2.6vw, 40px); background: #dff3fb; box-shadow: 0 30px 50px -34px rgba(4, 55, 84, .6); transition: transform .6s var(--sx-ease), box-shadow .6s, opacity .9s var(--sx-ease); }
.pg-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sx-ease); }
.pg-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 28, 44, .55), transparent 55%); opacity: 0; transition: opacity .5s; }
.pg-ph:hover { transform: translateY(-6px); box-shadow: 0 44px 64px -34px rgba(0, 134, 201, .7); }
.pg-ph:hover img { transform: scale(1.08); }
.pg-ph:hover::after { opacity: 1; }
.pg-ph__z { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--sx-ease); }
.pg-ph__z svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-ph:hover .pg-ph__z, .pg-ph:focus-visible .pg-ph__z { opacity: 1; transform: none; }
.sx-sec .pg-ph:focus-visible { outline: 3px solid var(--sx-c2); outline-offset: 3px; }
.pg-ph:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.pg-ph:nth-child(2) { grid-column: 3; grid-row: 1; }
.pg-ph:nth-child(3) { grid-column: 4; grid-row: 1; }
.pg-ph:nth-child(4) { grid-column: 3; grid-row: 2; }
.pg-ph:nth-child(5) { grid-column: 4; grid-row: 2; }
.pg-ph:nth-child(6) { grid-column: 3 / 5; grid-row: 3 / 5; }
.pg-ph:nth-child(7) { grid-column: 1 / 3; grid-row: 3; }
.pg-ph:nth-child(8) { grid-column: 1 / 3; grid-row: 4; }

/* lightbox */
.pg-lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: clamp(14px, 4vw, 60px); background: rgba(3, 22, 34, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.pg-lb.is-open { opacity: 1; visibility: visible; }
.pg-lb__img { max-width: 100%; max-height: 100%; border-radius: clamp(18px, 3vw, 36px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); transform: scale(.94); transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s; object-fit: contain; }
.pg-lb.is-open .pg-lb__img { transform: none; }
.pg-lb button { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); transition: background .3s, transform .4s cubic-bezier(.22, 1, .36, 1); }
.pg-lb button:hover { background: var(--sx-c, #00b2e3); transform: scale(1.08); }
.pg-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pg-lb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-lb__x { top: clamp(12px, 2.4vw, 30px); right: clamp(12px, 2.4vw, 30px); }
.pg-lb__p { left: clamp(10px, 2.4vw, 30px); top: 50%; margin-top: -28px; }
.pg-lb__n { right: clamp(10px, 2.4vw, 30px); top: 50%; margin-top: -28px; }
.pg-lb__c { position: absolute; left: 50%; bottom: clamp(12px, 2.4vw, 28px); transform: translateX(-50%); padding: 9px 18px; border-radius: 999px; font: 800 14px/1 "Open Sans", system-ui, sans-serif; letter-spacing: .12em; color: #fff; background: rgba(255, 255, 255, .14); }

/* cierre */
.pg-cta { color: #fff; text-align: center; background: radial-gradient(60% 70% at 50% 0%, rgba(0, 178, 227, .5), transparent 62%), radial-gradient(50% 60% at 50% 100%, rgba(255, 103, 29, .38), transparent 62%), linear-gradient(160deg, #04243a, #063a52 60%, #08587a); }
.pg-cta .pg-wrap { display: grid; justify-items: center; gap: 26px; }
.sx-sec .pg-cta .pg-pre { color: #8fe9ff; }
.sx-sec .pg-cta .pg-h2 { color: #fff; font-size: clamp(36px, 5.6vw, 84px); }
.sx-sec .pg-cta .sx-hl { background: linear-gradient(100deg, #8fe9ff, #00b2e3 60%, #ff8a4d); -webkit-background-clip: text; background-clip: text; }
.pg-cta__b { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 34px; }
.pg-cta .pg-badge { --bd: clamp(150px, 15vw, 210px); }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.pg-con { background: linear-gradient(180deg, #f1faff 0%, #fff 100%); }
.pg-con::before { content: "HOLA"; position: absolute; right: -1vw; top: clamp(20px, 3vw, 50px); pointer-events: none; user-select: none; font-size: clamp(110px, 24vw, 380px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(0, 178, 227, .14); }
.pg-con__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.pg-cards { display: grid; gap: 14px; margin-top: 10px; }
.sx-sec a.pg-cc { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); border-radius: 30px; color: var(--sx-ink); background: #fff; border: 1px solid rgba(11, 42, 58, .08); box-shadow: 0 24px 40px -28px rgba(4, 55, 84, .5); transition: transform .5s var(--sx-ease), box-shadow .5s, border-color .4s; }
.sx-sec a.pg-cc:hover { transform: translateY(-5px) translateX(4px); border-color: rgba(0, 178, 227, .55); box-shadow: 0 34px 52px -28px rgba(0, 134, 201, .6); }
.pg-cc__i { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22c8f4, var(--sx-c2)); box-shadow: 0 14px 24px -12px rgba(0, 134, 201, .8); }
.pg-cc:nth-child(2) .pg-cc__i { background: linear-gradient(135deg, #ff8a4d, var(--sx-or)); box-shadow: 0 14px 24px -12px rgba(255, 103, 29, .8); }
.pg-cc:nth-child(3) .pg-cc__i { background: linear-gradient(135deg, #3be07c, #12a150); box-shadow: 0 14px 24px -12px rgba(18, 161, 80, .8); }
.pg-cc__i svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pg-cc__t { display: grid; gap: 4px; min-width: 0; }
.sx-sec .pg-cc__t b { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sx-or); }
.sx-sec .pg-cc__t span { font-size: clamp(17px, 1.7vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; color: var(--sx-ink); }
.pg-cc__a { margin-left: auto; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-ice); color: var(--sx-c2); transition: transform .5s var(--sx-ease), background .3s, color .3s; }
.pg-cc__a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-sec a.pg-cc:hover .pg-cc__a { transform: rotate(45deg); background: var(--sx-c); color: #fff; }

.pg-wa { position: relative; display: grid; gap: 16px; padding: clamp(28px, 3.6vw, 52px); border-radius: clamp(32px, 4vw, 52px); color: #fff; background: radial-gradient(60% 70% at 100% 0%, rgba(0, 178, 227, .5), transparent 62%), radial-gradient(50% 60% at 0% 100%, rgba(255, 103, 29, .32), transparent 62%), linear-gradient(160deg, #04243a, #063a52 60%, #08587a); box-shadow: 0 60px 90px -50px rgba(4, 36, 58, .9); }
.pg-wa .pg-badge { position: absolute; right: clamp(-30px, -2vw, -14px); top: clamp(-54px, -3.4vw, -30px); --bd: clamp(110px, 11vw, 150px); }
.sx-sec .pg-wa h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; max-width: 14ch; }
.sx-sec .pg-wa__p { font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 38ch; }
.pg-f { display: grid; gap: 6px; }
.sx-sec .pg-f label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8fe9ff; }
.sx-sec .pg-f input, .sx-sec .pg-f select, .sx-sec .pg-f textarea {
	appearance: none; -webkit-appearance: none; width: 100%; padding: 16px 20px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 20px; font: 600 16px/1.4 "Open Sans", system-ui, sans-serif; color: #fff; background: rgba(255, 255, 255, .1); transition: border-color .3s, background .3s, box-shadow .3s;
}
.sx-sec .pg-f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe9ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; padding-right: 48px; }
.sx-sec .pg-f select option { color: #04202f; background: #fff; }
.sx-sec .pg-f textarea { min-height: 120px; resize: vertical; }
.sx-sec .pg-f input::placeholder, .sx-sec .pg-f textarea::placeholder { color: rgba(255, 255, 255, .55); }
.sx-sec .pg-f input:focus, .sx-sec .pg-f select:focus, .sx-sec .pg-f textarea:focus { outline: none; border-color: #8fe9ff; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 4px rgba(0, 178, 227, .3); }
.pg-f2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sx-sec .pg-wa button.pg-send { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; width: 100%; justify-content: space-between; font-family: "Open Sans", system-ui, sans-serif; }
.sx-sec .pg-wa__n { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .62); }

.pg-meet { margin-top: clamp(36px, 5vw, 70px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 60px); align-items: stretch; padding: clamp(20px, 2.6vw, 34px); border-radius: clamp(32px, 4vw, 52px); background: #fff; border: 1px solid rgba(11, 42, 58, .07); box-shadow: 0 40px 70px -46px rgba(4, 55, 84, .55); }
.pg-meet__t { display: grid; gap: 18px; align-content: center; justify-items: start; padding: clamp(10px, 2vw, 30px); }
.sx-sec .pg-meet__t h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--sx-ink); }
.sx-sec .pg-meet__t p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; color: var(--sx-mute); }
.pg-meet__b { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-map { position: relative; min-height: 340px; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: radial-gradient(60% 70% at 70% 20%, rgba(0, 178, 227, .5), transparent 62%), linear-gradient(160deg, #04243a, #08587a); display: grid; place-items: center; }
.pg-map::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 46px 46px; }
.pg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sx-sec .pg-map button { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 12px 0 28px; border-radius: 999px; font: 700 16px/1 "Open Sans", system-ui, sans-serif; color: var(--sx-ink); background: #fff; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .6); transition: transform .45s var(--sx-ease); }
.sx-sec .pg-map button:hover { transform: translateY(-4px); }
.pg-map__pin { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sx-or); }
.pg-map__pin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-sec .pg-map__s { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); text-align: center; }
.pg-map.is-on button, .pg-map.is-on .pg-map__s { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.pg-hero__in { grid-template-columns: minmax(0, 1fr); }
	.pg-hero__art { justify-self: start; width: 180px; }
	.pg-con__grid, .pg-meet { grid-template-columns: minmax(0, 1fr); }
	.pg-wa { margin-top: 30px; }
}
@media (max-width: 767px) {
	.sul-pg .sx-sec .pg-sec { padding: 76px 20px; }
	.sx-hero.pg-hero { padding-bottom: 150px; }
	.sx-sec .pg-hero .sx-eyebrow { font-size: 11px; letter-spacing: .1em; }
	.sx-sec .sx-hero__h1.pg-h1 { margin: 20px 0 20px; font-size: clamp(40px, 12.4vw, 80px); }
	.pg-hero__txt .sx-hero__btns { width: 100%; }
	.pg-hero__art { width: 150px; }
	.pg-grid { --pg-row: calc((100vw - 40px - var(--pg-gap)) / 2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pg-ph:nth-child(n) { grid-column: auto; grid-row: auto; }
	.pg-ph:nth-child(1), .pg-ph:nth-child(6) { grid-column: 1 / 3; grid-row: span 2; }
	.pg-ph__z { display: none; }
	.pg-lb button { width: 46px; height: 46px; }
	.pg-lb__p { top: auto; bottom: 14px; left: 14px; margin: 0; }
	.pg-lb__n { top: auto; bottom: 14px; right: 14px; margin: 0; }
	.sx-sec a.pg-cc { gap: 14px; border-radius: 26px; }
	.pg-cc__i { flex-basis: 54px; width: 54px; height: 54px; border-radius: 18px; }
	.pg-cc__a { display: none; }
	.pg-f2 { grid-template-columns: minmax(0, 1fr); }
	.pg-wa .pg-badge { --bd: 96px; right: -4px; top: -40px; }
	.sx-sec .pg-wa h3 { max-width: 11ch; }
	.pg-meet { border-radius: 30px; padding: 14px; }
	.pg-map { min-height: 280px; }
	.pg-cta__b a.sx-btn { width: 100%; justify-content: space-between; }
}
@media (hover: none) { .pg-ph:hover, .sx-sec a.pg-cc:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-badge, .pg-badge::before { animation: none !important; } }
