@font-face {
  font-family: 'BrownStd';
  src: url('../fonts/BrownStd-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.uppercase{
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

html {
  font-size: 62.5%; /* 10px si el navegador está a 16px por defecto */
    scrollbar-width: none;
      overflow-y: scroll;
}

/* Chrome, Safari, Edge */
html::-webkit-scrollbar {
  display: none;
}

body {
  padding: 2rem;
  font-family: 'BrownStd', sans-serif !important;
  font-size:1rem;
  line-height:1.4rem;
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}



/*posicionamiento logo cedratt */
.logo-cedratt {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 13.7rem;
  height: auto;
  z-index: 50;
  pointer-events: none;
}

/* Navegación */

.main-menu {
  position: fixed;
  bottom: 0px;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0px;
  z-index: 100;
  width: 100%;
  padding: 2rem;
}

.main-menu button:first-child {
  justify-self: start; /* About a la izquierda */
}

.main-menu button:nth-child(2) {
  justify-self: center; /* Elemento central centrado */
}

.main-menu button:last-child {
  justify-self: end; /* Contact a la derecha */
}

.main-menu button {
background:none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'BrownStd', sans-serif;
}

button, a {
  color: inherit; /* Hereda el color del padre */
  text-decoration: none; /* Quita subrayado de enlaces */
}

.main-menu button:hover {
  color: grey;
}

/* Ocultar menú mobile en desktop */
.mobile-menu,
.mobile-view-btn {
  display: none;
}
/* fin del menú */

/* Sidebar */ 

.sidebar {
  position: fixed;
  top: 0;
  width: 62rem;
  height: 100vh;
  background: black;
  color:white;
  transition: right 0.3s ease;
  padding: 2rem;
  z-index: 1000;
}

.sidebar-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin: 0;
  height: 100%;
}
.sidebar-text p {
  margin-bottom: 1em; /* Asegura espacio entre párrafos */
}

/* About content ocupa 7 columnas */
.about-sidebar .sidebar-text {
  grid-column: 1 / span 7;
}

/* Contact content ocupa todas las columnas */
.contact-sidebar .sidebar-text {
  grid-column: 1 / span 12;
}
.about-sidebar {
  left: -62rem;
  right: auto;
  transition: left 0.3s ease;
}
.about-sidebar.active {
  left: 0;
}
.contact-sidebar{
  right: -62rem;
  left: auto;
  text-align: right;
}
.contact-sidebar.active {
  right: 0;
  left: auto;
}

.close-btn {
  position: absolute;
  bottom:2rem;
  padding:0;
  background: none;
  border: none;
  cursor: pointer;
  color:white;
}
.close-contact{
right:2rem;
}
.close-about{
    left:2rem;
}



/* MOBIlE */

@media (max-width: 768px) {
  body {
    padding: 1.5rem; /* 15px */
      font-size:0.9rem;
  line-height:1.2rem;
  }
    .logo-cedratt {
    top: 50%;
    transform: translate(-50%, -50%); /* Centrado horizontal y vertical */
  }
  
  /* Ocultar menú desktop en mobile */
  .desktop-menu {
    display: none;
  }
  
  /* Mostrar menú mobile abajo */
  .mobile-menu {
    display: flex;
    justify-content: space-between;
    bottom: 0;
    padding: 1.5rem;
  }
  
  /* Change view arriba */
  .mobile-view-btn {
    display: block;
    position: fixed;
    top: 2.5rem;
      left: 50%;
  transform: translateX(-50%);
    z-index: 100;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  
  /* Sidebar mobile */
  .sidebar {
    width: 85vw;
    padding: 1.5rem;
    height:100dvh;
  }
  
  .about-sidebar {
    left: -85vw;
  }
  
  .contact-sidebar {
    right: -85vw;
  }
  
  /* Textos del sidebar ocupan 100% en mobile */
  .about-sidebar .sidebar-text,
  .contact-sidebar .sidebar-text {
    grid-column: 1 / span 12;
  }
  
  .close-btn {
    bottom: 1.5rem;
  }
  
  .close-contact {
    right: 1.5rem;
  }
  
  .close-about {
    left: 1.5rem;
  }
}