
@font-face {
  font-family: 'kenteken';
  src: url('../fonts/kenteken.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --grad-color-1: #ffffff;
  --grad-color-2: #7a0b5900;
  --grad-pos-x: 10%;
}

/* Sobreescribe solo la navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0; /* evita desplazamientos extra */
  background: radial-gradient(
    circle at var(--grad-pos-x) ,
    var(--grad-color-1) 5vw,
    var(--grad-color-2) 40vw

  );
  transition: background 0.3s ease-out;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.navbar__list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 1em;
}

.navbar__list li {
  font-family: 'kenteken' ;
}

.navbar__list a {
  color: #00000049;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 0.5em;
}

.navbar__list li.active a {
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
  color : black;
}

/* Móvil: despliega el menú como drawer */


  
@media (max-width: 768px) {

  .navbar__list {
    flex-direction: column;
    background: rgba(0, 0, 0, 0.342);
    width: 45%;
    text-align: center;
    position: fixed;
    top: 0;
    right: -100%;    
  
    transition: right 0.4s ease;
  }
  .navbar__list.open {
    right: 0;
  }
  /* Botón hamburguesa opcional */
  .navbar::after {
    content: "";
    background-image: url(../img/recurso_3.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 1em;
    left: 1em;
    font-size: 3.5em;
    cursor: pointer;
    z-index: 1001;
    width: 20vw;
    height: 20vw;
  }

  .navbar__list li{
    margin-top: 10%;
    margin-bottom: 10%;
    font-size: 5vw;   
  }

  .navbar__list li a{
    color: #ffcbff;
  }

  .navbar__list li.active a {
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
    color : rgb(255, 0, 0);
  }

}


html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
    overflow-y: scroll;
  }

  .section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    scroll-snap-align: start;
  }

  .section .content {
    background-color: rgba(0,0,0,0.5);
    padding: 2em;
    border-radius: 10px;
    max-width: 700px;
  }

  #home {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80');
  }

  #about {
    background-image: url('https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=1600&q=80');
  }

  #ai {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1600&q=80');
  }

  #applications {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80');
  }

  #contact {
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80');
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  input, textarea {
    padding: 0.8em;
    border: none;
    border-radius: 5px;
    width: 100%;
  }

  button {
    padding: 0.8em;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
  }

