/* ==================================================
   Drone Fleet — estilos propios de la plantilla (hero: centro de despacho en vivo)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   ================================================== */

.df-hero {
	--fx: #e6df36;      /* amarillo fleetX */
	--ink: #0c0c0c;
	--veh-w: clamp(150px, 13.5vw, 214px);
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 700px;
	padding-top: 68px;
	overflow: hidden;
	color: var(--ink);
	background: #eef0f1;
}

/* ---------- Ciudad, velo y nubes de la intro ---------- */
.df-map { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.df-map__img { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; }
.df-wash { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(244, 245, 244, .95) 0%, rgba(244, 245, 244, .8) 30%, rgba(244, 245, 244, 0) 52%), linear-gradient(to bottom, rgba(244, 245, 244, 0) 70%, rgba(244, 245, 244, .6) 100%); pointer-events: none; }
.df-intro { position: absolute; inset: 0; z-index: 9; overflow: hidden; background: #d8dde1; pointer-events: none; visibility: hidden; }
.df-clouds { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Escenario (todo lo que pasa sobre el mapa) ---------- */
.df-stage { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; }
.df-zone { position: absolute; left: 45%; right: var(--gutter); top: 27%; bottom: 34%; pointer-events: none; }
.df-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.df-dots circle { fill: rgba(12, 12, 12, .5); }
.df-dots circle.is-done { fill: var(--fx); stroke: var(--ink); stroke-width: 1.2; }
.df-pin { position: absolute; left: 0; top: 0; width: 30px; height: 50px; margin: -50px 0 0 -15px; opacity: 0; pointer-events: none; }
.df-pin::before { content: ''; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--fx); border: 3px solid var(--ink); border-radius: 50%; box-sizing: border-box; }
.df-pin::after { content: ''; position: absolute; left: 14px; top: 29px; width: 2px; height: 20px; background: var(--ink); }
.df-pin i { position: absolute; left: 50%; bottom: -8px; width: 56px; height: 18px; margin-left: -28px; border: 2px solid var(--ink); border-radius: 50%; animation: df-ring 1.4s ease-out infinite; }
@keyframes df-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.df-drop { position: absolute; left: 0; top: 0; width: 50px; height: auto; margin: -52px 0 0 -25px; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.df-shadow { position: absolute; left: 0; top: 0; width: 130px; height: 30px; margin: -15px 0 0 -65px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 70%); pointer-events: none; }

/* Vehículo: GSAP lo mueve (x, y) y lo centra; el cuerpo flota aparte */
.df-veh { position: absolute; left: 0; top: 0; width: var(--veh-w); pointer-events: none; }
.df-veh__body { position: relative; width: 100%; aspect-ratio: 669 / 450; }
.df-drone, .df-ground { position: absolute; opacity: 0; visibility: hidden; transition: opacity .35s linear, visibility .35s linear; }
.df-drone { inset: 0; }
.df-drone.is-on, .df-ground.is-on { opacity: 1; visibility: visible; }
.df-drone__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.df-cargo { position: absolute; z-index: 0; left: 50%; top: 46%; width: 34%; height: auto; margin-left: -17%; transition: opacity .2s linear; }
.df-veh.is-empty .df-cargo { opacity: 0; }
/* Hélices: la pala de perfil se estira y se invierte rápido, como si girara */
.df-prop { position: absolute; z-index: 2; width: 21%; height: 2.6%; margin-left: -10.5%; background: url(../../wp-content/uploads/revslider/AI-Powered-Autonomous-Delivery-Slider-Template/propeler.svg) center / 100% 100% no-repeat; opacity: .85; animation: df-spin .1s linear infinite; }
.df-prop::after { content: ''; position: absolute; left: -6%; right: -6%; top: -260%; bottom: -260%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(12, 12, 12, .16), rgba(12, 12, 12, 0) 70%); }
.df-prop--1 { left: 9.4%; top: 1.4%; }
.df-prop--2 { left: 88.2%; top: 1.4%; animation-delay: -.03s; }
.df-prop--3 { left: 6.6%; top: 25.5%; animation-delay: -.05s; }
.df-prop--4 { left: 94.4%; top: 25.5%; animation-delay: -.07s; }
@keyframes df-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.df-ground { left: 50%; bottom: 0; height: auto; }
.df-ground--pod { width: 52%; margin-left: -26%; }
.df-ground--van { width: 74%; margin-left: -37%; }
.df-veh.is-flip .df-ground { transform: scaleX(-1); }

/* ---------- Texto ---------- */
.df-copy { position: absolute; z-index: 3; left: var(--gutter); top: 0; bottom: 0; width: min(500px, 37vw); display: flex; flex-direction: column; justify-content: center; }
.df-logo { display: block; width: 120px; height: auto; margin: 0 0 18px; }
.df-kicker { margin: 0 0 12px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 12, 12, .7); }
.df-page .df-title {
	margin: 0 0 18px;
	font-family: 'Tomorrow', var(--mb-display);
	font-size: clamp(38px, 4.4vw, 72px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.02em;
	text-align: left;
	text-transform: none;
	color: var(--ink);
}
.df-title span { background: linear-gradient(transparent 60%, var(--fx) 60%, var(--fx) 92%, transparent 92%); }
.df-lead { max-width: 44ch; margin: 0 0 18px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(12, 12, 12, .78); }
.df-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; max-width: 420px; margin: 0 0 24px; padding: 0; list-style: none; }
.df-feats li { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.df-feats li::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; background: var(--fx); border: 2px solid var(--ink); }
.df-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ak-page .df-go {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: auto;
	min-height: 56px;
	margin: 0;
	padding: 0 26px;
	font-family: 'Tomorrow', var(--mb-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: 5px 5px 0 var(--fx);
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s linear, color .15s linear;
}
.ak-page .df-go:hover, .ak-page .df-go:focus-visible { color: var(--ink); background: var(--fx); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.ak-page .df-go:disabled { opacity: .6; cursor: progress; }
.df-tip { font-family: var(--mb-mono); font-size: 12px; letter-spacing: .06em; color: rgba(12, 12, 12, .6); }

/* ---------- Tarjetas brutalistas: flota y seguimiento ---------- */
.df-fleet, .df-card { position: absolute; z-index: 3; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.df-fleet { top: 18px; right: var(--gutter); padding: 10px; }
.df-tabs { display: flex; gap: 8px; }
.ak-page .df-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 96px;
	min-height: 0;
	margin: 0;
	padding: 6px 4px 8px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink);
	background: #f3f3f1;
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .15s linear, border-color .15s linear;
}
.df-tab img { display: block; width: auto; height: 46px; object-fit: contain; }
.ak-page .df-tab:hover { color: var(--ink); background: #fff; border-color: rgba(12, 12, 12, .3); }
.ak-page .df-tab.is-on { color: var(--ink); background: var(--fx); border-color: var(--ink); }
.df-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; }
.df-specs div { padding: 6px 8px; background: #f3f3f1; }
.df-specs dt { font-family: var(--mb-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 12, 12, .55); }
.df-specs dd { margin: 2px 0 0; font-family: 'Tomorrow', var(--mb-display); font-size: 15px; font-weight: 700; }

/* La tarjeta queda a la izquierda del saludo del WhatsApp, bajo la zona de entregas */
.df-card { right: calc(var(--gutter) + 300px); bottom: 22px; width: 360px; padding: 14px 16px; font-family: 'Space Grotesk', sans-serif; }
.df-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.df-card__id { margin: 0; font-size: 15px; font-weight: 500; }
.df-card__id b { font-family: 'Tomorrow', var(--mb-display); }
.df-card__state { padding: 4px 9px; font-family: var(--mb-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: #ececea; white-space: nowrap; }
.df-card.is-go .df-card__state { background: var(--fx); }
.df-card.is-ok .df-card__state { color: #fff; background: var(--ink); }
.df-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.df-steps li { position: relative; padding-top: 14px; font-size: 10.5px; font-weight: 700; line-height: 1.2; color: rgba(12, 12, 12, .4); }
.df-steps li::before { content: ''; position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: #fff; border: 2px solid rgba(12, 12, 12, .3); border-radius: 50%; }
.df-steps li.is-on { color: var(--ink); }
.df-steps li.is-on::before { background: var(--fx); border-color: var(--ink); }
.df-bar { position: relative; height: 6px; margin: 2px 0 12px; background: #ececea; }
.df-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.df-card__route { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border: 1.5px solid rgba(12, 12, 12, .25); }
.df-card__route span { display: block; font-family: var(--mb-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 12, 12, .5); }
.df-card__route b { display: block; margin-top: 2px; font-size: 14px; }
.df-card__route small { display: block; font-size: 12px; color: rgba(12, 12, 12, .62); }
.df-card__meta { margin: 0; font-size: 13px; color: rgba(12, 12, 12, .7); }
.df-card__meta b { font-family: 'Tomorrow', var(--mb-display); color: var(--ink); }

/* ---------- Pie del hero ---------- */
.df-foot {
	position: relative;
	z-index: 6;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 14px clamp(20px, 3vw, 44px);
	align-items: center;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	color: #f5f5f0;
	background: var(--ink);
	border-top: 3px solid var(--accent);
}
.df-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.df-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.df-ctrl { display: flex; align-items: center; gap: 10px; }
.df-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 13px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.df-done { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }
@media (max-width: 1180px) {
	.df-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.df-foot .ak-actions { grid-column: 1 / -1; }
	.df-feats { grid-template-columns: 1fr; }
	.df-card { right: var(--gutter); }
}
/* Pantallas bajas: tarjetas más compactas */
@media (max-height: 820px) and (min-width: 901px) {
	.df-logo { width: 96px; margin-bottom: 10px; }
	.df-page .df-title { font-size: clamp(34px, 3.7vw, 58px); margin-bottom: 12px; }
	.df-lead { margin-bottom: 12px; }
	.df-feats { margin-bottom: 16px; }
	.df-card__route { display: none; }
	.df-tab img { height: 36px; }
	.df-zone { top: 30%; bottom: 30%; }
}

/* ---------- Tablet y móvil: texto, mapa de despacho, flota y seguimiento en columna ---------- */
@media (max-width: 900px) {
	.df-hero { height: auto; min-height: 0; }
	.df-wash { background: linear-gradient(to bottom, rgba(244, 245, 244, .94) 0%, rgba(244, 245, 244, .7) 30%, rgba(244, 245, 244, 0) 48%); }
	.df-stage { display: flex; flex-direction: column; gap: 16px; padding: 24px var(--gutter) 28px; }
	.df-copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; }
	.df-zone { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 46vh; min-height: 300px; order: 2; }
	.df-fleet, .df-card { position: relative; top: auto; right: auto; bottom: auto; }
	.df-fleet { order: 3; align-self: flex-start; }
	.df-card { order: 4; width: auto; max-width: 420px; }
	.df-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.df-hero { padding-top: 60px; }
	.df-hero { --veh-w: 140px; }
	.df-tab { width: 84px; }
	.df-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.df-ctrl { order: -1; }
	.df-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.df-prop { animation: none; }
	.df-pin i { animation: none; display: none; }
}
