/* La Estrella – Seguimiento en directo */
.estrella-seguimiento-page { --es-morado: #1f052c; --es-rojo: #c32720; --es-tinta: #081a24; background: #fff; }
.es-hero { padding-bottom: 96px !important; }
.es-subtitle { max-width: 760px; margin: 18px auto 0 !important; color: #d8cfdd; font-size: 16px; }

/* Indicador «En directo» */
.es-live { display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: 3px; text-indent: 0; }
.es-live__dot { width: 9px; height: 9px; border-radius: 50%; background: #9a8aa3; }
.es-live.is-live { background: var(--es-rojo); }
.es-live.is-live .es-live__dot { background: #fff; animation: esPulse 1.6s infinite; }
.es-live.is-stale { background: #6b5a75; }
@keyframes esPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* Mapa */
.es-main { position: relative; z-index: 2; box-sizing: border-box; max-width: 1240px; margin: -64px auto 0; padding: 0 20px 80px; }
.es-map-card { position: relative; overflow: hidden; border-radius: 14px; background: #e9e5ec; box-shadow: 0 34px 70px -34px rgba(31, 5, 44, .75); border: 1px solid rgba(31, 5, 44, .08); }
.es-map { height: min(68vh, 680px); min-height: 380px; }
.es-map .leaflet-control-attribution { font-size: 10px; }
.es-map .leaflet-bar a { color: var(--es-tinta); }

.es-overlay {
	position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: rgba(31, 5, 44, .55); color: #fff; font-family: Oswald, sans-serif; font-size: 18px; letter-spacing: 1px; text-align: center; padding: 20px;
	backdrop-filter: blur(2px);
}
.es-overlay[hidden] { display: none; }
.es-overlay__star {
	width: 46px; height: 46px; background-color: #fff; animation: esSpin 6s linear infinite;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.46 6h6.93l-3.46 6 3.46 6h-6.93L12 24l-3.46-6H1.61l3.46-6-3.46-6h6.93z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.46 6h6.93l-3.46 6 3.46 6h-6.93L12 24l-3.46-6H1.61l3.46-6-3.46-6h6.93z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes esSpin { to { transform: rotate(360deg); } }

.es-controls { position: absolute; top: 14px; right: 14px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.es-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--es-morado); cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); transition: background-color .2s, color .2s; }
.es-btn:hover, .es-btn:focus-visible { background: var(--es-rojo); color: #fff; }
.es-btn svg { width: 22px; height: 22px; fill: currentColor; }
.es-follow { position: absolute; left: 50%; bottom: 22px; z-index: 600; transform: translateX(-50%); padding: 12px 24px; border: 0; border-radius: 999px; background: var(--es-rojo); color: #fff; font: 400 14px/1 Oswald, sans-serif; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.es-follow[hidden] { display: none; }
.es-toast { position: absolute; left: 50%; top: 18px; z-index: 700; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--es-morado); color: #fff; font-size: 13px; }

/* Marcador: escudo en círculo morado con pulso rojo y flecha de dirección */
.es-marker-wrap { background: none; border: 0; }
.es-marker { position: relative; width: 58px; height: 58px; }
.es-marker__pulse { position: absolute; inset: -10px; border-radius: 50%; background: rgba(195, 39, 32, .35); animation: esRing 2s ease-out infinite; }
.es-marker.is-stale .es-marker__pulse { display: none; }
.es-marker__body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 50%; background: var(--es-morado); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.es-marker.is-stale .es-marker__body { filter: grayscale(1); opacity: .8; }
/* Leaflet fuerza «width: auto» en las imágenes de los marcadores: hace falta más especificidad. */
.leaflet-container .leaflet-marker-pane .es-marker__body img { width: 34px !important; height: auto !important; }
.es-marker__arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -42px 0 0 -8px; border: 8px solid transparent; border-bottom: 12px solid var(--es-rojo); transform-origin: 8px 42px; display: none; }
.es-marker.has-bearing .es-marker__arrow { display: block; }
@keyframes esRing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Datos */
.es-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.es-info__item { padding: 18px 20px; border: 1px solid #ece8ef; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 18px 40px -30px rgba(31, 5, 44, .5); }
.es-info__label { display: block; margin-bottom: 4px; color: var(--es-rojo); font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.es-info__item strong { color: var(--es-tinta); font-family: Oswald, sans-serif; font-size: 20px; font-weight: 400; letter-spacing: .5px; }
.es-note { margin: 22px 0 0; color: #777; font-size: 13px; text-align: center; }

/* Seguimiento desactivado: la banda no está actuando */
.es-live.is-off { background: rgba(255, 255, 255, .12); }
.es-live.is-off .es-live__dot { background: #9a8aa3; }
.es-off-card { box-sizing: border-box; max-width: 860px; margin: 0 auto; padding: 56px 40px 50px; border: 1px solid #ece8ef; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 34px 70px -34px rgba(31, 5, 44, .6); }
/* Ilustración: cómo se verá en el ordenador y en el móvil */
.es-preview { max-width: 680px; margin: 0 auto 38px; }
.es-preview__stage { position: relative; padding-bottom: 26px; }
.es-preview svg { display: block; height: auto; }
.es-preview__desktop { width: 82%; border-radius: 14px; box-shadow: 0 30px 60px -32px rgba(31, 5, 44, .55); }
.es-preview__phone { position: absolute; right: 0; bottom: 0; width: 25%; filter: drop-shadow(0 24px 30px rgba(31, 5, 44, .4)); }
.es-preview__caption { margin-top: 14px; color: #8a7d92; font-size: 13px; font-style: italic; text-align: center; }
.es-off-card__title { margin: 0 0 16px; color: var(--es-morado); font-family: Oswald, sans-serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: 1px; text-transform: uppercase; }
.es-off-card__text { max-width: 600px; margin: 0 auto; color: #555; font-size: 17px; line-height: 1.65; }
.es-off-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.es-off-btn { display: inline-block; padding: 14px 28px; border: 2px solid var(--es-rojo); border-radius: 999px; background: var(--es-rojo); color: #fff !important; font: 400 14px/1 Oswald, sans-serif; letter-spacing: 2px; text-decoration: none !important; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.es-off-btn:hover, .es-off-btn:focus-visible { border-color: var(--es-morado); background: var(--es-morado); }
.es-off-btn.is-ghost { border-color: var(--es-morado); background: transparent; color: var(--es-morado) !important; }
.es-off-btn.is-ghost:hover, .es-off-btn.is-ghost:focus-visible { background: var(--es-morado); color: #fff !important; }
.es-off-events { max-width: 860px; margin: 56px auto 0; }
.es-off-events__kicker { margin: 0 0 6px; color: var(--es-rojo); font-family: Oswald, sans-serif; font-size: 13px; letter-spacing: 4px; text-align: center; text-transform: uppercase; }
.es-off-events__title { margin: 0 0 24px; color: var(--es-morado); font-family: Oswald, sans-serif; font-size: 30px; font-weight: 400; letter-spacing: 1px; text-align: center; text-transform: uppercase; }

@media (max-width: 781px) {
	.es-off-card { padding: 40px 22px 36px; }
	/* En el móvil, la misma composición (ordenador y móvil al lado), a escala. */
	.es-preview { margin-bottom: 28px; }
	.es-preview__stage { padding-bottom: 14px; }
	.es-preview__desktop { width: 84%; border-radius: 8px; }
	.es-preview__phone { width: 27%; }
	.es-preview__caption { font-size: 12px; }
	.es-off-card__text { font-size: 16px; }
	.es-hero { padding-bottom: 76px !important; }
	.es-main { margin-top: -48px; padding: 0 12px 60px; }
	.es-map { height: 62vh; min-height: 340px; }
	.es-info { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.es-info__item { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; text-align: left; }
	.es-info__label { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.es-live.is-live .es-live__dot, .es-marker__pulse, .es-overlay__star { animation: none !important; }
}
