/* =========================================
   Furmates · Vitals4Pets
========================================= */

.fm-v4p-about__actions{
  margin-top: 24px;
}

.fm-v4p-about__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0a56ff;
  color: #fff !important;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(10,86,255,.22);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background-color .22s ease;
}

.fm-v4p-about__cta:hover,
.fm-v4p-about__cta:focus-visible{
  background: #0a56ff;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(10,86,255,.28);
}

.fm-v4p-about__cta:focus-visible{
  outline: 3px solid rgba(10,86,255,.18);
  outline-offset: 3px;
}

@media (max-width: 767.98px){
  .fm-v4p-about__cta{
    width: 100%;
    max-width: 320px;
  }
}

.fm-v4p-how__actions{
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

.fm-v4p-how__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0a56ff;
  color: #fff !important;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(10,86,255,.22);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background-color .22s ease;
}

.fm-v4p-how__cta:hover,
.fm-v4p-how__cta:focus-visible{
  background: #0a56ff;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(10,86,255,.28);
}

.fm-v4p-how__cta:focus-visible{
  outline: 3px solid rgba(10,86,255,.18);
  outline-offset: 3px;
}

@media (max-width: 767.98px){
  .fm-v4p-how__actions{
    margin-top: 20px;
  }

  .fm-v4p-how__cta{
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   Vitals4Pets – Use cases (restore definitivo)
========================================================= */
.fm-v4p-cases{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #f3f3f3;
  padding-top: 56px;
  padding-bottom: 88px;
  overflow: hidden;
}

.fm-v4p-cases .container{
  width: 100% !important;
  max-width: var(--fm-container) !important;
  padding-left: var(--fm-gutter) !important;
  padding-right: var(--fm-gutter) !important;
  margin-left: auto;
  margin-right: auto;
}

.fm-v4p-cases__inner{
  max-width: 1220px;
  margin: 0 auto;
}

.fm-v4p-cases__head{
  max-width: 760px;
  margin: 0 0 34px;
}

.fm-v4p-cases__kicker{
  margin: 0 0 10px;
  color: rgba(0,100,255,.72);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fm-v4p-cases__title{
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: .96;
  letter-spacing: -.03em;
}

.fm-v4p-cases__title-line{
  display: block;
  color: rgba(0,100,255,.88);
  font-size: clamp(34px, 3.3vw, 58px);
  font-weight: 700;
}

.fm-v4p-cases__title-line--strong{
  color: var(--fm-blue);
  font-size: clamp(48px, 5vw, 82px);
  font-weight: 800;
}

.fm-v4p-cases__layout{
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 480px);
  align-items: center;
  column-gap: 54px;
}

.fm-v4p-cases__copy{
  max-width: 760px;
}

.fm-v4p-cases__list{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  gap: 18px;
}

.fm-v4p-cases__list li{
  position: relative;
  margin: 0 !important;
  padding-left: 34px;
  list-style: none !important;
  color: #001e46;
  font-size: clamp(22px, 1.65vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
  text-align: left;
}

.fm-v4p-cases__list li::marker{
  content: "";
}

.fm-v4p-cases__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .36em;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #50c8ff 0%, #7cd6ff 100%);
  box-shadow: 0 0 0 4px rgba(80,200,255,.18);
}

.fm-v4p-cases__visual{
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fm-v4p-cases__img{
  display: block;
  width: min(100%, 470px);
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.18));
}

@media (max-width: 1199.98px){
  .fm-v4p-cases__layout{
    column-gap: 36px;
  }

  .fm-v4p-cases__list li{
    font-size: clamp(20px, 1.45vw, 28px);
  }

  .fm-v4p-cases__img{
    width: min(100%, 420px);
  }
}

@media (max-width: 991.98px){
  .fm-v4p-cases{
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .fm-v4p-cases__layout{
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .fm-v4p-cases__visual{
    order: 2;
  }

  .fm-v4p-cases__copy{
    order: 1;
  }

  .fm-v4p-cases__img{
    width: min(100%, 360px);
  }

  .fm-v4p-cases__list li{
    font-size: clamp(19px, 2.8vw, 26px);
  }
}

@media (max-width: 575.98px){
  .fm-v4p-cases{
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .fm-v4p-cases__kicker{
    font-size: 12px;
  }

  .fm-v4p-cases__title-line{
    font-size: clamp(28px, 8vw, 36px);
  }

  .fm-v4p-cases__title-line--strong{
    font-size: clamp(38px, 11vw, 50px);
  }

  .fm-v4p-cases__list{
    gap: 16px;
  }

  .fm-v4p-cases__list li{
    padding-left: 36px;
    font-size: 18px;
    line-height: 1.24;
  }

  .fm-v4p-cases__list li::before{
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   V4P – Use cases / live monitor visual
========================================================= */

.fm-v4p-cases__visual--monitor{
  align-self: center;
}

.fm-v4p-cases__media-shell{
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1240 / 410;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #20242c 0%, #161a21 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 28px 50px rgba(0,0,0,.18),
    0 10px 18px rgba(0,0,0,.10);
}

.fm-v4p-cases__media-shell::before{
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
  z-index: 2;
}

.fm-v4p-cases__media-shell::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,18,.08) 0%, rgba(8,12,18,.02) 24%, rgba(8,12,18,.14) 100%);
  pointer-events: none;
  z-index: 1;
}

.fm-v4p-cases__media-badge{
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 20, 28, .72);
  border: 1px solid rgba(255,255,255,.10);
  color: #dff7e8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fm-v4p-cases__media-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #43d854;
  box-shadow: 0 0 0 6px rgba(67,216,84,.14);
}

.fm-v4p-cases__video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: relative;
  z-index: 0;
}

/* refinamiento del layout con video */
.fm-v4p-cases__layout{
  align-items: center;
}

@media (min-width: 1200px){
  .fm-v4p-cases__layout{
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px);
    column-gap: 64px;
  }
}

/* tablet */
@media (max-width: 991.98px){
  .fm-v4p-cases__visual--monitor{
    width: 100%;
  }

  .fm-v4p-cases__media-shell{
    width: min(100%, 680px);
    margin: 0 auto;
    border-radius: 20px;
  }

  .fm-v4p-cases__media-shell::before{
    inset: 12px;
    border-radius: 14px;
  }

  .fm-v4p-cases__media-badge{
    top: 14px;
    left: 14px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* mobile */
@media (max-width: 575.98px){
  .fm-v4p-cases__media-shell{
    border-radius: 16px;
  }

  .fm-v4p-cases__media-shell::before{
    inset: 10px;
    border-radius: 12px;
  }

  .fm-v4p-cases__media-badge{
    top: 12px;
    left: 12px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}
/* =========================================================
   V4P – How / YouTube final fix
   corrige fondo gris + overlap + CTA
========================================================= */

.fm-v4p-how{
  position: relative;
  background: #f3f3f3 !important;
  overflow: visible;
}

.fm-v4p-how__top{
  position: relative;
  z-index: 1;
  background: #00366e !important;
}

.fm-v4p-how__media{
  position: relative;
  z-index: 1;
  background: #f3f3f3 !important;
  padding-top: 0 !important;
  padding-bottom: 26px !important;
}

.fm-v4p-how__video-shell{
  max-width: 1180px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
}

.fm-v4p-how__video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #0b1f38;
  box-shadow: 0 22px 46px rgba(0,0,0,.16);
}

.fm-v4p-how__video-frame::before{
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
  z-index: 2;
}

.fm-v4p-how__video{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1f38;
}

.fm-v4p-how__actions{
  display: flex;
  justify-content: center;
  margin-top: 20px !important;
}

/* desktop */
@media (min-width: 992px){
  .fm-v4p-how__inner{
    padding-bottom: 154px !important;
  }

  .fm-v4p-how__video-shell{
    transform: translateY(-72px) !important;
    margin-bottom: -72px !important;
  }

  .fm-v4p-how.is-inview .fm-v4p-how__video-shell{
    transform: translateY(-72px) scale(1) !important;
    opacity: 1 !important;
  }
}

/* tablet/mobile */
@media (max-width: 991.98px){
  .fm-v4p-how__media{
    padding-bottom: 22px !important;
  }

  .fm-v4p-how__video-shell{
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .fm-v4p-how.is-inview .fm-v4p-how__video-shell{
    transform: none !important;
    opacity: 1 !important;
  }

  .fm-v4p-how__video-frame{
    border-radius: 18px;
  }

  .fm-v4p-how__video-frame::before{
    inset: 12px;
    border-radius: 14px;
  }

  .fm-v4p-how__actions{
    margin-top: 16px !important;
  }
}

/* =========================================================
   V4P – How / full bleed gray fix
========================================================= */
body#cms.cms-id-6 .fm-v4p-how{
  background: #f3f3f3 !important;
}

body#cms.cms-id-6 .fm-v4p-how__top{
  background: #00366e !important;
}

body#cms.cms-id-6 .fm-v4p-how__media{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #f3f3f3 !important;
  padding: 0 0 26px !important;
}

body#cms.cms-id-6 .fm-v4p-how__media .furmates-wrap{
  max-width: var(--fm-container);
  margin: 0 auto;
  padding-left: var(--fm-gutter);
  padding-right: var(--fm-gutter);
}

body#cms.cms-id-6 .fm-v4p-how__video-shell{
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body#cms.cms-id-6 .fm-v4p-how__actions{
  margin-top: 18px !important;
  padding-bottom: 28px !important;
  display: flex;
  justify-content: center;
}

/* tablet/mobile */
@media (max-width: 991.98px){
  body#cms.cms-id-6 .fm-v4p-how__media{
    padding-bottom: 20px !important;
  }

  body#cms.cms-id-6 .fm-v4p-how__actions{
    margin-top: 14px !important;
  }
}

/* =========================================================
   V4P – How / full bleed fix REAL
   el gris pasa a vivir en toda la sección
========================================================= */
body#cms.cms-id-6 .fm-v4p-how{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #f3f3f3 !important;
  overflow: visible !important;
}

/* bloque azul superior */
body#cms.cms-id-6 .fm-v4p-how__top{
  position: relative;
  z-index: 1;
  background: #00366e !important;
}

/* volvemos a centrar el contenido interno */
body#cms.cms-id-6 .fm-v4p-how__inner,
body#cms.cms-id-6 .fm-v4p-how__credits,
body#cms.cms-id-6 .fm-v4p-how__actions,
body#cms.cms-id-6 .fm-v4p-how__media .furmates-wrap{
  width: 100%;
  max-width: var(--fm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--fm-gutter);
  padding-right: var(--fm-gutter);
  box-sizing: border-box;
}

/* media */
body#cms.cms-id-6 .fm-v4p-how__media{
  position: relative;
  z-index: 1;
  width: 100%;
  left: auto;
  right: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  padding: 0 0 18px !important;
}

body#cms.cms-id-6 .fm-v4p-how__video-shell{
  max-width: 1180px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
}

body#cms.cms-id-6 .fm-v4p-how__video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #0b1f38;
  box-shadow: 0 22px 46px rgba(0,0,0,.16);
}

body#cms.cms-id-6 .fm-v4p-how__video{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1f38;
}

/* CTA */
body#cms.cms-id-6 .fm-v4p-how__actions{
  display: flex;
  justify-content: center;
  margin-top: 18px !important;
  padding-bottom: 22px;
}

/* desktop: overlap controlado */
@media (min-width: 992px){
  body#cms.cms-id-6 .fm-v4p-how__inner{
    padding-bottom: 148px !important;
  }

  body#cms.cms-id-6 .fm-v4p-how__video-shell{
    transform: translateY(-70px) !important;
    margin-bottom: -70px !important;
  }

  body#cms.cms-id-6 .fm-v4p-how.is-inview .fm-v4p-how__video-shell{
    transform: translateY(-70px) scale(1) !important;
    opacity: 1 !important;
  }
}

/* tablet/mobile */
@media (max-width: 991.98px){
  body#cms.cms-id-6 .fm-v4p-how__media{
    padding-bottom: 14px !important;
  }

  body#cms.cms-id-6 .fm-v4p-how__video-shell{
    transform: none !important;
    margin-bottom: 0 !important;
  }

  body#cms.cms-id-6 .fm-v4p-how.is-inview .fm-v4p-how__video-shell{
    transform: none !important;
    opacity: 1 !important;
  }

  body#cms.cms-id-6 .fm-v4p-how__video-frame{
    border-radius: 18px;
  }

  body#cms.cms-id-6 .fm-v4p-how__actions{
    margin-top: 14px !important;
    padding-bottom: 18px;
  }
}