@import url("https://fonts.cdnfonts.com/css/br-shape");
@import url("https://fonts.cdnfonts.com/css/k2d");

/* Evita la barra/scroll horizontal (overflow) en móvil */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Header */
.navbar {
  background: rgba(0, 0, 0, 0.7);
  font-family: "K2D Light", sans-serif;
  font-size: 1rem;
}
.navbar-brand img {
  height: 90px;
}
.nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-right: 15px;
}
.nav-link:hover {
  color: #61f6ff !important;
}

/* Hero section */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-carousel .carousel-item {
  height: 100vh;
}
.hero-carousel video,
.hero-carousel img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* En móvil el video institucional se muestra COMPLETO (contain) para que su
   mensaje no quede recortado; las imágenes siguen en cover. */
@media (max-width: 768px) {
  .hero-carousel video {
    object-fit: contain;
    background: #000;
  }
}
/* Sombreado oscuro SOLO en los slides con texto (imágenes), no en el video.
   El slide del video no tiene .hero-overlay, por eso queda limpio. */
.hero-carousel .carousel-item:has(.hero-overlay)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 5%,
    rgba(0, 0, 0, 0.6) 35%,
    rgba(0, 0, 0, 0.15) 60%
  );
  z-index: 1;
  pointer-events: none;
}

/* Overlay text */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  text-align: left;
  color: white;
  max-width: 900px;
  padding: 20px;
  z-index: 2; /* sobre el sombreado */
}

/* Los botones del hero se envuelven en móvil para no desbordar la pantalla */
@media (max-width: 768px) {
  .hero-overlay .d-flex {
    flex-wrap: wrap;
  }
}
.hero-overlay h1 {
  font-family: "BR Shape", sans-serif;
  color: var(--corvid-color, #61f6ff);
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 👈 sombra */
}
.hero-overlay h2 {
  font-family: "BR Shape", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9); /* 👈 sombra */
}
.hero-overlay p {
  font-family: "K2D Light", sans-serif;
  font-size: 1.4rem;
  color: white;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.5),
    /* sombra arriba izquierda */ 1px -1px 1px rgba(0, 0, 0, 0.5),
    /* sombra arriba derecha */ -1px 1px 1px rgba(0, 0, 0, 0.8),
    /* sombra abajo izquierda */ 1px 1px 1px rgba(0, 0, 0, 0.98); /* sombra abajo derecha */
  max-width: 550px;
  line-height: 1.5;
  padding: 20px 0 80px 0;
}
.hero-overlay span {
  font-family: "BR Shape", sans-serif;
  color: var(--corvid-color, #61f6ff);
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 👈 sombra */
}

/* Partners integrated inside hero */

.partners-section {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 0;
  text-align: center;
  overflow: hidden;
}

.partners-section h2 {
  color: #61f6ff;
  margin-bottom: 15px;
  font-size: 2.2rem;
  color: var(--corvid-color, #61f6ff);
  text-align: left;
  padding-left: 105px;
}

.partners-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused; /* 👈 pausa al pasar el mouse */
}

.partners-slide {
  display: flex;
}

.partners-slide img {
  max-height: 100px;
  margin: 5px 40px;
  filter: brightness(0) invert(1); /* Blanco por defecto */
  transition: filter 0.3s ease; /* Suaviza el cambio */
  cursor: pointer; /* 👆 Opcional: indica que se puede interactuar */
}

/* Solo el logo sobre el que pasa el mouse se ve en colores */
.partners-slide img:hover {
  filter: none;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 👇 solo afecta al heroCarousel */
#heroCarousel .carousel-item.fade-in {
  opacity: 0;
  background-color: #000; /* 👈 negro en vez de blanco */
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    background-color: #000;
  }
  to {
    opacity: 1;
    background-color: transparent;
  }
}

/* Aplica solo a imágenes del heroCarousel */
/* Zoom + paneo lateral */
#heroCarousel .carousel-item img.zoom-in {
  animation: kenburns 12s ease-in-out forwards;
  transform-origin: center center;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0); /* inicio normal */
  }
  100% {
    transform: scale(1.08) translate(-1.5%, 0); /* zoom suave + paneo leve a la izquierda */
  }
}

.alerta-btn {
  background: linear-gradient(90deg, #f5066e, #f05411);
  border: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Efecto de brillo que cruza */
.alerta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.alerta-btn:hover::before {
  left: 125%;
}

/* Efecto de zoom y sombra en hover */
.alerta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245, 6, 110, 0.6);
}

/* Botón "Solicitar Información" */
.fancy-btn-info {
  position: relative;
  overflow: hidden;
  border: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fancy-btn-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  transition: 0.5s;
}

/* Botón "Read More" */
.fancy-btn-light {
  position: relative;
  overflow: hidden;
  border: 1px solid #17a2b8; /* borde info */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fancy-btn-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(23, 162, 184, 0.2); /* brillo en azul info */
  transform: skewX(-25deg);
  transition: 0.5s;
}

.fancy-btn-light:hover::before {
  left: 125%;
}

.fancy-btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(23, 173, 184, 0.6);
}

/* Quitar sombra predeterminada de Bootstrap y mantener animación */
.fancy-btn-info,
.fancy-btn-light {
  transition: all 0.3s ease; /* para animación suave */
  box-shadow: none !important; /* quita cualquier sombra predeterminada */
}

/* Hover: animación de brillo o cambio de color */
.fancy-btn-info:hover {
  background: linear-gradient(90deg, #0f224aff, #0f224aff);
  transform: translateY(-3px); /* sube un poquito */
  color: white;
}

.fancy-btn-light:hover {
  background-color: #0f224aff;
  color: #ffffffff;
  transform: translateY(-3px);
}
#cookiesBanner p {
  margin-bottom: 0.3rem; /* menos espacio */
  line-height: 1.25; /* más compacto */
}
/* =========================
   Responsividad
   ========================= */

/* Tablets en horizontal y pantallas medianas */
@media (max-width: 1366px) {
  .navbar {
    font-size: 1.1rem;
  }
  .navbar-brand img {
    height: 80px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 3.5rem;
  }
  .hero-overlay h2 {
    font-size: 2.1rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 1.4rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 1.3rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }

  .partners-section h2 {
    font-size: 2.2rem;
    text-align: left;
    padding-left: 95px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}

/* Resolución específica 1440x900 */
@media (max-width: 1440px) and (min-width: 1367px) {
  .navbar {
    font-size: 1rem;
  }
  .navbar-brand img {
    height: 85px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 800px;
    padding: 15px;
  }
  .hero-overlay h1 {
    font-size: 4rem;
  }
  .hero-overlay h2 {
    font-size: 1.9rem;
  }
  .hero-overlay span {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1.3rem;
    padding: 15px 0 60px 0;
    max-width: 500px;
  }
  .alerta-btn {
    font-size: 1.1rem !important;
  }
  .alerta-btn span {
    font-size: 0.9rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 1.2rem !important;
    padding: 0.5rem 1rem;
  }
  .partners-section h2 {
    font-size: 2rem;
    text-align: left;
    padding-left: 100px;
  }
  .partners-slide img {
    max-height: 80px;
    margin: 5px 25px;
  }
}

@media (max-width: 1200px) {
  .navbar {
    font-size: 0.8rem;
  }
  .navbar-brand img {
    height: 80px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay h2 {
    font-size: 1.1rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 0.8rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }

  .partners-section h2 {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 60px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}

/* Tablets verticales y smartphones grandes */
@media (max-width: 1024px) {
  .navbar {
    font-size: 0.5rem;
  }
  .navbar-brand img {
    height: 80px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay h2 {
    font-size: 1.1rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 0.8rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }

  .partners-section h2 {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 60px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}

/* Tablets verticales y smartphones grandes */
@media (max-width: 992px) {
  .navbar {
    font-size: 0.8rem;
  }
  .navbar-brand img {
    height: 80px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay h2 {
    font-size: 1.1rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 0.8rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }

  .partners-section h2 {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 60px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}

/* Smartphones medianos */
@media (max-width: 768px) {
  .navbar {
    font-size: 0.8rem;
  }
  .navbar-brand img {
    height: 80px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay h2 {
    font-size: 1.1rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 0.8rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }

  .partners-section h2 {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 60px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}

/* Smartphones pequeños (iPhone SE, Android compactos, etc.) */
@media (max-width: 576px) {
  .navbar-brand img {
    height: 90px;
  }
  .hero-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 90%;
    padding: 10px;
  }
  .hero-overlay h1 {
    font-size: 2.1rem;
  }
  .hero-overlay h2 {
    font-size: 1.7rem;
  }
  .hero-overlay span {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 1.3rem;
    padding: 10px 0 20px 0;
  }
  .alerta-btn {
    font-size: 1rem !important;
  }
  .alerta-btn span {
    font-size: 0.8rem !important;
  }
  .fancy-btn-info,
  .fancy-btn-light {
    font-size: 1.3rem !important; /* más compacto */
    padding: 0.4rem 0.8rem; /* reduce alto/ancho */
    white-space: nowrap; /* evita saltos de línea */
  }
  .mt-3.d-flex {
    flex-direction: column; /* apila verticalmente */
    gap: 10px; /* separa un poco */
  }
  .partners-section h2 {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 60px;
  }

  .partners-slide img {
    max-height: 45px;
    margin: 5px 10px;
  }
  .hero-overlay a {
    font-size: 5px;
  }
}
body.preloader-active {
  overflow: hidden; /* bloquea scroll */
}
/* --- PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* color de fondo en caso de que el video tarde */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* arriba de todo */
  overflow: hidden;
}

#preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#preloader .preloader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 2s ease,
    visibility 1s ease;
}

#modal-body {
  text-align: left;
}

/* Estado normal (en nav) */
.alerta-btn,
.contacto-btn {
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Estado oculto */
.oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* no clickeables */
}

/* Estado flotante tipo etiqueta */
.alerta-floating {
  position: fixed !important;
  bottom: 150px;
  right: 0;
  z-index: 1060;
  border-radius: 10px 0 0 10px !important;
  padding: 15px 12px;
  font-size: 1.2rem !important;
  line-height: 1.4;
  text-align: center;
  min-width: 100px;
  max-width: 100px;
  height: 120px;

  /* faltaba esto 👇 */
  display: flex !important;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  animation: slideInRight 0.6s ease forwards;
}

.contacto-floating {
  position: fixed !important;
  bottom: 280px;
  right: 0;
  z-index: 1061;
  border-radius: 10px 0 0 10px !important;
  padding: 15px 12px;
  font-size: 1rem !important;
  line-height: 1.4;
  min-width: 100px;
  max-width: 100px;
  height: 120px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Ajusta logo y toggle */
.navbar-brand img {
  width: auto;
  max-width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  margin-right: 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

