/* ===========================================================
   Joseph Films — Estilos
   Paleta: Negro + Rojo
   =========================================================== */

:root {
  --jf-black: #0d0d0d;
  --jf-dark: #161616;
  --jf-red: #e10600;
  --jf-red-dark: #b00500;
  --jf-gray: #8a8a8a;
  --jf-light: #f5f5f5;
  --jf-heading-font: "Oswald", sans-serif;
  --jf-body-font: "Poppins", sans-serif;
}

* {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--jf-body-font);
  color: #222;
  background: #fff;
  position: relative;
}

.text-jf-red {
  color: var(--jf-red) !important;
}

/* ---------- Tipografía / utilidades ---------- */
.jf-heading {
  font-family: var(--jf-heading-font);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.jf-eyebrow {
  display: inline-block;
  font-family: var(--jf-heading-font);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--jf-red);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.jf-text {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.jf-section {
  position: relative;
  padding: 100px 0;
  background: #fff; /* opaco: tapa el video de fondo fijo */
}

.jf-section-dark {
  background: var(--jf-black);
}

/* ---------- Video de fondo fijo (global) ---------- */
.jf-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.jf-fixed-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jf-fixed-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.65),
    rgba(13, 13, 13, 0.8)
  );
}
/* Secciones que dejan ver el video de fondo (hero y CTA) */
.jf-transparent {
  background: transparent !important;
}

.jf-shadow {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ---------- Botones ---------- */
.jf-btn-red {
  background: var(--jf-red);
  color: #fff;
  border: 2px solid var(--jf-red);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--jf-heading-font);
  font-weight: 500;
  transition: all 0.3s ease;
}
.jf-btn-red:hover {
  background: var(--jf-red-dark);
  border-color: var(--jf-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.jf-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--jf-heading-font);
  font-weight: 500;
  transition: all 0.3s ease;
}
.jf-btn-outline:hover {
  background: #fff;
  color: var(--jf-black);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.jf-navbar {
  background: transparent;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.jf-navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  padding: 12px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}
.jf-brand {
  font-family: var(--jf-heading-font);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #fff !important;
  padding: 0;
}
/* Logo del navbar */
.jf-brand-logo {
  height: 58px;
  width: auto;
  transition: height 0.4s ease;
}
.jf-navbar.scrolled .jf-brand-logo {
  height: 46px;
}
/* Logo del footer */
.jf-footer-logo {
  height: 90px;
  width: auto;
}
@media (max-width: 575px) {
  .jf-brand-logo { height: 34px; }
}
.jf-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--jf-heading-font);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin: 0 4px;
  position: relative;
}
.jf-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--jf-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.jf-navbar .nav-link:hover::after,
.jf-navbar .nav-link.active::after {
  width: 70%;
}
.jf-navbar .nav-link.active {
  color: #fff !important;
}

/* ---------- Hero ---------- */
.jf-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.jf-hero .container {
  z-index: 2;
}
.jf-hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.jf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.jf-hero-video.active {
  opacity: 1;
}

.jf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.7),
    rgba(13, 13, 13, 0.85)
  );
  z-index: 1;
}
.jf-hero-pre {
  letter-spacing: 5px;
  color: var(--jf-red);
  font-family: var(--jf-heading-font);
  font-weight: 600;
}
.jf-hero-title {
  font-family: var(--jf-heading-font);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.jf-hero-sub {
  max-width: 600px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}
.jf-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.8rem;
  animation: jfBounce 2s infinite;
  z-index: 2;
}
@keyframes jfBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 12px); }
}

/* Scroll-down para secciones */
.jf-scroll-section {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--jf-red);
  font-size: 1.6rem;
  animation: jfBounce 2s infinite;
  z-index: 2;
  text-decoration: none;
  transition: color 0.3s ease;
}
.jf-scroll-section:hover {
  color: var(--jf-red-dark);
}
.jf-section-dark .jf-scroll-section {
  color: rgba(255, 255, 255, 0.7);
}
.jf-section-dark .jf-scroll-section:hover {
  color: #fff;
}

/* ---------- Stats ---------- */
.jf-stat {
  font-family: var(--jf-heading-font);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0;
}
.jf-stat-label {
  color: var(--jf-gray);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ---------- Servicios ---------- */
.jf-service-card {
  background: var(--jf-dark);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}
.jf-service-card i {
  font-size: 2.8rem;
  color: var(--jf-red);
  margin-bottom: 1rem;
  display: block;
}
.jf-service-card h4 {
  font-family: var(--jf-heading-font);
  color: #fff;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.jf-service-card p {
  color: var(--jf-gray);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.jf-service-card:hover {
  background: var(--jf-red);
  transform: translateY(-8px);
  border-color: var(--jf-red);
}
.jf-service-card:hover i,
.jf-service-card:hover h4,
.jf-service-card:hover p {
  color: #fff;
}

/* ---------- Filtros portafolio ---------- */
.jf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.jf-filter {
  background: transparent;
  border: none;
  color: #555;
  text-transform: uppercase;
  font-family: var(--jf-heading-font);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.jf-filter:hover {
  color: var(--jf-red);
}
.jf-filter.active {
  background: var(--jf-red);
  color: #fff;
}

/* ---------- Galería ---------- */
.jf-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.jf-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.jf-gallery-item:hover img {
  transform: scale(1.1);
}
.jf-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(225, 6, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.jf-gallery-item:hover .jf-gallery-overlay {
  opacity: 1;
}
.jf-gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.jf-gallery-overlay span {
  font-family: var(--jf-heading-font);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- CTA ---------- */
.jf-cta {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}
.jf-cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.jf-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.8);
  z-index: 1;
}
.jf-cta .container {
  z-index: 2;
}

/* ---------- Testimonios ---------- */
.jf-testi {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.jf-quote {
  font-size: 3rem;
  color: var(--jf-red);
}
.jf-testi p {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}
.jf-testi footer {
  font-family: var(--jf-heading-font);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--jf-red);
  margin-top: 1rem;
}
.jf-carousel-btn {
  background: transparent;
  border: 1px solid var(--jf-red);
  color: var(--jf-red);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 6px;
  transition: all 0.3s ease;
}
.jf-carousel-btn:hover {
  background: var(--jf-red);
  color: #fff;
}

/* ---------- Contacto ---------- */
.jf-contact-info h6 {
  font-family: var(--jf-heading-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.jf-contact-info p {
  color: #666;
  margin-bottom: 0;
}
.jf-contact-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}
.jf-contact-link:hover {
  color: var(--jf-red);
}
.jf-input {
  border: none;
  border-bottom: 2px solid #ddd;
  border-radius: 0;
  padding: 12px 4px;
  background: transparent;
}
.jf-input:focus {
  border-color: var(--jf-red);
  box-shadow: none;
  background: transparent;
}
.jf-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #333;
  margin-right: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.jf-socials a:hover {
  background: var(--jf-red);
  border-color: var(--jf-red);
  color: #fff;
  transform: translateY(-3px);
}
.jf-form-msg {
  font-weight: 500;
}
.jf-form-msg.ok { color: #1a8f1a; }
.jf-form-msg.err { color: var(--jf-red); }

/* ---------- Footer ---------- */
.jf-footer {
  background: var(--jf-black);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0;
}
.jf-copy {
  color: var(--jf-gray);
  font-size: 0.85rem;
}

/* ---------- Back to top ---------- */
.jf-back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  background: var(--jf-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.jf-back-top.show {
  opacity: 1;
  visibility: visible;
}
.jf-back-top:hover {
  background: var(--jf-red-dark);
  color: #fff;
}

/* ---------- Lightbox ---------- */
#lightboxImg {
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .jf-navbar {
    background: rgba(13, 13, 13, 0.97);
    padding: 12px 0;
  }

  .jf-section {
    padding: 70px 0;
  }
}

/* Móvil pequeño */
@media (max-width: 575px) {
  .jf-section {
    padding: 55px 0;
  }
  /* Evita que textos con mucho espaciado desborden a la derecha */
  .jf-hero-pre {
    letter-spacing: 3px;
  }
  .jf-eyebrow {
    letter-spacing: 2px;
    font-size: 0.78rem;
  }
  .jf-hero-sub {
    font-size: 1rem;
  }
  .jf-hero-title {
    letter-spacing: 0;
  }
  /* Servicios y tarjetas con un poco menos de padding */
  .jf-service-card {
    padding: 32px 22px;
  }
  /* Testimonios: texto más contenido */
  .jf-testi p {
    font-size: 1.1rem;
  }
  /* Contacto: iconos sociales sin apretarse */
  .jf-socials a {
    width: 40px;
    height: 40px;
  }
  /* Seguridad extra: nada dentro del contenedor se sale */
  .container {
    overflow-x: clip;
  }
}
