/* ===================================
   ESTILOS GENERALES
   =================================== */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #000;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  color: #fff;
}

#preloader {
  position: fixed;
  inset: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo img {
  width: 120px;
  height: auto;
  opacity: 0;
  animation: fadeInLogo 2s ease forwards;
}

#progress-bar {
  width: 100%;
  max-width: 120px; /* mismo ancho que el logo */
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin-top: 12px;
  border-radius: 2px;
  overflow: hidden;
}

#progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.5s ease; /* animación suave cada vez que sube */
}




@keyframes fadeInLogo {
  0% {
    opacity: 0;
    filter: grayscale(100%);
  }
  100% {
    opacity: 1;
    filter: grayscale(0%);
  }
}

/* ===================================
   TITULOS
   =================================== */
.about-title,
.news-title,
.internal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 35px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  z-index: 1;
  text-align: left;
  margin-bottom: 1.5rem;
}

/* =====================================================
   INTERNAL SECTION – PÁGINAS INTERNAS
===================================================== */
.internal-section {
  padding-top: 240px; /* deja espacio para el navbar con logo */
  color: #fff;
}

/* ===================================
   BOTONES PRIMARIOS PERSONALIZADOS
   =================================== */
.btn-primary {
  position: relative;   /* necesario para posicionar el ::before */
  overflow: hidden;
  background-color: #3f3f3f !important;
  border-color: #7d7d7d !important;
  color: #fff !important;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.btn-primary::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  /* estado inicial: centrado y oculto */
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  opacity: 0.3;
  pointer-events: none;
}

.btn-primary:hover::before {
  /* !!! Aquí incluimos TRANSLATEY de nuevo, + escala completa !!! */
  transform: translateY(-50%) scaleX(1) !important;
}

.btn-primary:hover {
  background-color: #000 !important;
}

/* ===================================
   NAVBAR PERSONALIZADO SOBRE HERO
   =================================== */
.custom-navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  background-color: rgb(140 140 140 / 25%);
  padding: 0;
  transition: background 0.3s ease;
}
.navbar-nav {
  gap: 1.875rem;
  margin-top: 0.5rem;
}

.navbar-nav .nav-link {
  color: #fff;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 5px;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #f0ad4e;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 48%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  opacity: 0.3;
  pointer-events: none;
}

.navbar-nav .nav-link:hover::before {
  transform: scaleX(1);
}

/* =====================================================
   HERO CAROUSEL
===================================================== */
#heroCarousel {
  position: relative;
  width: 100%;
  height: 70vh; /* altura fija */
  overflow: hidden;
  padding-top: 0;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  width: 100%;
  height: 70vh; /* cada slide ocupa todo el alto */
}

#heroCarousel img,
#heroCarousel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption reposicionado */
#heroCarousel .carousel-caption {
  position: absolute;
  top: 45%;   /* separación desde arriba en escritorio */
  bottom: auto;
  left: 0;
  right: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

/* =====================================================
   ESTILOS GLOBALES PARA TITULOS Y BOTONES DE PROYECTOS
===================================================== */
.hero-slide-title {
  text-transform: uppercase;
  color: #fff;
}

.hero-slide-subt {
  width: 280px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #959595 !important;
  margin: 0;
}

.view-more-btn {
    margin-top: 10px;
    overflow: visible;
}



/* ===================================
   PROYECTOS OVERLAY
   =================================== */
.project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
}

.project-overlay.visible {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease forwards;
}

.project-details {
  max-width: 800px;
  margin: 0 auto;
}

.project-overlay h2 {
     margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
}

.project-overlay p {
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
    color: #eee;
}
.project-overlay p strong {
    min-width: 160px; /* Alinea etiquetas a la izquierda si quieres */
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #959595 !important;
  }  

.project-overlay span {
    color: #fff; /* contenido dinámico */
    display: inline-block;
  }
.project-overlay .project-type {
    min-width: 160px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #959595 !important;
    margin: 0;
}


.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  z-index: 10000;
  background: none;
  border: none;
}

/* ===================================
   BOTÓN DE CIERRE PARA MENÚ MOBILE
   =================================== */
.navbar-collapse.show .close-menu {
  display: block;
  text-align: right;
  padding: 1rem;
}

.close-menu {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* ===================================
   CONTENIDO GENERAL
   =================================== */
section {
  padding: 60px 0;
}

/* =====================================================
   ABOUT US SECTION – PARALLAX + STATIC TEXT
===================================================== */
.about-us-section {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  margin: 0;      /* elimina huecos arriba/abajo */
  padding: 0;     /* elimina padding superior */
}

/* Fondo parallax centrado y más alto para cubrir la ventana */
.about-us-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: -60%;       /* sube el fondo para centrarlo verticalmente */
  width: 100%;
  height: 150%;    /* altura extra para parallax sin cortes */
  background: url('../images/hero_bg.png') center center / cover no-repeat;
  will-change: transform;
  z-index: -1;     /* detrás de las columnas */
}

/* Desplazamiento controlado por JS */
.about-us-section[data-parallax-offset]::before {
  transform: translateY(var(--parallax-offset, 0px));
}

/* Columnas fijas (solo el fondo se mueve) */
.about-left,
.about-right {
  position: sticky;
  top: 0;          /* justo debajo del navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ventana hueca (columna izquierda) */
.about-left {
  flex: 0 0 40%;
  background: transparent;
  padding: 4rem 2rem;  /* espacio interno para centrar el título */
  margin: 0;
}

/* Columna de texto (derecha) */
.about-right {
  flex: 0 0 60%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 4rem 3rem;
}

/* Texto estático, sin animaciones */
.about-content {
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* =====================================================
   ABOUT US TV – PARALLAX FLOATING + GLITCH TEXT
===================================================== */
.about-tv {
  position: relative;
  width: 100%;
  max-width: 420px;          /* tamaño máximo del TV */
  margin: 0 auto;
  will-change: transform;    /* para el parallax */
}

.about-tv-img {
  display: block;
  width: 100%;
  height: auto;
}

.about-text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;      /* no bloquea clicks */
}

/* =====================================================
   NEWS SECTION
===================================================== */
#news-section .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* === OVERRIDES PARA NEWS SECTION (SIN CLASES NUEVAS) === */

#news-section .card {
  background-color: rgba(255,255,255,0.09) !important;
  border: none;
}

#news-section .card-img-top {
  height: 180px;
  object-fit: cover;
}

#news-section .card-title {
  color: #fff;
  /* puedes ajustar tamaño si lo deseas:
     font-size: 1.5rem;
  */
}

#news-section .text-muted {
  color: #aaa !important; /* fecha */
  font-size: 0.85rem;
}

#news-section .card-text {
  color: #eee;
  font-size: 14px;
}


/* === NEWS HEADER: línea y botón === */
.news-header {
  display: flex;
  align-items: center;          /* centra verticalmente en desktop */
  justify-content: space-between;
  flex-direction: row;
  margin-bottom: 1.5rem;        /* espacio debajo */
}

.news-header .news-title {
  margin: 0;
}

.news-header .news-separator {
  border: none;
  border-top: 1px solid #fff;
  flex-grow: 1;                 /* ocupa todo el espacio disponible */
  margin: 0 1rem !important;               /* separación horizontal */
  opacity: 0.3;
  display: block !important;
}

.news-header .news-more-btn {
  margin: 0;                    /* en desktop va alineado en la misma fila */
}

/* ===================================
   FOOTER BACKGROUND PARALLAX
   =================================== */
#site-footer {
  position: relative;
  overflow: hidden;
}

#site-footer .footer-bg {
  position: absolute;
  /* Extiende la capa al doble de la altura del footer */
  top: -50%;
  bottom: -50%;
  left: 0;
  right: 0;

  background: url('../images/background_blacksheep.jpg') center center / cover no-repeat;
  will-change: background-position;
  z-index: 0;
}

/* Contenido del footer sobre el fondo */
#site-footer .footer-content {
  position: relative;
  z-index: 1;
}

/* Ajustes de iconos y texto ya existentes */
.footer-year {
  font-size: 13px;
}

.iconosredes {
  font-size: 31px !important;
  line-height: 10px !important;
  vertical-align: -10px !important;
}

/* Logo en footer */
#site-footer .footer-logo img {
  display: inline-block;
}

/* Botón back-to-top pequeño */
#site-footer #back-to-top {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}



/* =====================================================
   GALERÍA DE PROYECTOS – TARJETAS CUADRADAS -> CIRCULARES EN HOVER
===================================================== */
.projects-gallery .card {
  aspect-ratio: 1/1;           /* tarjeta siempre cuadrada */
  overflow: hidden;            /* para que la imagen respete los bordes */
  border-radius: 0;            /* bordes rectos por defecto */
  transition: border-radius 0.4s ease; /* transición suave de esquinas */
}

.projects-gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* rellena sin deformar */
  filter: grayscale(100%);     /* gris por defecto */
  transition: all 0.4s ease;   /* transición suave */
}

.projects-gallery .card:hover {
  border-radius: 50%;          /* círculo perfecto al hover */
}

.projects-gallery .card:hover img {
  filter: grayscale(0);        /* en color al hover */
  transform: scale(1.1);       /*  se agranda un poco */
}

/* =====================================================
   FILTROS DE GALERÍA – BOTÓN ACTIVO
===================================================== */
.projects-filter .filter-btn.active {
  background-color: #fff !important;  /* fondo blanco */
  color: #000 !important;             /* texto negro */
  border-color: #fff !important;      /* borde blanco */
}



/* =====================================================
   TEAM CARDS – RECTANGULARES CON HOVER
===================================================== */
.team-gallery .card {
  aspect-ratio: 3/5;           /* más alta que ancha */
  overflow: hidden;
  border-radius: 3%;            /* esquinas rectas por defecto */
  transition: border-radius 0.4s ease;
}

.team-gallery .team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;        /* prioridad a la cara */
  filter: grayscale(100%);
  border-radius: 0;
  transition: transform 0.4s ease, filter 0.4s ease, border-radius 0.4s ease;
}

/* Hover con zoom + circular */
.team-gallery .card:hover {
  border-radius: 10%;
}
.team-gallery .card:hover .team-img {
  transform: scale(1.1);       /* zoom más notorio */
  filter: grayscale(0%);
  border-radius: 10%;
}

/* ===========================
   TEAM TITLES
=========================== */
.team-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.team-role {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #959595 !important;
  margin: 0;
}

/* ===================================
   TEAM OVERLAY CON DEGRADADO
=================================== */
.team-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* texto siempre abajo */
  align-items: center;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0) 60%);
}

.team-card {
  overflow: hidden; /* oculta las esquinas sobrantes */
  border-radius: 0; /* cuadrado por defecto */
  transition: border-radius 0.4s ease;
}

.team-card:hover {
  border-radius: 50%; /* círculo en hover */
}

.team-card:hover .team-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.imdb-icon {
  width: 60px;        /* ancho fijo */
  height: auto;       /* mantiene proporción */
  margin-top: 1rem;   /* separación con el texto */
  transition: transform 0.3s ease;
}


/* =====================================================
   PROJECTS – OVERLAY DEGRADADO SOBRE IMAGEN
===================================================== */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,        /* transparente arriba */
    rgba(0,0,0,0.9) 35%,     /* empieza a oscurecer más pronto */
    rgba(0,0,0,0.9) 65%,     /* mantiene negro hasta más abajo */
    rgba(0,0,0,0) 100%       /* transparente abajo */
  );
  z-index: 1;
  pointer-events: none;
}


.projects-gallery .card-img-overlay {
  position: absolute !important; 
  z-index: 2; /* texto encima del overlay */
}

/* Highlight temporal en contacto */
.bloquecontact {
    padding-top: 20px;
    padding-bottom: 20px;
}
/* Highlight elegante en bloque de contacto */
.highlight-contact {
  animation: contactHighlight 2s ease-in-out;
}

@keyframes contactHighlight {
  0%   { background-color: #4d4d4d; }
  50%  { background-color: #2b2b2b; }
  100% { background-color: transparent; }
}

