body {
   margin: 0;
    padding: 0;
    padding-top: 100px;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    background-color: #202020; /* color suave para probar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s, background 0.3s;
}

.footer {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    text-align: center;
}

.footer-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer p {
    margin: 5px 0;
    font-size: 18px;
    color: #cccccc;
}

.footer-redes a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-redes a:hover {
    transform: scale(1.1);
}

.footer-redes img {
    width: 40px;
    height: 40px;
}










.servicios-tarjetas {
  width: 100%;             /* Ocupa todo el ancho de la ventana */
  padding: 2rem 1rem 0 1rem;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.servicios-tarjetas h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 40px;
  background-color: #202020;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tarjetas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tarjeta {
  background: #4ac88b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tarjeta h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ffffff; /* un azul agradable para destacar */
  font-size: 1.25rem;
  text-align: center;
}

.tarjeta p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  font-weight: bold;
}

.tarjeta img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  height: 200px; 
  margin-left: auto;
  margin-right: auto;
  display: block;
  
}

.boton-tarjeta {
  display: block;
  background: #313131;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin-left: auto;
  margin-right: auto;
}

.boton-tarjeta:hover {
  background: #00b062;
  transform: translateY(-2px);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}














/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .servicios-tarjetas {
    padding: 0 0.5rem;
  }
  .tarjetas-container {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Ajusta según la altura real del header en mobile */
  }
  .header {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #202020;
  }
  .header h1 {
    font-size: 20px;
    margin-bottom: 0;
    z-index: 1001;
  }
  .menu-toggle {
    display: block;
    margin-left: auto; /* Espacio para el logo */
    align-self: center;
    z-index: 1001;
  }
  .nav-principal {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: #202020;
  }
  .lista {
    display: none;
    flex-direction: column;
    background: #202020;
    width: 100vw;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }
  .lista.show {
    display: flex;
  }
  .lista li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #333;
  }
  .lista a {
    font-size: 18px;
    display: block;
    padding: 12px 20px;
    width: 100%;
  }
  .tarjetas-container {
    grid-template-columns: 1fr;
  }
  .tarjeta img {
    height: 140px;
  }
  .servicios-tarjetas h2 {
    font-size: 28px;
    padding: 0.5rem;
  }
}

@media (max-width: 500px) {
  .header {
    padding: 6px 4px;
  }
  .header h1 {
    font-size: 25px;
  }
  .tarjeta img {
    height: 90px;
  }
  .servicios-tarjetas h2 {
    font-size: 20px;
    padding: 0.3rem;
  }
  .boton-tarjeta {
    font-size: 13px;
    padding: 0.5rem 1rem;
  }
}
