/*
--titlefont: Montserrat
--mainfont: Roboto

--contact_gray: #ededed

h2: 43px
interespaciado: 5
altura: 1.5

p: 24/32


section padding: 105px

forms/button

18px/24px

altura barra: 110px 
*/

/** HEADER **/

/* Animaciones para el header */
@keyframes headerBackgroundFadeIn {
  from {
    background-color: rgb(0, 0, 0);
  }
  to {
    background-color: rgb(0, 0, 0);
  }
}

@keyframes headerTextFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header {
  /*transition: all 0.3s ease;*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;

  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
}

/* Clase específica para el efecto de fading */
.header.header_fade_in {
  /* Estado inicial: fondo negro sólido (sin transparencia) */
  background-color: rgb(0, 0, 0);
  /* Animación del fondo: aparece después del texto */
  animation: headerBackgroundFadeIn 1s ease-in-out 0.5s forwards;
}

/* Animación del contenido del navbar (texto, logo, links) */
.header_fade_in .navbar-brand,
.header_fade_in .nav-link {
  /* Estado inicial: texto transparente */
  opacity: 0;
  /* Animación del texto: aparece primero */
  animation: headerTextFadeIn 0.8s ease-in-out forwards;
}

.header .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}

.header.header_scrolled .navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Responsive padding consistente */
@media (max-width: 768px) {
  .header .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header.header_scrolled .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

.header .navbar-brand {
  font: 400 1.75rem/1.2 var(--titlefont);

  letter-spacing: 0.15em;
  transition: font-size 0.3s ease;

  display: flex;
  align-items: center;
  gap: 1rem;

  padding-top: 0;
  padding-bottom: 0;
}
.header .navbar-brand span {
  display: none;
}

.header .navbar-brand .logo_image {
  height: 45px;
  width: auto;
  transition: height 0.3s ease;
}

.header.header_scrolled .navbar-brand .logo_image {
  height: 40px;
}

/* tablet: logo más pequeño pero consistente */
@media (max-width: 768px) {
  .header .navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .header .navbar-brand .logo_image {
    height: 40px;
  }

  .header.header_scrolled .navbar-brand .logo_image {
    height: 36px;
  }
}

/* mobile: logo más pequeño pero consistente */
@media (max-width: 576px) {
  .header .navbar-brand .logo_image {
    height: 36px;
  }

  .header.header_scrolled .navbar-brand .logo_image {
    height: 30px;
  }
}

/* Menú oculto por petición del cliente */
.header ul.navbar-nav,
.header .navbar-toggler {
  display: none !important;
}

.header .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  transition: color 0.15s ease;
}
.header .nav-link:hover {
  color: var(--gray_medium) !important;
}

.header .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
}

.header .navbar-toggler:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.header .navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Estilos del menú colapsado en mobile */
@media (max-width: 991px) {
  .header .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
  }

  .header .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .header .nav-item:first-child {
    margin-top: 0;
  }
}

/** HERO **/
/** HERO **/
/** HERO **/

.hero_section {
  position: relative;
  /*
  height: calc(100vh - 100px);
  min-height: 600px;
  */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero_section .hero_video {
  /*
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  */
  width: 100vw;

  object-fit: cover;
  z-index: 1;
  max-width: 100%;
}

/* Video Landscape: visible en desktop y tablet */
.hero_section .hero_video_landscape {
  aspect-ratio: 16 / 8;
  display: block;
}

@media (max-width: 768px) {
  .hero_section {
    /*maintain square proportions*/
    height: 100vw;
    min-height: auto;
  }
}
/* Video Square: oculto por defecto */
.hero_section .hero_video_square {
  display: none;
}

/* Mobile: mostrar video square, ocultar landscape */
@media (max-width: 767px) {
  .hero_section .hero_video_landscape {
    display: none;
  }

  .hero_section .hero_video_square {
    display: block;
    /*maintain square proportions*/
    height: 100vw;
  }
}

.hero_section .hero_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.hero_section .container {
  position: relative;
  z-index: 3;
}
.hero_section .hero_content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero_section .hero_content h1 {
    letter-spacing: 0.08em;
  }
}

.hero_section .scroll_indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 3;
}
@media (max-width: 768px) {
  .hero_section .scroll_indicator {
    display: none !important;
  }
}

.hero_section .scroll_indicator .scroll_arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 9999px;
  position: relative;
}
.hero_section .scroll_indicator .scroll_arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

/** SERVICES **/

.services_section .services_content h2 {
  line-height: 1.1;
}
@media (max-width: 992px) {
  .services_section .services_content h2 {
    font-size: 2.5rem !important;
  }
}
@media (max-width: 768px) {
  .services_section .services_content h2 {
    font-size: 2rem !important;
  }
}

/** CONTACT **/
.contact_spacing_y {
  margin-bottom: 30px;
}

.contact_section .form-control {
  background-color: var(--white);
  border-radius: 0;
  border-color: transparent;
  font: var(--form_font);
  color: var(--black);

  min-height: var(--form_height);
}
.contact_section .form-control::placeholder {
  color: var(--gray_medium);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.contact_section .form-control:hover {
  border-color: var(--gray_medium);
}
.contact_section .form-control:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}
.contact_section .form-control:focus::placeholder {
  color: transparent;
}

.contact_section .btn {
  transition: all 0.3s ease;
  font: 400 18px/1.3 var(--mainfont);
  text-transform: uppercase;
  background-color: var(--bg_dark);
  color: var(--white);
  min-width: 160px;
  min-height: 38px;
  border-radius: 0;
}
.contact_section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.contact_section .btn:active {
  transform: translateY(0);
}

.field_error {
  border-color: var(--red) !important;
}

.error_message {
  color: var(--red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/******** SWAL *******/
.swal2-confirm.swal2-styled {
  transition: all 0.3s ease;
  font: 400 18px/1.3 var(--mainfont);
  text-transform: uppercase;
  background-color: var(--bg_dark);
  color: var(--white);
  min-width: 160px;
  min-height: 38px;
  border-radius: 0;
}
