/* =========================================================
   Rodbartech — capa visual (home, servicios y páginas que la carguen)
   Solo presentación: fondos de foto, cintas de fotos, tarjetas con foto.
   Las fotos de esta capa son decorativas (alt=""), cargan en diferido
   y no cambian ningún texto, encabezado ni enlace.
   ========================================================= */

/* ---------- 1. Sección con foto de fondo (siempre en tono oscuro) ---------- */
.v-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.v-photo > .v-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  pointer-events: none;
}
.v-photo > .v-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}
.v-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,10,16,.86) 0%, rgba(11,10,16,.64) 48%, rgba(11,10,16,.88) 100%),
    radial-gradient(ellipse at 15% 20%, rgba(47,111,235,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(236,26,120,.26) 0%, transparent 55%);
}
.v-photo.is-soft::before {
  background:
    linear-gradient(180deg, rgba(11,10,16,.93) 0%, rgba(11,10,16,.86) 50%, rgba(11,10,16,.95) 100%),
    radial-gradient(ellipse at 80% 10%, rgba(236,26,120,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(47,111,235,.22) 0%, transparent 55%);
}
.v-photo > .container,
.v-photo > .svc-wrap { position: relative; z-index: 1; }
.v-photo.section-tight { padding: 110px 0; }
.v-photo.section { padding: 112px 0; }

/* tokens oscuros dentro de la banda: el texto se lee igual en modo claro */
.v-photo {
  --text: #F3F1EC;
  --text-2: #C9C4D6;
  --text-muted: #9C97AA;
  --card: rgba(26,24,36,.62);
  --surface: rgba(37,34,51,.62);
  --surface-2: rgba(46,43,60,.7);
  --border: rgba(255,255,255,.14);
  --shadow: rgba(0,0,0,.35);
  --shadow-strong: rgba(0,0,0,.55);
  --gradient-soft: linear-gradient(135deg, rgba(47,111,235,.22) 0%, rgba(236,26,120,.20) 55%, rgba(255,94,26,.18) 100%);
  color: var(--text);
  background-color: #0B0A10 !important;
  border-color: transparent !important;
}
.v-photo .section-head h2,
.v-photo h2, .v-photo h3 { color: var(--text); }
.v-photo .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,.4); }

/* tarjetas de cristal dentro de las bandas */
.v-photo .adn-card-v2,
.v-photo .stat-card,
.v-photo .faq-card,
.v-photo .spotlight {
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.v-photo .stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 18px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s ease;
}
.v-photo .stat-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); opacity: .85; }
.v-photo .stat-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); }
.v-photo .stat-num { font-size: clamp(44px, 5vw, 60px); line-height: 1; }
.v-photo .stat-label { font-size: 14px; margin-top: 12px; color: var(--text-2); }

/* cabecera con foto para páginas que no la tenían (desarrollos, marketing, redes) */
.svc-area.v-has-hero { padding-top: 0 !important; }
.v-photo.v-hero {
  min-height: 74vh;
  min-height: 74dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 190px 0 110px !important;
}
.v-photo.v-hero > .v-bg { inset: -8% 0; }
.v-photo.v-hero > .v-bg img { animation: vKen 22s ease-in-out infinite alternate; }
.v-photo.v-hero::before {
  background:
    linear-gradient(180deg, rgba(11,10,16,.74) 0%, rgba(11,10,16,.46) 45%, rgba(11,10,16,.86) 100%),
    radial-gradient(ellipse at 22% 18%, rgba(47,111,235,.32) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 34%, rgba(236,26,120,.28) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 96%, rgba(255,94,26,.2) 0%, transparent 55%);
}
.v-photo.v-hero h1 {
  color: #F3F1EC;
  font-size: clamp(34px, 5.4vw, 58px) !important;
  line-height: 1.07 !important;
  letter-spacing: -.02em;
  text-shadow: 0 10px 40px rgba(0,0,0,.4);
  text-wrap: balance;
  overflow-wrap: normal;
  max-width: 17em !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.v-photo.v-hero .svc-head,
.v-photo.v-hero .v-hero-head { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.v-photo.v-hero .svc-head p,
.v-photo.v-hero .v-hero-head p { color: rgba(243,241,236,.86); }
.v-photo.v-hero .svc-head p a,
.v-photo.v-hero .v-hero-head p a { color: #F3F1EC; }
.v-photo.v-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #F3F1EC !important;
  margin-bottom: 22px;
}
.v-photo.v-hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px rgba(236,26,120,.22); }
.v-photo.v-hero .mkt-strip { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 640px) {
  .v-photo.v-hero { min-height: 70vh; padding: 140px 0 80px !important; }
  .v-photo.v-hero h1 { font-size: clamp(28px, 8vw, 36px) !important; }
}
@media (prefers-reduced-motion: reduce) { .v-photo.v-hero > .v-bg img { animation: none; } }

/* ---------- 2. Cinta de fotos en movimiento ---------- */
.v-strip {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: var(--bg);
  display: grid;
  gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.v-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: vStrip 60s linear infinite;
}
.v-strip-row.is-reverse .v-strip-track { animation-direction: reverse; animation-duration: 70s; }
.v-strip:hover .v-strip-track { animation-play-state: paused; }
.v-strip.is-off .v-strip-track { animation-play-state: paused; }
.v-strip figure {
  position: relative;
  flex: none;
  width: 300px;
  height: 190px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -22px var(--shadow-strong);
}
.v-strip-row.is-reverse figure { width: 250px; height: 160px; }
.v-strip figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,10,16,.45) 100%); }
.v-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .5s ease; filter: saturate(.9); }
.v-strip figure:hover img { transform: scale(1.07); filter: saturate(1.1); }
@keyframes vStrip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .v-strip figure { width: 210px; height: 140px; }
  .v-strip-row.is-reverse figure { width: 180px; height: 120px; }
}

/* ---------- 3. Tarjetas con foto (home: work-card · servicios: svc-hub-card) ---------- */
.work-card .wc-photo,
.svc-hub-card .hub-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.work-card .wc-photo { margin: -36px -28px 0; height: 168px; }
.svc-hub-card .hub-photo { margin: -40px -32px 0; height: 190px; }
.work-card .wc-photo img,
.svc-hub-card .hub-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.work-card:hover .wc-photo img,
.svc-hub-card:hover .hub-photo img { transform: scale(1.08); }
.work-card .wc-photo::after,
.svc-hub-card .hub-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,16,.05) 0%, rgba(11,10,16,.25) 55%, var(--card) 100%);
}
.work-card::before,
.svc-hub-card::before { z-index: 3; }
.work-card .wc-num { z-index: 2; color: rgba(255,255,255,.82); text-shadow: 0 6px 24px rgba(0,0,0,.45); top: 14px; font-size: 54px; }
.work-card .icon-circle-lg { margin-top: -27px; box-shadow: 0 0 0 6px var(--card), 0 14px 26px -8px rgba(0,0,0,.4); }
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card p { flex-grow: 1; }
.svc-hub-card .svc-hub-num {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: -22px 0 26px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border), 0 14px 26px -10px rgba(0,0,0,.35);
}

/* carrusel deslizable en móvil para rejillas de tarjetas */
@media (max-width: 760px) {
  .v-snap {
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 20px 22px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .v-snap::-webkit-scrollbar { display: none; }
  .v-snap > * { flex: 0 0 82%; scroll-snap-align: center; }
  .v-snap.reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 4. Testimonios en panel de cristal ---------- */
.v-photo .spotlight {
  max-width: 860px;
  padding: 46px 48px 36px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.v-photo .spotlight::before {
  content: "“";
  position: absolute;
  top: -26px;
  left: 36px;
  font-family: Georgia, serif;
  font-size: 140px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v-photo .spotlight-slide blockquote { font-size: clamp(18px, 2vw, 22px); }
.v-photo .spotlight-dots button { background: rgba(255,255,255,.28); }
.v-photo .spotlight-dots button.active { background: var(--gradient); }
.v-photo .reviews-rating { background: var(--card); border-color: var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v-photo .reviews-g-mark { opacity: .05; }
@media (max-width: 640px) { .v-photo .spotlight { padding: 40px 22px 28px; } .v-photo .spotlight::before { font-size: 110px; left: 18px; } }

/* ---------- 5. Banda final con foto ---------- */
.cta-band.v-cta { isolation: isolate; background: #0B0A10; }
.cta-band.v-cta > .v-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band.v-cta > .v-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.cta-band.v-cta:hover > .v-bg img { transform: scale(1.1); }
.cta-band.v-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(11,10,16,.88) 0%, rgba(11,10,16,.66) 55%, rgba(11,10,16,.5) 100%);
}
.cta-band.v-cta { --text: #F3F1EC; --text-2: #C9C4D6; color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.cta-band.v-cta h2 { color: #F3F1EC; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.02em; }
.cta-band.v-cta p { color: rgba(243,241,236,.84); }
.cta-band.v-cta .glow2 { opacity: .7; mix-blend-mode: screen; }
.cta-band.v-cta .btn-secondary { color: #F3F1EC; border-color: rgba(243,241,236,.85); }
.cta-band.v-cta .btn-secondary:hover { background: #F3F1EC; color: #14131A; }
.cta-band.v-cta { padding: 84px 40px; }
@media (max-width: 640px) { .cta-band.v-cta { padding: 60px 22px; } }

/* ---------- 5b. Banda de foto con el equipo ---------- */
.team-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0;
  color: #F3F1EC;
  text-align: center;
  background: #0B0A10;
}
.team-band-bg { position: absolute; inset: 0; z-index: -2; }
.team-band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transform: scale(1.06); animation: vKen 24s ease-in-out infinite alternate; }
.team-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,16,.80) 0%, rgba(11,10,16,.58) 50%, rgba(11,10,16,.84) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(47,111,235,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(236,26,120,.28) 0%, transparent 55%);
}
.team-band-inner { position: relative; max-width: 980px; }
.team-band .eyebrow { color: #F3F1EC; opacity: .8; }
.team-band h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 auto 18px;
  max-width: 14em;
  text-wrap: balance;
  overflow-wrap: normal;
}
.team-band h2 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-band-sub { max-width: 620px; margin: 0 auto 40px; font-size: 17px; line-height: 1.65; color: rgba(243,241,236,.84); }
.team-band-people { list-style: none; margin: 0 auto 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.team-band-people li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 14px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background .3s ease;
}
.team-band-people li:hover { transform: translateY(-5px); background: rgba(255,255,255,.11); }
.team-band-people img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 18%; padding: 3px; background: var(--gradient); }
.team-band-people strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #F3F1EC; }
.team-band-people small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(243,241,236,.72); }
.team-band .btn-secondary { color: #F3F1EC; border-color: rgba(243,241,236,.85); }
.team-band .btn-secondary:hover { background: #F3F1EC; color: #14131A; }
@media (max-width: 860px) { .team-band-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-band { padding: 88px 0; } .team-band-sub { font-size: 16px; } }

@keyframes vKen { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.11) translate(-1.2%, -0.8%); } }

/* ---------- 6. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .v-strip-track { animation: none; }
  .v-strip img, .work-card .wc-photo img, .svc-hub-card .hub-photo img, .cta-band.v-cta > .v-bg img { transition: none; }
  .v-photo > .v-bg img { transform: none !important; }
  .team-band-bg img { animation: none; }
  .team-band-people li { transition: none; }
}
