/* ==========================================================================
   Escuela Sulayr · Header 2026
   Isla flotante, menú con indicador deslizante, desplegables en tarjeta,
   botón de contacto con brillo, insignia de reseñas de Google y menú móvil
   a pantalla completa con revelado circular.
   ========================================================================== */

:root {
	--sul-c: #00b2e3;
	--sul-c2: #0086c9;
	--sul-ink: #0b2a3a;
	--sul-mute: #4b6472;
	--sul-acc: #ff671d;
	--sul-h: 80px;
	--sul-top: 14px;
	--sul-adm: var(--wp-admin--admin-bar--height, 0px);
	--sul-ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-padding-top: calc(var(--sul-h) + var(--sul-top) * 2 + 12px); }
html.sul-lock, html.sul-lock body { overflow: hidden; }

/* Por si el header antiguo (Theme Builder / Divi) volviera a activarse */
.sul-has-header .et-l--header,
.sul-has-header #main-header,
.sul-has-header #top-header,
.sul-has-header #et-top-navigation { display: none !important; }

/* ---------- reset local (especificidad 0 para que los componentes ganen) ---------- */
.sul-header, .sul-header *, .sul-drawer, .sul-drawer *, .sul-skip { box-sizing: border-box; }
:where(.sul-header, .sul-drawer) ul { margin: 0; padding: 0; list-style: none; }
:where(.sul-header, .sul-drawer) li { margin: 0; padding: 0; list-style: none; }
:where(.sul-header, .sul-drawer) p { margin: 0; padding: 0; }
:where(.sul-header, .sul-drawer) a, :where(.sul-skip) { text-decoration: none; box-shadow: none; color: inherit; }
:where(.sul-header, .sul-drawer) button {
	appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: none; font: inherit; color: inherit; line-height: inherit; text-transform: none;
	letter-spacing: inherit; cursor: pointer; box-shadow: none;
}
:where(.sul-header, .sul-drawer) svg { display: block; }
.sul-header { color: var(--sul-ink); }
.sul-header :focus-visible, .sul-drawer :focus-visible, .sul-skip:focus-visible {
	outline: 2px solid var(--sul-c); outline-offset: 3px; border-radius: 12px;
}
.sul-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sul-skip {
	position: fixed; left: 16px; top: calc(var(--sul-adm) + 8px); z-index: 10000;
	padding: 11px 18px; border-radius: 999px; background: var(--sul-ink); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1; transform: translateY(-220%); transition: transform .25s;
}
.sul-skip:focus { transform: none; color: #fff; }

/* ---------- contenedor fijo ---------- */
.sul-header {
	position: fixed; z-index: 9990; top: var(--sul-adm); left: 0; right: 0;
	padding: var(--sul-top) 14px 0; pointer-events: none;
	transition: transform .55s var(--sul-ease);
	animation: sulIn .9s var(--sul-ease) backwards;
}
.sul-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
@keyframes sulIn { from { opacity: 0; transform: translateY(-26px); } }
.sul-header-spacer { height: calc(var(--sul-h) + var(--sul-top) * 2); }

/* ---------- isla ----------
   Fondo blanco opaco: el archivo del logo tiene fondo blanco y con
   transparencia se vería su recuadro sobre el hero o el menú móvil. */
.sul-header__bar {
	pointer-events: auto; position: relative; display: flex; align-items: center; gap: 18px;
	max-width: 1240px; height: var(--sul-h); margin: 0 auto; padding: 0 12px 0 28px;
	border-radius: 999px; background: #fff;
	box-shadow: 0 18px 40px -22px rgba(4, 55, 84, .45), 0 2px 6px rgba(4, 55, 84, .06);
	transition: height .45s var(--sul-ease), box-shadow .4s;
}
.sul-header__bar::before { /* borde degradado */
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(115deg, rgba(0, 178, 227, .6), rgba(0, 178, 227, .08) 38%, rgba(255, 103, 29, 0) 62%, rgba(255, 103, 29, .5));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.sul-header.is-scrolled .sul-header__bar {
	height: 66px;
	box-shadow: 0 24px 46px -20px rgba(4, 55, 84, .5), 0 2px 8px rgba(4, 55, 84, .08);
}
.sul-progress {
	position: absolute; left: 34px; right: 34px; bottom: 0; height: 2px; border-radius: 2px; pointer-events: none;
	background: linear-gradient(90deg, #00b2e3, #6fdcff 60%, #ff671d);
	transform-origin: left center; transform: scaleX(var(--p, 0)); opacity: .9;
}

/* ---------- logo ---------- */
.sul-logo { flex: 0 0 auto; display: block; line-height: 0; }
.sul-header .sul-logo img { display: block; height: 58px; width: auto; transition: height .45s var(--sul-ease), transform .45s var(--sul-ease); }
.sul-logo:hover img { transform: scale(1.04); }
.sul-header.is-scrolled .sul-logo img { height: 46px; }

/* ---------- navegación ---------- */
.sul-nav { position: relative; flex: 1 1 auto; display: flex; justify-content: center; }
.sul-nav__list { position: relative; display: flex; align-items: center; gap: 2px; }
.sul-nav__item { position: relative; }
.sul-nav__pill {
	position: absolute; left: 0; top: 50%; height: 42px; width: var(--w, 0px); border-radius: 999px; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 178, 227, .15), rgba(0, 178, 227, .08));
	box-shadow: inset 0 0 0 1px rgba(0, 178, 227, .2);
	transform: translate(var(--x, 0px), -50%); opacity: var(--o, 0);
	transition: transform .5s var(--sul-ease), width .5s var(--sul-ease), opacity .25s;
}
.sul-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px;
	border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .005em; line-height: 1;
	color: var(--sul-ink); white-space: nowrap; transition: color .25s, background .25s;
}
.sul-nav__link:hover, .sul-nav__item.is-open > .sul-nav__link { color: var(--sul-c2); }
.sul-nav__item.is-current > .sul-nav__link,
.sul-nav__item.is-ancestor > .sul-nav__link { color: var(--sul-c2); }
.sul-nav__item.is-current > .sul-nav__link::after,
.sul-nav__item.is-ancestor > .sul-nav__link::after {
	content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
	border-radius: 50%; background: var(--sul-acc);
}
.sul-header:not(.sul-js) .sul-nav__link:hover { background: rgba(0, 178, 227, .1); }
.sul-nav__chev { width: 14px; height: 14px; stroke-width: 2.2; transition: transform .35s var(--sul-ease); }
.sul-nav__item.is-open .sul-nav__chev { transform: rotate(180deg); }
.sul-nav__caret { position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; color: var(--sul-ink); }
.sul-nav__caret .sul-ico { width: 14px; height: 14px; }

/* ---------- desplegables ---------- */
.sul-sub {
	position: absolute; left: 50%; top: calc(100% + 20px); width: 348px; margin-left: -174px; padding: 10px;
	border-radius: 26px; background: #fff;
	border: 1px solid rgba(11, 42, 58, .07);
	box-shadow: 0 44px 80px -30px rgba(3, 40, 64, .45), 0 8px 24px -10px rgba(3, 40, 64, .15);
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); transform-origin: 50% 0;
	transition: opacity .25s, transform .5s var(--sul-ease), visibility 0s .25s;
}
.sul-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* puente para el hover */
.sul-sub::after {
	content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
	background: #fff; border-left: 1px solid rgba(11, 42, 58, .07); border-top: 1px solid rgba(11, 42, 58, .07);
	border-top-left-radius: 4px; transform: rotate(45deg);
}
.sul-nav__item.is-open > .sul-sub,
.sul-nav__item:focus-within > .sul-sub {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .25s, transform .5s var(--sul-ease), visibility 0s;
}
.sul-sub__label { padding: 10px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sul-c); }
.sul-sub__link {
	position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 17px;
	color: var(--sul-ink); transition: background .2s, transform .35s var(--sul-ease);
}
.sul-sub__link:hover, .sul-sub__link:focus-visible { background: #edf9fe; transform: translateX(3px); }
.sul-sub__link[aria-current="page"] { background: #edf9fe; }
.sul-sub__ico {
	flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
	background: linear-gradient(145deg, #e6f7fd, #cdeefa); color: var(--sul-c2); transition: background .3s, color .3s, transform .4s var(--sul-ease);
}
.sul-sub__link:hover .sul-sub__ico { background: linear-gradient(145deg, var(--sul-c), var(--sul-c2)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.sul-sub__txt { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.sul-sub__go { width: 16px; height: 16px; color: var(--sul-c2); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .4s var(--sul-ease); }
.sul-sub__link:hover .sul-sub__go { opacity: 1; transform: none; }

/* ---------- acciones ---------- */
.sul-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }

.sul-rating {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 11px; border-radius: 999px;
	background: #f1f8fc; box-shadow: inset 0 0 0 1px rgba(11, 42, 58, .06); color: var(--sul-ink); line-height: 1;
	transition: transform .35s var(--sul-ease), box-shadow .35s, background .35s;
}
.sul-rating:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 134, 201, .5), inset 0 0 0 1px rgba(0, 178, 227, .35); }
.sul-rating__g { flex: 0 0 22px; width: 22px; height: 22px; }
.sul-rating__body { display: flex; flex-direction: column; gap: 5px; }
.sul-stars { width: 92px; height: 18px; animation: sulStars 1.1s .55s var(--sul-ease) backwards; }
@keyframes sulStars { from { clip-path: inset(0 100% 0 0); } }
.sul-rating__txt { font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--sul-mute); white-space: nowrap; }

.sul-cta {
	position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 24px;
	border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap;
	background: linear-gradient(135deg, #1cc4f1 0%, var(--sul-c) 38%, var(--sul-c2) 100%);
	box-shadow: 0 14px 26px -12px rgba(0, 134, 201, .75), inset 0 1px 0 rgba(255, 255, 255, .38);
	transition: transform .4s var(--sul-ease), box-shadow .4s;
}
.sul-header .sul-cta, .sul-drawer .sul-cta { color: #fff; }
.sul-cta::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg);
	transition: left .9s var(--sul-ease);
}
.sul-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 32px -12px rgba(0, 134, 201, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.sul-cta:hover::before { left: 135%; }
.sul-cta > * { position: relative; }
.sul-cta__arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .4s var(--sul-ease); }
.sul-cta:hover .sul-cta__arrow { transform: translate(3px, -3px); }

/* ---------- hamburguesa ---------- */
.sul-burger {
	display: none; position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
	background: linear-gradient(135deg, var(--sul-c), var(--sul-c2));
	box-shadow: 0 12px 22px -10px rgba(0, 134, 201, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
	transition: transform .4s var(--sul-ease);
}
.sul-burger:active { transform: scale(.92); }
.sul-burger span {
	position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: #fff;
	transition: transform .55s var(--sul-ease), top .55s var(--sul-ease), left .55s var(--sul-ease), right .55s var(--sul-ease);
}
.sul-burger span:nth-child(1) { top: 19px; }
.sul-burger span:nth-child(2) { top: 27px; left: 21px; }
.sul-burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.sul-burger[aria-expanded="true"] span:nth-child(2) { top: 23px; left: 15px; transform: rotate(-45deg); }

/* ---------- menú móvil ---------- */
.sul-drawer {
	position: fixed; inset: 0; z-index: 9980; overflow-y: auto; overscroll-behavior: contain; color: #fff;
	padding: calc(var(--sul-adm) + var(--sul-top) + var(--sul-h) + 30px) 26px calc(30px + env(safe-area-inset-bottom, 0px));
	background:
		radial-gradient(110% 70% at 100% 0%, rgba(0, 178, 227, .6), transparent 62%),
		radial-gradient(90% 60% at 0% 100%, rgba(255, 103, 29, .3), transparent 58%),
		linear-gradient(160deg, #05283c 0%, #063a52 55%, #0a5677 100%);
	visibility: hidden;
	clip-path: circle(0px at calc(100% - 46px) calc(var(--sul-adm) + var(--sul-top) + var(--sul-h) / 2));
	transition: clip-path .8s var(--sul-ease), visibility 0s .8s;
}
.sul-drawer.is-open {
	visibility: visible; clip-path: circle(170% at calc(100% - 46px) calc(var(--sul-adm) + var(--sul-top) + var(--sul-h) / 2));
	transition: clip-path 1s var(--sul-ease), visibility 0s;
}
.sul-drawer__inner { max-width: 560px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
[data-sul-stagger] { opacity: 0; transform: translateY(28px); transition: opacity .35s, transform .35s; }
.sul-drawer.is-open [data-sul-stagger] {
	opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--sul-ease);
	transition-delay: calc(var(--i, 0) * 75ms + 240ms);
}
.sul-d-item { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.sul-d-link {
	display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 14px 0; text-align: left;
	font-size: clamp(28px, 8.6vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: #fff;
}
.sul-d-num { min-width: 24px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .5); transform: translateY(-.55em); }
.sul-d-title { flex: 1; transition: transform .4s var(--sul-ease); }
.sul-d-link:hover .sul-d-title { transform: translateX(6px); }
.sul-d-item.is-current > .sul-d-link .sul-d-title,
.sul-d-item.is-ancestor > .sul-d-link .sul-d-title { color: #7fe3ff; }
.sul-d-chev { align-self: center; width: 26px; height: 26px; stroke-width: 2; color: rgba(255, 255, 255, .8); transition: transform .5s var(--sul-ease); }
.sul-d-item.is-open .sul-d-chev { transform: rotate(180deg); }
.sul-d-sub {
	display: grid; grid-template-rows: 0fr; visibility: hidden;
	transition: grid-template-rows .55s var(--sul-ease), visibility 0s .55s;
}
.sul-d-item.is-open > .sul-d-sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--sul-ease), visibility 0s; }
.sul-d-sub > ul { overflow: hidden; min-height: 0; padding: 0 0 8px 38px; }
.sul-d-sublink {
	display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 17px; font-weight: 600; line-height: 1.25;
	color: rgba(255, 255, 255, .9); border-bottom: 1px dashed rgba(255, 255, 255, .13);
}
.sul-d-sub li:last-child .sul-d-sublink { border-bottom: 0; }
.sul-d-subico { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .12); color: #9eeaff; }
.sul-d-subico .sul-ico { width: 18px; height: 18px; }
.sul-drawer__foot { margin-top: auto; padding-top: 34px; display: grid; gap: 14px; }
.sul-rating--drawer { justify-content: center; padding: 13px 18px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; }
.sul-rating--drawer:hover { background: rgba(255, 255, 255, .16); }
.sul-rating--drawer .sul-rating__txt { color: rgba(255, 255, 255, .82); font-size: 12px; }
.sul-cta--block { width: 100%; justify-content: center; height: 58px; font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
	.sul-header .sul-actions .sul-rating__txt { display: none; }
	.sul-header .sul-actions .sul-rating__body { gap: 0; }
	.sul-header .sul-actions .sul-rating { padding: 9px 13px 9px 10px; }
}
@media (max-width: 1100px) {
	.sul-nav__link { padding: 0 12px; font-size: 14.5px; }
	.sul-header__bar { gap: 12px; padding-left: 22px; }
	.sul-header .sul-logo img { height: 52px; }
}
@media (max-width: 1023px) {
	:root { --sul-h: 66px; --sul-top: 10px; }
	.sul-header { padding-left: 12px; padding-right: 12px; }
	.sul-nav, .sul-header .sul-cta { display: none; }
	.sul-burger { display: block; }
	.sul-header__bar { gap: 10px; padding: 0 9px 0 18px; }
	.sul-header .sul-logo img, .sul-header.is-scrolled .sul-logo img { height: 44px; }
	.sul-actions { margin-left: auto; }
	.sul-header.is-scrolled .sul-header__bar { height: 58px; }
	.sul-header.is-scrolled .sul-logo img { height: 38px; }
	.sul-progress { left: 24px; right: 24px; }
}
@media (min-width: 1024px) { .sul-drawer { display: none; } }
@media (max-width: 400px) {
	.sul-header__bar { padding-left: 14px; }
	.sul-header .sul-actions .sul-rating { padding: 8px 11px 8px 8px; gap: 8px; }
	.sul-rating__g { flex-basis: 19px; width: 19px; height: 19px; }
	.sul-stars { width: 78px; height: 15px; }
}
@media (max-width: 345px) {
	.sul-header .sul-actions .sul-rating__g { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sul-header, .sul-header *, .sul-drawer, .sul-drawer * { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
