/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* VARIABLES */
:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --navbar: #82868b;
  --light: #f8fafc;
}

/* NAVBAR */
header {
  background: var(--light);
  padding: 1px 10px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: white;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--secondary);
  border-bottom: 2px solid #ff5733; /* Color de la línea al pasar el cursor */
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    /*url("https://images.unsplash.com/photo-1498050108023-c5249f4df085");*/
    /*url("https://images.unsplash.com/photo-1479142506502-19b3a3b7ff33?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");*/
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");

  background-size: cover;
  color: white;
  padding: 20px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 30px;
}

.btn {
  background: var(--secondary);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #1d4ed8;
}

/* SECCIONES */
section {
  padding: 100px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
}

/* SERVICIOS */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.09);
  /* box-shadow: 1px 3px 0px 1px rgba(0, 0, 0, 01);
  -webkit-box-shadow: 1px 3px 24px 10px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 1px 3px 24px 10px rgba(0, 0, 0, 0.75); */
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ABOUT */
.about {
  background: var(--light);
  text-align: center;
  font-size: 16px;
  padding: 25px 160px;
  max-width: 90%;
  margin: 15px auto;
  box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.09);
}

/* CONTACTO */
.contact {
  background: #ffffff;
}

form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

textarea {
  resize: none;
  height: 140px;
}

/* FOOTER */
footer {
  background: var(--primary);
  font-size: 16px;
  color: white;
  text-align: center;
  line-height: 1.4;
  padding: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  nav ul {
    /* display: none; */
    /*font-size: 14px;*/
    padding: 1px;
    margin: 1px;
  }

  .enlaces {
    font-size: 14px;
  }

  a:hover {
    border-bottom: 2px solid #d84828; /* Color de la línea al pasar el cursor */
  }

  .enlaces::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px; /* Grosor de la línea */
    bottom: -2px; /* Distancia del texto */
    left: 0;
    background-color: blue; /* Color de la línea */
    transition: width 0.3s ease; /* Duración animación */
  }

  /* Animación al hacer hover */
  .enlaces:hover::after {
    width: 100%;
  }

  .logo {
    width: 120px;
    margin-left: 0;
    padding-left: 0;
    position: absolute;
    top: -1px;
    left: 1px;
  }

  nav ul {
    display: flex;
    gap: 12px;
    list-style: none;
  }

  header {
    background: var(--light);
    padding: 16px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  .about {
    background: var(--light);
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
  }

  .menu {
    display: flex;
  }

  .barra_navegacion {
    height: 20px;
  }
}
