@font-face {
  font-family: "PP Telegraf";
  src: url("../../Vistas/font/PPTelegraf-UltraLight.woff2") format("woff2"),
    url("../../Vistas/font/PPTelegraf-UltraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Telegraf";
  src: url("../../Vistas/font/PPTelegraf-Regular.woff2") format("woff2"),
    url("../../Vistas/font/PPTelegraf-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Font Agrandir Wide Light */
@font-face {
  font-family: "Agrandir Wide Light";
  src: url("../../Vistas/font/Agrandir Wide Light.woff2") format("woff2"),
    url("../../Vistas/font/Agrandir Wide Light.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Variables */
:root {
  --font-telegraf: "PP Telegraf";
  --font-agrandir: "Agrandir Wide Light";

  --color-dark: #000;
  --color-grey: #808080;
  --color-light: #fff;
  --color-celeste: rgb(118, 170, 218);
}

/* Estilos Generales */
body {
  font-family: var(--font-telegraf);
  background-color: var(--color-dark);
  color: var(--color-light);
}

/* Smooth Scroll */
.js-cont {
  position: relative;
}

.js-scroll {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  will-change: transform;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-family: var(--font-agrandir);
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: normal;
  letter-spacing: 3px;
}

h5 {
  font-family: var(--font-telegraf);
  font-size: 1rem;
  color: var(--color-celeste);
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 2.5px;
}

p {
  font-family: var(--font-telegraf);
  font-weight: 200;
  letter-spacing: 0.75px;
  font-size: 1.15rem;
  line-height: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5rem;
}

/* Efecto underline para los items del menu */
a.btn-gral-underline {
  font-family: var(--font-agrandir);
  color: var(--color-light);
  text-decoration: none;
  display: initial;
  position: relative;
  font-size: 1rem;
  letter-spacing: 1.5px;
  font-weight: normal;
  overflow: hidden;
}

a.btn-gral-underline:hover {
  cursor: pointer;
  color: var(--color-celeste);
}

a.btn-gral-underline::after {
  content: "";
  position: absolute;
  height: 1.5px;
  background-color: var(--color-celeste);
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.15s ease-in-out;
  -webkit-transition: transform 0.15s ease-in-out;
  -moz-transition: transform 0.15s ease-in-out;
  -ms-transition: transform 0.15s ease-in-out;
  -o-transition: transform 0.15s ease-in-out;
}

a.btn-gral-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
}

a.btn-gral-underline:not(:hover)::after {
  transform-origin: right;
  transform: scaleX(0);
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
}

a.btn-gral-underline.activo {
  color: var(--text-color);
}

/* Contenedor general del encabezado */
.encabezado-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa pantalla completa */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -100px 100px -20px rgba(0, 0, 0, 0.8);
}

.encabezado-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8), #000);
  z-index: -1;
  pointer-events: none;
}

/* Video de fondo */
.fondo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
}

.fondo-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Que se adapte a cualquier pantalla */
  opacity: 0.75;
  -webkit-opacity: 0.75;
  -moz-opacity: 0.75;
  -ms-opacity: 0.75;
  -o-opacity: 0.75;
}

/* Canvas de Three.js */
#globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none; /* Para que no interfiera con clics */
}

/* Encabezados */
.encabezados {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-top: 90px;
  text-align: center;
}

.encabezados h1 {
  text-align: center;
  margin-bottom: 10px;
}

.encabezados h1 span {
  color: var(--color-celeste);
}

.encabezados h2 {
  font-family: var(--font-agrandir);
  text-align: center;
  letter-spacing: 3px;
  color: var(--var-color-celeste);
  font-size: 3rem;
  line-height: 3.2rem;
  font-weight: normal;
  margin-bottom: 0;
}

.encabezados h2 span {
  color: var(--text-light);
  font-size: 1.75rem;
  letter-spacing: 2px;
}

.encabezados p {
  font-family: var(--font-telegraf);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  letter-spacing: 0.75px;
  max-width: 450px;
  margin: 20px auto;
  font-weight: 200;
}

/* Animaciones si tenés */
.encabezado.animado {
  z-index: 100;
}

/* Animacion para encabezados */
.animado {
  opacity: 0;
  transform: translateY(15px);
  -webkit-transform: translateY(15px);
  -moz-transform: translateY(15px);
  -ms-transform: translateY(15px);
  -o-transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  -webkit-transition: opacity 0.6s ease, transform 0.6s ease;
  -moz-transition: opacity 0.6s ease, transform 0.6s ease;
  -ms-transition: opacity 0.6s ease, transform 0.6s ease;
  -o-transition: opacity 0.6s ease, transform 0.6s ease;
}

.animado.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Cabecera */
.logo {
  width: 130px;
  height: auto;
  transition: opacity 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -ms-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
}

.logo:hover {
  cursor: pointer;
  opacity: 0.7;
}

/* Hide scroll Menu */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: auto;
  background-color: var(--color-dark);
  z-index: 9999;
  transition: top 0.8s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  -webkit-transition: top 0.8s ease;
  -moz-transition: top 0.8s ease;
  -ms-transition: top 0.8s ease;
  -o-transition: top 0.8s ease;
}

#navbar ul {
  list-style: none;
  margin-top: 10px;
}

#navbar ul li {
  display: inline-flex;
  gap: 15px;
  align-items: center;
}

#navbar ul li a {
  font-family: var(--font-agrandir);
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin-right: 5px;
  transition: color 0.35s ease;
  -webkit-transition: color 0.35s ease;
  -moz-transition: color 0.35s ease;
  -ms-transition: color 0.35s ease;
  -o-transition: color 0.35s ease;
}

#navbar .logo a {
  font-family: var(--font-sans);
  font-size: 2rem;
  color: var(--var-color-light);
  text-decoration: none;
}

#navbar .logo a:hover {
  color: var(--color-light);
}

@media screen and (max-width: 768px) {
  ul.menu {
    display: none;
  }
}

/* Menu */
ul.menu-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  ul.menu {
    display: none;
  }
}

/* Botón hamburguesa */
.hamburger {
  position: relative;
  top: 10px;
  right: 10px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

.hamburger span {
  width: 25px;
  height: 1.5px;
  background-color: white;
  display: block;
  transition: all 0.35s ease;
  -webkit-transition: all 0.35s ease;
  -moz-transition: all 0.35s ease;
  -ms-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
}

/* Transformación a "X" */
.hamburger.open span:nth-child(1) {
  background-color: var(--color-celeste);
  transform: rotate(45deg) translate(4px, 4px);
  -webkit-transform: rotate(45deg) translate(4px, 4px);
  -moz-transform: rotate(45deg) translate(4px, 4px);
  -ms-transform: rotate(45deg) translate(4px, 4px);
  -o-transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  background-color: var(--color-celeste);
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9) !important;
  z-index: 1000;
  padding: 90px 20px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.0095, 0.093, 0.015, 0.999);
  -webkit-transition: right 0.35s cubic-bezier(0.0095, 0.093, 0.015, 0.999);
  -moz-transition: right 0.35s cubic-bezier(0.0095, 0.093, 0.015, 0.999);
  -ms-transition: right 0.35s cubic-bezier(0.0095, 0.093, 0.015, 0.999);
  -o-transition: right 0.35s cubic-bezier(0.0095, 0.093, 0.015, 0.999);
}

.sidebar.open {
  right: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.5px;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
}

/* Overlay oscuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  -webkit-transition: opacity 0.5s ease, visibility 0.5s ease;
  -moz-transition: opacity 0.5s ease, visibility 0.5s ease;
  -ms-transition: opacity 0.5s ease, visibility 0.5s ease;
  -o-transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Mostrar overlay cuando se abre el sidebar */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

.language-switch {
  position: relative;
  top: 6.5px;
  z-index: 1001;
}

h1 span,
h2 span {
  color: var(--color-celeste) !important;
}

h2 span {
  font-size: 2rem;
}

button.gral {
  font-family: var(--font-agrandir) !important;
  color: var(--color-dark);
  letter-spacing: 2px;
  font-size: 1.1rem;
  padding: 17px 40px;
  outline: none;
  border: none;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  transition: background-color 0.75s ease, color 0.75s ease;
  -webkit-transition: background-color 0.75s ease, color 0.75s ease;
  -moz-transition: background-color 0.75s ease, color 0.75s ease;
  -ms-transition: background-color 0.75s ease, color 0.75s ease;
  -o-transition: background-color 0.75s ease, color 0.75s ease;
}

button.gral:hover {
  background-color: var(--color-celeste);
  cursor: pointer;
  color: var(--color-dark) !important;
}

.grid-servicios {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-servicios {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .grid-servicios {
    column-count: 1;
  }
}

.grid-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  background: #050505;
  padding: 30px;
  border: 0.1px solid rgba(118, 170, 218, 0.35);
  border-radius: 1rem;
  box-shadow: 0 0px 0px rgba(118, 170, 218, 0);
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  transition: transform 0.75s ease, box-shadow 0.75s ease;
  -webkit-transition: transform 0.75s ease, box-shadow 0.75s ease;
  -moz-transition: transform 0.75s ease, box-shadow 0.75s ease;
  -ms-transition: transform 0.75s ease, box-shadow 0.75s ease;
  -o-transition: transform 0.75s ease, box-shadow 0.75s ease;
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(118, 170, 218, 0.6);
}

.grid-card img {
  max-width: 40px;
  height: auto;
}

.grid-card h3 {
  font-family: var(--font-agrandir);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  transition: color 0.75s ease;
  -webkit-transition: color 0.75s ease;
  -moz-transition: color 0.75s ease;
  -ms-transition: color 0.75s ease;
  -o-transition: color 0.75s ease;
}

.grid-card:hover h3 {
  color: var(--color-celeste);
}

.grid-card .icono {
  width: 50px;
  opacity: 0.5;
  transition: opacity 0.75s ease, width 0.75s ease;
  -webkit-transition: opacity 0.75s ease, width 0.75s ease;
  -moz-transition: opacity 0.75s ease, width 0.75s ease;
  -ms-transition: opacity 0.75s ease, width 0.75s ease;
  -o-transition: opacity 0.75s ease, width 0.75s ease;
  transform-origin: center;
}

.grid-card:hover .icono {
  opacity: 1;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

/* Formulatio de contacto */
#formulario {
  padding: 20px;
}

form {
  width: 90%;
  margin: auto;
  gap: 10px;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.1px;
}

form label {
  display: block;
  margin-bottom: 5px;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--color-celeste);
  transition: box-shadow 0.35s ease, border 0.35s ease;
  -webkit-transition: box-shadow 0.35s ease, border 0.35s ease;
  -moz-transition: box-shadow 0.35s ease, border 0.35s ease;
  -ms-transition: box-shadow 0.35s ease, border 0.35s ease;
  -o-transition: box-shadow 0.35s ease, border 0.35s ease;
}

form input,
textarea {
  font-family: var(--font-telegraf);
  font-size: 1.05rem;
  font-weight: normal !important;
  letter-spacing: 0.3px;
  width: 100%;
  padding: 10px;
  background: var(--color-dark);
  color: var(--color-light);
  font-weight: 200;
  border: 1px solid rgba(255, 255, 255, 0.15);
  resize: vertical;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.form-group {
  margin-bottom: 30px;
}

form button {
  width: 200px;
}

form button {
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--color-light);
  color: var(--color-dark);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  padding: 15px 40px;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-transition: background-color 0.5s ease, color 0.5s ease;
  -moz-transition: background-color 0.5s ease, color 0.5s ease;
  -ms-transition: background-color 0.5s ease, color 0.5s ease;
  -o-transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

form button:hover {
  background-color: var(--color-celeste);
  color: var(--color-light);
}

/* Footer */
footer {
  width: 100%;
  padding: 2rem 0;
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

footer img {
  max-width: 80px;
}

/* Boton top */
button.btn-scroll {
  margin-top: 15px;
}

#btn-top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  padding: 5px;
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: var(--bg-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-light);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -webkit-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -moz-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -ms-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -o-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

#btn-top:hover {
  color: var(--color-celeste) !important;
  border: 1px solid var(--color-celeste);
  background-color: transparent;
}

/* Estado inicial (oculto) */
.btn-top-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%) scale(0);
  -webkit-transform: translateY(100%) scale(0);
  -moz-transform: translateY(100%) scale(0);
  -ms-transform: translateY(100%) scale(0);
  -o-transform: translateY(100%) scale(0);
}

/* Estado visible con animación */
.btn-top-visible {
  opacity: 1;
  pointer-events: auto;
  padding: 5px;
  transform: translateY(0%) scale(1);
  -webkit-transform: translateY(0%) scale(1);
  -moz-transform: translateY(0%) scale(1);
  -ms-transform: translateY(0%) scale(1);
  -o-transform: translateY(0%) scale(1);
}

/* Transicion entre paginas */
.page-transition {
  animation: fade 1.25s backwards;
  -webkit-animation: fade 1.25s backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Utilidades */
.text-center {
  text-align: center;
}

.w-70 {
  width: 70%;
  margin: auto;
}

.mr-10 {
  margin-right: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.my-100 {
  margin: 100px 0;
}

.py-50 {
  padding: 50px 0;
}

.py-100 {
  padding: 100px 0;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-content-center {
  justify-content: center;
}

.align-content-center {
  align-content: center;
}

.p-20 {
  padding: 20px;
}

.justify-content-between {
  justify-content: space-between;
}
