/* ------RESETEO GLOBAL------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ------RESPONSIVE------ */

/* ------TABLETS (menor o igual a 1024px)------ */
@media (max-width: 1024px) {

  /* GRID DE LOS SERVICIOS OFRECIDOS */
  .services {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  /* INICIO */
  .main h1 {
    font-size: 2.2rem;
  }

  .main p {
    font-size: 1.1rem;
  }

  /* SECCIONES */
  .section h2 {
    font-size: 1.6rem;
  }

  #infoServices {
    max-width: 90%;
    padding: 1.5rem;
  }
}

/* ------MÓVILES (menor o igual a 768px)------ */
@media (max-width: 768px) {

  /* BARRA DE NAVEGACIÓN */
  nav {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  nav a {
    font-size: 1rem;
  }

  /* MAIN */
  .main {
    padding: 100px 10px 60px;
  }

  .main h1 {
    font-size: 2rem;
  }

  .main p {
    font-size: 1rem;
  }

  /* SECCIONES */
  .section h2 {
    font-size: 1.5rem;
  }

  .section p {
    font-size: 0.95rem;
  }

  #infoServices {
    padding: 1rem;
  }

  #infoServices .intro {
    font-size: 1rem;
    text-align: center;
  }

  /* GRID SERVICIOS */
  .services {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }

  .card {
    padding: 1rem;
  }

  .card img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }

  .card p {
    font-size: 0.95rem;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* BOTONES */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  /* FOOTER */
  footer {
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
  }
}

/* ------MÓVILES PEQUEÑOS (Menor o igual a 480px)------ */
@media (max-width: 480px) {
  .main h1 {
    font-size: 1.7rem;
  }

  .main p {
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
/* MENU HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mostrar hamburguesa cuando son moviles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 55px;
    left: 0;
    padding: 20px;
  }

  #nav-menu.show {
    display: flex;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

/* ------ BARRA DE NAVEGACIÓN------ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  z-index: 1000;
}

nav .logo img {
  height: 50px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* ------ SECCION PRINCIPAL------ */
.main {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/banner.jpg')
              center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 140px 20px 100px;
}

.main h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.main p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ------BOTONES------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #bca71b;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.btn:hover {
  background: #ffd633;
}

/* ------SECCIONES------ */
.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section.light {
  background: #f8f8f8;
  border-radius: 10px;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ------SERVICIOS------ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
/* ------INFO SERVICES------ */
#infoServices {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

#infoServices .intro {
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.service-item {
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.service-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

#infoServices .cta {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #000;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 500;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.card p {
  text-align: center;
  margin-top: 0.5rem;
}

/* ------FOOTER------ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #111;
  color: #ccc;
  font-size: 0.9rem;
}
