/* Videos verticales de fondo (Cultivar · Educar · Comunidad). Decorativos: sin sonido ni controles. */
.vfondo { position: absolute; top: 0; bottom: 0; z-index: 0; display: flex; overflow: hidden; pointer-events: none; width: calc(var(--n, 1) * 24%); max-width: 66%; }
.vfondo-der { right: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%); mask-image: linear-gradient(to right, transparent 0, #000 26%); }
.vfondo-izq { left: 0; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 26%); mask-image: linear-gradient(to left, transparent 0, #000 26%); }
.vfondo video { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1a24; transition: opacity .4s ease; }
.vfondo video.vfade { opacity: 0; }
.service-hero-bg .vfondo { z-index: 0; width: calc(var(--n, 1) * 17%); max-width: 52%; }
@media (max-width: 820px) {
  /* en celular el video vertical llena todo el bloque, detrás del texto */
  .vfondo { left: 0; right: 0; width: 100%; max-width: none; -webkit-mask-image: none; mask-image: none; }
  .vfondo video:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vfondo video { transition: none; } }

/* Bloque «Plan maestro»: el modelo 3D del proyecto completo como fondo */
.dim-3d { background: radial-gradient(120% 120% at 20% 40%, #16406a 0%, #0c2038 55%, #081627 100%); }
.dim3d-izq { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; z-index: 0; display: flex; align-items: center; gap: 18px; padding-right: 8px; }
.dim3d-visor { position: relative; flex: 1 1 auto; height: 100%; min-width: 0; z-index: 0; }
.dim3d-dron { position: relative; flex: 0 0 auto; height: 80%; aspect-ratio: 9 / 16; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.25); background: #0c2038; }
.dim3d-dron video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dim3d-dron figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(12,32,56,.7); color: #fff; font: 700 .72rem/1 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(6px); }
.dim-3d .dim-hero-content { width: 36%; padding-left: 36px; padding-right: clamp(28px, 4vw, 64px); }
.dim3d-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.dim3d-visor iframe { position: relative; opacity: 0; transition: opacity .6s ease; }
.dim3d-visor.listo iframe { opacity: 1; }
.dim3d-visor iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; pointer-events: none; }
.dim3d-visor.activo iframe { pointer-events: auto; }
.dim3d-activar { position: absolute; left: 18px; top: 18px; z-index: 2; border: 1.5px solid rgba(255,255,255,.4); background: rgba(12,32,56,.65); color: #fff; font: 700 .78rem/1 Montserrat, sans-serif; letter-spacing: .06em; padding: 9px 16px; border-radius: 100px; cursor: pointer; backdrop-filter: blur(6px); }
.dim3d-activar:hover, .dim3d-activar:focus-visible { background: #FF37D5; border-color: #FF37D5; outline: none; }
.dim3d-visor.activo .dim3d-activar span::before { content: "Listo: sal con Esc o con este botón · "; font-weight: 600; opacity: .8; }
.dim3d-visor.activo .dim3d-activar span { font-size: 0; } .dim3d-visor.activo .dim3d-activar span::before { font-size: .78rem; content: "Salir del modelo ×"; }
.dim3d-pie { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600; text-decoration: none; background: rgba(12,32,56,.55); padding: 7px 14px; border-radius: 100px; }
.dim3d-pie:hover { color: #fff; background: rgba(12,32,56,.85); }
.dim-3d .dim-hero-overlay { display: none; }
@media (max-width: 820px) {
  .dim-3d { flex-direction: column; min-height: 0; }
  .dim3d-izq { position: relative; width: 100%; height: auto; flex-direction: column; padding: 0 12px 8px; box-sizing: border-box; gap: 14px; }
  .dim3d-visor { width: 100%; flex: none; height: 320px; }
  .dim3d-dron { height: auto; width: 58%; flex: none; }
  .dim-3d .dim-hero-content { width: 100%; padding: 28px 24px 44px; }
}
/* «Seamos parte de la solución»: dos videos de cultivo, uno a cada lado */
@media (max-width: 820px) { .vfondo-solo-pc { display: none; } }
.solucion-band .vfondo { max-width: 26%; }
@media (max-width: 820px) { .solucion-band .vfondo { max-width: none; } }

/* Vista de dron (página Diseño regenerativo) */
.dron { background: linear-gradient(180deg, #112E4D 0%, #0c2038 100%); color: #fff; padding: 80px 0 72px; }
.dron .eyebrow { color: #7ee3d4; }
.dron-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.dron-head h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; margin: 10px 0 14px; }
.dron-head p { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.65; margin: 0; }
.dron-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.dron-clip { margin: 0; }
.dron-marco { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #081627; box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.18); }
.dron-marco video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dron-clip figcaption { margin-top: 12px; text-align: center; } .dron-clip strong { display: block; font-size: 1rem; color: #fff; } .dron-clip span { display: block; margin-top: 3px; font-size: .86rem; color: rgba(255,255,255,.7); line-height: 1.35; }
.dron-cta { justify-content: center; margin-top: 34px; }
@media (max-width: 820px) {
  .dron { padding: 60px 0 56px; }
  .dron-fila { display: flex; overflow-x: auto; gap: 14px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; }
  .dron-clip { flex: 0 0 68%; scroll-snap-align: center; }
}
