/* 1. Importar la fuente */
/* 0. Declaración local de Century Gothic */

@import url('https://fonts.cdnfonts.com/css/century-gothic-paneuropean');

                

/* 2. Reset + fuente principal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Aplicar fuente principal a todo texto */
html, body, button, input, textarea, select, a, h1, h2, h3, h4, h5, h6, p, span, div {
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

/* 3. Variables globales */
:root {
  --primary-color: #F9521E;
  --text-color: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.4);
  --transition-speed: 0.3s;
}

/* 4. Asegurar que el html y body llenen toda la ventana */
 body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* Evitar desbordamiento horizontal */
}

/* 5. Estilos de fondo y texto para el body */
body {
  background-color: var(--primary-color);               
  background-image: url('../assets/img/fondos/bg.webp');
  background-repeat: no-repeat;                         
  background-size: cover;                               
  background-position: center;                          
  color: var(--text-color);                                      
}

/* Estilos para el menú de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Transición suave para el cambio de color */
    transition: background-color var(--transition-speed) ease; 
  }
  
  /* Clase que se añadirá con JavaScript al hacer scroll */
  .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9); /* Negro con 90% de opacidad */
    backdrop-filter: blur(5px); /* Efecto de desenfoque para mejor legibilidad */
  }


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; 
  color: inherit; 
}

.text-logo{
    font-size: 1.5rem;
    font-weight: 100;
    color: var(--text-color);
    text-decoration: none;
   font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

.text-bold{

  font-weight: bold;
  color: var(--text-color);

}
.img-logo-escudo{
    width: 25px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
  margin-left: 2rem;
}

.nav-link {

  display: inline-block; /* nuevo */
  position: relative;
  transition: all 0.3s ease-in-out;



  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

.nav-link:hover {
  color: #515151;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(1);
  transition: transform 0.3s ease-in-out;

  width: 100%; /* se ajusta al contenido del enlace si el contenedor es inline-block */
}

/* Para los items del dropdown */
.dropdown-item.active {
  position: relative;
  color: white !important;
}

.dropdown-item.active::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background-color: white;
}
/* Estilos para el menú desplegable */
.dropdown {
  position: relative;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dark-overlay);
  min-width: 200px;
  max-width: 250px;
  border-radius: 4px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  transition: opacity var(--transition-speed) ease, 
              visibility var(--transition-speed) ease, 
              transform var(--transition-speed) ease;
  transform: translateY(-10px);
  z-index: 101;
}

/* Clase para el menú que se despliega a la derecha */
.dropdown-menu.right-aligned {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color var(--transition-speed) ease;
  white-space: normal; /* Permitir envolver el texto */
  word-wrap: break-word; /* Romper palabras largas si es necesario */
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

.dropdown-item:hover {
  background-color: rgba(249, 82, 30, 0.7);
}

/* Menú hamburguesa para móviles */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  position: relative;
  width: 30px;
  height: 24px;
  padding: 0;
}

/* Barras del icono hamburguesa */
.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

/* Posiciones de las barras del hamburguesa */
.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 10px;
}

.hamburger span:nth-child(4) {
  top: 20px;
}

/* Animación a X cuando está activo */
.hamburger.active span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

.hamburger.active span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.active span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

/* Estilos para la sección principal */
.main-section {
  display: flex;
  /* height: calc(100vh - 96px);  */
}

.left-half, .right-half {
    width: 50%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.left-half {
gap: 60px;
  padding-left: 5%;
  margin-bottom: 30px;
}

.right-half {
  align-items: center;
  justify-content: end;
}

.headline {
    font-size: clamp(18px, calc(5px + 3vw), 30px);
  margin-bottom: 1rem;
  font-weight: bold;
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

.subheadline {
    font-size: clamp(13px, calc(5px + 3vw), 16px);
  margin-bottom: 2rem;
  max-width: 80%;
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
}

.principalline {
    font-size: clamp(18px, calc(5px + 3vw), 33px);
    max-width: 90%;
    margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color var(--transition-speed) ease;
 font-family: 'Century Gothic Paneuropean', sans-serif;                                         
  font-size: clamp(13px, calc(5px + 2vw), 16px);
  width: 160px;
  display: flex;

  justify-content: center;
}

.cta-button:hover {
  background-color: #515151;
  color: var(--text-color);
}

.featured-image-container {
    width: 100%;
    height: 95vh;
    position: relative;

    line-height: 0;
    display: flex;
    justify-content: flex-end; /* Cambiado a flex-end para alinear a la derecha */
    align-items: flex-end; /* Mantiene alineación al fondo */
  }
  
  .featured-image {
    /* width: calc(30px + 58vw); */
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.6));
    background-color: transparent;
  }

.cont-social{
    display: flex;
    gap:20px
}

.item-social-media {
    height: 26px;
    transition: all 0.2s ease-in-out; /* Más propiedades y tiempo definido */
    transform-origin: center; /* Punto de origen para la escala */
    will-change: transform; /* Optimización para navegadores */
}

.item-social-media:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2)); /* Efecto adicional opcional */
}
/* Media queries para responsividad */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

 
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    padding-top: 50px !important;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-speed) ease, 
                transform var(--transition-speed) ease;
    
    overflow-y: auto; /* Permitir desplazamiento si es necesario */
  }
  
  .nav-menu.active {
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    display: flex;
    opacity: 1;
    transform: translateY(0);
    align-items: center;

  }
  
  .nav-item {
    margin: 0.5rem 1rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    background: none;
    margin-top: 0;
    padding-left: 1rem;
    transform: translateY(0);
    transition: opacity var(--transition-speed) ease, 
                visibility var(--transition-speed) ease,
                height var(--transition-speed) ease;
    max-width: 100%; /* Asegurar que se ajuste al ancho disponible */
  }

  
  .dropdown-menu.right-aligned {
    left: 0; /* Anular alineación derecha en móvil */
    right: auto;
  }
  
  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    height: auto;
  }
  
  .dropdown-item {
    padding: 0.5rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  /* .main-section {
    flex-direction: column;
    height: auto;
  } */

  .right-half {
    align-items: center;
    justify-content: end;
}

  .main-section {
    flex-direction: column;
    display: flex;
    justify-content: space-around;
    height: 100%;
    min-height: 100vh;
}
  
 
  
  

  .left-half, .right-half {
    width: 100%;
  }

  .left-half{
    margin-bottom: 0px;
  }
  .featured-image-container {
    margin: 0; /* Elimina cualquier margen */
    padding: 0; /* Asegura que no haya padding extra */
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;  /* Mantiene la imagen a la derecha */
    align-items: flex-end;      /* La baja hacia abajo */
    position: relative;
}

.featured-image {
    width: calc(30px + 68vw);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /* Ajustar márgenes para espaciar verticalmente */
  .nav-item {
    margin: 0.75rem 0;
  }

  /* Opcional: si usas dropdown-items en móvil */
  .dropdown-item {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

}

/* Asegurar que todo texto tenga la fuente principal */
::placeholder,
button,
.modal-content,
.tooltip,
.popover,
.toast-header,
.toast-body {
  font-family: "Century Gothic", sans-serif !important;
}