/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Gordita';
  src: url('../fonts/gordita/gordita-medium-webfont.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

body {
  background-color: #fff;
  color: #282828;
  font-family: 'Gordita', sans-serif;
  
}

.border-top-vibrant {
  border-top: 6px solid #ec0c5c;
}

.t_azul {
  border-top: 4px solid #2d4bcd;
}

.titulo {
  display: block;
  height: 35%;
  width: auto;
  background-image: url("../images/titulo.svg");
  background-repeat: no-repeat;
  margin-top: 10px;
  margin-left: 18%;	
}

h1, h2, p {
  font-family: 'Gordita', sans-serif;
  font-weight: 300;
}

h1 {
  font-size: 2.3rem;
  padding: 0 30px;
  font-weight: 100;
}

.intros {
  font-size: 1.2rem;
  padding: 40px 10px 10px 30px;
}

h2 {
  font-size: 2rem;
  height: 100px;
  line-height: 100px;
  border-left: 1px solid #282828;
  padding-left: 20px;
  margin-bottom: 30px;
}

p {
  font-size: 1rem;
  padding: 20px 0 0 35px;
}

/* ========== NAV ========== */
nav {
  margin-top: -5px;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #ec0c5c !important;
}

.logo_v {
  display: block;
  height: 80px;
  width: auto;
}

header {
  position: relative;
  height: 200px;
  display: block;
  max-width: 1280px ;
  margin: 0 auto;
}
.h_img{
  max-width: 1280px;
  display: block;
  margin: 0 auto;
}
.h_img img{
  width: 100%;
  height: auto;
}
/* Submenú en desktop */
.submenu {
  display: block;
  margin: 0 auto;
  position: relative;
  top: -50px;
  background-color: transparent;
  width: 99%;
  opacity: 0;
  overflow:hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 999;
}

.submenu.show {
  max-height: 40px;
  opacity: 1;
}

.submenu ul {
  list-style: none;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.submenu li a {
  color: #282828;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
}

.submenu li a:hover {
  color: #ec0c5c;
}

/* ========== FOOTER ========== */
footer {
  background-color: #cacaca;
  color: #222;
  height: auto;
  padding-bottom: 20px;
}

footer h3 {
  font-size: 2rem;
  font-weight: 100;
  padding: 40px 0 0 80px;
}

/* ========== IMAGENES ========== */
.col-xl-8 img {
  width: 100%;
  height: auto;
}
.img_c{
  display: block;
  float: right;
}
/* ========== SPACER ========== */
.spacer {
  height: 40px;
}

/* ========== MENÚ MÓVIL ========== */
#hamburgerBtn {
  border: none;
  background: none;
  margin-left: auto;
  margin-right: 0px;
  z-index: 10000;
}
/* ===== MENÚ MÓVIL GENERAL ===== */
.mobile-menu {
  display: none;
  background-color: transparent;
  width: 100%;
  z-index: 999;
  padding-bottom: 1rem;
  transition: max-height 0.3s ease;
}

.mobile-menu .nav-link {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ===== SUBMENÚ MÓVIL ===== */
.submenu-mobile {
  display: none;
  margin-left: 1.5rem;
}

.submenu-mobile.show {
  display: block;
}

.submenu-mobile ul {
  list-style: none;
  padding-left: 0;
}

.submenu-mobile li a {
  display: block;
  padding: 0.35rem 0;
  color: black;
  font-size: 0.9rem;
  text-decoration: none;
}

.submenu-mobile li a:hover {
  color: #ec0c5c;
}

/* ===== DESPLAZAMIENTO DE MAIN Y FOOTER CUANDO MENÚ ESTÁ ABIERTO ===== */
body.menu-open main,
body.menu-open footer {
  margin-top: 30px;
  transition: margin-top 0.3s ease;
}
/* ===== Galería ====*/
.gallery {
  background-color: transparent;
  max-width: 960px;
  display: block;
  margin: 0 auto;
}

.gallery h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 1px solid #cacaca;
}

.main-image {
  text-align: center;
  margin-bottom: 20px;
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: border 0.3s ease;
}

.thumb:hover,
.thumb.active {
  border: 2px solid #ec0c5c;
}
/*bxslider*/
#bx-pager {
  text-align: center;
  margin-top: -30px;
}

#bx-pager a {
  margin: 0 3px;
}

#bx-pager a img {
  padding: 3px;
  border: solid #ccc 1px
}

#bx-pager a.active img {
  border: solid #5280DD 1px;
}

/*=== video galaeria ===*/
.video-gallery {
  background-color: transparent;
  color: white;
  padding: 2rem;
  border-radius: 10px;
}

.main-video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: auto;
  background-color: #000;
}

.main-video iframe,
.main-video video {
  width: 100%;
  height: 540px;
  border: none;
}

.video-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.video-thumb {
  cursor: pointer;
  width: 120px;
  height:auto;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.video-thumb:hover {
  border-color: #ec0c5c;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumbnails {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.video-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
/*=== Contacto ===*/
#contacto {
  padding: 2rem 1rem;
  color: black;
}

#contacto h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  border-left: 1px solid #cacaca;
  padding-left: 20px;
}

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

input, textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #f4f4f4;
  font-family: 'Gordita', sans-serif;
  font-size: 1rem;
  color: #333;
}

input:focus, textarea:focus {
  outline: 2px solid #ec0c5c;
}

button {
  background-color: #ec0c5c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Gordita', sans-serif;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #bf0a4b;
}
.g_con{
  text-align: center;
  height: 50vh;
}
.g_cont {
  text-decoration: none;
}
/* ===== MEDIA QUERY: VERSIÓN MÓVIL ===== */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  header {
    position: relative;
    height: auto;
  }
  .h_img{
    padding: 0px;
  }
  /* Mostrar menú móvil cuando esté activo */
  #mobileMenu {
    display: none;
  }

  /* Ajustar tamaño del logo */
  .logo_v {
    height: 40px;
    width: auto;
  }
  /* ========== NAV ========== */
nav {
  margin-top: 10px;
}
.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease-in-out;
}
  .spacer {
    height: 25px;
  }

  h1 {
    font-size: 1.6rem;
    padding: 10px;
  }

  .intros {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  h2 {
    font-size: 1.3rem;
    margin-left: 30px;
    height: 80px;
    line-height: 80px;
    border-left: 1px solid #cacaca;
    padding-left: 15px;
    margin-bottom: 10px;
  }

  p {
    font-size: 0.9rem;
    padding: 20px 10px 0px 30px;
  }

  .bott {
    margin-bottom: 20px;
  }

  footer {
    height: auto;
    padding-bottom: 20px;
  }

  footer h3 {
    font-size: 1.3rem;
    padding: 20px 0 0 0;
    text-align: center;
  }
  .img_c{
    float: none;
    width: 100%;
    height: auto;
  }
  .thumb {
    width: 50px;
    height: auto;
    border-radius: 0px;
  }
  /*video galeria*/
  .main-video {
    height: auto;
  }

  .main-video iframe,
  .main-video video {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .video-thumbnails {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem;
    gap: 10px;
  }

  .video-thumb {
    flex: 0 0 auto;
    width: 50px;
    height:auto;
  }

  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-gallery {
    padding: 1rem;
  }

  .video-gallery h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
  }
}