/* === Variables y fuentes === */
:root {
  --color_1: #fff;
  --color_2: #CC5600;
  --color_3: #000;
  --color_4: #ff6a00;
  --font-main: 'Roboto', sans-serif;
  --font-title: Monono, Helvetica, Arial, sans-serif;
  --font-size-base: 14px;
  --font-size-title: 22px;
  --navbar-height: 80px;
  --navbar-height-mobile: 60px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-navbar: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-menu: -2px 0 16px rgba(0,0,0,0.18);
  --transition-fast: 0.2s;
  --transition-menu: left 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}

@font-face {
  font-family: 'Freight Sans Black';
  src: url('./assets/font/Freight Sans Black.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: Monono;
  src: url(../assets/font/Freight_Sans_Black_SC.otf);
}

/* === Estilos globales === */
body {
  font-family: var(--font-main);
  cursor: url('../assets/img/cursor.png'), auto;
}

/* === Navbar Mejorado === */
nav {
  height: var(--navbar-height);
  width: 100%;
  background-color: var(--color_3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-navbar);
  z-index: 1000;
}

.enlace {
  position: absolute;
  left: 0;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  height: var(--navbar-height);
}

.logo {
  width: 44px;
  height: auto;
}

nav ul {
  float: right;
  margin-left: 120px;
  display: flex;
  align-items: center;
  /* gap: 10px; */
  transition: none;
}

nav ul li {
  display: inline-block;
  line-height: var(--navbar-height);
  margin: 0 8px;
}

nav ul li a {
  color: var(--color_1);
  text-decoration: none;
  font-size: var(--font-size-base);
  padding: 8px 10px;
  text-transform: uppercase;
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  background: var(--color_4);
  border-radius: var(--radius);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

nav ul li a:focus::after,
nav ul li a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

li a.active, li a:hover, nav ul li a:focus {
  color: var(--color_4);
  font-weight: 900;
  background: rgba(255,106,0,0.08);
  box-shadow: 0 2px 8px rgba(255,106,0,0.08);
  /* outline: 2px solid var(--color_4); */
  outline-offset: 2px;
}

.titulo {
  color: var(--color_1);
  line-height: var(--navbar-height);
  margin-left: 50px;
  font-size: var(--font-size-title);
  text-transform: uppercase;
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-weight: bold;
}

.rrss {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rrss_responsive {
  display: none;
  font-family: var(--font-main);
  font-weight: 500;
}

.checkbtn {
  position: absolute;
  right: 30px;
  top: 24px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  margin-left: 70px;
  cursor: pointer;
  display: none;
  z-index: 20;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.checkbtn:focus, .checkbtn:hover {
  background: rgba(255,106,0,0.12);
  outline: 2px solid var(--color_4);
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(255,106,0,0.12);
}

#check {
  display: none;
}

/* === Botón de cerrar oculto por defecto === */
.close-item {
  display: none;
}

/* === Media queries responsive === */
@media (max-width: 990px) {
  .enlace {
    position: static;
    padding: 0 0 0 10px;
    height: var(--navbar-height-mobile);
    display: flex;
    align-items: center;
  }
  .checkbtn {
    display: block;

  }
  .titulo {
    display: none;
  }
  .enlace {
    padding: 20px 30px;
    display: flex;
    align-items: center;
  }
  nav ul {
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 100vh;
    background: var(--color_3);
    top: 0;
    left: 100vw;
    text-align: center;
    transition: var(--transition-menu);
    z-index: 10000;
    margin-left: 0;
    padding-top: 100px;
    box-shadow: var(--shadow-menu);
    opacity: 0.98;
    gap: 0;
  }
  .close-item {
    display: block;
    align-self: flex-end;
    margin: 0 20px 10px 0;
    line-height: 1;
  }
  .closebtn {
    display: inline-block;
    font-size: 36px;
    color: var(--color_1);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
  }
  .closebtn:focus, .closebtn:hover {
    background: rgba(255,106,0,0.18);
    color: var(--color_4);
    outline: 2px solid var(--color_4);
    outline-offset: 2px;
  }
  nav ul li {
    display: block;
    margin: 18px 0;
    line-height: 40px;
  }
  nav ul li a {
    font-size: 22px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
  }
  li a:hover, li a.active, nav ul li a:focus {
    background: rgba(255,106,0,0.18);
    color: #CC5600;
    outline: 2px solid var(--color_4);
    outline-offset: 2px;
  }
  #check:checked ~ ul {
    left: 0;
    opacity: 1;
  }
  #check:checked + label.checkbtn {
    display: none;
  }
  .rrss {
    display: none;
  }
  .rrss_responsive {
    display: block;
    margin-top: 18px;
    font-size: 20px;
  }
}

/* === Footer === */
.footer {
  background-color: var(--color_3);
  color: var(--color_1);
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: 1px;
}
